#silverstripe IRC Log

IRC log for 12 September 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:14] <DanaeNZ> pandauxstudio: Maybe check the raw file. I was having issues before I realised that excel can fuck up blank columns
3: [00:00:15] * ss-helper has joined #silverstripe
4: [00:00:23] <ben_w> hey guys, has anyone experience file permission issue with SilverStripe 4.0?
5: [00:01:48] <pandauxstudio> thnx @DanaeNZ I don't think its a CSV format issue either, tried a few samples.
6: [00:01:56] * DarjusIT quit (Read error: Connection reset by peer)
7: [00:04:19] <pandauxstudio> @ben_w I maybe experiencing file permission issues, I checked ss cache and noticed -rw-r--r-- BulkLoader57d5ef48ec21d9.92098248.csv
8: [00:07:51] * isaac_ has joined #silverstripe
9: [00:08:01] <isaac_> hey guys
10: [00:08:14] <isaac_> is there a way to print the sql of a DataList?
11: [00:09:17] <ben_w> @pandauxstudio I have upload a image through cms, however can't manage to display it in the template. I have tried all the suggestion in file_security, however none of them works
12: [00:09:19] <ben_w> https://docs.silverstripe.org/en/4.0/developer_guides/files/file_security/
13: [00:10:51] <ben_w> @isaac_ try DataList::get()->sql();
14: [00:15:42] <Audlex> I have an image that doesn't seem to exist but is in the DB so it prevents me from opening that upload folder.
15: [00:15:47] <Audlex> any solutions?
16: [00:17:54] <Audlex> ok it turns out it does exist, it just doesnt want to play ball. i will update the CMS
17: [00:21:58] <Audlex> something odd with the file name perhaps, it was quite long and only played up when i tried to crop it. removed it from the DO.
18: [00:22:22] <Audlex> if anyone knows why, that would be great. SS 3.2.0-rc1
19: [00:39:26] * isaac_ quit (Ping timeout: 264 seconds)
20: [00:53:15] * pandauxstudio_ has joined #silverstripe
21: [00:53:15] <ss-helper> pandauxstudio_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
22: [00:55:26] * spronk quit (Ping timeout: 240 seconds)
23: [00:58:02] * pandauxstudio_ quit (Ping timeout: 264 seconds)
24: [01:28:31] * Azure quit (Ping timeout: 255 seconds)
25: [01:31:38] * pandauxstudio quit (Ping timeout: 264 seconds)
26: [01:57:20] * Azure has joined #silverstripe
27: [02:03:00] * spronk has joined #silverstripe
28: [02:27:21] * DanaeNZ quit (Remote host closed the connection)
29: [02:27:55] * DanaeNZ has joined #silverstripe
30: [02:33:03] * DanaeNZ quit (Ping timeout: 276 seconds)
31: [02:48:18] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
32: [02:48:19] * Stomach quit (Read error: Connection reset by peer)
33: [02:53:20] * Stomach has joined #silverstripe
34: [03:15:05] <ss-helper> Silverstripe: Pass URL Variable to Form Action - http://stackoverflow.com/questions/39220541/silverstripe-pass-url-variable-to-form-action
35: [03:27:46] * Stomach quit (Quit: zzz)
36: [03:28:06] * Stomach has joined #silverstripe
37: [03:37:52] * pandauxstudio has joined #silverstripe
38: [03:39:12] * DanaeNZ has joined #silverstripe
39: [03:44:39] * Admonish has joined #silverstripe
40: [03:44:43] * Admonish quit (Client Quit)
41: [03:46:32] * spronk quit (Quit: I may need a longer sleep timer...)
42: [03:47:35] * Stomach quit (Ping timeout: 265 seconds)
43: [03:47:42] * spronk has joined #silverstripe
44: [03:51:24] * Stomach has joined #silverstripe
45: [04:02:51] <jaydenseric> For some reason, the hasonefield module stopped rendering the edit state today. Here is the line: https://github.com/jaydenseric/silverstripe-hasonefield/blob/7269a718e045cd70cb07825f9b67697ae635628d/code/HasOneButtonField.php#L59
46: [04:04:00] <jaydenseric> updated dev master and got:
47: [04:04:00] <jaydenseric> PHP Warning: file_get_contents(): Filename cannot be empty in /Volumes/Users/chejss/Sites/CHE1277/framework/View/SSViewer.php on line 554
48: [04:04:24] <jaydenseric> PHP Warning: None of the following templates could be found: GridFieldAddNewButton in themes "Array
49: [04:04:24] <jaydenseric> (
50: [04:04:24] <jaydenseric> [0] => /framework/admin/themes/cms-forms
51: [04:04:26] <jaydenseric> [1] => $default
52: [04:04:27] <jaydenseric> )
53: [04:04:28] <jaydenseric> " in /Volumes/Users/chejss/Sites/CHE1277/framework/View/SSViewer.php on line 285
54: [04:05:29] <jaydenseric> something to do with this? https://github.com/silverstripe/silverstripe-framework/blob/master/docs/en/04_Changelogs/4.0.0.md#upgrade-template-locations-and-references
55: [04:20:32] * spronk quit (Quit: I may need a longer sleep timer...)
56: [04:47:19] * Stomach quit (Quit: zzz)
57: [04:51:27] <Shrike_Finland> Anyone seen this? SortableOrder: http://sspaste.com/paste/show/57d56382cc0a1? I get this: "[Recoverable Error] Argument 1 passed to GridFieldOrderableRows::getSortTable() must be an instance of DataList, instance of UnsavedRelationList given"
58: [04:59:32] * Stomach has joined #silverstripe
59: [05:01:27] <Shrike_Finland> Ok, I fixed it with this approach. https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/issues/98
60: [05:01:29] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
61: [05:01:39] <DanaeNZ> Shrike_Finland: yeah often. Usually just wrap in if ($this->ID)
62: [05:04:51] <jaydenseric> +1 to that
63: [05:05:01] <jaydenseric> if ($this->ID)
64: [05:45:18] * Shrike_Finland quit (Quit: Leaving.)
65: [05:48:21] * Stomach quit (Quit: zzz)
66: [05:49:31] * wmk has joined #silverstripe
67: [06:04:09] <jaydenseric> after trying all day, I am absolutely stuffed how to renderWith('GridFieldAddNewButton') in the latest dev-master
68: [06:08:43] * spronk has joined #silverstripe
69: [06:09:57] * Shrike_Finland has joined #silverstripe
70: [06:11:35] <wmk> jaydenseric, ss4?
71: [06:11:49] <jaydenseric> Just got it!
72: [06:12:04] <wmk> ;)
73: [06:12:06] <jaydenseric> for ss4, renderWith('SilverStripe\Forms\GridField\GridFieldAddNewButton')
74: [06:12:25] <jaydenseric> swear I tried that several times already
75: [06:12:26] <wmk> logical but impossible without proper auto complete
76: [06:12:50] <wmk> or a use... in head of file
77: [06:15:07] <ss-helper> Silverstripe: Disable CSRF for particular IP - http://stackoverflow.com/questions/39444194/silverstripe-disable-csrf-for-particular-ip
78: [06:16:53] * lerni has joined #silverstripe
79: [06:17:53] <jaydenseric> For some reason the use would not work here
80: [06:18:34] <jaydenseric> event though it works, should there be double backslashes when namespacing in the string? like renderWith('SilverStripe\\Forms\\GridField\\GridFieldAddNewButton')
81: [06:20:10] <wmk> jaydenseric, good question. I didn't use much namespacing yet. I'm happy when SS4 will push me forward being a better dev
82: [06:20:43] <wmk> could also be a difference if you use "string" or 'string'
83: [06:23:07] <wmk> so a namespace with beginning lower n or t could cause problems jaydenseric
84: [06:23:42] <wmk> e.g. "Company\news\Foo" in double quotes ....
85: [06:24:15] <jaydenseric> oh
86: [06:26:51] <wmk> "\n" is a linebreak
87: [06:26:57] <wmk> '\n' would be OK
88: [06:27:13] <wmk> but you should use CamelCase for namespaces afaik
89: [06:30:11] <ss-helper> Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/Qx4shEL8CAAJ
90: [06:35:59] * Mike123 has joined #silverstripe
91: [06:36:23] <Mike123> hey
92: [06:36:29] <wmk> ho
93: [06:36:40] * wmk puts on the drum machine
94: [06:37:17] * pweh has joined #silverstripe
95: [06:37:59] <DanaeNZ> let's go
96: [06:39:35] * spronk quit (Quit: I may need a longer sleep timer...)
97: [06:41:15] * darianno has joined #silverstripe
98: [06:44:50] * pandauxstudio quit (Ping timeout: 264 seconds)
99: [06:48:58] * spronk has joined #silverstripe
100: [06:50:02] * spronk quit (Max SendQ exceeded)
101: [06:50:37] <wmk> anyone knows if i18n date formatting is part of ss4?
102: [06:51:03] <wmk> e.g. have a method "nice" that puts on german format for de_DE and us format for en_US...
103: [07:00:53] * Shrike_Finland1 has joined #silverstripe
104: [07:02:37] * Shrike_Finland quit (Ping timeout: 252 seconds)
105: [07:07:41] * ben_w quit ()
106: [07:40:03] * DanaeNZ quit (Quit: TIME TO FEED)
107: [07:59:06] * spronka has joined #silverstripe
108: [08:04:36] * Shrike_Finland1 quit (Quit: Leaving.)
109: [08:06:36] * slievr has joined #silverstripe
110: [08:08:29] * janneklouman-- has joined #silverstripe
111: [08:08:42] * Shrike_Finland has joined #silverstripe
112: [08:19:32] * agent44 has joined #silverstripe
113: [08:27:49] * agent44 quit (Ping timeout: 250 seconds)
114: [08:35:37] * emi_ has joined #silverstripe
115: [08:35:37] <ss-helper> emi_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
116: [08:38:16] <emi_> Hi all, I have a simple method with "return 'some simple text';" in Controller Class, but when I call this method via AJAX it returns whole HTML document page, but I need only to return that simple text, no whole html document. Any suggestions how to make it?
117: [08:39:12] * janneklouman-- quit (Ping timeout: 240 seconds)
118: [08:40:42] * Shrike_Finland quit (Quit: Leaving.)
119: [08:42:09] * Shrike_Finland has joined #silverstripe
120: [08:48:36] * agent44 has joined #silverstripe
121: [08:51:40] * janneklouman-- has joined #silverstripe
122: [08:57:12] * janneklouman-- quit (Ping timeout: 276 seconds)
123: [08:57:27] * janneklouman-- has joined #silverstripe
124: [08:58:25] * Stomach has joined #silverstripe
125: [09:01:14] * micmania1 has joined #silverstripe
126: [09:02:00] <wmk> emi_, yes, the typical ajax stuff...
127: [09:03:04] <wmk> emi_, basically this lession should get you going: https://www.silverstripe.org/learn/lessons/ajax-behaviour-and-viewabledata
128: [09:06:13] * Shrike_Finland quit (Read error: Connection reset by peer)
129: [09:06:31] * Shrike_Finland has joined #silverstripe
130: [09:12:37] <emi_> wmk, thank you, finnaly I fixed it :) ... it was only wrong ajax URL
131: [09:12:48] <wmk> ;)
132: [09:15:18] * swaiba has joined #silverstripe
133: [09:17:14] * emi_ quit (Ping timeout: 264 seconds)
134: [09:19:09] * Shrike_Finland quit (Read error: Connection reset by peer)
135: [09:19:13] * bitshop has joined #silverstripe
136: [09:19:13] <ss-helper> bitshop: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
137: [09:19:23] * Shrike_Finland has joined #silverstripe
138: [09:21:28] * Shrike_Finland quit (Read error: Connection reset by peer)
139: [09:21:35] * Shrike_Finland has joined #silverstripe
140: [09:23:50] * bitshop quit (Ping timeout: 264 seconds)
141: [09:40:53] * Shrike_Finland quit (Read error: Connection reset by peer)
142: [09:40:55] * Shrike_Finland1 has joined #silverstripe
143: [10:00:16] <ss-helper> Re: [silverstripe-dev] Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/WE-yJNkHCQAJ
144: [10:09:13] * janneklouman-- quit (Ping timeout: 250 seconds)
145: [10:10:02] * Mike123 quit (Ping timeout: 264 seconds)
146: [10:11:51] * Shrike_Finland1 quit (Quit: Leaving.)
147: [10:26:15] * Stomach quit (Quit: zzz)
148: [10:26:15] * agent44 quit (Ping timeout: 265 seconds)
149: [10:30:16] <ss-helper> Re: [silverstripe-dev] Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/0gnSDIkJCQAJ
150: [10:30:17] <ss-helper> Re: [silverstripe-dev] More helpful exceptions/warnings - https://groups.google.com/d/msg/silverstripe-dev/14lJBw13jQI/vLpAY8oICQAJ
151: [10:30:25] * agent44 has joined #silverstripe
152: [10:30:31] * pweh quit (Ping timeout: 252 seconds)
153: [10:46:50] * Shrike_Finland has joined #silverstripe
154: [11:16:16] * janneklouman-- has joined #silverstripe
155: [11:29:05] * Shrike_Finland quit (Quit: Leaving.)
156: [11:39:09] * Shrike_Finland has joined #silverstripe
157: [12:13:22] * BackEndCoder quit (Quit: https://github.com/BackEndCoder)
158: [12:20:23] * pweh has joined #silverstripe
159: [12:24:48] * mvezzani has joined #silverstripe
160: [12:24:48] <ss-helper> mvezzani: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
161: [12:28:57] <mvezzani> Hi all. I've got a question regarding versioned parent models. I've got a Series that has many Messages. When I publish my Series object, the Messages that are published are available to site users. When I unpublish my Series, the Messages associated with that Series get deleted/orphaned from the Series. I was wondering if anyone could point me to documentation that would allow me to unpublish Messages when their associated S
162: [12:29:25] <ss23> Your message cut off
163: [12:29:29] <ss23> > documentation that would allow me to unpublish Messages when their associated S
164: [12:31:13] * pweh quit (Read error: Connection reset by peer)
165: [12:31:29] * micmania1 quit (Quit: micmania1)
166: [12:33:26] * mvezzani quit (Ping timeout: 264 seconds)
167: [12:35:35] * Shrike_Finland quit (Quit: Leaving.)
168: [12:37:00] * mvezzani has joined #silverstripe
169: [12:37:42] <mvezzani> Apologies if someone answered my previous question. I got booted from my network for a bit and I can't look back in the chat history.
170: [12:37:53] <ss23> mvezzani: 00:29:24 <@ss23> Your message cut off
171: [12:37:54] <ss23> 00:29:29 <@ss23> > documentation that would allow me to unpublish Messages when their associated S
172: [12:39:14] <mvezzani> What I'd like to know is how to enable functionality that unpublishes child Messages when their parent Series gets unpublished, instead of deleting/orphaning the associated Messages.
173: [12:39:33] <ss23> hmm
174: [12:39:41] <ss23> I'd expect them to not be orphaned on *unpublish*
175: [12:40:00] <ss23> Is it perhaps the case that the published (_Live) record for the Series is broken, but the non-published version is fine?
176: [12:40:16] <ss23> If that's the case, you could recursively unpublish all child series messages on the Message onBeforeUnpublish
177: [12:42:11] * mvezzani_ has joined #silverstripe
178: [12:42:11] <ss-helper> mvezzani_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
179: [12:42:44] * Shrike_Finland has joined #silverstripe
180: [12:42:51] <mvezzani_> Dang. My connection is awful. Sorry. @ss23, what was that hook that you mentioned? onBeforeUnpublish?
181: [12:43:35] <ss23> Yeah, so before the unpublish completes, onBeforeUnpublish, I think, should fire. You can check the documentation to be sure
182: [12:43:52] <ss23> But if it is a problem with the Messages being published while the Series is not, you could unpublish all the child Series there
183: [12:43:53] <ss23> um
184: [12:43:57] <ss23> Messages
185: [12:43:58] <ss23> You get the idea
186: [12:44:03] <mvezzani_> Great. Thanks! That gives me a direction to investigate.
187: [12:44:06] <ss23> But you'll have to check for yourself, I honestly don't know the answer, mvezzani
188: [12:44:14] * mvezzani quit (Ping timeout: 264 seconds)
189: [13:19:24] * ocmnt has joined #silverstripe
190: [13:19:41] <ocmnt> howdy
191: [13:19:59] <ss23> hihi
192: [13:20:26] <swaiba> hi ocmnt
193: [13:22:43] <ocmnt> how to populate a dropdownfield with the titles of a dataobject?
194: [13:22:56] <ocmnt> DropdownField::create('Bundle', 'Selected Bundle', DataObject::get('Bundle')->dbObject('Title')->enumValues()) doesnt seem to work
195: [13:24:19] <slievr> DropdownField::create('Bundle', 'Selected Bundle', singleton('Bundle')->dbObject('Title')->enumValues())
196: [13:24:31] * DarjusIT has joined #silverstripe
197: [13:25:08] <swaiba> DropdownField::create('Bundle','', DataObject::get('Bundle')->map('ID', 'Title'))
198: [13:25:10] <ocmnt> slievr wouldnt that return an enum given in class bundle?
199: [13:25:11] <slievr> That's if titles are declared as an Enum
200: [13:25:11] <swaiba> ^^^ ocmnt
201: [13:25:22] <ocmnt> ah thnx swaiba, that looks like something I was lookin for :D
202: [13:25:48] <swaiba> welcome
203: [13:25:48] <slievr> sorry from what you pasted I assumed field type was enum
204: [13:26:27] <ocmnt> np slievr, I could have make my question more clear :p
205: [13:26:32] <ocmnt> btw, anyone here remembering me from years ago? xD
206: [13:26:35] <swaiba> hey wmk you about? how goest eh stripe con palnning?
207: [13:26:58] <swaiba> sorry ocmnt I'm only a couple of years IRC
208: [13:27:32] <DarjusIT> Hi all does SS have something like Session flash?
209: [13:27:54] <slievr> I remember seeing your name in logs if that helps. =D
210: [13:28:03] <swaiba> http://addons.silverstripe.org/add-ons/axyr/silverstripe-flashmessage DarjusIT ?
211: [13:28:19] <swaiba> that or something in the main form / notifications in core
212: [13:28:20] <ocmnt> hahaha, that slightly helps :D
213: [13:28:35] <ocmnt> yet another yaer I wont be attending SScon
214: [13:28:56] <ocmnt> someone informed me about it on skype (I think wmk? )
215: [13:29:34] <wmk> ?
216: [13:29:47] <ocmnt> not u? :P
217: [13:29:50] <wmk> wassup?
218: [13:29:57] <swaiba> there are too wmk ?
219: [13:30:01] <swaiba> *two
220: [13:30:05] <ocmnt> no, I am bad in remembering irc names I guess
221: [13:30:17] <ocmnt> I was talking about the guy from hallstadt austria
222: [13:30:20] <ss-helper> Re: [silverstripe-dev] "Supported modules" and github.com/silverstripe-labs - https://groups.google.com/d/msg/silverstripe-dev/vgQZpUnxrI4/xJz19AcTCQAJ
223: [13:30:23] <DarjusIT> swaiba it looks awesome, I will try it :)
224: [13:30:23] <swaiba> this is him
225: [13:30:30] <swaiba> how is the stripe con planning?
226: [13:30:47] <wmk> swaiba, fine
227: [13:30:49] <ocmnt> how you know that it is him? :D
228: [13:30:55] <wmk> ocmnt, there is no hallstadt in austria
229: [13:30:58] <wmk> but a hallstatt
230: [13:31:02] <ocmnt> oh well :D
231: [13:31:04] <wmk> *G*
232: [13:31:06] <ocmnt> it is flooded by the chineze anyway
233: [13:31:12] <wmk> it is. yes
234: [13:31:20] <ocmnt> didnt they build a hallstatt in china aswell?
235: [13:31:27] <wmk> brb, coffee time with world heritage view on the lake
236: [13:31:47] <ocmnt> have fun with that
237: [13:31:57] * Shrike_Finland quit (Quit: Leaving.)
238: [13:36:34] <wmk> was a quick coffee...
239: [13:36:39] <wmk> ocmnt, what's up?
240: [13:36:51] <wmk> you don't come to Ljubljana?
241: [13:36:54] <ocmnt> not much, picked up SS again lately
242: [13:36:58] * agent44 quit (Read error: Connection reset by peer)
243: [13:37:00] <wmk> nice
244: [13:37:03] <ocmnt> I wont be able to come
245: [13:37:12] <ocmnt> havent been involved with SS on the one side
246: [13:37:20] <ocmnt> on the other, I am out of vacationdays fro this year
247: [13:37:25] <ocmnt> and third, starting a new job in october
248: [13:37:26] * agent44 has joined #silverstripe
249: [13:37:35] <ocmnt> thanks for the remidner though, maybe I come by next year ;)
250: [13:37:44] <wmk> hopefully!
251: [13:38:12] * wmk thinks about offering a beer tour through hallstatt for ss devs exclusively
252: [13:38:14] * samson has joined #silverstripe
253: [13:38:14] <ss-helper> samson: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
254: [13:38:15] <ocmnt> maybe next year organize it in the netherlands
255: [13:38:17] <ocmnt> :D
256: [13:38:26] <wmk> @Firesphere, interested??? ^^
257: [13:38:43] <samson> whats being organised?
258: [13:38:45] <wmk> ocmnt, tbh, this year a slovenian company is doing the on site organisation
259: [13:38:53] <wmk> samson, stripecon.eu
260: [13:39:03] <ocmnt> ah I see :) nice to have companies help out on it :D
261: [13:39:09] <samson> in that case, waiting for netherlands as well :-)
262: [13:39:47] <wmk> samson, no, come! Maybe others from NL can pick you up?
263: [13:40:40] <samson> Actually, I could come by myself. Slovenia isn't that crazy far and a friend of mine is very familiar with the roads there
264: [13:40:58] <samson> 13-15 october, I'll remember that
265: [13:41:51] <wmk> very interesting location, topics and people there
266: [13:42:17] <samson> Anyway, is anyone using the nocaptcha module? https://github.com/UndefinedOffset/silverstripe-nocaptcha
267: [13:42:30] <slievr> on osme sites
268: [13:42:32] <samson> I think there has been an update with google's recaptcha, because the mod stopped working on all my SS sites..
269: [13:42:33] <slievr> some*
270: [13:42:53] <samson> invalid site key for all my clients, nightmare scenario
271: [13:43:42] <slievr> still working on mine, sure it's a google update?
272: [13:44:27] <samson> Good to know, then I'm going to tweak some more, something odd is happening here
273: [13:44:53] <slievr> one sec I'll get my module version for you.
274: [13:45:17] <samson> My god, I just realised I didn't ?flush=all a single website
275: [13:45:42] <samson> *slowly leaves the room walking backwards*
276: [13:45:53] <samson> fixed.
277: [13:46:06] <wmk> !flush samson
278: [13:46:07] <ss-helper> samson: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
279: [13:46:36] <samson> LOLOL
280: [13:47:02] <slievr> at least nightmare averted
281: [13:47:11] <samson> yes but I just got publicly flushed by wmk
282: [13:47:43] <wmk> samson, no, i just told ss-helper bot to remind you again
283: [13:48:02] <wmk> we should rename the channel in silverstripe-rubberduck
284: [13:48:19] <samson> haha yes I know, just kiddin around
285: [13:50:22] <samson> rubberduck? why?
286: [13:51:50] <slievr> is that a reference to rubberduck debugging?
287: [14:00:26] * muskie9 has joined #silverstripe
288: [14:01:20] <muskie9> anyone ever filter and ArrayList by a Date column? like StartDate:GreaterThanOrEqual... seems canSortBy('StartDate') returns false
289: [14:01:27] <wmk> slievr, samson yes
290: [14:01:27] <samson> just read the wiki page, message received lol
291: [14:02:06] <muskie9> DataList does it in the query afaik, would be nice to do it on an ArrayList too
292: [14:05:49] <swaiba> muskie9 dangerous line as to how much "sql" type filtering to allow on a non-sql list...
293: [14:06:07] <muskie9> swaiba true
294: [14:06:51] <wmk> muskie9, gimme a callback function
295: [14:07:17] <wmk> also... filter and sort are two different things..?
296: [14:07:18] <muskie9> we have a calendar that builds an ArrayList of events based on recursion logic, so I date range filtering is the recurring headache (pad pun)... callback seems to be the way to go, but now I'm looping the list at least twice with that...
297: [14:07:43] <muskie9> wmk seems that way... I can sort the ArrayList by the dates, but not implement the filter
298: [14:08:07] <swaiba> why not use an old fashioned array, other php array functions and then place in array list?
299: [14:08:37] <wmk> swaiba, why not use a filter callback on the arraylist?
300: [14:09:05] <wmk> or a http://php.net/manual/en/class.filteriterator.php
301: [14:09:12] <swaiba> wmk well I'm not fussed, but if there is a "core" php method of doing things it's going to be faster than a custom class
302: [14:09:47] <wmk> of course
303: [14:09:58] <wmk> i wonder if ArrayList is compatible with that SPL stuff
304: [14:10:15] <wmk> or a FilterIterator with ArrayData objects?
305: [14:10:34] <swaiba> I'm certain you didn't mean the "Scottish Premier League" did you?
306: [14:11:06] <wmk> swaiba, nope
307: [14:11:08] <wmk> lol
308: [14:11:10] <swaiba> but yeah a call back function to sort / filter the array in the array list would be nice
309: [14:12:12] * muskie9__ has joined #silverstripe
310: [14:12:54] <wmk> swaiba, muskie9 you can subclass ArrayList and overwrite getIterator
311: [14:13:43] <muskie9__> wmk and use Injector?
312: [14:14:03] <muskie9__> I never know what classes can use it
313: [14:14:57] * muskie9 quit (Ping timeout: 265 seconds)
314: [14:15:04] <wmk> muskie9__, why not use a callback directly... http://api.silverstripe.org/3.3/source-class-ArrayList.html#542-564
315: [14:15:26] * mvezzani_ quit (Ping timeout: 264 seconds)
316: [14:15:26] <muskie9__> I'll likely do that to start, just thinking long term
317: [14:15:56] <wmk> also canFilter() is looking at the first item
318: [14:16:48] * agent44 quit (Ping timeout: 265 seconds)
319: [14:16:52] <wmk> so when the first item doesn't have that StartDate... and canSortBy() is always true in an ArrayList
320: [14:18:48] <wmk> nice shirt... https://teespring.com/make-patches-eu
321: [14:19:33] <slievr> What makes a shirt premium?
322: [14:19:47] <wmk> the quality of the cotton i guess
323: [14:21:38] * agent44 has joined #silverstripe
324: [14:44:23] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
325: [14:49:38] * samson quit (Ping timeout: 264 seconds)
326: [15:05:57] * samson has joined #silverstripe
327: [15:09:12] * janneklouman-- quit (Ping timeout: 240 seconds)
328: [15:15:47] * janneklouman-- has joined #silverstripe
329: [15:19:34] * muskie9 has joined #silverstripe
330: [15:22:07] * muskie9__ quit (Ping timeout: 250 seconds)
331: [15:22:12] * Shrike_Finland has joined #silverstripe
332: [15:23:49] <samson> So guys, what does your magic bowl predict about the release date of SS 4?
333: [15:25:11] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
334: [15:31:02] <Shrike_Finland> Hi, from problem to problem :D
335: [15:31:06] <Shrike_Finland> http://sspaste.com/paste/show/57d6ca22007eb
336: [15:31:33] <Shrike_Finland> I have something wrong with my many many logic, I think…
337: [15:31:40] <Shrike_Finland> I get "[User Error] Uncaught LogicException: Inverse component of Page not found (CarouselLightBrick)"
338: [15:32:38] <muskie9> Shrike_Finland you need to add the relation to many_many bricks to your Page class
339: [15:33:41] <muskie9> or that's what that usually means
340: [15:35:22] <Shrike_Finland> hmm. This is code from my Page: http://pastebin.com/dDBSMtMt
341: [15:37:11] <muskie9> hmmm, that should work then
342: [15:38:36] <Shrike_Finland> Yep. I think the problem is with CarouselLightImage
343: [15:50:17] * UndefinedOffset has joined #silverstripe
344: [15:51:42] * lerni quit (Remote host closed the connection)
345: [15:57:49] * Shrike_Finland quit (Quit: Leaving.)
346: [16:04:38] * samson quit (Ping timeout: 264 seconds)
347: [16:07:10] * swaiba quit (Remote host closed the connection)
348: [16:15:25] <ss-helper> Re: Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/BIMNQeobCQAJ
349: [16:31:39] <ocmnt> anyone here evre wrote an extention for the blog module to include related articles on categories / tags?
350: [16:42:44] <wmk> related?
351: [16:42:59] <wmk> like other articles with the same tag(s) ?
352: [16:45:26] <ss-helper> Re: [silverstripe-dev] More helpful exceptions/warnings - https://groups.google.com/d/msg/silverstripe-dev/14lJBw13jQI/6f-ArdIdCQAJ
353: [16:55:32] <ocmnt> same tags / category
354: [16:55:41] <ocmnt> I am too lazy to write my own query to mix and match :P
355: [17:07:51] <wmk> ;)
356: [17:08:20] <wmk> i guess the trick is to sort by relevance.
357: [17:08:32] <wmk> e.g. all tags match ... just one tag matches
358: [17:08:41] <ocmnt> I now how it should work
359: [17:08:50] <ocmnt> but copy paste is easier :p
360: [17:08:57] <ocmnt> end of day, my mind is overworked for the day
361: [17:09:15] <wmk> jup. time to go home
362: [17:11:38] <ocmnt> indeed
363: [17:11:44] <ocmnt> goodbye all
364: [17:11:47] <ocmnt> till next time :D
365: [17:12:34] * ocmnt quit (Quit: Page closed)
366: [17:17:03] * wmk quit (Ping timeout: 240 seconds)
367: [17:19:04] * agent44 quit (Quit: zzz)
368: [17:41:21] * lerni has joined #silverstripe
369: [17:49:34] * UndefinedOffset quit (Quit: Leaving.)
370: [17:51:21] * lerni quit (Remote host closed the connection)
371: [17:51:48] * lerni has joined #silverstripe
372: [17:56:16] * lerni quit (Ping timeout: 264 seconds)
373: [17:59:00] * lerni has joined #silverstripe
374: [18:02:58] * UndefinedOffset has joined #silverstripe
375: [18:32:47] * janneklouman-- quit (Ping timeout: 250 seconds)
376: [18:33:07] * UndefinedOffset quit (Quit: Leaving.)
377: [18:34:31] * lerni quit (Remote host closed the connection)
378: [18:34:57] * lerni has joined #silverstripe
379: [18:39:20] * lerni quit (Ping timeout: 265 seconds)
380: [18:48:45] * UndefinedOffset has joined #silverstripe
381: [19:40:04] * lerni has joined #silverstripe
382: [20:15:20] <ss-helper> Silverstripe inserting Amazon SES in submit action - http://stackoverflow.com/questions/39457996/silverstripe-inserting-amazon-ses-in-submit-action
383: [20:19:21] * gelignite has joined #silverstripe
384: [20:19:35] * lerni quit (Remote host closed the connection)
385: [20:20:53] * lerni has joined #silverstripe
386: [20:30:06] * DimiStripe quit (Quit: DimiStripe)
387: [20:30:46] * Stomach has joined #silverstripe
388: [20:44:59] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
389: [20:51:56] * adrexia has joined #silverstripe
390: [21:14:00] * UndefinedOffset quit (Quit: Leaving.)
391: [21:16:58] * DanaeNZ has joined #silverstripe
392: [21:17:52] * muskie9 quit (Ping timeout: 252 seconds)
393: [21:30:31] <ss-helper> Re: Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/aEly_octCQAJ
394: [21:30:32] <ss-helper> Re: Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/y71gTFEtCQAJ
395: [21:34:19] * lerni quit (Remote host closed the connection)
396: [21:34:45] * lerni has joined #silverstripe
397: [21:39:34] * lerni quit (Ping timeout: 260 seconds)
398: [21:49:31] * samson has joined #silverstripe
399: [21:55:03] * micmania1 has joined #silverstripe
400: [22:00:32] <ss-helper> Re: Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/92fOV8suCQAJ
401: [22:05:52] * DarjusIT1 has joined #silverstripe
402: [22:05:53] <ss-helper> DarjusIT1: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
403: [22:09:06] * DarjusIT quit (Ping timeout: 265 seconds)
404: [22:10:48] * micmania1 quit (Quit: micmania1)
405: [22:13:42] * Stomach quit (Quit: zzz)
406: [22:15:32] <ss-helper> Re: Proposal and POC: silverstripe-recipe module type - https://groups.google.com/d/msg/silverstripe-dev/GRt9e_hjO58/uDZxycYvCQAJ
407: [22:24:44] * micmania1 has joined #silverstripe
408: [22:34:03] * Stomach has joined #silverstripe
409: [22:44:28] * Azure|dc has joined #silverstripe
410: [22:45:19] * Azure quit (Ping timeout: 252 seconds)
411: [23:04:52] * Stomach quit (Ping timeout: 250 seconds)
412: [23:07:46] * Stomach has joined #silverstripe
413: [23:13:52] * Stomach quit (Quit: zzz)
414: [23:19:09] * Stomach has joined #silverstripe
415: [23:31:07] * DarjusIT1 quit (Quit: Leaving)
416: [23:39:19] * Stomach quit (Quit: zzz)
417: [23:41:08] * Stomach has joined #silverstripe

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