#silverstripe IRC Log

IRC log for 11 September 2013

All timestamps are in UTC.

1: [00:02:16] <Stomach> how come I can't use "$Images.Length" in silverstripe 3
2: [00:02:20] <Stomach> in a template
3: [00:02:23] <Stomach> from a many_many
4: [00:02:26] <Stomach> O_O
5: [00:02:36] <ss23> Beats me :O
6: [00:02:56] <zippy__> wow and just like that, my DOM doesn't clear that table any more
7: [00:02:58] <simon_w> Because it's .Count?
8: [00:03:03] <ss23> YEah, THAT!
9: [00:03:09] <zippy__> solar flares must of passed
10: [00:03:27] <Stomach> simon_w: sure it is
11: [00:03:38] <Stomach> http://doc.silverstripe.com/framework/en/reference/templates
12: [00:03:50] <Stomach> Length is in docs
13: [00:03:51] <Stomach> sighface
14: [00:04:39] <Pyromanik> docs, sighface.
15: [00:04:44] <ss23> ^^^
16: [00:04:46] <ss23> pls fix
17: [00:04:50] <ss23> At least PR's for docs are easy
18: [00:05:11] <Stomach> yeh
19: [00:05:19] * SightUnseen quit (Ping timeout: 264 seconds)
20: [00:05:33] * Trooy quit (Quit: Leaving)
21: [00:07:08] <simon_w> Pfft, PRs
22: [00:08:37] <Stomach> pull requests should be used
23: [00:08:47] <Stomach> because your commit message is fairly vague
24: [00:08:59] <Stomach> document the documentation simon, geez
25: [00:10:09] <Colin[pi]> learn how to documentation GOSH
26: [00:10:32] <simon_w> Too busy playing stump the FB devs
27: [00:11:00] <Stomach> tree stump.
28: [00:11:43] <atmos> ss23: hmmm, I'd be happy to do it
29: [00:13:01] <atmos> after lunch of course
30: [00:13:03] <atmos> :P
31: [00:16:05] <Pyromanik> http://api.silverstripe.org/3.1/source-class-ArrayList.html#62-73
32: [00:16:07] <Pyromanik> seems a bit silly
33: [00:16:23] <Pyromanik> why process every time? why not process array in constructor and individual items on setting?
34: [00:16:26] <Pyromanik> :<
35: [00:16:33] <Pyromanik> push, pop, etc.
36: [00:17:03] <Pyromanik> err, push, unshift.
37: [00:17:06] <unsigned_> process every time because cpu is fast?
38: [00:17:09] <ss23> atmos: No problems, I have lots of work to be done in between. I just did that in a spare 10 mins :D
39: [00:17:13] * unsigned_ is now known as unsignedint
40: [00:17:33] <Pyromanik> unsignedint: yes, but that's an excuse, not a reason.
41: [00:17:39] <unsignedint> of course
42: [00:18:37] <unsignedint> i still think its a micro-optimisation unless your use-case involves a massive ArrayList and youre having performance issues
43: [00:18:41] <atmos> ss23: I'll fire one now anyway
44: [00:18:47] <unsignedint> in which case, fix it and submit a pull request
45: [00:19:03] <Pyromanik> wasted cycles are wasted cycles.
46: [00:19:13] <ss23> atmos: Oh wait, do you mean run the reindex/recongiure? If so, I need to check some stuff first :O
47: [00:19:24] * travis-ci has joined #silverstripe
48: [00:19:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#930 (3.0 - c2105db : Simon Welsh): The build passed.
49: [00:19:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/62608a7772da...c2105db6d089
50: [00:19:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11218157
51: [00:19:24] * travis-ci has left #silverstripe
52: [00:19:25] <Pyromanik> recongiure!
53: [00:19:30] <Pyromanik> recongiure all the things!
54: [00:19:42] <atmos> ss23: :O too late
55: [00:19:43] <atmos> heh
56: [00:20:54] <simon_w> ss23, lunch?
57: [00:21:22] <ss23> atmos: well it won't hurt :P
58: [00:21:35] <ss23> simon_w: Sure, lemme know when (and will you walk down here, or wanna meet at readings or what?
59: [00:21:38] <ss23> )
60: [00:21:55] <simon_w> Well, we're about to leave now
61: [00:22:11] <atmos> ss23: for reference, I'm pretty sure there is a page with 'ignoramus' in a meta field, still not returning any results after the last reconfig/index
62: [00:22:31] <simon_w> So 4 minutes and I want some BF
63: [00:23:00] <Pyromanik> unsignedint: I guess it happens then because preserving data until it loops in a template ... nah because if you foreach it'll happen anyway.
64: [00:23:03] <ss23> kk simon_w
65: [00:23:04] <ss23> :D
66: [00:23:20] <Pyromanik> idk
67: [00:23:45] <unsignedint> Pyromanik: if it bothers you that much, fix it :) but no doubt theres something slower than that in your application already and you should optimise that instead
68: [00:24:19] <Pyromanik> unsignedint: I'm not worried about speed, it just seems like a waste. And it's a PITA for subclassing.
69: [00:25:47] * unsignedint has never needed to subclass ArrayList
70: [00:26:05] <unsignedint> in fact, I stay away from that shit unless I need something that works in a template
71: [00:38:26] * Liquide quit ()
72: [00:40:31] * violetina quit (Remote host closed the connection)
73: [00:50:25] * UncleCheese quit (Quit: UncleCheese)
74: [00:57:32] * SightUnseen has joined #silverstripe
75: [01:02:45] * SightUnseen quit (Ping timeout: 276 seconds)
76: [01:15:53] * Pyromanik has also never needed to subclass arraylist
77: [01:18:03] <toot> how do i give a field a default value
78: [01:18:06] <toot> also, hi
79: [01:18:13] * toot is now known as overburden
80: [01:19:15] * spronk dodgily fixes fence with cheap chinese nails
81: [01:20:46] <Pyromanik> overburden: a default in which way?
82: [01:21:20] <Pyromanik> private static $defaults = array('DBFieldName' => 'Default value'); ?
83: [01:21:23] <overburden> this HTMLText apparently needs to have a default list item in it
84: [01:21:33] <Pyromanik> on create?
85: [01:21:42] <Pyromanik> or at all times?
86: [01:22:00] <overburden> at create, so the user follows the style intended by the designers/AI
87: [01:22:05] <Pyromanik> rofl
88: [01:22:08] <Pyromanik> bad.
89: [01:22:13] <Pyromanik> then yeah, as above
90: [01:22:17] <overburden> well it's not my job to have an opinion on that
91: [01:22:22] <Pyromanik> public in 3.0 though.
92: [01:22:27] <Pyromanik> private in 3.1
93: [01:23:24] <Pyromanik> (public in 2.x too)
94: [01:23:55] <overburden> god nothing like html in my dataobject definition
95: [01:23:59] <overburden> living like a king :<
96: [01:28:18] * SightUnseen has joined #silverstripe
97: [01:28:48] <Pyromanik> you could put it in yaml if you really wanted.
98: [01:31:03] <simon_w> You really don't want to though
99: [01:32:36] <spronk> yaml
100: [01:32:38] <spronk> SPAWN OF THE DEVIL:
101: [01:32:48] * SightUnseen quit (Ping timeout: 253 seconds)
102: [01:33:30] * travis-ci has joined #silverstripe
103: [01:33:30] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#932 (js-conventions - 76c809f : Sam Minnee): The build has errored.
104: [01:33:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/76c809fada92
105: [01:33:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11219968
106: [01:33:30] * travis-ci has left #silverstripe
107: [01:33:56] * UncleCheese has joined #silverstripe
108: [01:36:50] * digitaldesign has joined #silverstripe
109: [01:40:13] <digitaldesign> I need to edit the amount of items shown in a grid field in the admin area. this is my gallery code http://pastebin.com/dgDd915u
110: [01:42:44] <simon_w> digitaldesign, pass in the number per page you want to the GridFieldConfig_RecordEditor constructor
111: [01:53:29] <digitaldesign> great thanks
112: [01:57:35] * atmos quit (Ping timeout: 250 seconds)
113: [01:59:02] * SightUnseen has joined #silverstripe
114: [02:03:34] * SightUnseen quit (Ping timeout: 256 seconds)
115: [02:09:13] <zippy__> need to work less and get paid more… can't find a module for that on the addons website!
116: [02:09:31] <spronk> zippy__:
117: [02:09:33] <spronk> it's called consulting
118: [02:09:43] <spronk> and in my case
119: [02:09:47] <spronk> never using subsites ever again.
120: [02:09:49] <spronk> ever.
121: [02:12:58] <zippy__> I don't know why people use subsites, whats the point of it?
122: [02:13:18] <simon_w> One CMS, multiple sites
123: [02:13:23] <zippy__> tbh I don't even know what it does, sounds like a way to manage multiple sites via 1 code base?
124: [02:13:34] <zippy__> indeed
125: [02:13:40] * atmos has joined #silverstripe
126: [02:14:22] <spronk> it's the only semi-viable way to do things like multi-country sites
127: [02:14:31] <spronk> where the site trees differ
128: [02:20:42] * digitaldesign quit (Quit: digitaldesign)
129: [02:22:06] <Pyromanik> 14:09 < spronk> it's called consulting
130: [02:22:07] <Pyromanik> fuck yes
131: [02:22:12] <Pyromanik> easiest money I ever did
132: [02:22:44] <Pyromanik> sat and listened to a yarnd about xyz cms once, wrote a 4 page report on it (whether or not it was a good business decision), $2000
133: [02:22:51] <Pyromanik> boom
134: [02:23:12] <Pyromanik> ~$250/hr
135: [02:26:02] <spronk> mm
136: [02:29:23] <atmos> omg store proceedures
137: [02:29:32] <atmos> procedures*
138: [02:29:43] <spronk> eww
139: [02:29:45] * SightUnseen has joined #silverstripe
140: [02:29:50] <spronk> hate database-defined logic
141: [02:29:53] * mdowton has joined #silverstripe
142: [02:30:55] <mdowton> Anyone know of a bug where email class wont sent to emails with numbers and dots in the email address having troubles sending to email addresses with this format?
143: [02:31:33] <Pyromanik> mdowton: can you please clarify your issue?
144: [02:31:46] <Pyromanik> I understood about 10% of that sentence.
145: [02:32:37] <Pyromanik> simon_w: what is the purpose of DataModle?
146: [02:32:42] <Pyromanik> DataModel*
147: [02:32:45] <simon_w> No idea
148: [02:32:51] <Pyromanik> neither :<
149: [02:33:12] <Pyromanik> apart from handling custom lists, which is what injector is for?
150: [02:33:19] <Pyromanik> idk.
151: [02:33:31] <Pyromanik> seems about everything that's data* needs it :<
152: [02:33:37] <Pyromanik> I just don't know what for.
153: [02:33:38] <atmos> Pyromanik: I think he means a bug where it won't send emails to addresses with anything other than alpha characters?
154: [02:33:56] <Pyromanik> atmos: shouldn't be the case
155: [02:33:58] <mdowton> Using the Userform module it has a felid where you can specify a number of recipients......some of the email fields have a dot or numbers in them ie m.cohrs@sae.edu or mark@11atoms.com these are not being sent on
156: [02:34:04] <ss23> AH, PUSH IT~
157: [02:34:07] <mdowton> atmos correct
158: [02:34:15] * SightUnseen quit (Ping timeout: 260 seconds)
159: [02:34:26] <Pyromanik> I know of a bug where "<Persons Name> name@domain.tld," fails
160: [02:34:43] <ss23> Pyromanik: Yes!
161: [02:34:55] <ss23> Pyromanik: irogue_ once fixed a bug where it didn't quote it, so spaces made it fail
162: [02:34:58] <mdowton> if i do a straight php mail with the address it works
163: [02:34:59] <Pyromanik> mdowton: look at your mail.log
164: [02:35:00] <ss23> If you're using up to date stuff, should be fine though
165: [02:35:11] <Pyromanik> ss23: I know, same bug I think
166: [02:35:26] <Pyromanik> or, tell us what the error it's giving you is?
167: [02:36:15] <Pyromanik> ss23: it would end up as sendmail -blah -blah blahfase@emailme.tld-f loloption
168: [02:36:20] <Pyromanik> or something like that
169: [02:36:58] <Pyromanik> ss23: ask a core dev wtf DataModel is for plz?
170: [02:37:22] <Pyromanik> caching?
171: [02:37:51] <ss23> um
172: [02:37:53] <ss23> simon_w is a core dev
173: [02:38:03] <ss23> simon_w: wtf is DataModel is for caching please?
174: [02:38:16] <simon_w> [14:32:45] <simon_w> No idea
175: [02:38:23] <atmos> lol
176: [02:38:56] <ss23> I don't think are any coredevs near me anyway
177: [02:39:00] <Pyromanik> ss23: rephrase time I guess
178: [02:39:03] <ss23> There's a few in the other side of the office
179: [02:39:09] <Pyromanik> OOOH, git blame!
180: [02:39:14] <ss23> :O
181: [02:39:16] * ss23 runs away
182: [02:39:17] <ss23> WASN'T ME
183: [02:39:59] <Pyromanik> ss23: ask sminnee what DataModel is for?
184: [02:40:13] <ss23> He's not here!
185: [02:40:16] <ss23> His office lights are on...
186: [02:41:04] <Pyromanik> API CHANGE: Introduce DataModel object, as a representation of the pr… …
187: [02:41:07] <Pyromanik> …oject's entire data model, and tie it to $this->model an all DataObjects, Controllers, and RequestHandlers for easy non-static access.
188: [02:41:10] <Pyromanik> API CHANGE: Add DataList::newObject(), which creates a new object on that DataList.
189: [02:41:13] <Pyromanik> API CHANGE: RequestHandler::handleRequest() now needs to handle a $model argument, if you override it.
190: [02:42:26] <Pyromanik> nonstatic access
191: [02:42:31] <Pyromanik> hmm
192: [02:43:12] <Pyromanik> why not just plonk stuff into ViewableData?
193: [02:43:27] <Pyromanik> rather than ferrying around a reference to some random separate singleton?
194: [02:44:00] <Pyromanik> seems... convoluted.
195: [02:44:15] <Pyromanik> Maybe I'm not understanding it properly
196: [02:54:57] <atmos> uggghhh the ID is not null you jerk
197: [02:54:59] <atmos> HATE
198: [03:00:30] * SightUnseen has joined #silverstripe
199: [03:00:56] <zippy__> rage!
200: [03:01:06] <zippy__> atmos: Give the screen the middle finger, it helps
201: [03:01:58] <Pyromanik> Sometimes I give it the double deuce.
202: [03:02:30] <zippy__> Stand up, both fingers, then slam headphones into desk - that really shows it
203: [03:02:45] <zippy__> both hands rather
204: [03:04:53] * DigNZ quit (Read error: No route to host)
205: [03:05:20] * SightUnseen quit (Ping timeout: 256 seconds)
206: [03:07:16] * Jayden90 quit (Quit: Jayden90)
207: [03:11:15] * DigNZ has joined #silverstripe
208: [03:11:16] * DigNZ quit (Remote host closed the connection)
209: [03:11:30] * DigNZ has joined #silverstripe
210: [03:27:58] * cloph_away has joined #silverstripe
211: [03:28:40] * cloph quit (Ping timeout: 264 seconds)
212: [03:31:14] * SightUnseen has joined #silverstripe
213: [03:31:29] <Pyromanik> it's legit to override protected right?
214: [03:32:06] <spronk> yeah man
215: [03:32:15] <spronk> protected is the best scope
216: [03:32:23] * Pyromanik confused himself over final keyword
217: [03:34:22] * aznain has joined #silverstripe
218: [03:35:22] * SightUnseen quit (Ping timeout: 246 seconds)
219: [03:37:45] <aznain> Can SS2.4 works with php 5.4 ?
220: [03:37:57] <Pyromanik> 2.4.10
221: [03:38:01] <Pyromanik> +
222: [03:38:02] <spronk> mm
223: [03:38:05] <Pyromanik> apparently
224: [03:38:16] <Pyromanik> not tried it myself
225: [03:39:36] <aznain> One more question, I am trying to run SS2.4 with IIS / SQL Server 2008 .. but when i try to open it , I just get blank page ... how to enable error reporting ... I will be very thankful
226: [03:39:59] <spronk> set site to dev mode
227: [03:40:03] <spronk> and if that doesn't work
228: [03:40:04] <simon_w> edit php.ini, set display_errors On
229: [03:40:06] <spronk> error_reporting(E_ALL)
230: [03:40:10] <simon_w> restart IIS
231: [03:40:13] <spronk> ini_set('..
232: [03:41:14] <aznain> Thanks ... Let me try that ...
233: [03:41:56] <simon_w> You don't want E_ALL with 2.4 ;)
234: [03:47:07] <spronk> he
235: [03:47:08] <spronk> true
236: [03:47:48] <simon_w> HHVM takes far too long to build
237: [03:49:21] <simon_w> ETA: 16:52:37 [1 hrs, 4 mins, 28 secs]
238: [03:50:23] * nick86 has joined #silverstripe
239: [03:52:42] <aznain> I have put site in dev mode ..display_errors = On ... error_reporting = E_ALL but still blank page
240: [03:52:53] <aznain> after changes, i restarted the IIS as well
241: [03:53:39] <nick86> hi lads, I have extended ModelAdmin with ScriptsAdmin, I am wondering how I use a ScriptsAdmin managed class in a frontend template? I tried using ScriptsAdmin.Script with no joy. Any ideas?
242: [04:01:22] <simon_w> nick86, you'd have a method that returns a DataList of the ones you want
243: [04:01:56] <nick86> ok excellent
244: [04:02:04] <nick86> thanks simon_w
245: [04:02:08] * SightUnseen has joined #silverstripe
246: [04:05:35] * SightUnseen quit (Read error: No route to host)
247: [04:07:30] * zippy__ quit (Quit: zippy__)
248: [04:13:20] * SightUnseen has joined #silverstripe
249: [04:14:38] <atmos> holy crap rain :O
250: [04:15:40] <mobiusnz> what rain
251: [04:15:45] <mobiusnz> it's like 20 degrees here
252: [04:16:05] <atmos> mobiusnz: Nelson, sideways blanket rain
253: [04:18:25] <ss23> lol
254: [04:18:28] <ss23> Yeah, windy lately :D
255: [04:18:54] <ajmitch> should move to dunedin, it's always nice here
256: [04:19:09] <mobiusnz> intel went overboard with the packaging for my new computer
257: [04:19:10] <mobiusnz> http://f.cl.ly/items/2r011L44452R3M293z1W/IMG_0884.MOV
258: [04:19:19] <nick86> ok, I have a method 'getScripts' that returns $dataList does anyone know how I would loop these in a front end template? Something like: <% loop $ScriptAdmin.Scripts %>
259: [04:19:33] <mobiusnz> (needs sound)
260: [04:20:11] <mobiusnz> nick86: <% loop Scripts %>
261: [04:20:32] * SightUnseen has left #silverstripe
262: [04:21:11] <atmos> crazy rain http://www.tasman.govt.nz/tasman/webcams-in-tasman/richmond-webcam/
263: [04:24:04] <nick86> thanks mobiusnz - will try now
264: [04:25:32] <Colin[pi]> holy shit I'm actually using ajax
265: [04:25:46] <Colin[pi]> or I should say, using it in something I'm coding
266: [04:26:24] <nick86> that worked mobiusnz and simon_w, thanks a lot
267: [04:38:17] * atmos quit (Quit: Page closed)
268: [04:40:40] * Stomach quit (Quit: Leaving.)
269: [04:42:52] * UncleCheese quit (Quit: UncleCheese)
270: [04:51:41] <Colin[pi]> praise jeebus for stackoverflow
271: [04:54:18] <spronk> Action "dologin" not allowed on form (Name: "LoginForm")
272: [04:54:19] <spronk> seriously
273: [04:55:27] * travis-ci has joined #silverstripe
274: [04:55:27] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#933 (3.1 - 58da57d : Sean Harvey): The build passed.
275: [04:55:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8864256601bb...58da57dd1b6b
276: [04:55:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11223805
277: [04:55:27] * travis-ci has left #silverstripe
278: [04:59:49] * travis-ci has joined #silverstripe
279: [04:59:49] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#934 (3.1 - c309867 : Sean Harvey): The build passed.
280: [04:59:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/58da57dd1b6b...c309867a1ce4
281: [04:59:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11223822
282: [04:59:49] * travis-ci has left #silverstripe
283: [05:00:33] <aznain> At last able to show errors .. i am getting this Cannot write manifest file! Check permissions of D:\wwwroot/silverstripe-cache/manifest-main error ...
284: [05:01:04] <spronk> ugh
285: [05:01:04] <aznain> It is ss2.4 / IIS Server / SQL Server
286: [05:01:04] <spronk> seriously
287: [05:01:06] <spronk> FUCK YOU SUBSITES
288: [05:01:31] <ss23> lol
289: [05:01:55] * SightUnseen1 has joined #silverstripe
290: [05:02:03] * SightUnseen1 has left #silverstripe
291: [05:02:17] <spronk> so
292: [05:02:22] <spronk> update a page name
293: [05:02:26] <spronk> virtual page name doesn't update
294: [05:02:49] <Pyromanik> virtual page caches data?
295: [05:03:35] <spronk> hmm
296: [05:03:39] <spronk> how to prime cache?!
297: [05:03:56] * DigNZ quit (Quit: DigNZ)
298: [05:04:08] <spronk> asdka;Ksjd;lkAJSd;lkjasd
299: [05:04:10] <spronk> seriously
300: [05:04:18] <spronk> joomla is better than this.
301: [05:05:17] <spronk> and if you go into the edit for the virtual page
302: [05:05:27] <spronk> ("click here to edit content") link
303: [05:05:31] <spronk> Not found
304: [05:05:33] * travis-ci has joined #silverstripe
305: [05:05:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#935 (3.0 - a1939dc : Sean Harvey): The build passed.
306: [05:05:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c2105db6d089...a1939dccd14d
307: [05:05:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11223896
308: [05:05:33] * travis-ci has left #silverstripe
309: [05:07:14] <spronk> anyone here got a working install of ss3.1 with subsites that they can test this out for me?
310: [05:07:37] * nickmolhoek quit (Read error: Connection reset by peer)
311: [05:18:57] <wmk> spronk, what version of 3.1, what version of subsites?
312: [05:19:07] <wmk> maybe subsites is broken after some 3.1. development.
313: [05:19:23] <wmk> "not found" could be that the $allowed_action is not set, which changed in 3.1
314: [05:19:49] <spronk> it generates an incorrect URL as well
315: [05:19:58] <spronk> actually i don't know if it does
316: [05:20:01] <spronk> admin/page/edit
317: [05:20:03] <spronk> vs admin/pages/edit
318: [05:20:05] * Stomach has joined #silverstripe
319: [05:20:12] <spronk> this is subsites master as of last night
320: [05:20:27] <wmk> i assume you're in dev mode, check the http answer with firebug
321: [05:20:43] <spronk> mm
322: [05:21:08] <spronk> 404
323: [05:21:09] <spronk> not found
324: [05:21:09] <spronk> that's all
325: [05:21:15] <spronk> goes to admin/page/edit/show/8/?SubsiteID=0
326: [05:21:33] <spronk> its a bug
327: [05:21:53] <spronk> because in the blue box above it there's another "edit" link that should be the same (I think?) goes to: admin/pages/edit/show/8
328: [05:22:04] <spronk> and that link works.
329: [05:22:12] <wmk> checkout the latest subsites from github, it's just 3 weeks old
330: [05:22:25] <spronk> wmk: yeah, that's what i'm running on
331: [05:22:26] <wmk> and maybe you found a bug...
332: [05:22:33] <wmk> then: fork and fix it.
333: [05:22:44] <wmk> how did you install it? git clone or via composer?
334: [05:23:01] <spronk> git clone
335: [05:23:16] <wmk> branch master i guess
336: [05:23:19] <spronk> yeah
337: [05:23:39] <spronk> definitely master, because a couple of other bugs seem to have been fixed
338: [05:24:14] <spronk> specifically surrounding redirects resulting from preview page and front end vs back end subsite session state
339: [05:24:35] <spronk> wmk: do you know whether virtual page names are *supposed* to change to reflect their target page when target page name changes?
340: [05:24:42] <aznain> How can I check that my SS2.4's version ? I want to check whether it is compatible with 5.4 or not ... at the moment i am getting error like [Notice] Array to string conversion GET / Line 162 in D:\wwwroot\sapphire\core\SSViewer.php
341: [05:24:44] <wmk> if you want to fix it you can fork subsites and set your fork as origin. then you can push and submit a pull request
342: [05:24:46] * spronk has been simply assuming they should..
343: [05:24:50] * Shrike_Finland has joined #silverstripe
344: [05:25:06] <spronk> because there doesn't seem to be anywhere to edit the virtualpage's name independently
345: [05:25:17] <wmk> spronk, afaik in 2.4 it was so, but maybe i coded it myself in page onAfterWrite.
346: [05:25:23] <spronk> hmm
347: [05:25:28] <spronk> that's waht i remember
348: [05:25:36] * spronk doesn't remember having to code any write hooks
349: [05:28:14] <spronk> ah
350: [05:28:23] <spronk> it seems to only update when you republish the virtual page
351: [05:28:32] <spronk> but the UI doesn't indicate that it's not published
352: [05:28:34] <spronk> or that it's modified
353: [05:29:14] * genly has joined #silverstripe
354: [05:29:26] <genly> i need a help in onbeforewrite implemntaion
355: [05:29:50] <genly> i need onbeforewrite to behave deifferent for a cms addition and an importcsv
356: [05:30:23] <wmk> spronk, edit link is hardcoded in SubsitesVirtualPage.php
357: [05:30:52] <aznain> anybody ?
358: [05:31:18] <wmk> aznain, isn't there a file called Version inside sapphire?
359: [05:31:30] <spronk> i see
360: [05:31:47] <spronk> aznain: 2.4.10 or .11 are 5.4 compat
361: [05:31:49] <spronk> anything previous is not
362: [05:31:55] <spronk> and yes, sapphire/version
363: [05:33:25] <Pyromanik> silverstripe_version
364: [05:33:26] <Pyromanik> iirc
365: [05:33:45] <ss23> That file isn't filled in in 2.4.latest
366: [05:33:46] <ss23> :<
367: [05:33:47] <Pyromanik> though post 2.4.5 they're pretty useless
368: [05:34:26] <aznain> @spronk: thanks .. but sapphire/version contains this line '$URL: http://svn.silverstripe.com/open/modules/sapphire/branches/2.4/silverstripe_version $'
369: [05:34:38] <spronk> eehhhhh
370: [05:34:38] <spronk> hmm
371: [05:34:51] <spronk> use file modification dateS?
372: [05:35:42] * Stomach quit (Quit: Leaving.)
373: [05:35:58] <spronk> 2.4.11 is around start of august 2013 :P
374: [05:36:33] <spronk> 2.4.10 was.. feb?
375: [05:36:54] <aznain> May 08. 2012
376: [05:37:50] <spronk> hmm
377: [05:37:52] <spronk> i'm gonna say
378: [05:37:53] <spronk> no
379: [05:37:56] <spronk> not 5.4 compat
380: [05:38:29] <spronk> probably 2.4.7 or so
381: [05:38:47] <spronk> you should be able to drop in 2.4.11 without too much hassle anyway, unless you've made core mods
382: [05:38:51] * willr quit (Quit: willr)
383: [05:38:58] <Colin[pi]> last time i tried 2.4.10 on 5.4 it went HNNNNNGGG
384: [05:39:04] <spronk> really?
385: [05:39:04] <Colin[pi]> not sure about .11
386: [05:39:05] <spronk> hmm
387: [05:39:07] <Colin[pi]> yeah I think so
388: [05:39:08] <spronk> .11 definitely works
389: [05:39:19] * spronk is running it on php 5.4 rihgt now
390: [05:39:22] <Colin[pi]> or could have been older :C
391: [05:39:27] <Colin[pi]> fuck I can't remember
392: [05:40:15] <Colin[pi]> what was the main compatibility issue anyhoos?
393: [05:40:46] * spronk isn't even sure
394: [05:40:53] <aznain> [Notice] Array to string conversion GET / Line 162 in D:\wwwroot\sapphire\core\SSViewer.php
395: [05:40:55] <spronk> doesn't seem to be any mention of php5.4 in .10 or .11 changelogs
396: [05:43:46] <Pyromanik> fffsdfs, ss doesn't load form field data unless there's an error for that field.
397: [05:44:29] <Pyromanik> aznain: where did you get it from?
398: [05:45:11] <Pyromanik> but yeh, I've had 2.4.10+ go HRNGGGGG when php5.4 too
399: [05:45:22] <Pyromanik> pretty sure. I tried it once quickly, shrugged, carried on.
400: [05:45:30] <Pyromanik> although, thinking back , that might have been 2.4.9
401: [05:45:55] <ss23> I have no idae if HRNNGGG means good or bad
402: [05:46:08] <Colin[pi]> it's like derp
403: [05:46:09] <Colin[pi]> so bad
404: [05:46:23] <ss23> mmmk
405: [05:46:46] <Colin[pi]> it's like the sound you make if you were to lift a refridgerator
406: [05:46:52] <spronk> ss23: got a 3.1+subsites master site around you can test a bug for me?
407: [05:47:02] <aznain> @Pyromanik: When try to open the site
408: [05:47:05] <ss23> spronk: Eh, not of latest of each of those, but I can test in an earlier one if you like?
409: [05:47:09] <ss23> spronk: Ifi t's simple...
410: [05:47:19] <spronk> i need a subsites virtual page
411: [05:47:22] <spronk> two things
412: [05:47:40] <spronk> 1. does the page name of the virtual page update (without having to publish the virtual page) if the original target updates
413: [05:47:56] <spronk> and 2. does the *second* edit content link when viewing the virtual page in admin work at all
414: [05:48:20] <aznain> @pyromanik: if(is_string($templateList) && substr((string) $templateList,-3) == '.ss') { seems to be working ... but I am not sure it is right thing to do or not ... i got this solution from http://www.silverstripe.org/installing-silverstripe/show/19456
415: [05:48:24] <spronk> actually ss23
416: [05:48:31] <spronk> you might know whether $editLink = "admin/page/edit/show/$this->CopyContentFromID/?SubsiteID=" . $this->CopyContentFrom()->SubsiteID; would work at all just by looking at it
417: [05:48:32] <ss23> Saved drafts of this page will auto publish on undefined at undefined
418: [05:48:33] <ss23> lawl
419: [05:48:44] <ss23> spronk: Looks okay to me
420: [05:48:47] <spronk> hmm
421: [05:48:53] <spronk> not admin/pageS ?
422: [05:49:06] <ss23> hmm
423: [05:49:07] <ss23> might be
424: [05:49:07] <ss23> :O
425: [05:49:16] <spronk> sigh
426: [05:49:19] <spronk> link is hardcoded anyway
427: [05:49:26] <spronk> need to find a nonhardcoded link
428: [05:49:37] <aznain> @pyromanik: I am using ss2.4 (exact version i could not figure it out but earliest modified date is May 08, 2012) with PHP 5.4 / IIS / SQL Server 2008 r2
429: [05:50:14] <Colin[pi]> minor cosmetic point on that new flush with flushtoken stuff, it redirects to //... i.e. mysite.com/events?flush=all ==> mysite.com//events?flush=all
430: [05:50:27] <Colin[pi]> shouldn't case an issue though right?
431: [05:50:28] <ss23> Colin[pi]: Known issue, believe it was fixed some time after RC1
432: [05:50:30] <Colin[pi]> *cause
433: [05:50:41] <Colin[pi]> ah but this is in 2.4.11
434: [05:50:44] <spronk> ugh, cms VirtualPage.php hardcodes the link anyway
435: [05:50:56] <ss23> https://github.com/silverstripe/silverstripe-framework/pull/2333
436: [05:51:02] <ss23> Yeah, only merged into 3.1
437: [05:51:06] <Colin[pi]> oic
438: [05:51:07] <spronk> does ss framework have a reverse router?
439: [05:51:29] <Colin[pi]> k thanks ss23 :)
440: [05:52:52] <ss23> spronk: Virtual page does update, if you refresh the entire page
441: [05:52:58] <ss23> spronk: Though that might be fixed in later subsites
442: [05:53:08] <spronk> wait
443: [05:53:09] <ss23> spronk: Well, it does in the site tree thingy
444: [05:53:13] <spronk> so
445: [05:53:19] <ss23> Not sure ifit does properly on publishing, because it didn't get published for me
446: [05:53:21] <spronk> virtual pages aren't meant to update if the target page changs?
447: [05:53:27] <ss23> No idea
448: [05:53:30] <spronk> ugh
449: [05:53:34] <spronk> k
450: [05:53:36] <ss23> But if the target page changes title, the Virtual Page title is updated too, spronk
451: [05:53:40] <ss23> This is a virtual page copying content from "How to Apply foo" (edit).
452: [05:53:40] <spronk> hmm
453: [05:53:51] <spronk> what version ss is this?
454: [05:53:59] <ss23> Near latest 3.1
455: [05:54:01] <spronk> damnit
456: [05:54:05] <spronk> when the hell did it change then
457: [05:54:16] <spronk> wait
458: [05:54:19] <spronk> newer than RC1?
459: [05:54:35] <ss23> Hmm
460: [05:54:37] <ss23> Probably, but not sure
461: [05:54:43] <spronk> hmm
462: [05:54:45] * spronk searches commit log
463: [05:54:49] <ss23> Subsites module is old
464: [05:55:12] <spronk> yeah
465: [05:55:17] <spronk> pretty sure this is more SS CMS than subsites
466: [05:55:24] <spronk> because it happens to standard virtualpages as well
467: [05:55:34] <ss23> This was a standard virtual page
468: [05:55:39] <ss23> idk anything about subsites virtual pages
469: [05:55:39] <ss23> ;_;
470: [05:56:07] <spronk> mm
471: [05:56:10] <spronk> well
472: [05:56:16] <spronk> subsites vps just extend virtualpages
473: [05:56:16] <ss23> fuck me
474: [05:56:18] <spronk> work in almost the same way
475: [05:56:20] <ss23> I forgot the -f flag on tar
476: [05:56:20] <spronk> ?
477: [05:56:21] <ss23> waited 30 mins
478: [05:56:23] <ss23> :/
479: [05:56:25] <spronk> looool
480: [05:56:31] <ss23> Was like "man taking a long time..."
481: [05:56:34] <spronk> slow clap
482: [05:56:44] <ss23> :<
483: [05:56:58] <ss23> The stupid thing was, I forgot -v too, but I was like "oh it'll be fine!"
484: [05:57:44] <spronk> lulz
485: [05:57:46] <spronk> derp
486: [05:57:54] * nick86 quit (Quit: It's a dud! It's a dud! It's a du...)
487: [05:58:12] <ss23> Windy here
488: [05:58:13] <ss23> :O
489: [05:58:20] <ss23> Think I read somewhere ~150k/h gusts
490: [05:58:53] <Colin[pi]> been pretty bad here too
491: [05:59:05] <Colin[pi]> was going to bike yesty, looked outside, noped back inside
492: [05:59:26] <ss23> haha
493: [06:00:42] <spronk> we had mad gusts here
494: [06:00:45] <spronk> broke my fence
495: [06:00:55] <spronk> had to go outside with hammer and some nails and "fix" it
496: [06:01:12] <spronk> some poor guy's car down the road got crushed by a massive tree
497: [06:01:28] <Colin[pi]> eek
498: [06:01:33] <Colin[pi]> guy wasn't in it I hope?
499: [06:01:47] * Jayden90 has joined #silverstripe
500: [06:02:01] <spronk> dont *think* so
501: [06:02:08] <ss23> lol
502: [06:02:11] <ss23> GUST
503: [06:02:13] <Colin[pi]> was there raspberry jam coming out of the door?
504: [06:02:14] <ss23> I can hear shit smashing outside
505: [06:02:16] <Colin[pi]> if so, he was in it
506: [06:02:18] <ss23> Sounds pretty brutal :D
507: [06:02:20] <ss23> haha Colin[pi]
508: [06:02:31] <ss23> Just saying, earthquake + storm == chaos
509: [06:02:41] <Colin[pi]> end times!
510: [06:02:43] <spronk> http://static2.stuff.co.nz/1378873040/101/9153101_600x400.jpg
511: [06:02:45] <spronk> this one!
512: [06:02:49] <Colin[pi]> did you have any plagues of locusts also?
513: [06:02:55] <spronk> wait no
514: [06:02:56] <spronk> not that one
515: [06:02:57] <spronk> fuck you stuff
516: [06:03:01] <ss23> haha
517: [06:03:11] <ss23> Aww, stuff doesn't have the naked man on the front page anymore
518: [06:03:39] <spronk> naked man? don't tell irogue_
519: [06:04:48] <Shrike_Finland> Good morning. Is it possible to set default padded image background color in _config or override it in template?
520: [06:04:57] <spronk> http://static2.stuff.co.nz/1378853217/632/9151632_600x400.jpg
521: [06:04:58] <spronk> this one!
522: [06:04:59] <ss23> Bet flying into Wellington today would be fun
523: [06:05:01] <spronk> down the road from me
524: [06:05:04] <spronk> heh, yeah
525: [06:05:14] <aznain> @spronk @wmk: Yes but I could not figure it out what version it is ... 2.4. x ... about x part i could not find info ... there is of course file but all it contains is line $URL: http://svn.silverstripe.com/open/modules/sapphire/branches/2.4/silverstripe_version $
526: [06:05:51] <spronk> aznain: have you made any changes to the silverstripe core?
527: [06:05:56] <spronk> i.e. cms and sapphire folderS?
528: [06:06:05] <spronk> because if not, I would suggest simply replacing them with those from 2.4.11
529: [06:06:15] <Colin[pi]> or do a diff on them
530: [06:06:36] <ss23> Shrike_Finland: Don't think so
531: [06:06:56] <Shrike_Finland> ss23: damn, would be a great feature
532: [06:07:12] <spronk> there were security fixes in .8 and .10 i think
533: [06:07:19] <spronk> maybe .11 as well
534: [06:07:29] <spronk> that might have been ss23's data leak fix
535: [06:07:45] <spronk> the fix for ss23's data leak bug discovery*
536: [06:07:59] * spronk misses the red logout button
537: [06:08:08] <aznain> @spronk: yes ... http://www.silverstripe.org/installing-silverstripe/show/19456
538: [06:08:24] <aznain> if(is_string($templateList) && substr((string) $templateList,-3) == '.ss') {
539: [06:08:38] <spronk> seriously though
540: [06:08:39] <spronk> update
541: [06:09:35] <aznain> Ok .. I will
542: [06:10:34] <aznain> @spronk: just to make sure my understanding, I have to replace sapphire and cms folder with sapphire and cms folders from 2.4.11 ?
543: [06:10:45] <aznain> @spronk: right ?
544: [06:10:45] <spronk> yep
545: [06:11:00] <spronk> then do a /dev/build just in case, and you should be good to go
546: [06:11:06] <spronk> i'd eb surprised if you had to make any other changes
547: [06:12:51] <aznain> @spronk: thanks a lot
548: [06:13:53] <spronk> works?
549: [06:14:45] <aznain> I did not do yet .. waiting for night to do that ...
550: [06:15:01] <spronk> :)
551: [06:15:08] <aznain> One more thing, I now see sttrict standard warning ... how to turn them off ?
552: [06:15:26] <spronk> aznain: error_reporting
553: [06:15:28] <aznain> i have put display_errors = Off but still see thos
554: [06:15:30] <aznain> ok
555: [06:15:33] <simon_w> aznain, don't set error_reporting
556: [06:15:37] <spronk> as in
557: [06:15:41] <spronk> remove it if you've had it set
558: [06:15:41] <simon_w> Especially on 2.4.11
559: [06:15:49] <aznain> ok
560: [06:16:00] * stecman quit (Quit: This computer has gone to sleep)
561: [06:16:23] <spronk> ss23: k, so apparently SiteTree's onAfterWrite is meant to check virtual pages and update this shiz
562: [06:17:18] <spronk> aaand it's been 5 months since virtualpage was updated
563: [06:17:18] <spronk> so
564: [06:17:22] <spronk> i have no fucking idea what is wrong with it
565: [06:19:13] <spronk> yeah....
566: [06:19:17] <spronk> it isn't updating my sitetree_live table
567: [06:20:59] <ss23> lol
568: [06:21:04] <ss23> spronk: Mine wasn't published, so yeah
569: [06:21:07] <ss23> spronk: Might wanna fix that :D
570: [06:27:55] <spronk> i dont knwo why it isn't updating :S
571: [06:30:13] <aznain> SS2.4, PHP 5.4, I have put ini_set('error_reporting', E_ALL); in my config but still strict standards errors are showing
572: [06:30:32] <ss23> aznain: in 5.4, E_ALL includes strict errors
573: [06:31:46] <aznain> @+ss23: what should i write ...
574: [06:32:21] <spronk> just take it out
575: [06:32:24] <ss23> aznain: If you want to hide everything except fatal errors, ini_set('error_reporting', E_ERROR);
576: [06:32:26] <spronk> you dont ened to set error_reporting
577: [06:32:32] <ss23> You can try taking it out like spronk suggests, aznain
578: [06:36:45] <aznain> @+ss23 @spronk: I commented out error_reporting in php.ini (php 5.4) by place ';' in the beginning ... also commented out in _config by placeing '//' .. restarted the server but still they are showing ....
579: [06:36:50] * Bollig|DesignCty has joined #silverstripe
580: [06:48:07] * DesignerX has joined #silverstripe
581: [06:49:58] <DesignerX> hi, now i'm getting this error on SS3.1 the method 'setbuttonname' does not exist on 'GridField' , has it been changed ?
582: [06:54:06] * NobrainerWeb has joined #silverstripe
583: [07:05:15] * genly quit (Ping timeout: 250 seconds)
584: [07:06:13] * Guits quit (Read error: Connection reset by peer)
585: [07:06:31] * Guits has joined #silverstripe
586: [07:10:17] <simon_w|air> Colin[pi], 89mil/second now :p
587: [07:12:06] <simon_w|air> DesignerX, fairly sure that method never existed on GridField
588: [07:14:04] * SightUnseen has joined #silverstripe
589: [07:16:37] <DesignerX> simon_w|air: mm.. I remember using it for setting the label for "add new MyObject" on GF . What should I be using instead ?
590: [07:17:24] <simon_w|air> Perhaps something on the GridFieldAddNewButton component?
591: [07:17:29] <DesignerX> it must be a similar function name
592: [07:17:38] * openbees has joined #silverstripe
593: [07:17:43] <DesignerX> ah .. that should be it
594: [07:18:42] * SightUnseen quit (Ping timeout: 264 seconds)
595: [07:19:41] <DesignerX> simon_w|air: thanks., it ended up like this : $GridField_Config->getComponentByType('GridFieldAddNewButton')->setButtonName('Add New Image');
596: [07:24:09] * SightUnseen has joined #silverstripe
597: [07:25:36] * simon_w quit (Ping timeout: 240 seconds)
598: [07:26:05] * simon_w has joined #silverstripe
599: [07:28:28] * SightUnseen quit (Ping timeout: 246 seconds)
600: [07:28:39] * aznain quit (Ping timeout: 250 seconds)
601: [07:46:26] * Jayden90 quit (Quit: Jayden90)
602: [07:48:08] <openbees> How can I define fields for csv export in CMS reports ... I was expecting it will export all fields define in columns() but its not happening . any ideas ?
603: [07:51:01] <wmk> something like exportcolumns?
604: [07:52:04] <wmk> seems to be the same like summaryfields.
605: [07:52:15] <wmk> see modeladmin code getExportFields()
606: [07:52:53] <wmk> which is called in getEditForm. So you can override it in your subclass
607: [07:56:31] * SightUnseen has joined #silverstripe
608: [08:02:04] * chillu has joined #silverstripe
609: [08:03:48] * SightUnseen has left #silverstripe
610: [08:05:06] * kinglozzer has joined #silverstripe
611: [08:08:38] <openbees> wmk thanks .. I just overwrite summeryFields ;)
612: [08:11:01] <kinglozzer> But.. summer's over
613: [08:14:40] * zippy__ has joined #silverstripe
614: [08:33:14] * violetina has joined #silverstripe
615: [08:41:00] * travis-ci has joined #silverstripe
616: [08:41:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#936 (3.1 - d747334 : Ingo Schommer): The build passed.
617: [08:41:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c309867a1ce4...d747334737ed
618: [08:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11227786
619: [08:41:00] * travis-ci has left #silverstripe
620: [08:51:34] * openbees quit (Quit: Leaving)
621: [08:54:36] * benly has joined #silverstripe
622: [08:55:11] <benly> kindly help in setting onbeforewrite() for two differnt scenarios one for CMs addition and another for importcsv
623: [08:59:18] <zippy__> O.o
624: [09:08:48] * micmania1 has joined #silverstripe
625: [09:15:06] <benly> kindly help in setting onbeforewrite() for two differnt scenarios one for CMs addition and another for importcsv
626: [09:17:07] <Zauberfi1ch> O.o
627: [09:18:04] <simon_w|air> benly, one way would be to add a HiddenField with a name like InsideCMS to your getCMSFields() for the model, then check if $this->InsideCMS is set in your onBeforeWrite
628: [09:19:40] <benly> do we need to write checking if(insidecms){} inside the publci funstion onbeforewrite()
629: [09:20:03] <benly> inside the public function onbeforewrite()
630: [09:20:44] <simon_w|air> yes
631: [09:27:28] * zippy__ quit (Quit: zippy__)
632: [09:28:33] <wmk> how can i get all id's of a many_many ?
633: [09:29:27] <simon_w|air> ->column('ID')
634: [09:41:14] <Zauberfi1ch> wmk: batery is now charged enough to take a call. how about I call you at 12:45?
635: [09:41:29] <Zauberfi1ch> *battery
636: [09:41:53] * zippy__ has joined #silverstripe
637: [09:48:03] <Pyromanik> Home time!
638: [09:49:16] <ss23> Pyromanik: You're working too late
639: [09:49:20] <ss23> Pyromanik: Seriously :/
640: [09:50:03] <Mayzie> Yes!
641: [09:51:00] <Mayzie> silverstripe23
642: [09:58:04] * swordsmanz quit (Ping timeout: 264 seconds)
643: [10:09:59] <kinglozzer> Am I right in thinking a lot of SS devs use Vagrant? What're the benefits of using it?
644: [10:11:28] <Zauberfi1ch> kinglozzer: reproduceable environement, easy setup of a new server (I have 3 computers, 1 mac, 1 win, 1 ubuntu and I work on all 3 of them, I don't want to have to deal with different environment problems)
645: [10:11:45] <Zauberfi1ch> and if I screw something on the server up, I just throw the VM away and get a new one
646: [10:12:53] <kinglozzer> I see, curious about changing some of our processes as we always set up a new vhost for a new project (<projectname>.dev, for example) and it's starting to get a bit ridiculous with hundreds of vhosts
647: [10:13:05] * Trooy has joined #silverstripe
648: [10:13:22] <Zauberfi1ch> kinglozzer: I have a silverstripe-vagrant-vm prototype sort of thing
649: [10:13:37] <Zauberfi1ch> currently its a collection of shell/php scripts that takes care of installing everything
650: [10:13:46] <Zauberfi1ch> but I use it for developement
651: [10:14:02] <simon_w|air> kinglozzer, stop using vhosts and just use folders?
652: [10:14:03] <Zauberfi1ch> and my goal is to refactor that into chef or puppet, or salt
653: [10:15:56] <Zauberfi1ch> kinglozzer: if you give me your github name I can give you access to the repo
654: [10:16:06] <kinglozzer> simon_w|air: Yeah we used to just use folders, but it's nice to keep htaccess in the repo without worrying about changing the rewrite base
655: [10:16:33] <simon_w|air> Well, you shouldn't be doing that to start with
656: [10:16:45] <kinglozzer> Committing .htaccess?
657: [10:16:48] <simon_w|air> Yeah
658: [10:16:50] <kinglozzer> Why?
659: [10:17:10] <simon_w|air> Because your production one should be different from your dev one
660: [10:17:21] <simon_w|air> Also, do you even need a RewriteBase?
661: [10:18:13] <ss23> 22:12:50 < kinglozzer> I see, curious about changing some of our processes as we always set up a new vhost for a new project (<projectname>.dev, for example) and it's starting to get a bit ridiculous with hundreds of vhosts
662: [10:18:19] <ss23> I do it
663: [10:18:26] <ss23> New vhost, just have a script that does it whenever I check out a new site
664: [10:18:38] <kinglozzer> ss23: Care to share the script? :P
665: [10:19:02] <Zauberfi1ch> simon_w|air: on the hoster my company uses there has just been a change, now rewritebase is requred
666: [10:19:22] <ss23> Uh, I turned my work PC off, but it is ./addSite sitename.foo, it adds an entry to hosts and append the entry for it (along with logging files etc) to my vhosts config file
667: [10:19:24] <kinglozzer> simon_w|air: Any reason the .htaccess needs to be different in dev/production? We don't set any PHP config values in there
668: [10:19:29] <ss23> I should make a new vhosts file for each vhost, but I got bored
669: [10:19:37] <ss23> simon_w|air: Yeah, we keep same .htaccess between both
670: [10:19:37] <simon_w|air> kinglozzer, cache headers to start with
671: [10:19:58] <ss23> simon_w|air: We use nginx in prod to deal with that, no cache headers on apache
672: [10:21:58] <simon_w|air> ss23, yes, but how many people are in that situation?
673: [10:22:11] <kinglozzer> ss23: How about your hosts file? Script does that too?
674: [10:22:21] <simon_w|air> Especially since it seems like Zauberfisch doesn't even control the software they're running
675: [10:23:36] <ss23> yeah, kinglozzer
676: [10:23:50] <ss23> simon_w|air: *shrug*
677: [10:24:39] <simon_w|air> ss23, also, you're not setting cache headers on nginix either :p
678: [10:25:07] <ss23> lol
679: [10:25:09] <ss23> Sounds like you checked!
680: [10:25:48] <ss23> Anyway, not my problem, I didn't do it :D
681: [10:30:29] * NobrainerWeb quit (Quit: NobrainerWeb)
682: [10:30:29] * violetina quit (Remote host closed the connection)
683: [10:31:54] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
684: [10:32:08] * violetina has joined #silverstripe
685: [10:33:22] * mdowton quit (Ping timeout: 240 seconds)
686: [10:36:36] * NobrainerWeb has joined #silverstripe
687: [10:39:28] * openbees has joined #silverstripe
688: [10:40:50] <openbees> what is wrong with this :/ " private static $singular_name = _t('NewsItem.SINGULARNAME', 'NewsItem'); "
689: [10:41:00] <openbees> can't we translate them ?
690: [10:41:10] <kinglozzer> openbees: Not in a class property
691: [10:41:24] <simon_w|air> First, it already is
692: [10:41:33] <simon_w|air> Second, decelerations have to be static
693: [10:42:44] <openbees> so how can I make it work ?
694: [10:43:10] <simon_w|air> private static $singular_name = 'NewsItem';
695: [10:44:01] <simon_w|air> Then you've got {classname}.SINGULARNAME
696: [10:44:32] <openbees> ohh I see .. thanks
697: [10:46:06] <openbees> yaah works .. cheers
698: [11:03:14] * zippy__ quit (Ping timeout: 264 seconds)
699: [11:09:48] * zippy__ has joined #silverstripe
700: [11:12:48] * benly quit (Quit: Page closed)
701: [11:13:05] * simon_w|air quit (Quit: This computer has gone to sleep)
702: [11:13:33] <kinglozzer> ss23: http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again :D
703: [11:14:51] * r3v3rb has joined #silverstripe
704: [11:15:04] <lewellyn> i love "i don't quite understand my OS so reboot!" howtos.
705: [11:17:38] <lewellyn> protip: he probably needed to restart mDNSResponder and possibly his browser.
706: [11:18:11] <lewellyn> launchctl is the proper tool for the first part.
707: [11:18:24] <ss23> kinglozzer: well, I need to scriptify the vhost part anyway, so this isn't a big advnatage to me, and I would rather not run my own resolver :P
708: [11:19:05] <kinglozzer> ss23: Yeah but I'm lazy and wanted to do it all in PHP so avoiding the hosts file = win for me :P
709: [11:19:05] <lewellyn> a dscacheutil -flushcache wouldn't necessarily hurt either, but it shouldn't be necessary on a modern osx.
710: [11:24:16] <Guits> is it possible to open only the "EditForm" part of the CMS from a frontend view? (for frontend management of dataobjects)
711: [11:27:22] * Sjohn has joined #silverstripe
712: [11:34:41] <kinglozzer> Guits: Create your own form, use getCMSFields() to populate the form fields
713: [11:36:23] <Guits> thanx kinglozzer.. I was hoping to avoid that . Maybe I will try to incude the complete page but Css it so only relevant parts are shown
714: [11:45:04] <ec8or> simon_w: ping
715: [11:45:59] <ec8or> can you change the button labels using a setting in GridFieldRelationHandler?
716: [11:47:07] <ec8or> doesn't look like it~ah,
717: [11:47:16] <ec8or> ah, doesn't like it
718: [11:49:06] <Guits> funny.. putting a link to the cms in a fancybox stripped everything i did not want
719: [11:49:26] * Colin[pi] quit (Ping timeout: 264 seconds)
720: [12:02:59] * chillu quit (Quit: chillu)
721: [12:11:19] * joelpittet quit (Remote host closed the connection)
722: [12:12:05] * UndefinedOffset has joined #silverstripe
723: [12:14:45] * zippy__ quit (Ping timeout: 240 seconds)
724: [12:15:31] * simon_w quit (Ping timeout: 264 seconds)
725: [12:18:33] * zippy__ has joined #silverstripe
726: [12:21:04] * chillu has joined #silverstripe
727: [12:23:31] * overburden quit (Quit: fuck fuckarhafskjdkjadskjdsasad)
728: [12:23:32] * Trooy quit (Ping timeout: 246 seconds)
729: [12:25:06] <wmk> anyone can help me with an ORM question?
730: [12:26:00] <wmk> i want to filter on a 1:n relationship, exclude all where one of the relations has a field set
731: [12:26:28] <wmk> does the ORM take care of this?
732: [12:26:49] <ss23> I think so, but not sure how
733: [12:26:55] <wmk> so if any of the relations has a field set don't return the dataset
734: [12:27:01] <wmk> ehem, dataobject
735: [12:29:31] <openbees> wmk . is exclude("field", "value") is this u r looking for ?
736: [12:29:44] <wmk> but it's 1:n relation.
737: [12:29:56] <wmk> in fact a 1:1:n relation
738: [12:30:29] <wmk> wanted to go sure it also works with relations. Will try exclude.
739: [12:31:10] <openbees> yah u can .. $this->relationName()->filter()->exclude()->sort() is valide
740: [12:32:16] <wmk> so not in the first query but when looping over the resultset?
741: [12:33:20] * zippy__ quit (Ping timeout: 246 seconds)
742: [12:34:26] <openbees> wmk .. not sure if I am still getting u .. but try this may be
743: [12:34:27] <openbees> http://api.silverstripe.org/master/source-class-DataList.html#960-971
744: [12:39:59] <wmk> ehem, remove will delete the database entry
745: [12:43:50] <kinglozzer> wmk: Chuck it into an ArrayList then use remove? :P
746: [12:45:50] <openbees> as I said was not sure :P
747: [12:47:26] <openbees> wmk can this help http://api.silverstripe.org/master/source-class-DataList.html#525-542
748: [12:47:34] * r3v3rb quit (Quit: r3v3rb)
749: [12:49:52] <wmk> openbees, hm, maybe.
750: [12:50:14] <wmk> i'll have to iterate over the whole list, so i can exclude it, too, after it's an ArrayList like kinglozzer said
751: [12:50:31] <openbees> btw why u want to iterate over the whole list
752: [12:50:35] <openbees> use exclude()
753: [12:51:26] <openbees> time to go home :)
754: [12:51:30] <wmk> cu
755: [12:51:44] <openbees> cu
756: [12:51:46] * openbees quit (Quit: Leaving)
757: [12:55:36] * gelignite has joined #silverstripe
758: [13:06:18] * dangerdan has joined #silverstripe
759: [13:06:35] <dangerdan> Could someone help me out with this > http://stackoverflow.com/questions/18741139/transposing-getcmsfields-into-a-tab-inside-a-leftandmain-extension ?
760: [13:16:46] * priithansen quit (Quit: priithansen)
761: [13:18:14] * Shrike_Finland quit (Quit: Leaving.)
762: [13:21:49] <NobrainerWeb> dangerdan: can i ask what is the difference in extending LeftAndMain instead of ModelAdmin?
763: [13:22:55] <kinglozzer> NobrainerWeb: ModelAdmin takes care of a lot of extra stuff for you
764: [13:23:03] <kinglozzer> If you extend LeftAndMain, you have greater control over layout etc
765: [13:23:08] <NobrainerWeb> ok
766: [13:23:13] <NobrainerWeb> thank you
767: [13:24:18] <NobrainerWeb> dangerdan: just found a post saying you could look at the dashboard module from UC for an example of how some of the stuff can be done, not sure if it helps but: https://github.com/unclecheese/silverstripe-dashboard
768: [13:25:57] <dangerdan> possibly, thats one of the modules I have been using to figure things out... will have another look through it to see if i can find anything like what i'm trying to do in that question..
769: [13:27:14] <kinglozzer> dangerdan: What's the problem? Do your fields not appear?
770: [13:29:45] <dangerdan> if i un-comment `HeroConfig::current_config()->getCMSFields()` then they do appear, but the CMS starts throwing errors left right and center, and there is no save button, like you get if i was to simply let model admin take care of things
771: [13:30:42] <kinglozzer> Well, what are the errors?
772: [13:31:00] <kinglozzer> And you don't have any save buttons, because you're got: $actions = FieldList::create();
773: [13:31:06] <kinglozzer> There's nothing in there
774: [13:32:00] <dangerdan> there the actions for the whole of the extension though? rather than just the tab
775: [13:32:11] <kinglozzer> Yep, but you can't add actions to a single tab
776: [13:32:12] <dangerdan> Warning at line 169 of /var/www/intranet.seriouslaw.co.uk/framework/forms/CompositeField.php
777: [13:32:23] <dangerdan> Oh i have to add it there then?
778: [13:32:48] <kinglozzer> dangerdan: Most people would just move the 'hero settings' to the main settings area of the CMS, just in their own tab
779: [13:33:20] <dangerdan> Thats what i do at the moment, could just stick to that i suppose
780: [13:39:45] * jcwacky has joined #silverstripe
781: [13:40:01] <jcwacky> Anyone have experience with the Lucene search module?
782: [13:42:02] <jcwacky> Works great on local & staging, but no results are ever returned on live, despite the index looking ok.
783: [13:55:37] <jcwacky> Ok, looks like an out of date version of Java on the live server.
784: [13:59:30] * NobrainerWeb quit (Quit: NobrainerWeb)
785: [14:01:12] * PanPipes has joined #silverstripe
786: [14:02:11] <PanPipes> i have an ajax request to /products but for some reason it's redirecting it to /products?url=products. why is this?
787: [14:07:00] * Shrike_Finland has joined #silverstripe
788: [14:19:06] * PanPipes quit (Ping timeout: 256 seconds)
789: [14:37:48] * violetina quit (Remote host closed the connection)
790: [14:38:21] * cloph_away quit (Ping timeout: 245 seconds)
791: [14:38:29] * jcwacky quit (Quit: jcwacky)
792: [14:39:25] * violetina has joined #silverstripe
793: [14:39:33] * cloph_away has joined #silverstripe
794: [14:53:50] * priithansen has joined #silverstripe
795: [15:04:05] * Sjohn quit (Ping timeout: 250 seconds)
796: [15:07:09] * cloph has joined #silverstripe
797: [15:07:50] * cloph_away quit (Ping timeout: 256 seconds)
798: [15:16:26] * cloph quit (Ping timeout: 246 seconds)
799: [15:20:32] * cloph_away has joined #silverstripe
800: [15:28:46] * osterlaus has joined #silverstripe
801: [15:31:51] * DesignerX quit (Ping timeout: 240 seconds)
802: [15:40:52] * robert_ quit (Read error: Connection reset by peer)
803: [15:42:22] * robert_ has joined #silverstripe
804: [15:42:23] * robert_ quit (Changing host)
805: [15:42:23] * robert_ has joined #silverstripe
806: [15:49:46] * chillu quit (Quit: chillu)
807: [15:52:11] * dangerdan quit (Ping timeout: 250 seconds)
808: [16:00:44] * kinglozzer quit ()
809: [16:00:49] * simon_w has joined #silverstripe
810: [16:16:29] <ec8or> i'm stuck with a query, could someone please have a look:
811: [16:16:34] <ec8or> http://www.sspaste.com/paste/show/52309615d98a6
812: [16:18:16] <ec8or> would probably be better to just have one relationship for player with an extra field for Home/Away...
813: [16:18:59] <ec8or> (but then i think i run into issues selecting who played for what team in the cms)
814: [16:26:30] * joelpittet has joined #silverstripe
815: [16:30:07] * Trooy has joined #silverstripe
816: [16:37:49] * dangerdan has joined #silverstripe
817: [16:43:34] <micmania1> ec8or, in Player you would have two belongs_many_many records
818: [16:45:19] <micmania1> Then you'd have something like "HomeGames" => "Game.HomePlayers"
819: [16:45:39] <ec8or> yeah that works
820: [16:45:55] <ec8or> but i can't make queries for all games a player has been in
821: [16:46:45] * Trooy_ has joined #silverstripe
822: [16:46:54] <micmania1> see http://api.silverstripe.org/3.1/class-DataList.html#_filterAny
823: [16:46:59] <ec8or> like Games::get()->filter('HomePlayers.ID OR AwayPlayers.ID', $playerID);
824: [16:47:08] <ec8or> obviously doesn't work but if you see what i mean
825: [16:47:18] <micmania1> yeah, filterAny is what you're looking for.
826: [16:47:36] <micmania1> I've built a similar model for football fixtures/teams and asked the exact same question here. :)
827: [16:47:46] <micmania1> and that was the answer
828: [16:47:53] <ec8or> ah yeah got it
829: [16:47:57] <ec8or> life saver, thanks
830: [16:48:07] <micmania1> no problem
831: [16:48:18] <ec8or> this is ice hockey ;)
832: [16:50:25] * Trooy quit (Ping timeout: 245 seconds)
833: [17:00:09] * Colin[pi] has joined #silverstripe
834: [17:04:45] * joelpittet quit (Remote host closed the connection)
835: [17:06:19] * dangerdan quit (Quit: Page closed)
836: [17:07:48] * joelpittet has joined #silverstripe
837: [17:48:34] * Trooy has joined #silverstripe
838: [17:51:46] * guzzlefry has joined #silverstripe
839: [17:52:37] * Trooy_ quit (Ping timeout: 248 seconds)
840: [17:53:19] * obbo has joined #silverstripe
841: [17:53:49] <obbo> hello are there any permissions setup for userforms to allow a group to just view submissions and not edit the form fields?
842: [18:07:01] * Colin[pi] quit (Ping timeout: 268 seconds)
843: [18:14:24] * Nivery has joined #silverstripe
844: [18:14:58] * obbo quit (Quit: Page closed)
845: [18:16:27] * joelpittet quit (Remote host closed the connection)
846: [18:28:21] * gelignite quit (Ping timeout: 248 seconds)
847: [18:29:35] * Shrike_Finland quit (Quit: Leaving.)
848: [18:31:30] * Shrike_Finland has joined #silverstripe
849: [18:34:09] <guzzlefry> So, for DataObject::$dfeaults, do the values have to be literals or can I throw some configuration value in there?
850: [19:42:09] * chillu has joined #silverstripe
851: [19:44:39] * Trooy quit (Ping timeout: 276 seconds)
852: [19:50:35] * catcher has joined #silverstripe
853: [19:52:29] * zlincoln has joined #silverstripe
854: [19:53:07] <zlincoln> does anyone have experience with micschk's excludechildren module?
855: [19:53:37] <zlincoln> my pages are just saving to draft rather than publishing live
856: [19:54:49] * SightUnseen has joined #silverstripe
857: [19:54:55] * SightUnseen has left #silverstripe
858: [20:00:02] * osterlaus quit (Quit: Leaving.)
859: [20:16:07] * simon_w quit (Ping timeout: 256 seconds)
860: [20:16:32] * simon_w has joined #silverstripe
861: [20:21:34] * Nivery quit (Quit: Nivery)
862: [20:21:47] * simon_w quit (Ping timeout: 256 seconds)
863: [20:22:05] * simon_w has joined #silverstripe
864: [20:30:27] * DigNZ has joined #silverstripe
865: [20:37:05] <zlincoln> has anyone successfully implemented icecaster's versioned-gridfield module?
866: [20:37:29] <zlincoln> in 3.1?
867: [20:43:26] * UndefinedOffset quit (Quit: Leaving.)
868: [20:45:03] * zippy__ has joined #silverstripe
869: [20:48:33] <Pyromanik> fuck you .net
870: [20:48:35] <Pyromanik> honestly
871: [20:48:53] <Pyromanik> JSON Date must be in the format: "\"\\/Date(1335205592410)\\/\""
872: [20:48:57] <Pyromanik> R U FKN SRS!?
873: [20:53:06] <Pyromanik> That's not even JSON
874: [20:53:16] <wmk> keep calm
875: [20:53:32] <Pyromanik> how about you stop being shit and parse a value you expect to be a date into a date like a real parser.
876: [20:53:42] <Pyromanik> wmk: and drop bombs?
877: [20:54:09] <wmk> hey, is there an easy way to disable a subclass of ModelAdmin in left menu? e.g. one that is bundled with a module but i don't want to see...?
878: [20:54:29] <Pyromanik> I think so
879: [20:54:46] <Pyromanik> maybe something to do with CMSMain?
880: [20:56:23] <wmk> ah. was just searching at leftandmain class
881: [20:56:58] <wmk> hm, but cmsmain is a subclass of leftandmain
882: [20:57:20] * atmos has joined #silverstripe
883: [20:57:37] <Pyromanik> ye
884: [20:57:51] <atmos> :( I've forgotten what I did to include custom validation of a form field
885: [20:57:55] <atmos> ffffff
886: [20:57:56] <atmos> fail
887: [20:57:58] <Pyromanik> was suggestion, I've not much of an actual idea
888: [20:58:12] <Pyromanik> atmos: validate on the form field
889: [20:58:15] <Pyromanik> ?
890: [20:58:31] * UncleCheese has joined #silverstripe
891: [20:59:57] * stecman has joined #silverstripe
892: [21:00:06] <atmos> Pyromanik: yeah I've created a new form field and am calling a validate.js rule, but it's not working
893: [21:00:19] * Stomach has joined #silverstripe
894: [21:01:34] * DigNZ quit (Quit: DigNZ)
895: [21:02:11] <Pyromanik> oh, hmm?
896: [21:02:13] <Pyromanik> js
897: [21:02:14] <Pyromanik> dunno
898: [21:02:27] <Pyromanik> js function from form field validation
899: [21:02:38] <Pyromanik> tehre's a php function and a js function
900: [21:03:45] <atmos> Pyromanik: yeah but there is a step I'm missing
901: [21:04:18] <atmos> here is the field - http://www.sspaste.com/paste/show/5230d92dcc2cc and here is the jquery.validate.js (with added 'library' rule) http://www.sspaste.com/paste/show/5230d95960712
902: [21:04:50] * micmania1 has joined #silverstripe
903: [21:05:11] <atmos> I'm just trying to remember if I had to include a custom script on UserDefinedForm
904: [21:06:11] <Pyromanik> The server encountered an error processing the request. The exception message is 'There was an error deserializing the object of type NOPE.Web.API.Models.Contact. DateTime content '4/09/2013' does not start with '\/Date(' and end with ')\/' as required for JSON.'. See server logs for more details. The exception stack trace is:
905: [21:06:26] <Pyromanik> DateTime content '4/09/2013' does not start with '\/Date(' and end with ')\/' as required for JSON.
906: [21:06:46] <Pyromanik> '\/Date(' and end with ')\/' as required for JSON.
907: [21:06:52] <Pyromanik> as required for JSON
908: [21:06:55] <Pyromanik> as required for JSON
909: [21:06:57] <Pyromanik> NO
910: [21:06:59] <Pyromanik> FFFFFFFFFFFFFFFFFFF
911: [21:07:13] <Pyromanik> DateTime content
912: [21:07:19] <Pyromanik> YES, SO MAKE IT A DATETIME :<
913: [21:07:29] <Pyromanik> gawd
914: [21:08:02] <micmania1> sounds like you're having fun.
915: [21:08:15] <Pyromanik> micro 'I baulk at your standards' soft does it again :<
916: [21:09:52] * Liquide has joined #silverstripe
917: [21:11:03] <atmos> bah - I should have documented this
918: [21:11:43] <Pyromanik> shit
919: [21:12:21] <Pyromanik> how am I going to turn a date stored in an associative array as a string into a 'JSON Date object'
920: [21:12:34] <Pyromanik> without having any semantics to identify which is a date and which isn't...
921: [21:13:39] <Pyromanik> On the bright side, Jorn is looming on my playlist
922: [21:14:24] <atmos> Pyromanik: any thoughts on the above?
923: [21:15:21] * DigNZ has joined #silverstripe
924: [21:17:03] <Pyromanik> http://api.silverstripe.org/3.0/source-class-EmailField.html#24-52
925: [21:17:04] <Pyromanik> ?
926: [21:18:07] <atmos> Pyromanik: oh snap
927: [21:18:58] <atmos> Pyromanik: the field I'm creating is an extension of TextField though
928: [21:19:20] <atmos> so just make another custom field that's similar?
929: [21:19:26] <Pyromanik> so is EmailField
930: [21:21:00] <atmos> Pyromanik: correct, but my new EditableXXXXField is an extension of TextField, so do I need to make a a new XXXXField and apply the validation rule to that? (Like EmailField)
931: [21:21:41] <Pyromanik> ttp://api.silverstripe.org/3.0/class-Validator.html
932: [21:22:21] <Pyromanik> http://api.silverstripe.org/3.0/source-class-Validator.html#39-44
933: [21:22:40] * Trooy has joined #silverstripe
934: [21:22:49] <Pyromanik> 2.4 used to have 2 methods, php() and js()
935: [21:22:58] <Pyromanik> and some freaky deaky magic shit would happen
936: [21:23:13] <Pyromanik> it still looks a little convoluted.
937: [21:23:16] <Pyromanik> but yeh
938: [21:23:17] <Pyromanik> read code.
939: [21:23:26] <Pyromanik> it make sense after about 30 mins
940: [21:23:53] <Pyromanik> so you can either subclass textfield, or swap out the validator
941: [21:23:56] <Pyromanik> iir
942: [21:23:58] <Pyromanik> c
943: [21:24:22] <atmos> Pyromanik: I think I'll subclass, everyone seems to recommend that
944: [21:25:22] * atmos quit (Quit: Page closed)
945: [21:28:22] * Peavers has joined #silverstripe
946: [21:28:29] <Peavers> And I'm back.
947: [21:28:30] * simon_w quit (Quit: Leaving)
948: [21:28:31] * atmos has joined #silverstripe
949: [21:29:12] <zippy__> Hi Peavers
950: [21:29:30] <Peavers> Sup broski
951: [21:29:40] <Peavers> ss23: about? Got a bone to pick with him (again...)
952: [21:30:14] <Pyromanik> http://www.hanselman.com/blog/OnTheNightmareThatIsJSONDatesPlusJSONNETAndASPNETWebAPI.aspx
953: [21:30:17] <Pyromanik> ZOMG
954: [21:30:30] <Pyromanik> microsoft pulling their fucking heads in!
955: [21:30:33] <Pyromanik> HOORAY
956: [21:30:46] <Pyromanik> too bad this apparently isn't the version I'm having to deal with :<
957: [21:30:50] * robert_ quit (Read error: Connection reset by peer)
958: [21:33:22] <atmos> oh god regex
959: [21:33:57] <atmos> '/^[U]{1}\d{8}$/' this would be explained as only allow 'U' and 8 digitst right?
960: [21:35:57] <atmos> ?
961: [21:39:59] <atmos> Pyromanik: yussss, working :) thanks
962: [21:44:03] * DigNZ1 has joined #silverstripe
963: [21:44:04] * DigNZ1 quit (Remote host closed the connection)
964: [21:44:19] * DigNZ1 has joined #silverstripe
965: [21:46:37] <Pyromanik> atmos: the [] is redundant, but yes.
966: [21:47:01] <Pyromanik> in fact, the {1} is also redundant
967: [21:47:12] <Pyromanik> ^U\d{8}$
968: [21:48:54] <atmos> Pyromanik: true
969: [21:51:40] * willr has joined #silverstripe
970: [21:59:29] <Pyromanik> Brilliant! Form::getData()
971: [22:02:15] * zlincoln quit (Ping timeout: 250 seconds)
972: [22:04:51] <ss23> Peavers: wat ;_;
973: [22:07:55] <Peavers> You.
974: [22:07:59] <Peavers> Just... You.
975: [22:08:14] * ss23 shivers
976: [22:08:28] <Peavers> lol, its been awhile
977: [22:08:40] <Peavers> still dealing with support tickets?!
978: [22:08:52] <ss23> Um, yeah
979: [22:08:56] <ss23> Peavers: Had another go at that newsletters bug
980: [22:09:02] <Peavers> Yeah saw that
981: [22:09:10] <Peavers> get anywhere with it?
982: [22:09:17] <ss23> Yeha
983: [22:09:20] <ss23> Kind of
984: [22:09:30] <ss23> I got somewhere as in I understand the refactoring that would be required to fix it
985: [22:09:32] <Peavers> Not as simple as you first thought eh?
986: [22:09:33] <ss23> It's maybe... 2 hours work
987: [22:09:35] <ss23> Yeah :P
988: [22:10:36] <Peavers> Got a more pressing question for you, that I'll ask before emailing Sig and asking him...
989: [22:11:20] <Peavers> To update our site on cwp with the latest basic recipe, I should just replace my composer.lock file with that from the basic recipe and commit + deploy it?
990: [22:12:59] <ss23> Um, I'm not 100% as I don't have access to your repo, but it depends how it was set up
991: [22:13:12] <ss23> Peavers: If you pastebin your composer.json file in your main repo thing, I can have a look for you?
992: [22:13:23] <Peavers> sure, give me a sec
993: [22:14:29] * atmos quit (Quit: Page closed)
994: [22:15:01] <Peavers> http://pastebin.com/teveN62q
995: [22:15:42] <Peavers> Got an email from sig saying I need to update to the latest basic recipe version... Just trying to find out how that is supposed to be done
996: [22:15:52] <Peavers> We
997: [22:16:20] <Peavers> We've not yet really done anything with the site, its still in its "default" state - minus a plugin from simon
998: [22:17:04] <ss23> TO GITLAB
999: [22:17:07] <ss23> Urgh, need to log in
1000: [22:17:23] <ss23> omg they have the buttons in on the wrong sides too
1001: [22:17:33] <Peavers> lol?
1002: [22:19:06] <ss23> Peavers: Honestly, I don't think there is a way to do it... You can easily upgrade to the correct versions of *other* modules by replacing the composer.lock and composer.json. That'll mean like... you get the "correct" CWP versions of modules, but it won't update the recipe itself
1003: [22:19:32] <Peavers> err... so what am I supposed to do
1004: [22:19:42] <ss23> Peavers: CWP support request :D
1005: [22:20:13] <ss23> Say something like "We've been asked to update to the latest recepie. I understand I can replace the composer.lock to get the new versions of modules, but how should I update the recpie itself (e.g. the .htaccess rules in my repo)"
1006: [22:20:18] <ss23> Or something
1007: [22:20:22] <Peavers> So I'm not a complete nub for not knowing how to do this?
1008: [22:20:30] <ss23> Yeah, not a nub
1009: [22:20:31] <ss23> :D
1010: [22:20:48] <Peavers> lol - here I was thinking its got to be so basic and I can't work it out /fired
1011: [22:20:49] <ss23> I can ask one of them now if you want, Peavers
1012: [22:20:52] <ss23> XD
1013: [22:21:15] <Peavers> I'll send a ticket through since I've never sent one
1014: [22:21:39] <Peavers> Maybe suggest to them that there should be a bit more documentation around updating and upgrading on the cwp.govt site
1015: [22:21:56] <Peavers> It covers recipe versioning and what it is, but not how to actually preform it
1016: [22:22:38] <ss23> yep
1017: [22:22:38] <ss23> :D
1018: [22:22:57] <Peavers> CWP site is looking heaps better than when I last viewed it many months ago
1019: [22:23:05] <Peavers> good job whoever that was _b
1020: [22:23:17] <ss23> "D
1021: [22:23:19] <ss23> :D
1022: [22:23:22] <ss23> I wanna say "me"
1023: [22:23:53] <ss23> Also, I don't get this - https://twitter.com/jehancasinader/status/377769621459181569/photo/1
1024: [22:24:19] <Peavers> lol
1025: [22:24:26] <Peavers> what don't you get?
1026: [22:27:33] <ss23> Why is it funny? o.o
1027: [22:27:53] <ss23> oic
1028: [22:27:56] <ss23> 3 news and 1 news?
1029: [22:30:39] <Peavers> Yes.
1030: [22:30:46] <Peavers> You're a muppet dude
1031: [22:30:52] <ss23> :<
1032: [22:30:58] <ss23> HUMOR IS HARD
1033: [22:30:59] <Peavers> Its like having an ad for KFC on a Maccas site
1034: [22:31:16] <Peavers> or for wordpress on silverstripe.com
1035: [22:31:18] <ss23> lol
1036: [22:31:23] <ss23> Wordpress #1 Fansite
1037: [22:31:31] <ss23> (Inside joke, Peavers wouldn't get it because he didn't come to my talk)
1038: [22:31:44] <Peavers> Didn't i
1039: [22:31:52] <ss23> You said you didn't!
1040: [22:31:52] <Peavers> Are you sure
1041: [22:31:52] <ss23> ;_;
1042: [22:31:56] <ss23> I'M NOT SURE
1043: [22:32:08] <Peavers> I'll leave you in this state of confusion.
1044: [22:32:34] <Peavers> Using Weechat IRC client at the moment - rather enjoying it.
1045: [22:33:07] <ss23> Land of Confusion? :D
1046: [22:33:24] <ss23> Psh
1047: [22:33:28] <ss23> Weechat is like irssi for hipsters
1048: [22:33:41] <Peavers> lol
1049: [22:34:05] <Peavers> You're face is like... ...a face for hipsters.... ...or somethin...
1050: [22:34:09] <ss23> :D
1051: [22:35:30] * simon_w has joined #silverstripe
1052: [22:36:42] <ss23> simon_w lte to work again! :O
1053: [22:36:56] <simon_w> Nope
1054: [22:37:06] <Peavers> Hes turning into you.
1055: [22:37:18] <simon_w> Was in at 8, like normal
1056: [22:37:22] <simon_w> Whoa, Peavers is back!
1057: [22:37:38] <Peavers> Mate, I never left.
1058: [22:37:58] * micmania1 quit (Ping timeout: 248 seconds)
1059: [22:38:05] <simon_w> Yeah you did :p
1060: [22:38:16] <Peavers> I was in disguise the entire time
1061: [22:38:26] <Peavers> Yeah nah I wasn't...
1062: [22:39:27] * atmos has joined #silverstripe
1063: [22:41:13] <ss23> lol
1064: [22:42:50] <simon_w> "@feliciaday Hi Felicia, sorry about the delay. Guess now is a bad time to ask if we can date your avatar? :( /km"
1065: [22:42:50] <simon_w> Best response from an airline, ever?
1066: [22:43:09] <Peavers> lol?
1067: [22:43:30] <ss23> haha simon_w
1068: [22:43:33] <ss23> Must be a fan :D
1069: [22:43:36] <simon_w> Peavers doesn't get it?
1070: [22:43:38] <simon_w> SHAME!
1071: [22:43:49] <Peavers> wut?
1072: [22:43:52] <Peavers> Of course I get it.
1073: [22:43:59] <Peavers> This is why I left
1074: [22:44:04] <Peavers> you guys just don't understand me.
1075: [22:44:10] <ss23> lol
1076: [22:44:13] <ss23> HE DOESN'T GET IT
1077: [22:44:39] <Peavers> Oh simon_w, had a question about your plugin that I STILL havn't tested due to our terribad IT department
1078: [22:45:22] <simon_w> Of course
1079: [22:45:31] <simon_w> Was the question "How did I make it so awesome?"
1080: [22:45:36] <Peavers> when a user clicks the button
1081: [22:45:54] <Peavers> it doesn't create a profile for them in silverstripe does it, it just authenticates the session?
1082: [22:46:06] <simon_w> It creates a profile once they come back
1083: [22:46:11] <Peavers> oh it does?
1084: [22:46:32] <Peavers> So Jo Smith clicks the button, Jo Smith will then become a user of silverstripe that can be put into a group etc?
1085: [22:46:32] <simon_w> Yes
1086: [22:46:37] <Peavers> Thank god.
1087: [22:46:37] <simon_w> Yup
1088: [22:46:52] <Peavers> My boss just about had a heart attack when it was mentioned somewhere that it wouldn't do that
1089: [22:46:55] <simon_w> There's even a hook so that you can check what groups come back from ESAA and respond accordingly
1090: [22:47:01] <Peavers> perfect
1091: [22:47:12] <Pyromanik> simon_w: ss23 I don't get it :(
1092: [22:47:17] <Peavers> I'll have a few beers tonight in your honor.
1093: [22:47:33] <simon_w> Pyromanik, "Do you want to date my avatar" on youtube
1094: [22:47:36] <Pyromanik> 10:45 <@simon_w> Was the question "How did I make it so awesome?"
1095: [22:47:37] <Pyromanik> BOOM
1096: [22:47:50] <spronk> pretty much
1097: [22:47:51] <Pyromanik> simon_w: hmm, haven't seen it, will look.
1098: [22:48:04] <Peavers> you guys.
1099: [22:49:07] <ss23> Pyromanik: It's from The Guild (kind of) btw
1100: [22:49:13] <ss23> Which was a strange but watchable show
1101: [22:49:19] <Pyromanik> ic
1102: [22:49:38] <simon_w> With Felicia Day as the lead
1103: [22:49:41] <ss23> There's actually a chick at work here who reminds me of Clara to the max
1104: [22:49:47] <ss23> She was even talking about Steam Punk yesterday
1105: [22:50:24] <simon_w> Man, getting my VM up and running after an OS update is way too much effort
1106: [22:50:55] <spronk> hmm
1107: [22:51:02] <spronk> i'm getting a bit annoyed at how long it takes me to configure vms
1108: [22:51:25] <simon_w> Have to reinstall VirtualBox, open the VM, mount the drive then open Sublime
1109: [22:51:28] <simon_w> so many steps
1110: [22:51:54] <spronk> you have your app files stored on the VM's disk primarily?
1111: [22:52:22] <simon_w> Yeah, HHVM needs inotify to handle changed files
1112: [22:52:27] <spronk> ah
1113: [22:53:05] <spronk> grr
1114: [22:53:13] <spronk> why do my virtual pages not update if i update the target page
1115: [22:53:48] <spronk> in fact, they seem to have a variable stage of updated-ness
1116: [22:54:20] * DigNZ1 quit (Quit: DigNZ1)
1117: [22:55:17] <spronk> seriously wtf.
1118: [22:55:38] <atmos> ugggh job tracking software
1119: [22:56:14] <simon_w> ugggh, job
1120: [22:56:46] <ss23> urghhhhhhhhh
1121: [22:56:49] * DigNZ1 has joined #silverstripe
1122: [22:56:58] <spronk> http://i.imgur.com/nNgZdsE.png
1123: [22:56:59] <ss23> spronk should just give up and /nick subsites_hater
1124: [22:57:00] <spronk> can anyone explain this
1125: [22:57:10] <ss23> spronk: Tide goes in, tide goes out
1126: [22:57:13] <ss23> you can't explain that.
1127: [22:57:17] * spronk is now known as DIIEEE_SUBSITES_
1128: [22:57:20] <ss23> lo
1129: [22:57:41] <Pyromanik> "
1130: [22:57:42] <DIIEEE_SUBSITES_> note: page name in blue box different to page name in Choose page dropdown different to page name in "Page Name"
1131: [22:57:47] <DIIEEE_SUBSITES_> all pointing to THE SAME FUCKING PAGE.
1132: [22:57:59] <Pyromanik> "eval is needed. You don't know what you're talking about." - WTF I just died a little inside.
1133: [22:58:00] <simon_w> That's called trolling
1134: [22:58:37] <DIIEEE_SUBSITES_> the best part
1135: [22:58:44] <Pyromanik> I sad that people like this exist.
1136: [22:58:52] <DIIEEE_SUBSITES_> is that in SiteTree_Live, it's got the right page names
1137: [22:59:00] <DIIEEE_SUBSITES_> where the hell is it being cached
1138: [22:59:08] <DIIEEE_SUBSITES_> because ?flush doesn't seem to fix it
1139: [22:59:28] * DigNZ1 quit (Client Quit)
1140: [22:59:48] <DIIEEE_SUBSITES_> but in SiteTree table, it has the wrong page names
1141: [22:59:49] <DIIEEE_SUBSITES_> wtf
1142: [23:01:09] * DIIEEE_SUBSITES_ is now known as spronk
1143: [23:02:20] * Liquide quit ()
1144: [23:02:21] <spronk> i wonder if it has something to do with the parent page type restricting allowed types..
1145: [23:06:15] * Jayden90 has joined #silverstripe
1146: [23:06:59] <Jayden90> Nice work whoever updated the layout and style for http://api.silverstripe.org/
1147: [23:07:09] <Jayden90> Like the new header
1148: [23:07:51] <atmos> https://www.humblebundle.com/?utm_source=MadMimi&utm_medium=email&utm_content=Introducing+Humble+Indie+Bundle+9%2C+featuring+FTL%3A+Faster+Than+Light%2C+FEZ%2C+Mark+of+the+Ninja+%26+more%21&utm_campaign=20130910_m117186439_Introducing+Humble+Indie+Bundle+9%21&utm_term=Humble+Indie+Bundle+9
1149: [23:07:54] <atmos> note bad
1150: [23:07:57] <atmos> not*
1151: [23:08:02] <ss23> I had all/most of them I think
1152: [23:08:09] <ss23> Didn't look good to me anyway
1153: [23:08:49] <atmos> the docs are having real issues loading in IE for me...
1154: [23:09:29] * catcher quit (Quit: Leaving)
1155: [23:10:05] <Jayden90> I had to refresh my cache
1156: [23:10:26] <atmos> Jayden90: ah, nice
1157: [23:10:42] <ss23> atmos: If you ntoice something, feel free to send ap ull request
1158: [23:10:46] <Jayden90> I wish discuss would apply to the particual docs page you are reading and not the whole api
1159: [23:10:52] <Jayden90> disqus
1160: [23:10:59] <atmos> the search bar really needs to go right more...
1161: [23:10:59] <ss23> fuck
1162: [23:11:12] <ss23> Accidently did ctrl + q instead of ctrl + w
1163: [23:11:13] <ss23> ;___;
1164: [23:11:15] <ss23> ALL TABS
1165: [23:11:15] <ss23> GONE
1166: [23:11:25] <spronk> get opera
1167: [23:11:29] <spronk> handles that shit for you
1168: [23:11:40] <Jayden90> is opera on webkit yet?
1169: [23:11:41] <ss23> So does every other browser
1170: [23:11:44] <ss23> But I was streaming music
1171: [23:11:46] <ss23> Jayden90: Blink!
1172: [23:14:27] <spronk> omg ss23
1173: [23:14:35] <spronk> haven't you learnt to use a different browser to stream your shit in
1174: [23:14:42] <ss23> lol
1175: [23:14:50] <spronk> UGH
1176: [23:14:58] <spronk> why does the sitetree table not get updated but sitetree_live does
1177: [23:14:58] <simon_w> People close tabs?
1178: [23:14:59] <spronk> how can this be
1179: [23:15:09] <spronk> only accidentally, simon_w
1180: [23:15:18] <spronk> or if you're using firefox, to make it go a bit faster again
1181: [23:15:20] <atmos> I just open a new window and pin it
1182: [23:15:29] <atmos> if I'm streaming
1183: [23:15:43] <ss23> I have mostly pinned tabs, but this software for streaming is *really* shitty, so it plays in a popup
1184: [23:15:44] <spronk> also if you're using chrome, there's that thing that makes you have to hold down Q to quit
1185: [23:15:47] <ss23> 90s tyle
1186: [23:16:34] <spronk> ugh
1187: [23:16:37] <spronk> virtual pages are so fucked.
1188: [23:16:41] <ss23> lol
1189: [23:16:45] <spronk> the cms treats them as a standard page type
1190: [23:16:51] <spronk> so restricting allowed_children stops you from creating them
1191: [23:16:55] <spronk> even if you're pointing to a page that is allowed.
1192: [23:17:29] <spronk> virtualpages don't call their target page's init(), so you can't load custom js or css via init() on a specific page type if you intend on using virtual pages
1193: [23:17:51] <Pyromanik> Jayden90: no.
1194: [23:17:57] <Pyromanik> Blink.
1195: [23:18:02] <Pyromanik> and not quite
1196: [23:18:07] <Pyromanik> you can get previews.
1197: [23:18:17] <ss23> Chrome is on blink!
1198: [23:18:25] <Pyromanik> mobile is on blink, but not desktop, but you can get desktop previews.
1199: [23:18:49] <Pyromanik> http://msdn.microsoft.com/en-us/library/bb299886.aspx#intro_to_json_sidebarb
1200: [23:18:52] <Pyromanik> so
1201: [23:18:59] <spronk> sidebarb eh
1202: [23:19:01] <ss23> I shouldn't be allowed needles
1203: [23:19:14] <ss23> I just was like "my thumb is itchy" while holding a needle and went to scratch it with teh needle
1204: [23:19:18] <Pyromanik> instead of using ISO8601 - a standard taht even JS uses toString a Date, they make up some bullshit propietary crap.
1205: [23:19:19] <ss23> :<
1206: [23:19:22] * Trooy quit (Quit: Leaving)
1207: [23:19:37] <Pyromanik> to differentiate between a string and a date.
1208: [23:19:56] <spronk> yeah...
1209: [23:20:02] <Pyromanik> one of those pull out your hair hands to the sky why oh eff'n why moments.
1210: [23:20:04] <spronk> because js doesn't have 8601 parsing inbuilt
1211: [23:20:10] <Pyromanik> bs
1212: [23:20:24] <Pyromanik> Date(herpaderp) = boom.
1213: [23:20:35] <spronk> well
1214: [23:20:41] <Pyromanik> though admittedly perhaps not when they maked it.
1215: [23:20:43] <spronk> doesn't work the same across all browsers
1216: [23:20:47] <spronk> and
1217: [23:20:48] <ss23> maked
1218: [23:20:49] <ss23> maked it
1219: [23:20:50] <spronk> doesn't work at all in IE6
1220: [23:20:51] <Pyromanik> browsers are shit
1221: [23:21:07] <spronk> or FF3
1222: [23:21:23] <Pyromanik> spronk: so... MS make bad things, then make more bad things in order to keep obsoletely old badders things working.
1223: [23:21:23] <ss23> lol
1224: [23:21:26] <Pyromanik> great.
1225: [23:21:39] <Pyromanik> logic++
1226: [23:21:42] <spronk> also
1227: [23:21:42] <zippy__> called iteration :) one day it might be great
1228: [23:21:46] <spronk> it's still only a subset of 8601
1229: [23:21:52] <spronk> so it still doesn't work properly.
1230: [23:22:31] <Pyromanik> zippy__: they scrapped the lot of it and switched to ISO8601
1231: [23:22:40] <Pyromanik> but I have do deal with legacy crap
1232: [23:22:46] <spronk> 8601 is a bit of a shitty standard as well
1233: [23:22:51] <spronk> because it allows two digit years
1234: [23:22:55] <Pyromanik> and PHP doesn't store milliseconds :<
1235: [23:25:45] <simon_w> Yeah it does
1236: [23:25:55] <simon_w> Just with the DateTime object
1237: [23:26:34] <Jayden90> We are attempting to extend LeftAndMain to have simple tabs with icons that behave much the same way SiteConfig works, with sub tabs that can contain all sorts of CMS fields that can be accessed globally in templates.
1238: [23:26:51] <spronk> since when, simon_w?
1239: [23:27:03] <Jayden90> Jesus looking at the CMSSettingsController there is so much going on
1240: [23:27:04] <spronk> good luck, jayden :P
1241: [23:27:12] <simon_w> the DateTime object's always stored milliseconds
1242: [23:27:17] <spronk> every time i try something like that i inevitably give up
1243: [23:27:29] <atmos> ^ same
1244: [23:27:38] <spronk> ... are you sure?
1245: [23:27:41] <Jayden90> surely there is a tutorial for this, because it would be killer to be able to do this
1246: [23:28:05] <spronk> the "tutorial" is to go and look at how some of the modules do it
1247: [23:28:16] <Jayden90> good idea
1248: [23:28:42] <Jayden90> I wish there was a generic direct subclass of LeftAndMain that lets us do this: http://api.silverstripe.org/3.1/class-LeftAndMain.html
1249: [23:28:57] <Jayden90> one that is not used by default, just there for us to tap into
1250: [23:29:17] <spronk> yeah
1251: [23:29:28] <spronk> one issue is that you probably want to use a bunch of the javascript too
1252: [23:29:36] <spronk> but it's all super complex and tied into cms
1253: [23:29:53] <Pyromanik> simon_w: DateField stores milliseconds? How to retrieve?
1254: [23:30:14] <simon_w> Nope
1255: [23:30:15] <atmos> spronk: yip - I ran into this early on and hence gave up
1256: [23:30:25] <Jayden90> spronk: I wish it was as simple as extending SiteConfig
1257: [23:30:29] <spronk> yeah
1258: [23:30:32] <simon_w> None of the SS db fields handle milliseconds
1259: [23:30:41] * spronk quizzed sam on this at wdcnz in like 2010
1260: [23:30:53] <spronk> still nothin.
1261: [23:31:09] <atmos> spronk: Sam?
1262: [23:31:12] <Pyromanik> simon_w: not worried about db fields
1263: [23:31:15] <Pyromanik> Just the formfield
1264: [23:31:16] <spronk> atmos: sminee
1265: [23:31:18] <Pyromanik> datefield
1266: [23:31:22] <atmos> ah
1267: [23:31:25] <simon_w> DateField doesn't handle times
1268: [23:31:42] <Pyromanik> hmm, true.
1269: [23:31:54] <Pyromanik> but Zend Date does?
1270: [23:31:59] <Pyromanik> which is the storage object?
1271: [23:33:25] <spronk> zend date probably has hooks for multi-dimensional spacetime, man
1272: [23:33:32] <Pyromanik> probably
1273: [23:34:06] * spronk shakes fistr
1274: [23:34:08] <spronk> fucks sakes
1275: [23:34:23] <spronk> anyone here have a working install of 3.1 >= rc1, and subsites close to master?
1276: [23:36:08] <Pyromanik> ZOMG, setConfig, my hero <3
1277: [23:36:17] <Pyromanik> I hope I don't need milliseconds.
1278: [23:36:22] * Pyromanik shrugs
1279: [23:36:28] <Pyromanik> I guess I'll just *1000 if I do
1280: [23:37:38] <Jayden90> spronk: looking for a realy simple module that is up to date to reverse engineer tapping into LeftAndMain. harder to find than you think
1281: [23:38:10] <spronk> Jayden90: indeed.
1282: [23:38:14] <spronk> there's modeladmin
1283: [23:38:14] <spronk> and
1284: [23:38:15] <spronk> blog module
1285: [23:38:21] <spronk> and...
1286: [23:38:29] <spronk> can't remember now
1287: [23:41:49] <Pyromanik> Jayden90: there's always LeftAndMain
1288: [23:42:04] <spronk> oh i see
1289: [23:42:15] <spronk> so apparently $this->VirtualPages() doesn't get subsites VPs in SiteTree
1290: [23:43:20] <spronk> also why the fuck does onafterwrite get called like four tiems
1291: [23:46:27] <spronk> O LOL
1292: [23:46:29] <spronk> SUBSITES YOU CUNT
1293: [23:46:51] <spronk> subsites has a method to get all virtual pages
1294: [23:46:53] <spronk> but...
1295: [23:46:59] <ss23> lol
1296: [23:47:01] <ss23> So mad so mad so mad so
1297: [23:47:04] <spronk> it calls its own augmentSql extension, which adds a specific where subsite id =
1298: [23:47:14] <spronk> so it only ever gets them from whatever site you're currently looking at
1299: [23:47:16] <spronk> o m f g.
1300: [23:48:09] <spronk> aaand it all happens because datalists are now lazily executed
1301: [23:48:25] <spronk> how the fuuuuuuuuuck do i fix that
1302: [23:48:53] <spronk> can you force datalist to query immediately?
1303: [23:48:58] * Stomach quit (Quit: Leaving.)
1304: [23:50:26] * UncleCheese quit (Quit: UncleCheese)
1305: [23:51:11] <atmos> man, a grammar nazi could have a field day with docs
1306: [23:51:25] <ss23> atmos: You can be that grammar nazi!
1307: [23:51:30] <ss23> PULL REQUESTS :D
1308: [23:52:06] * Stomach has joined #silverstripe
1309: [23:52:56] <atmos> ss23: I'M HELPFUL!
1310: [23:53:19] <ss23> :D
1311: [23:53:28] <Pyromanik> how confused am I to have 2 Content-Type headers returned from $response->getHeader('Content-Type')
1312: [23:53:33] <Pyromanik> WTF
1313: [23:53:35] <spronk> simon_w: did DataObject::get() used to resolve the queery immediately before DataList ?
1314: [23:53:42] * zippy__ quit (Ping timeout: 256 seconds)
1315: [23:54:03] <Pyromanik> spronk: ??
1316: [23:54:11] <spronk> like
1317: [23:54:17] <simon_w> spronk, yes
1318: [23:54:21] <spronk> DataObject::get() returns a datalist populated with the query, but it hasn't actually gone and fetched data
1319: [23:54:26] <spronk> simon_w: when did it change to lazy eval?
1320: [23:54:29] <spronk> 3.1? 3.0?
1321: [23:54:30] <simon_w> 3.0
1322: [23:54:32] <Pyromanik> 3.0
1323: [23:54:33] <spronk> hmm
1324: [23:54:41] <spronk> so this has been a bug in subsites since 3.0
1325: [23:54:42] <spronk> fantastic
1326: [23:54:49] <spronk> how to force immediate eval?
1327: [23:54:52] <spronk> ->query()?
1328: [23:54:55] <Pyromanik> mm
1329: [23:54:59] <simon_w> Start looping?
1330: [23:55:31] <Pyromanik> simon_w: why does my response tell me I have 2 headers when there's only one?
1331: [23:55:45] <simon_w> There's a 100 thing too?
1332: [23:55:52] <simon_w> What sort of header?
1333: [23:55:58] <Pyromanik> array (size=2) 0 => string 'text/html; charset=UTF-8' (length=24) 1 => string 'application/json; charset=utf-8' (length=31)
1334: [23:55:59] <spronk> simon_w: if i start looping, i assuming i need to reset some sort of cursor
1335: [23:56:12] <spronk> does it perform the query ONCE and cache? or any time you start iterating?
1336: [23:56:21] <simon_w> spronk, any time you start
1337: [23:56:36] <spronk> FFUUUUUUCK.
1338: [23:57:52] <Pyromanik> fuck'n devs that Content-Type: application/json then return you "string"
1339: [23:58:37] <Pyromanik> valid json, but every single other endpoint returns obj or array
1340: [23:58:41] <Pyromanik> :<
1341: [23:58:55] <ss23> holy shit
1342: [23:58:58] <ss23> faulty towers..
1343: [23:59:10] <ss23> fawlty towers....
1344: [23:59:12] <ss23> It'S A PUN
1345: [23:59:13] <guzzlefry> 0.o
1346: [23:59:40] <Pyromanik> Bazil!
1347: [23:59:46] <spronk> yeah
1348: [23:59:47] <guzzlefry> hm
1349: [23:59:51] <spronk> i don't know how i'm meant tof ix this

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