#silverstripe IRC Log

IRC log for 11 January 2014

All timestamps are in UTC.

1: [00:00:55] <Azure> Now trying to get an individual dataobject via it's ID (or something). If I call $this->owner->MyImages()->byID($request['ID']) (assuming that MyImages is the has_many relation and $request being my action's params), I get NULL back.
2: [00:00:57] * gelignite quit (Quit: http://bit.ly/nkczDT)
3: [00:02:01] <Azure> calling getIDList lists the object IDs though (which is what I assume is what I need to pass to byID.)
4: [00:02:50] <micmania1> ss23, FYI the demo link at the bottom of silverstripe.com is broke. So is support :)
5: [00:03:19] <ss23> micmania1: What are they pointing to? :O
6: [00:03:47] <micmania1> demo.silverstripe.com (should be .org) and the support link just takes you to the home page.
7: [00:05:34] <ss23> Will get someone to fix up on Monday :)
8: [00:05:49] <ss23> aha, I probably broke the demo link
9: [00:05:50] <ss23> :D
10: [00:05:55] <ss23> ty
11: [00:05:56] <micmania1> haha
12: [00:07:56] * mojo5000 quit (Remote host closed the connection)
13: [00:10:37] * violet- quit (Remote host closed the connection)
14: [00:13:08] <Azure> Not really sure how to get an individual object otherwise.
15: [00:23:46] <Azure> http://pastie.org/8622268 The code in question.
16: [00:25:13] <Azure> http://pastie.org/8622272 (fixed, included output)
17: [00:27:32] <Azure> ... nevermind, I'm an idiot.
18: [00:31:24] <Azure> Realized that I needed to access ID through $request->param().
19: [00:31:39] * oddnoc quit (Quit: bye!)
20: [00:33:42] <Azure> I did notice that if I added extra params to the URL though (past the $other_id,) that a user warning gets emitted:
21: [00:34:38] <Azure> [User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack (L455 of /framework/control/Controller.php)
22: [00:36:17] <Azure> I wouldn't be worried about it much (but who knows if a user might randomly decide to add on to the URL.)
23: [00:39:23] * travis-ci has joined #silverstripe
24: [00:39:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1770 (3.1 - f433b50 : Will Rossiter): The build passed.
25: [00:39:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/6fae1e6392d7...f433b5000fe4
26: [00:39:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16757307
27: [00:39:24] * travis-ci has left #silverstripe
28: [00:41:21] * jrthomer has joined #silverstripe
29: [00:46:55] <Pyromanik> Azure, yeh, I'm always wary when I see raw access when reading framework demo code.
30: [00:47:07] <Pyromanik> usually indicative of some kinda hack, no matter the system.
31: [00:48:38] <Pyromanik> also the popcontroller error is probably because of the re-working of the url params causing an issue with the way hasAction or some such method works.
32: [00:59:42] * mojo5000 has joined #silverstripe
33: [01:02:15] * mojo5000 quit (Client Quit)
34: [01:03:45] <Azure> I see
35: [01:11:04] * willr quit (Quit: willr)
36: [01:18:13] <Pyromanik> gawd, suddenly 20 past 1am and I see on facebook pictures of a brand new burgerfuel in christchurch D:
37: [01:18:24] <Pyromanik> as if I wasn't already hungry! D:
38: [01:42:17] * Liquide quit ()
39: [02:16:00] * willr has joined #silverstripe
40: [02:36:07] * willr quit (Quit: willr)
41: [04:10:59] * cloph has joined #silverstripe
42: [04:11:28] * cloph_away quit (Ping timeout: 272 seconds)
43: [05:42:42] * mobiusnz quit (Quit: Leaving.)
44: [05:46:42] * DigNZ has joined #silverstripe
45: [05:46:50] * DigNZ quit (Client Quit)
46: [06:29:47] <simon_w> Zauberfisch, we can't assign issues to you
47: [06:30:02] <simon_w> Yes, GitHub issues are that shit
48: [06:33:07] <Zauberfisch> simon_w: you can
49: [06:33:15] <Zauberfisch> simon_w: to me at least
50: [06:33:51] <Zauberfisch> chillu added me to a sort of "community" group, which now allowes issues to be assigned to me
51: [06:34:13] <simon_w> Zauberfisch, so you can assign them to yourself
52: [06:34:19] <Zauberfisch> no
53: [06:36:18] <Zauberfisch> I don't have writing permissions, thus, I also don't have permission to edit issues
54: [06:36:53] <Zauberfisch> (even though its my own issue, I can not edit assignment and milestone)
55: [06:37:21] * DigNZ has joined #silverstripe
56: [06:39:20] * DigNZ quit (Client Quit)
57: [06:43:21] * mobiusnz has joined #silverstripe
58: [06:48:15] * mobiusnz quit (Ping timeout: 272 seconds)
59: [06:53:37] * mobiusnz has joined #silverstripe
60: [06:58:17] * mobiusnz quit (Ping timeout: 272 seconds)
61: [07:01:39] * DigNZ has joined #silverstripe
62: [07:01:46] * DigNZ quit (Client Quit)
63: [07:13:57] * robert_ quit (Read error: Connection reset by peer)
64: [07:14:38] * robert_ has joined #silverstripe
65: [07:14:38] * robert_ quit (Changing host)
66: [07:14:38] * robert_ has joined #silverstripe
67: [07:26:38] * mobiusnz has joined #silverstripe
68: [07:41:27] * mobiusnz quit (Quit: Leaving.)
69: [08:42:05] * mobiusnz has joined #silverstripe
70: [08:46:47] * mobiusnz quit (Ping timeout: 260 seconds)
71: [08:59:30] * violetina has joined #silverstripe
72: [09:42:46] * mobiusnz has joined #silverstripe
73: [09:47:45] * mobiusnz quit (Ping timeout: 272 seconds)
74: [09:52:25] * metanat has joined #silverstripe
75: [09:58:58] * j9x has joined #silverstripe
76: [10:00:33] <j9x> hello
77: [10:01:37] <j9x> is it okay to always return true in canView() method? otherwise i'm not able to view the dataobject in the backend to non-admins and at the frontend to guests not logged in.
78: [10:34:31] * qlex has joined #silverstripe
79: [10:34:35] * qlex says hi
80: [10:34:58] <qlex> im using memberprofiles module which allows users to register and appear in "security" section in the given group
81: [10:35:15] <qlex> as an admin i need to login and manualyl see that there are new members to be approved by me.
82: [10:35:28] <qlex> is there anyway i could get email notification about new registrations ?
83: [10:36:11] * metanat quit (Quit: Leaving.)
84: [10:37:47] <Zauberfisch> qlex: oh noes, I forgot :O
85: [10:38:10] <Zauberfisch> hmmm, but I could take a look at it now
86: [10:43:24] * mobiusnz has joined #silverstripe
87: [10:46:17] <qlex> thanks
88: [10:46:24] <qlex> i missed you yesterday
89: [10:46:36] <qlex> let me know if you fork the newest trunk or which one
90: [10:47:19] <Zauberfisch> qlex: you need it for 3.1, right?
91: [10:47:37] * mobiusnz quit (Ping timeout: 245 seconds)
92: [10:47:46] <Zauberfisch> because I plan on PRing against the latest version
93: [10:48:04] <Zauberfisch> / I will be working on silverstripe master
94: [10:48:59] <Zauberfisch> but first, I need breakfast
95: [10:49:00] <Zauberfisch> !
96: [10:49:09] <Zauberfisch> qlex: how long will you be avaliable today?
97: [10:49:11] <qlex> yes
98: [10:52:28] <qlex> a little bit, but with breaks
99: [10:52:31] <qlex> what do you need
100: [10:52:47] <qlex> are there changes to userforms only or to ss master too ??
101: [11:08:11] <Zauberfisch> userforms only
102: [11:08:27] <Zauberfisch> what I mean is, if I make it work with 3.1.x, then it will not work with 3.0
103: [11:10:24] <Zauberfisch> qlex: why I was asking how long you will be avaliable:
104: [11:10:49] <Zauberfisch> I have 1 hour now, then lunch and a meeting, so I will be back in 4-5 hours I guess
105: [11:11:22] <Zauberfisch> and I am assuming that I might need some feedback along the way, or might have a question to you
106: [11:12:37] <Zauberfisch> qlex: so I guess you will not be here in 4-5 hours
107: [11:12:53] <Zauberfisch> mind giving me a briefing on what it is exactly that you need?
108: [11:15:34] <Zauberfisch> qlex: I will not work on the existing pull request, I will close it. and then clone the latest version and do it again
109: [11:18:55] * CodeTrap has joined #silverstripe
110: [11:22:02] <Zauberfisch> so you can also voice any special wishes and I might consider them when implementing
111: [11:29:52] <qlex> the most important thing im getting ask for is:
112: [11:30:28] <qlex> viewer of website, when using contaact form chooses receipient of his message from dropdown
113: [11:30:32] <qlex> that's what i need
114: [11:31:11] <qlex> so when contstructing a dropdown, the extra value field, when filled with e-mail address will serve as the e-mail receipient
115: [11:31:46] <qlex> i was suprised to see that this isnt standard behaviour, since userforms (i would guess) is mainly used as contact form
116: [11:32:04] <qlex> i might be here in 4 hours
117: [11:32:06] <qlex> i will try to
118: [11:32:07] * CodeTrap quit (Ping timeout: 252 seconds)
119: [11:32:09] <qlex> need to run
120: [11:32:12] * qlex says bye
121: [11:32:14] * qlex has left #silverstripe
122: [11:34:39] * CodeTrap has joined #silverstripe
123: [11:40:52] * CodeTrap quit (Ping timeout: 246 seconds)
124: [11:44:05] * mobiusnz has joined #silverstripe
125: [11:46:22] * CodeTrap has joined #silverstripe
126: [11:48:41] * mobiusnz quit (Ping timeout: 265 seconds)
127: [11:50:37] * CodeTrap1 has joined #silverstripe
128: [11:54:03] * CodeTrap quit (Ping timeout: 272 seconds)
129: [12:01:50] * CodeTrap1 quit (Ping timeout: 252 seconds)
130: [12:01:51] * gelignite has joined #silverstripe
131: [12:02:47] * CodeTrap has joined #silverstripe
132: [12:44:40] * mobiusnz has joined #silverstripe
133: [12:49:27] * mobiusnz quit (Ping timeout: 260 seconds)
134: [13:42:43] * j9x quit (Quit: j9x)
135: [13:45:17] * mobiusnz has joined #silverstripe
136: [13:50:03] * mobiusnz quit (Ping timeout: 272 seconds)
137: [14:27:21] * OxFF1 has joined #silverstripe
138: [14:45:56] * mobiusnz has joined #silverstripe
139: [14:50:33] * mobiusnz quit (Ping timeout: 276 seconds)
140: [15:27:58] * ssnewbie has joined #silverstripe
141: [15:28:34] <ssnewbie> how do i do NOT equal in a filter??? BookPage::get()->filter(......
142: [15:46:40] * mobiusnz has joined #silverstripe
143: [15:51:18] * mobiusnz quit (Ping timeout: 265 seconds)
144: [16:19:34] * qlex has joined #silverstripe
145: [16:21:03] <qlex> Zauberfisch: im here if you need me
146: [16:34:46] <Zauberfisch> qlex: still in the meeting. taking longer than i expected
147: [16:35:05] <Zauberfisch> gonna be 1 hour more i think
148: [16:37:59] <qlex> k
149: [16:47:15] * mobiusnz has joined #silverstripe
150: [16:52:21] * mobiusnz quit (Ping timeout: 272 seconds)
151: [16:52:26] <ssnewbie> how do i do NOT equal in a filter??? BookPage::get()->filter(......
152: [17:03:46] * Pyromanik has joined #silverstripe
153: [17:04:51] <Pyromanik> 4081
154: [17:05:01] <Pyromanik> this guy...
155: [17:10:21] <qlex> if a new member registers on my ss powered site (im using memberprofiles module), how can i get notified (as an admin) that i need to login and approve new members ?
156: [17:10:42] <qlex> is tehre any email notification setup - i havent found or havent received any as one of administrators
157: [17:12:56] * ssnewbie quit (Quit: Page closed)
158: [17:47:54] * mobiusnz has joined #silverstripe
159: [17:52:14] * mobiusnz quit (Ping timeout: 246 seconds)
160: [18:03:04] <Pyromanik> so I just found out that after all this hulabaloo over adobe shutting down fireworks, google has made it's own.
161: [18:03:05] <Pyromanik> I wonder...
162: [18:04:09] <Pyromanik> qlex, there's either a setting in the configuration or a hook you can use to apply an extension. If there is neither, you're probably unfortunately out of luck (without some serious work).
163: [18:04:20] <Pyromanik> and this is 2.4 I take it?
164: [18:07:31] <simon_w> Is the fix to get the table name case conversion working really this simple...
165: [18:07:35] <Pyromanik> spronk, irogue23, https://www.google.com/webdesigner/ perhaps? Dunno.
166: [18:08:03] <Pyromanik> simon_w, mysql windows derp you mean?
167: [18:08:14] <Pyromanik> Why up so early? :<
168: [18:08:28] <simon_w> Well, that's the main case
169: [18:08:32] <simon_w> And it's 7 already
170: [18:08:39] <Pyromanik> simon_w, I know, exactly!
171: [18:09:05] <Pyromanik> 707 it was even.
172: [18:09:16] <simon_w> Yup, three character change fixes it
173: [18:09:21] <simon_w> Good one, whoever wrote this
174: [18:09:24] <Pyromanik> lol
175: [18:09:33] <Pyromanik> way back when?
176: [18:09:36] <Pyromanik> or recent patch?
177: [18:09:59] <simon_w> It's fairly recent
178: [18:10:13] <Pyromanik> and what is it?
179: [18:10:19] <simon_w> Well, March last year
180: [18:11:33] <simon_w> Here, try and figure it out: https://github.com/silverstripe/silverstripe-framework/commit/3334eafc#diff-4e2cd653444f4d6e3b357b4cd78b97e1R329
181: [18:12:56] <Pyromanik> 3 char fix? this is quite large :<
182: [18:14:58] <simon_w> That's the original commit
183: [18:15:05] <simon_w> I haven't made mine yet (about to)
184: [18:15:37] <Pyromanik> I'm confused.
185: [18:16:20] <simon_w> https://github.com/silverstripe/silverstripe-framework/commit/5e3420a640fedd8313d3da5a7a4f7d51637aec57
186: [18:20:33] <simon_w> 3 character change. Because someone used the wrong classname/
187: [18:20:56] <Pyromanik> oh
188: [18:20:58] <Pyromanik> I see
189: [18:21:12] <Pyromanik> Someone broke the rename functionality. Gotcha.
190: [18:21:38] <Pyromanik> I thought you were talking about some kind of fix to force winderps to use uppercase chars where applicable.
191: [18:22:49] <simon_w> That's a mysql.cnf setting
192: [18:44:47] <qlex> Pyromanik: nope, 3.1 and memberprofiles - dont seem to have that feature to notify by email administators
193: [18:45:04] <simon_w> qlex, add it
194: [18:47:15] <Pyromanik> [07:22] <@simon_w> That's a mysql.cnf setting
195: [18:47:39] <Pyromanik> yeh that's what I thought, but I thought maybe you'd found some way to force it via a command
196: [18:48:32] * mobiusnz has joined #silverstripe
197: [18:49:29] <qlex> simon_w: would it be an addon to memberprofiles or to ss master itself ?
198: [18:50:08] <qlex> as when a new member registers, then he (before being even able to login to ss page) already appers in Security tab of windows
199: [18:50:30] <qlex> and i, as an admin, need to go and view this user and select "approve this member"
200: [18:52:07] <qlex> in settings/profile of memberprofuiles pagetype i can see:
201: [18:52:26] <qlex> approval group where i select "Administrators" and description of this says:
202: [18:52:27] <qlex> These groups will be notified to approve new registrations
203: [18:52:39] <qlex> so maybe just my email provider blocks this type of mail ?
204: [18:52:59] * mobiusnz quit (Ping timeout: 260 seconds)
205: [18:54:58] <qlex> ok, it works with different than gmail/google apps emails for administrators
206: [18:55:09] <qlex> anyone seen problems with google emails as administrators on silverstripe ?
207: [19:46:52] <Pyromanik> qlex, depends where the approval system lies. If it's part of the module, then I'd add the hook there. If it's part of the core, then I'd do it there.
208: [19:47:35] <Pyromanik> google mail is just the same as any other email inbox. The sending system shouldn't care about it at all.
209: [19:49:11] * mobiusnz has joined #silverstripe
210: [19:53:40] * mobiusnz quit (Ping timeout: 246 seconds)
211: [19:55:19] * Liquide has joined #silverstripe
212: [20:45:31] * mobiusnz has joined #silverstripe
213: [20:55:10] * qlex has left #silverstripe
214: [20:57:58] * mobiusnz quit (Quit: Leaving.)
215: [21:40:12] * mobiusnz has joined #silverstripe
216: [22:12:30] * r3v3rb has joined #silverstripe
217: [23:00:09] * r3v3rb quit (Quit: r3v3rb)
218: [23:16:51] <ss23> Looking to protect yourself, or deal some damage?
219: [23:17:50] * violet- has joined #silverstripe
220: [23:20:48] * violetina quit (Ping timeout: 276 seconds)
221: [23:26:26] <guzzlefry> 0.o
222: [23:31:16] <guzzlefry> Are there any docs for creating reports in SilverStripe?
223: [23:31:27] <guzzlefry> Aside from the half complete one on docs.silverstripe.org
224: [23:32:01] <ss23> I doubt it!
225: [23:34:49] * willr has joined #silverstripe
226: [23:36:05] <guzzlefry> sad
227: [23:36:13] <guzzlefry> I need to do order statistics...
228: [23:41:48] <ss23> willr might konw!
229: [23:41:48] <ss23> :D
230: [23:42:07] <willr> might.
231: [23:42:17] <ss23> willr: How to do reports?
232: [23:43:14] <willr> reports is now a separate module. An example report class looks something like https://gist.github.com/wilr/5400107
233: [23:45:29] <guzzlefry> separate module?
234: [23:45:35] <guzzlefry> Does it still get pulled in by cms?
235: [23:46:03] <guzzlefry> willr: does it have support for filtering/date ranges?
236: [23:47:38] <willr> nothing built in for date ranges, all the Reports functionality does is show rows of data. You can provide the GUI / get vars to do date filtering on those rows
237: [23:48:15] <guzzlefry> ah cool, thank you
238: [23:48:22] <willr> for example, that logged in report breaks it down by month, so I see March, April, May, then click into that and see the list of that month
239: [23:48:59] <willr> should probably make it generic, that report has a bunch of stuff from one of my projects

These logs were automatically created by ss-log on irc.freenode.net.