#silverstripe IRC Log

IRC log for 13 May 2013

All timestamps are in UTC.

1: [00:18:00] <simon_w> Hello there ss-log
2: [00:18:00] * ss-log has joined #silverstripe
3: [00:22:00] <simon_w> And there we go. Shiny new log server :)
4: [00:22:00] * ss-log has joined #silverstripe
5: [00:23:00] <Pyromanik> aws?
6: [00:24:00] <simon_w> Nup
7: [00:24:00] <Pyromanik> automatically wet slipnslide?
8: [00:24:00] <Pyromanik> no I mean what is?, amazon web systems?
9: [00:25:00] <Pyromanik> an onomatopeic term for getting winded?
10: [00:25:00] <simon_w> Ah, uninstalling java from the old VPS :)
11: [00:25:00] <simon_w> amazon web somethings
12: [00:35:00] * SightUnseen has left #silverstripe
13: [00:35:00] * SightUnseen has joined #silverstripe
14: [00:40:00] <simon_w> Okay, I think I've unbroken everything I broke
15: [00:41:00] * K2 quit (Ping timeout: 245 seconds)
16: [00:47:00] <simon_w> And given the seriously short TTL on the domain, logs.simon.geek.nz should be pointing to the right place for everyone
17: [00:47:00] * pex quit (Quit: pex)
18: [00:56:00] * LoveDuckie quit (Quit: HydraIRC -> http://www.hydrairc.com <- Organize your IRC)
19: [01:03:00] * SticksM has joined #silverstripe
20: [01:07:00] * landscribe has joined #silverstripe
21: [01:13:00] * landscribe quit (Ping timeout: 245 seconds)
22: [01:25:00] <Pyromanik> if I want a time field, without the date bit, can I/
23: [01:28:00] <EasyCo> http://api.silverstripe.org/3.0/class-Time.html $yourTime->Nice() or Nice24()?
24: [01:36:00] <ss23> Obligatory "fuck cpanel" message
25: [01:38:00] <Pyromanik> Obligatory 'here here' message
26: [01:39:00] <ss23> Looks like these people have enabled cloudflare, and also enabled "log me out if my IP changes"
27: [01:39:00] <Pyromanik> EasyCo: thanks.
28: [01:40:00] <simon_w> TimeField?
29: [01:40:00] <Pyromanik> I thought there was a time class but couldn't find it in the api search :<
30: [01:40:00] <EasyCo> np, glad I can actually return a bit of help sometimes.
31: [01:40:00] <Pyromanik> EasyCo: do you happen to know what the default field is named?
32: [01:41:00] <Pyromanik> fffff api search didn't find that either ><
33: [01:42:00] <simon_w> time
34: [01:42:00] <simon_w> http://api.silverstripe.org/3.0/
35: [01:42:00] <simon_w> cmd/crtl-f
36: [01:43:00] <Pyromanik> http://api.silverstripe.org/3.0/class-TimeField.html
37: [01:43:00] <Pyromanik> oh yup, classes summary for framewor\forms: DateField_View_JQuery, DatetimeField, FormScaffolder, GridField_FormAction, NestedForm, UploadField, Uploadfield_ItemHandler. <end list>
38: [01:43:00] <simon_w> http://api.silverstripe.org/3.0/package-forms.fields.datetime.html
39: [01:44:00] <Pyromanik> Doesn't have js popout or dropdown?
40: [01:45:00] <Pyromanik> DatetimeField shows me Date as well as time, I only want time.
41: [01:45:00] <Pyromanik> :<
42: [01:45:00] <Pyromanik> port from 2.4!
43: [01:45:00] <simon_w> Just make two drop down fields yourself?
44: [01:45:00] <simon_w> Doesn't look like it
45: [01:47:00] <EasyCo> $dateTimefrield->getTimeField()->Nice(); ?
46: [01:48:00] <Pyromanik> only on the db field (I'm wanting a form field here)
47: [01:48:00] <Pyromanik> there is no nice method on the field.
48: [01:49:00] <simon_w> Pyromanik, want drop down fields? http://sspaste.com/paste/show/5190469e82c23
49: [01:51:00] <Pyromanik> setFieldHolderTemplate?
50: [01:52:00] <Pyromanik> nope, hmm, interesting. Thanks simon_w
51: [01:52:00] <Pyromanik> I was just going to pinch the JS & HTML from 2.4 if I could and put them into a template
52: [01:54:00] <Pyromanik> ta
53: [01:54:00] <Pyromanik> I take it this is from rentbox simon_w ?
54: [01:54:00] <simon_w> yup
55: [02:00:00] * Mansi has joined #silverstripe
56: [02:10:00] <Pyromanik> simon_w: onlyShowMinutesMod, do I give it an interval?
57: [02:10:00] <Pyromanik> eg 15?
58: [02:10:00] <Pyromanik> to show only every quarter hour?
59: [02:10:00] <simon_w> Pretty much
60: [02:10:00] <Pyromanik> sweet cheers
61: [02:15:00] <Pyromanik> how does the CMS know which dropdowns to apply chzn to?
62: [02:16:00] * gelignite has joined #silverstripe
63: [02:18:00] <simon_w> All of them, unless they have some class I can't remember on them
64: [02:21:00] * Pyromani1 has joined #silverstripe
65: [02:23:00] <simon_w> Pyromani1, all the ones without a no-chzn class
66: [02:27:00] <Pyromani1> hmm, it don't much like that :<
67: [02:27:00] <Pyromani1> simon_w: all the ones without a dropdown class on the outer field div either.
68: [02:27:00] * Mansi quit (Ping timeout: 245 seconds)
69: [02:27:00] * guci0 quit (Ping timeout: 245 seconds)
70: [02:27:00] * ImacSS quit (Ping timeout: 245 seconds)
71: [02:28:00] <simon_w> $('.cms .field.dropdown select, .cms .field select[multiple]')
72: [02:28:00] * Pyromanik quit (Ping timeout: 255 seconds)
73: [02:28:00] <Pyromani1> must be $('.dropdown select')
74: [02:28:00] * gelignite quit (Ping timeout: 255 seconds)
75: [02:28:00] <Pyromani1> must be $(.dropdown select')
76: [02:28:00] * SightUnseen has joined #silverstripe
77: [02:28:00] <Pyromani1> or similar
78: [02:29:00] <Pyromani1> mm
79: [02:29:00] * gelignite has joined #silverstripe
80: [02:29:00] * Pyromani1 is now known as Pyromanik
81: [02:30:00] <Pyromanik> the problem being that it only does one of the two dropdowns :<
82: [02:31:00] <Pyromanik> only one div in the markup
83: [02:31:00] <Pyromanik> well, chosens them both, but only displays one dropdown (hours)
84: [02:37:00] * joelpitt_ has joined #silverstripe
85: [02:37:00] * Pyromani1 has joined #silverstripe
86: [02:37:00] * Sticks38 has joined #silverstripe
87: [02:38:00] * DigNZ1 has joined #silverstripe
88: [02:38:00] <FrozenFire> EasyCo, I am now, and it really depends on how heavy of an integration you want.
89: [02:39:00] <FrozenFire> Turning the translations on for a DataObject is fairly trivial.
90: [02:39:00] <FrozenFire> Making the correct menus show up in the CMS form for a DataObject is a bit more tricky.
91: [02:41:00] <FrozenFire> Requires specifying a special GridFieldDetailForm_ItemRequest which is capable of handling the translatable stuff, iirc
92: [02:42:00] * SightUnseen quit (*.net *.split)
93: [02:42:00] * joelpitt_ quit (*.net *.split)
94: [02:42:00] * EasyCo quit (*.net *.split)
95: [02:42:00] * Jedateach quit (*.net *.split)
96: [02:42:00] * Sticks38 quit (*.net *.split)
97: [02:42:00] * kerosene quit (*.net *.split)
98: [02:44:00] <FrozenFire> http://www.sspaste.com/paste/show/519053956f160
99: [02:44:00] * joelpitt_ has joined #silverstripe
100: [02:45:00] <FrozenFire> $detailForm->setItemRequestClass("Translatable_ItemRequest");
101: [02:45:00] <FrozenFire> In your ModelAdmin's getEditForm:
102: [02:45:00] <FrozenFire> $gridField = $editForm->Fields()->fieldByName($this->modelClass);
103: [02:45:00] <FrozenFire> $detailForm = $gridField->getConfig()->getComponentByType("GridFieldDetailForm");
104: [02:46:00] <FrozenFire> There's more shit for handling switching of the lang in a ModelAdmin's own interface, but that's more than I have time to write a guide for. :P
105: [02:47:00] * SticksM quit (*.net *.split)
106: [02:47:00] * joelpittet quit (*.net *.split)
107: [02:47:00] * Pyromani1 is now known as Pyromanik
108: [02:47:00] * kerosene has joined #silverstripe
109: [02:47:00] * DigNZ quit (*.net *.split)
110: [02:47:00] * Sticks38 has joined #silverstripe
111: [02:47:00] * SightUnseen has joined #silverstripe
112: [02:47:00] * Jedateach has joined #silverstripe
113: [02:47:00] * EasyCo has joined #silverstripe
114: [02:47:00] * Pyromanik quit (*.net *.split)
115: [02:47:00] * gelignite quit (*.net *.split)
116: [02:47:00] <Pyromanik> working a charm now simon_w, cheers for that :D
117: [02:50:00] * Bollig|DesignCty has joined #silverstripe
118: [02:51:00] * kerosene quit (*.net *.split)
119: [02:51:00] * SightUnseen quit (*.net *.split)
120: [02:51:00] * Sticks38 quit (*.net *.split)
121: [02:51:00] * EasyCo quit (*.net *.split)
122: [02:51:00] * Jedateach quit (*.net *.split)
123: [02:52:00] * EasyCo has joined #silverstripe
124: [02:52:00] * SightUnseen has joined #silverstripe
125: [02:52:00] * Sticks38 has joined #silverstripe
126: [02:52:00] * kerosene has joined #silverstripe
127: [02:52:00] * Jedateach has joined #silverstripe
128: [02:54:00] * SightUnseen has left #silverstripe
129: [02:55:00] * gelignite has joined #silverstripe
130: [02:56:00] * simon_w|air quit (Quit: This computer has gone to sleep)
131: [03:05:00] <Colin[pi]> gooood afternoon
132: [03:05:00] * Colin[pi] has joined #silverstripe
133: [03:08:00] * Mansi has joined #silverstripe
134: [03:08:00] * DigNZ1 quit (Quit: DigNZ1)
135: [03:08:00] * Shrike_Finland1 quit (Ping timeout: 256 seconds)
136: [03:09:00] <FrozenFire> That is, give it the chance to control the components being added to the GridFieldConfig on its creation
137: [03:09:00] <FrozenFire> So that if it needs to replace the item request class, or add a GridField_ActionProvider, it can
138: [03:09:00] * DigNZ has joined #silverstripe
139: [03:09:00] * DigNZ quit (Remote host closed the connection)
140: [03:09:00] <FrozenFire> I copy and paste from another channel which I made a fool of myself in
141: [03:09:00] <FrozenFire> :P
142: [03:09:00] * DigNZ has joined #silverstripe
143: [03:09:00] <FrozenFire> Thoughts on giving DataObject a static callback to augment its controlling GridField?
144: [03:13:00] <Colin[pi]> can't login here, already logged in over there, can't enable this service, permissions wrong here, force logout there
145: [03:13:00] <Colin[pi]> anyone else find the google user account system as big a clusterfuck, or is it just me?
146: [03:14:00] <FrozenFire> Or at least, had
147: [03:14:00] <FrozenFire> They have so many fragmented authentication systems
148: [03:14:00] <FrozenFire> That's well-established.
149: [03:14:00] <Colin[pi]> arggggggggggh
150: [03:14:00] <FrozenFire> They performed this big-ass authentication overhaul on their offerings
151: [03:15:00] <Colin[pi]> it's awful!
152: [03:15:00] <FrozenFire> Still sort of shit
153: [03:15:00] <Colin[pi]> it drives me absolutely insane
154: [03:15:00] <Colin[pi]> for such a ubiquitous company, it has to be one of the worst account mgmt system I've ever used
155: [03:16:00] <FrozenFire> Then you can remove the old account from it
156: [03:16:00] <FrozenFire> Add the Apps account to the Analytics account
157: [03:16:00] <simon_w> Until very recently, Google projects didn't talk to each other
158: [03:16:00] <Colin[pi]> I wanted to combine one customer's analytics and their google apps accounts together, but nooo
159: [03:17:00] <Colin[pi]> this guy sums up my feelings well: http://www.zdnet.com/my-big-email-switch-why-i-picked-office-365-over-google-apps_p2-7000013143/
160: [03:18:00] <FrozenFire> What OS do you use?
161: [03:18:00] <Colin[pi]> Winblows 8
162: [03:18:00] <FrozenFire> Heh. You're fortunate, then. If you didn't use Windows, you'd be fucked on Office 365
163: [03:18:00] <FrozenFire> Heh. If you think Google's services are shit, wait until you try Office 365.
164: [03:19:00] <FrozenFire> Their mail doesn't really support anything but Windows
165: [03:19:00] <Colin[pi]> what, in the browser?
166: [03:19:00] <Colin[pi]> ahhh yep I remember now, that was the reason I didnt use them :)
167: [03:19:00] <FrozenFire> You can access using POP3, but no IMAP whatsoever
168: [03:20:00] <Colin[pi]> it gives IMAP at least
169: [03:20:00] <simon_w> Eh, GMail's pretty close to that
170: [03:21:00] <simon_w> Hence why it's pretty close
171: [03:22:00] <simon_w> Have you used gmail's imap? It's so shit, it may as well be POP :p
172: [03:22:00] <Colin[pi]> lack of IMAP is not terribly close sir :P
173: [03:23:00] <Colin[pi]> never had a problem with it... most of google's stuff I don't have a problem with, but their fragmented account/auth systems, argggggg
174: [03:24:00] <FrozenFire> I've used Google's IMAP for close to 6 years now, at least. Can't say I've ever had any problem whatsoever.
175: [03:25:00] <Colin[pi]> IMAP is IMAP really, it either works or doesn't
176: [03:26:00] <simon_w> Fails to propagate flag changes through folders, provides emails in triplicate, can't decide on what a delete means, goes down frequently
177: [03:27:00] <simon_w> And I have no problems with their authentication :p
178: [03:27:00] <Colin[pi]> other issues, no problems that I've noticed
179: [03:27:00] <Colin[pi]> only one I've noticed is the third
180: [03:28:00] <Colin[pi]> :D
181: [03:28:00] <Colin[pi]> good for you! have a cookie
182: [03:30:00] <Mansi> Hi, I've installed Sphinx search module with SS2.4, I'm having outages due to memory leaks.
183: [03:30:00] * cloph_away1 has joined #silverstripe
184: [03:31:00] <Mansi> based on the docs included in the module, I want to set-up Sphinx to index Live pages only.
185: [03:31:00] <Mansi> but the docs do not have any examples of how to implement that.
186: [03:31:00] <Mansi> any ideas?
187: [03:32:00] <Pyromanik> so index that, but not SiteTree
188: [03:32:00] <Pyromanik> yes
189: [03:32:00] <Mansi> SiteTree_Live
190: [03:32:00] <Pyromanik> Mansi: live pages are on a separate table all together
191: [03:32:00] * cloph_away quit (Ping timeout: 256 seconds)
192: [03:33:00] <Mansi> How do I configure the module to do that?
193: [03:33:00] <Pyromanik> he's not here.
194: [03:33:00] <Pyromanik> ask iro... oh.
195: [03:33:00] <Pyromanik> Mansi: no idea, I've never used it.
196: [03:33:00] <Pyromanik> someone like simon_w or FrozenFire: does it postible to multiselect enums?
197: [03:33:00] <Mansi> in my _config.php I have -> Object::add_extension('SiteTree', 'SphinxSearchable');
198: [03:34:00] <Pyromanik> simon_w: yes exactly like with a MultiEnum
199: [03:34:00] <Pyromanik> thanks :)
200: [03:34:00] <simon_w> Pyromanik, you mean like with a MultiEnum?
201: [03:36:00] <Pyromanik> simon_w: no multiselectfield?
202: [03:37:00] <simon_w> Is a select with a multiple option
203: [03:37:00] <Pyromanik> that isn't just a bunch of tickboxes?
204: [03:37:00] <Pyromanik> thanks :)
205: [03:37:00] <simon_w> ListboxField
206: [03:37:00] <simon_w> Hmm, I may need to start keeping another project open in Sublime after I went through and deleted almost every form field from the pocketrent sapphire
207: [03:38:00] <Pyromanik> well, by default
208: [03:38:00] <Pyromanik> doesn't render with a multienum :<
209: [03:38:00] <Pyromanik> I've just done gone derp'd
210: [03:40:00] <spronk> p+P
211: [03:41:00] <Pyromanik> hmm
212: [03:41:00] <Pyromanik> wut
213: [03:42:00] <Pyromanik> <select multiple=true> ?
214: [03:42:00] <Pyromanik> how does multiselect go?
215: [03:43:00] <simon_w> I can't remember
216: [03:44:00] <Pyromanik> simon_w: it appears ListboxField is broken in 3.0.5
217: [03:44:00] <Pyromanik> I'm just getting a bog standard <select>
218: [03:45:00] <simon_w> ->setMultiple(true)
219: [03:45:00] <Pyromanik> ...
220: [03:46:00] <Pyromanik> ic
221: [03:46:00] <Pyromanik> kinda would expect taht to be true by default
222: [03:46:00] <Pyromanik> otherwise it draws a dropdown
223: [03:47:00] <Pyromanik> wicked, works sweet now.
224: [03:47:00] <Pyromanik> thanks :)
225: [03:49:00] <Pyromanik> err, filter?
226: [03:49:00] <Pyromanik> what's that multi match value?
227: [03:51:00] <Pyromanik> :ExactMatchMultiFilter
228: [03:52:00] <Pyromanik> oic
229: [03:52:00] <Pyromanik> ta
230: [03:52:00] <simon_w> No, you want :contains
231: [03:53:00] <simon_w> *PartialMatch
232: [03:53:00] <simon_w> There's no filter for FIND_IN_SET(), which is what you'd really want, but meh
233: [03:53:00] <Pyromanik> mmkay
234: [03:53:00] <Pyromanik> functional, thanks :)
235: [03:54:00] <simon_w> If you want
236: [03:54:00] <Pyromanik> meh, partial match works.
237: [03:54:00] <Pyromanik> simon_w: chalk that up for HackFest :P
238: [03:54:00] <Pyromanik> thanks :)
239: [03:54:00] <Pyromanik> hmm, I see. Perhaps I should make one?
240: [03:55:00] <Pyromanik> no new features atm anyways
241: [03:55:00] <simon_w> Eh, I'm half asleep. I'm not going to remember :p
242: [03:55:00] <Pyromanik> yeh well
243: [03:55:00] <simon_w> Screw that. Just work on 3.2 :p
244: [04:01:00] <unsignedint> Hey does anyone know, in Silverstripe 2.4, how to iterate over data from a static method on an object? eg I have an object called "OptionShippingModifier" that has a static method called "getOptions()" that returns an ArrayData of options. In my template, I want to do something like "<% control OptionShippingModifier::getOptions() %>$Name<% end_control %>"
245: [04:02:00] <unsignedint> SS just returns "Parse error: syntax error, unexpected '}' in {path to generated template}"
246: [04:03:00] <simon_w> unsignedint, if you've got an instance of OptionShippingModifier, you should just be able to loop over it, otherwise you need to write a getter for it
247: [04:15:00] <Colin[pi]> looks like it would have been fun though ;D
248: [04:15:00] <Colin[pi]> lol that stripe camp photo... cue banjo music
249: [04:15:00] * DigNZ quit (Quit: DigNZ)
250: [04:18:00] <EasyCo> So I'm kind of confused about how $this->extend($method) works. Am I right in saying that it's like extending a class and running parent::Method()?
251: [04:19:00] <EasyCo> *Extension
252: [04:19:00] <EasyCo> Except you your class just needs to extend extensions
253: [04:21:00] <EasyCo> So you can have multiple methods in your 'class Something extends Extension' which add functionality to different class methods?
254: [04:25:00] <Pyromanik> Colin[pi]: stripe camp?
255: [04:26:00] <Pyromanik> EasyCo: no, it's like a hook.
256: [04:26:00] <Pyromanik> for extensions
257: [04:26:00] <Colin[pi]> ss just posted it on fb
258: [04:26:00] * Shrike_Finland has joined #silverstripe
259: [04:27:00] <Pyromanik> EasyCo: think of it more like $this->runAllHooksFor('thisMethod', $with, $these, $params)
260: [04:27:00] <Pyromanik> ie all DataExtension or Extension classes
261: [04:27:00] <Pyromanik> it executes said method (if it exists) on all applied extensions to that object
262: [04:28:00] <Pyromanik> applied through static $extensions = array('extension', 'another');
263: [04:28:00] <EasyCo> What if there's more the method exists in more then one module?
264: [04:28:00] <Pyromanik> or Object::add_extension('ClassToExtend', 'ExtensionClass'(
265: [04:28:00] <Pyromanik> EasyCo: it runs them all.
266: [04:28:00] <EasyCo> Wow, that sentence made 0 sense.
267: [04:28:00] <EasyCo> Haha
268: [04:28:00] <Pyromanik> really?
269: [04:28:00] <Pyromanik> EasyCo: do you know what a decorator is?
270: [04:28:00] <EasyCo> My sentence, not yours
271: [04:29:00] <Pyromanik> irogue got net.split'd
272: [04:29:00] <Pyromanik> ah, yeh
273: [04:29:00] <ss23> 15:54:47 < Pyromanik> simon_w: chalk that up for HackFest :P
274: [04:29:00] <ss23> oh crap, speaking of hackfest, did we organise accomidation yet, Pyromanik?
275: [04:29:00] <Pyromanik> ss23: I thought you were booking
276: [04:29:00] <ss23> yep I can book now
277: [04:30:00] <ss23> Pyromanik: so did you want the breakfast rooms or did we needa check with irogue first?
278: [04:30:00] * Shrike_Finland quit (Client Quit)
279: [04:31:00] <ss23> mmk!
280: [04:31:00] <EasyCo> And if there are no methods it just returns and empty array/does nothing.
281: [04:31:00] <Pyromanik> ss23: we were going to check with irogue I thought.
282: [04:31:00] <Pyromanik> but then probably just get the twin ss23
283: [04:31:00] <Pyromanik> that breakfast deal looked like a room too small for a roll out bed to fit in
284: [04:31:00] <Pyromanik> (it was a double)
285: [04:31:00] <Pyromanik> we can always get breakfast at the hotel anyway
286: [04:32:00] <ss23> yeah
287: [04:32:00] <ss23> I will book tonight :D
288: [04:32:00] <Pyromanik> ok :)
289: [04:32:00] <Pyromanik> this way we get option to go out for breakky
290: [04:32:00] <ss23> m
291: [04:33:00] <Zauberfisch> lets assume I have: class A extends DataObject { has_one = array('Foo' => 'Page'); }
292: [04:33:00] <Zauberfisch> can I then savely overwrite Foo?
293: [04:34:00] <Zauberfisch> like so class B extends A { has_one = array('Foo' => 'File'); }
294: [04:36:00] <EasyCo> Umm, I think so. Using static::$has_one
295: [04:38:00] <Pyromanik> Zauberfisch: hmm, that's a good question.
296: [04:39:00] * DigNZ has joined #silverstripe
297: [04:39:00] <Pyromanik> did you go to sleep?
298: [04:39:00] <Pyromanik> simon_w: ?
299: [04:49:00] * simon_w|air has joined #silverstripe
300: [04:51:00] <simon_w|air> unsignedint, $Var.Debug?
301: [04:51:00] <unsignedint> Does anyone know how to dump the contents of a variable in a template?
302: [04:51:00] <simon_w|air> Pyromanik, well, home. Summarise?
303: [04:52:00] <willr> unsignedint <% debug $Var %> used to work.
304: [04:53:00] <EasyCo> If I add translatable to a dataobject I get the translation tab and the create button but clicking on it does nothing
305: [04:54:00] <EasyCo> But I'm not sure where to look. Any advice?
306: [04:54:00] <EasyCo> If I inspect the page and click Create, the Network tabs show nothing leading me to believe that nothing is even handling the click
307: [04:55:00] <simon_w|air> Zauberfisch, yes, but you really shouldn't.
308: [04:57:00] <Zauberfisch> simon_w|air but do you have any details/facts of what will go wrong?
309: [04:57:00] <simon_w|air> Oh, you just loop over class A, grab Foo and suddenly it's a different object type
310: [04:57:00] <Zauberfisch> simon_w|air I guessed so, there are all sort of troubles I can see coming from that
311: [04:58:00] <Zauberfisch> pfff
312: [04:58:00] <simon_w|air> It breaks the inheritance side of OOP :p
313: [04:58:00] <Zauberfisch> who cares about that
314: [04:59:00] <Pyromanik> Trying to make SS do Prototypal Inheritance Zauberfisch?
315: [05:02:00] * Pyromanik quit (Quit: leaving)
316: [05:02:00] <Pyromanik> home'
317: [05:02:00] <simon_w|air> Already there!
318: [05:03:00] <Zauberfisch> still am there!
319: [05:03:00] <Zauberfisch> but leaving now, time for breakfast I guess
320: [05:10:00] * DigNZ quit (Quit: DigNZ)
321: [05:10:00] <unsignedint> Whats the correct way of iterating over lists in a template? I have a list of identical arrays grouped within a parent array eg, array(array('Name' => 'Test', 'Price' => 12.00), array('Name' =>'Test1', 'Price' => 13.00)) and I want to iterate over them but ArrayData cant take an array of arrays or an array of objects
322: [05:10:00] <unsignedint> (SS 2.4 by the way)
323: [05:10:00] <unsignedint> man I hate inheriting old projects
324: [05:11:00] <simon_w|air> unsignedint, stick them in a DataObjectSet
325: [05:11:00] <simon_w|air> can't remember if you need to map each of them to an ArrayData first or not though
326: [05:11:00] <unsignedint> thanks
327: [05:11:00] <unsignedint> aha
328: [05:12:00] <unsignedint> I probably do knowing the template engine
329: [05:12:00] <simon_w|air> If you do, and are running PHP >=5.3, then that's just new DataObjectSet(array_map(function($a) { return new ArrayData($a); }, $values))
330: [05:12:00] <unsignedint> and the hate it has for basic arrays
331: [05:12:00] * Jedateach quit (Quit: Jedateach)
332: [05:14:00] <unsignedint> worked perfectly, cheers
333: [05:22:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
334: [05:22:00] * aragonne has joined #silverstripe
335: [05:30:00] <aragonne> Hey guys, I have an AJAX script that calls a controller method to get back some data and would like to authenticate the request with the Member(ship) system or the BasicAuth class. If I create a user in SS, send the username and password in the AJAX url, how can authenticate before sending the data back?
336: [05:33:00] <simon_w|air> aragonne, if you're sending it the BasicAuth way, BasicAuth::requireLogin('Realm', null, false); (change false to true if you want to allow logged in members to work too)
337: [05:33:00] * joelpitt_ quit (Remote host closed the connection)
338: [05:34:00] <simon_w|air> Otherwise, MemberAuthenticator::authenticate(array('Email' => $email, 'Password' => $password))
339: [05:37:00] <aragonne> simon_w: thanks! If I use the BasicAuth approach, how does the email and password get checked?
340: [05:38:00] <simon_w|air> You know how BasicAuth works, right?
341: [05:40:00] <aragonne> simon_w: just on a very high level (like BasicAuth::protect_entire_site()) but I couldn't find anything on how to authenticate without having to manually login with the popup form
342: [05:40:00] <simon_w|air> http://username:password@site.com/
343: [05:41:00] <aragonne> simon_w: ahhhhhh
344: [05:41:00] <simon_w|air> Or create the Authorization header yourself
345: [05:42:00] <aragonne> OK, thanks simon_w; I'll give both methods a shot and ping back if needed … thanks again!
346: [05:43:00] <simon_w|air> willr, who did you recommend for framing my degree? And do they have a website?
347: [05:46:00] <willr> I went to the framer in Khandallah http://www.galleryframes.co.nz
348: [05:47:00] <simon_w|air> A site that doesn't make me want to burn my eyes out! Already a plus
349: [05:48:00] <simon_w|air> Thanks
350: [05:48:00] <willr> Family friend. Was $120 I think for the one I went for, gold with green victoria piping and black square wood. Anti UV glass
351: [05:48:00] * wmk has joined #silverstripe
352: [05:49:00] <willr> bit more flash than your warehouse MDF one
353: [05:51:00] <simon_w|air> Well, the piece of paper says you should go fancy for it
354: [05:51:00] <simon_w|air> Already? Sheesh
355: [05:51:00] <simon_w|air> "Please note however, we have closed off all pre-Christmas orders. Framing orders will be taken this side of Christmas for collection mid to late January. "
356: [05:54:00] * eikonos quit (Read error: Connection reset by peer)
357: [05:55:00] * eikonos has joined #silverstripe
358: [05:55:00] * eikonos quit (Changing host)
359: [05:55:00] * eikonos has joined #silverstripe
360: [06:10:00] <EasyCo> When extending a class with Extension: class MyClass extends Extension {} At what point is init() triggered? The first time a hook matches?
361: [06:15:00] * willr quit (Quit: willr)
362: [06:17:00] <simon_w|air> Extensions don't have init() methods
363: [06:19:00] <EasyCo> The Translatable module extends Extension and has an init() method
364: [06:19:00] <Zauberfisch> but there is a controllerInit() hook if you attack to controller, isn't there?
365: [06:20:00] <simon_w|air> ZauberfischIf you attach to a SiteTree object
366: [06:20:00] <simon_w|air> Zauberfisch, If you attach to a SiteTree object
367: [06:21:00] <simon_w|air> EasyCo, the Translatable DataExtension has contentcontrollerInit, modelascontrollerInit and initgetEditForm. No init()
368: [06:22:00] <Sliver_> Could someone help a fellow brethren with some .htaccess rules?
369: [06:22:00] * Sliver_ has joined #silverstripe
370: [06:23:00] * Zauberfisch quit (Remote host closed the connection)
371: [06:23:00] <Sliver_> Production site seems to randomly append "framework/main.php?url=/" at the end of URLs.
372: [06:23:00] <Sliver_> Trailing slahes also seem to be an issue with them being changed to "url=/url=/"
373: [06:23:00] <EasyCo> https://github.com/silverstripe/silverstripe-translatable/blob/1.0/code/controller/TranslatableCMSMainExtension.php#L5-L11
374: [06:24:00] <simon_w|air> EasyCo, LeftAndMain has a $this->extend('init') in its init() method
375: [06:24:00] * Shrike_Finland has joined #silverstripe
376: [06:24:00] <Sliver_> Was that for me?
377: [06:25:00] <simon_w|air> Sliver_, try grabbing the latest .htaccess from https://github.com/silverstripe/silverstripe-installer/tree/master
378: [06:25:00] <EasyCo> Ahhhh
379: [06:25:00] <EasyCo> Sliver_: No sorry
380: [06:28:00] <Sliver_> Ah, thanks @simon_w, think that works.
381: [06:32:00] <EasyCo> Well, after all that. Translatable isn't very ModelAdmin friendly.
382: [06:33:00] <simon_w|air> Told you :p
383: [06:48:00] <EasyCo> I didn't want to face the reality of it
384: [06:48:00] <EasyCo> Kind of sucks that such a good framework/cms lacks a polished translation facility.
385: [07:06:00] * Sliver_ quit (Quit: Page closed)
386: [07:12:00] * Zauberfisch has joined #silverstripe
387: [07:14:00] * zfmf1 has joined #silverstripe
388: [07:18:00] * zfmf1 quit (Read error: No route to host)
389: [07:21:00] * Sticks38 quit (Read error: Connection reset by peer)
390: [07:25:00] * zfmf1 has joined #silverstripe
391: [07:40:00] * Kay2 has joined #silverstripe
392: [07:46:00] * Kay2 quit (Ping timeout: 245 seconds)
393: [07:48:00] * gordon__ has joined #silverstripe
394: [07:49:00] * gordon_ quit (Ping timeout: 240 seconds)
395: [07:51:00] * Liquide^2 quit ()
396: [07:51:00] * osterlaus has joined #silverstripe
397: [07:55:00] * gordon_ has joined #silverstripe
398: [07:56:00] * chillu has joined #silverstripe
399: [07:56:00] * kinglozzer has joined #silverstripe
400: [07:58:00] * K2 has joined #silverstripe
401: [07:58:00] * gordon__ quit (Ping timeout: 252 seconds)
402: [07:59:00] <K2> it just wont show
403: [07:59:00] <K2> still having trouble - the content box wont show in the admin section - I cant figure out why
404: [07:59:00] <K2> hey all
405: [07:59:00] <K2> no javascript errors or network errors
406: [08:00:00] <K2> wondering if it's an htaccess issue? but cant figure it out
407: [08:04:00] <simon_w|air> What's your framework/.htaccess look like?
408: [08:04:00] <Bollig|DesignCty> K2: very strange. For my 2 cents: make triple sure your assets/ directory is fully writable...
409: [08:05:00] * Ian_Harris quit (Quit: Leaving)
410: [08:06:00] <Zauberfisch> K2 the content box?
411: [08:07:00] <K2> when I look at the source code there's a textarea box there but there's nothing showing...
412: [08:07:00] <K2> yeah the textarea/tinymce editor
413: [08:08:00] * popeshoe has joined #silverstripe
414: [08:08:00] <K2> @simon_w|air - there's no .htaccess in the framework directory
415: [08:09:00] <simon_w|air> Well, there should be
416: [08:11:00] <K2> in the network tab should tiny_mce_gzip.php be returning a response?
417: [08:11:00] <K2> cool have put the default one in there - no change
418: [08:12:00] <simon_w|air> Yes
419: [08:13:00] <K2> Im getting query parameters
420: [08:13:00] <simon_w|air> Hang on, are you getting no query parameters and are requests going through index.php?
421: [08:14:00] <K2> which are returning a 500 error?
422: [08:14:00] <K2> just a 500 error
423: [08:14:00] <K2> tiny_mce_gzip.php?m=1360496305&js=1&plugins=contextmenu,table,emotions,paste,spellchecker,media,fullscreen,inlinepopups&themes=advanced&languages=en&diskcache=true&src=false
424: [08:14:00] <simon_w|air> What's the error?
425: [08:14:00] <simon_w|air> Well, that shouldn't be happening
426: [08:15:00] <simon_w|air> Uh, there's more to it than that
427: [08:15:00] <simon_w|air> What sort of 500 error? What's the actual error message
428: [08:16:00] * EasyCo quit (Quit: EasyCo)
429: [08:16:00] <K2> any tips to get it to display the 500 error
430: [08:17:00] <simon_w|air> Well, is it a SilverStripe one or an apache one?
431: [08:17:00] <K2> apache I think
432: [08:17:00] <simon_w|air> And anyway, check your error log
433: [08:22:00] <K2> nothing in the logs
434: [08:24:00] * sekjal__ has joined #silverstripe
435: [08:25:00] * irogue has joined #silverstripe
436: [08:25:00] * Error404NotFound has joined #silverstripe
437: [08:27:00] * sekjal_ quit (*.net *.split)
438: [08:27:00] * Guest46770 quit (*.net *.split)
439: [08:31:00] * lx-berlin_ has joined #silverstripe
440: [08:35:00] * osterlaus quit (Quit: Leaving.)
441: [08:53:00] <simon_w|air> dammit chillu, some warning would've been nice :p
442: [08:54:00] <chillu> :D
443: [08:54:00] <chillu> c'mon you love github emails!
444: [08:54:00] <simon_w|air> At least it's not the 4-5k that Zauberfisch flooded my server with :p
445: [08:55:00] * willmorgan has joined #silverstripe
446: [08:55:00] <chillu> it's only 78 tickets this time (plus ~100 comments)
447: [08:55:00] <chillu> and then open.ss.org is EMPTY
448: [08:56:00] <Zauberfisch> hooray
449: [08:56:00] <Zauberfisch> trac is finally dead in the ss workd
450: [08:57:00] <Zauberfisch> this is a good way to start the week
451: [08:57:00] <simon_w|air> Oh, here comes the missing 100 emails
452: [08:57:00] <Zauberfisch> *world
453: [08:58:00] * Mansi quit (Ping timeout: 245 seconds)
454: [08:59:00] <willr> Oh hello 298 github notifications. Chillu must have run his migration task then :D
455: [08:59:00] * willr has joined #silverstripe
456: [09:00:00] <chillu> woop woop!
457: [09:00:00] <ss23> lol
458: [09:01:00] <Zauberfisch> just push it
459: [09:01:00] <simon_w|air> And my poor, little server can't handle the flood :p
460: [09:01:00] <Zauberfisch> chillu you have write access on that repo
461: [09:01:00] <chillu> Ah sweet
462: [09:02:00] <willr> Thanks chillu.. Gonna keep trac around for a couple more months just for reference?
463: [09:02:00] <Zauberfisch> I am not going to apply patches by hand, no way
464: [09:02:00] <Zauberfisch> ^^
465: [09:02:00] <simon_w|air> Oh, I was going to look into scrutinizer again
466: [09:03:00] <chillu> I think we'll keep it around indefinitely, its a valueable resource for older discussions still (and context on commits)
467: [09:03:00] <chillu> Otherwise we would've had to move closed tickets as well
468: [09:04:00] <Zauberfisch> but we can turn it read only now for real
469: [09:04:00] <Zauberfisch> agreed, trac has to stay
470: [09:04:00] <willr> true true. Bit of history around the project anyway. As long as people can't create new records
471: [09:08:00] <simon_w|air> Bah, the comment I got on my scrutinizer issue doesn't help at all
472: [09:08:00] <simon_w|air> Oh well, still can't use it.
473: [09:10:00] <chillu> simon_w|air: How's scrutinizer going for ya?
474: [09:10:00] * ferge has joined #silverstripe
475: [09:12:00] * ferge quit (Client Quit)
476: [09:14:00] <simon_w|air> chillu, still can't run multiple tab_width settings
477: [09:15:00] <chillu> It would still be useful if we leave out the line length check and perform others, right?
478: [09:15:00] <willr> @simon_w|air you mentioned for https://github.com/silverstripe/sapphire/pull/1873 should put a different ID on wrapper tags. What makes most sense for you Form_FormFieldID_Holder for the container
479: [09:16:00] <simon_w|air> chillu, yeah. Would mean moving most of the rules into tabs, and then just leaving the line length check as an allowed failure on travis
480: [09:16:00] <chillu> Somebody keen to write some SS coding standards specific rules for https://github.com/fabpot/PHP-CS-Fixer ? :)
481: [09:16:00] <willr> woot, CS-Fixer would be great
482: [09:16:00] <simon_w|air> I'll give that a poke
483: [09:17:00] <simon_w|air> willr, we're using the same as the field's ID, just stripping the underscores. Though sticking _holder on the end makes a lot more sense
484: [09:17:00] <chillu> In the end, line length is one of the less important checks anyway if we actually checked against our conventions in scrutinizer (which isn't really possible at the moment)
485: [09:18:00] <chillu> Sometimes I think we should just adopt PSR1/2 for standards and be done with it ;) The statics underscored vs. camelcase is pretty much a 50/50 distribution anway at the moment hehe
486: [09:19:00] <simon_w|air> But PSR-* are just ewww :p
487: [09:20:00] <chillu> willr: How many tickets have you reviewed in trac in the last week or so?
488: [09:21:00] <willr> chillu 238.
489: [09:21:00] <willr> though I did cheat on most of them, and assign them to migrate :)
490: [09:21:00] <Zauberfisch> that script running with silverstripe standards would be awesome
491: [09:21:00] <willr> Was 238 in that report as of last wednesday.. 0 on sunday
492: [09:21:00] <Zauberfisch> simon_w chillu that would be great. I just hate those messed up lines and indents
493: [09:21:00] <chillu> !
494: [09:22:00] <chillu> Still had to look through them, so totally counts!
495: [09:29:00] <simon_w|air> Bah, forgot scrutinizer ignores the excludes in the ruleset
496: [09:32:00] <willmorgan> just saw the CS fixer thing - looks cool but yeah, PSR-* is ugly
497: [09:32:00] <willmorgan> how does one write rules for this?
498: [09:33:00] * K2 quit (Ping timeout: 245 seconds)
499: [09:34:00] * lx-berlin_ has left #silverstripe
500: [09:42:00] <ss23> If I want to stay in a hotel on Saturday night and leave on Sunday morning, do I book it for Saturday or Sunday?
501: [09:42:00] <willr> I don't mind the rules in psr-2, different to what we've built up in SS over the years but conventions are always good
502: [09:42:00] <willr> Checkin. You'll have to checkout 10am sunday usually.
503: [09:42:00] <ss23> mmk ty willr
504: [09:42:00] <willr> Saturday
505: [09:42:00] <ss23> So here's a question
506: [09:44:00] <simon_w|air> ss23, usually can't checkin until 1400-ish
507: [09:44:00] <ss23> irogue: halp
508: [09:44:00] <ss23> Hmm
509: [09:44:00] <ss23> What time is my arrival time?
510: [09:44:00] <ss23> when do I arrive at the hotel?
511: [09:45:00] <ss23> simon_w|air is going to take us out to breakfast and pay for mine ^.^
512: [09:45:00] <simon_w|air> What? I said you're paying for your own
513: [09:45:00] * aragonne quit (Quit: aragonne)
514: [09:45:00] <ss23> Me and irogue will be getting in way earlier, willr
515: [09:45:00] <willr> or we kicking off at 12pm to go later?
516: [09:45:00] <willr> hackfest starts when? 10am as usual?
517: [09:46:00] <willmorgan> yeah I just took a look, cheers
518: [09:46:00] <ss23> willr: I wouldn't turn down a nap at lunch time, considering it'll be like a 6am flight for me....
519: [09:46:00] <ss23> WHAT
520: [09:46:00] <willr> earlier than 10am? Oh on a saturday. I barely make it to work by 10am on a weekday/
521: [09:46:00] <ss23> haha willr
522: [09:46:00] <chillu> willmorgan: You can reuse most of the existing CS fixer class, but for example would have to rewrite https://github.com/fabpot/PHP-CS-Fixer/blob/master/Symfony/CS/Fixer/CurlyBracketsNewlineFixer.php to do the opposite
523: [09:47:00] <simon_w|air> failing: https://scrutinizer-ci.com/g/simonwelsh/silverstripe-framework/inspections/b52136de-06a6-400a-943c-7710443ddf75
524: [09:47:00] <chillu> nice!
525: [09:47:00] <willr> ss23 yeah esp if it's going to turn into the last late night hackfest. That got messy
526: [09:47:00] <chillu> And then write a new finder, see https://github.com/fabpot/PHP-CS-Fixer/tree/master/Symfony/CS/Finder
527: [09:47:00] <simon_w|air> chillu, passing: https://scrutinizer-ci.com/g/simonwelsh/silverstripe-framework/inspections/a1fce74a-95f8-4336-aa3d-eab07fff5158
528: [09:47:00] <simon_w|air> Does the ending character and tab checks
529: [09:48:00] <simon_w|air> Okay, drop the failing commit and then PR time
530: [09:49:00] <willmorgan> meh
531: [09:49:00] <willmorgan> how did they write PSR-2?
532: [09:49:00] <willmorgan> i'm looking at the "survey" bit here: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
533: [09:49:00] <ss23> Thank you! Your reservation has been confirmed. We are looking forward to your visit.
534: [09:49:00] <simon_w|air> willmorgan, a bunch of people picked what they wanted in it
535: [09:49:00] <ss23> Now me and pyro have a place to stay :D
536: [09:49:00] <chillu> so in terms of CS fixer speak, I think the following are feasible to batch-fix and then enforce through scrutinizer: visibility, return, short_tag, braces (adjusted), php_closing_tag, extra_empty_lines, controls_spaces (adjusted)
537: [09:50:00] <willmorgan> i think i would have actually preferred a bunch of guys who knew what they were doing get together, devise a standard, and annotate why
538: [09:51:00] <willmorgan> rather than just take a hodge podge set of projects and just glue things together
539: [09:51:00] <ss23> PHP is known for having people who know what they're doing
540: [09:51:00] <ss23> :P
541: [09:51:00] <willmorgan> oh, totally! :)
542: [09:52:00] <chillu> willr: https://github.com/silverstripe/sapphire/pull/1873#issuecomment-17802302 How "quick" was your "quick look"? ;) Or how likely will we run into layout issues because of it
543: [09:53:00] <willr> quick look was "go through each of the js and scss files in framework and framework/admin and look for #
544: [09:54:00] <willr> and the cms loaded, worked to muck around in
545: [09:54:00] <willr> so quick quick :P
546: [09:55:00] <willr> actually no, thats all old shit
547: [09:55:00] <willr> found a few instances of like #Form_EditorToolbarMediaForm I need to update
548: [09:56:00] <simon_w|air> Huh, looks like sapphire's still set up to try scrutinizer
549: [09:57:00] <simon_w|air> Or, it at least monitors pulls
550: [09:58:00] <simon_w|air> Or maybe it's just smart enough to pull in the run it did from my push into the pull request
551: [09:58:00] <simon_w|air> funky
552: [10:04:00] * osterlaus has joined #silverstripe
553: [10:05:00] * Shrike_Finland quit (Quit: Leaving.)
554: [10:14:00] <simon_w|air> Zauberfisch, sometimes
555: [10:14:00] * Shrike_Finland has joined #silverstripe
556: [10:14:00] <Zauberfisch> hey gents
557: [10:14:00] <Zauberfisch> has someone namespaced their mysite folder?
558: [10:15:00] <Zauberfisch> does it bring any draw backs to do it?
559: [10:15:00] <simon_w|air> My test setup on simon_w uses a folder called test instead of mysite if that's what you mean
560: [10:15:00] <simon_w|air> If people are stupid and hardcode in mysite
561: [10:15:00] <Zauberfisch> uhm, no, that should work for my, I use project() everywhere
562: [10:15:00] <Zauberfisch> no, I mean using php namespaces for class Page and so on
563: [10:16:00] <simon_w|air> Oh, I've been doing that since I hacked it into 2.4's manifest
564: [10:16:00] <Zauberfisch> and all working good I expect?
565: [10:16:00] <simon_w|air> Yup
566: [10:17:00] <simon_w|air> templates are a bit fun, but I'm fairly sure 3 does a better job of handling those than my 2.4 hack does
567: [10:17:00] <Zauberfisch> how about introducing a rule that modules need to be namespaced?
568: [10:18:00] <willmorgan> sounds like a nice idea for 3.2 :-P
569: [10:18:00] <willmorgan> problem is that's quite a bit of work
570: [10:18:00] <willmorgan> considering the breadths of modules available
571: [10:19:00] <willmorgan> how would you propose it's enforced?
572: [10:19:00] <Zauberfisch> hmm
573: [10:19:00] <Zauberfisch> no idea
574: [10:19:00] <Zauberfisch> if you see someone not using, call them names
575: [10:20:00] <willmorgan> one could put it in to the official module requirements
576: [10:20:00] <simon_w|air> While you're inside it?
577: [10:20:00] <Zauberfisch> is there a way to get the namespace of a class?
578: [10:20:00] <willmorgan> true simon
579: [10:20:00] <simon_w|air> "Official" usually implies maintained by SS
580: [10:20:00] <willmorgan> so if your module isn't namespaced it won't be made official
581: [10:21:00] * nitron is now known as Trinitr
582: [10:21:00] * nitron has joined #silverstripe
583: [10:21:00] <simon_w|air> __NAMESPACE__
584: [10:21:00] <willmorgan> Zauberfisch probably a way through Reflection
585: [10:21:00] <willmorgan> http://uk3.php.net/manual/en/reflectionclass.getnamespacename.php you might wanna use that in some sort of manifest builder
586: [10:21:00] <Zauberfisch> manifest could check for that, and if it does not find it, throw a you are an idition expection
587: [10:22:00] <Zauberfisch> ah, thats perfect: if (!$function->inNamespace()) user_error()
588: [10:22:00] <simon_w|air> I don't want see that happen. Enforcing namespaces is horrible
589: [10:22:00] <willmorgan> :)
590: [10:22:00] <willmorgan> Deprecation::notice!
591: [10:22:00] <willmorgan> user_error?!
592: [10:23:00] <simon_w|air> Enforcing anything really is
593: [10:23:00] <simon_w|air> Oh, you don't even need reflection. The ClassManifest already parses the namespace from the file
594: [10:23:00] <willmorgan> mostly coz you'd have to know what that class is for
595: [10:23:00] <willmorgan> i would imagine enforcing namespaces is quite hard
596: [10:23:00] <Zauberfisch> willmorgan I love user error, people will have a hard time catching them >:D
597: [10:24:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
598: [10:25:00] <simon_w|air> But enforcing namespaces: no, bad :p
599: [10:25:00] * samthejarvis has joined #silverstripe
600: [10:26:00] <simon_w|air> Next thing, you'll want to enforce PSR-0, change the autoloader and have everything break if you "typo" a namespace/class to the wrong case
601: [10:33:00] <Zauberfisch> simon_w|air but you have to admit it is rather annoying to have 2 modules not being compatible because both have a same class
602: [10:33:00] <samthejarvis> new install of 3.1 via composer, getting the old "The webserver user needs to be able to write to this file: /tmp/silverstripe-cache", we have a localised "silverstripe-cache" with no permission restrictions, running php 5.3.4, fastcgi, anyone got a fix?
603: [10:35:00] <simon_w|air> Zauberfisch, that would require using modules :p
604: [10:36:00] * zfmf1 has left #silverstripe
605: [10:37:00] <samthejarvis> http://www.electrictoolbox.com/silverstripe-cache-directory/ would appear to be the solution to the above, for those browsing this log in future
606: [10:37:00] <Zauberfisch> simon_w|air while I agree that you can write the code for most things faster than getting some badly coded, poorly thought through module to work
607: [10:38:00] <Zauberfisch> gridfield extensions
608: [10:38:00] <Zauberfisch> there are certainly some cases, where modules are a good way to go
609: [10:38:00] <Zauberfisch> for example the work of ajshort
610: [10:39:00] <simon_w|air> Zauberfisch, I'm also entirely a backend dev. I don't need to care about silly little things like that :p
611: [10:39:00] <Zauberfisch> lucky you I guess (:
612: [10:40:00] <simon_w|air> Until people keep badgering me about things I've never used!
613: [10:40:00] <simon_w|air> Anyway, sleep.
614: [10:40:00] * simon_w|air quit (Quit: This computer has gone to sleep)
615: [10:52:00] * zfmf1 has joined #silverstripe
616: [11:03:00] * travis-ci has left #silverstripe
617: [11:03:00] * travis-ci has joined #silverstripe
618: [11:03:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#21 (scrut - caa1f78 : Simon Welsh): The build has errored.
619: [11:03:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/05d13054979e^...caa1f789374e
620: [11:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/7117304
621: [11:05:00] * Werner_2_ has joined #silverstripe
622: [11:08:00] * willr quit (Quit: willr)
623: [11:09:00] * WillM has joined #silverstripe
624: [11:12:00] * Guest46770 has joined #silverstripe
625: [11:12:00] * Zauberfisch_ has joined #silverstripe
626: [11:12:00] * Zauberfisch_ quit (Excess Flood)
627: [11:12:00] * Zauberfisch_ has joined #silverstripe
628: [11:12:00] * Zauberfisch_ quit (Excess Flood)
629: [11:12:00] * samthejarvis quit (Ping timeout: 245 seconds)
630: [11:12:00] * Trinitr quit (Ping timeout: 245 seconds)
631: [11:12:00] * willmorgan quit (Ping timeout: 260 seconds)
632: [11:12:00] * Zauberfisch quit (Ping timeout: 260 seconds)
633: [11:12:00] * wmk quit (Ping timeout: 260 seconds)
634: [11:12:00] * irogue quit (Ping timeout: 255 seconds)
635: [11:16:00] * mattybalaam has joined #silverstripe
636: [11:17:00] * mattybalaam quit (Client Quit)
637: [11:18:00] * mattybalaam has joined #silverstripe
638: [11:21:00] * Guest46770 quit (*.net *.split)
639: [11:21:00] * chillu quit (*.net *.split)
640: [11:21:00] * kerosene quit (*.net *.split)
641: [11:21:00] * mattybalaam quit (*.net *.split)
642: [11:25:00] * chillu has joined #silverstripe
643: [11:25:00] * Guest46770 has joined #silverstripe
644: [11:25:00] * mattybalaam has joined #silverstripe
645: [11:25:00] * kerosene has joined #silverstripe
646: [11:37:00] * mattybalaam quit (Ping timeout: 245 seconds)
647: [11:45:00] <ec8or_> anyone had forms not applying error messages?
648: [11:46:00] <ec8or_> i am getting either that, or a "required" span is added but is empty (latter only happens with checkboxes)
649: [11:51:00] * travis-ci has joined #silverstripe
650: [11:51:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/7117447
651: [11:51:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/caa1f789374e...36c1b75f3d3f
652: [11:51:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#22 (scrut - 36c1b75 : Simon Welsh): The build has errored.
653: [11:51:00] * travis-ci has left #silverstripe
654: [11:53:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/a99c829ed1db...f45621b07ee1
655: [11:53:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#22 (3.0 - f45621b : Will Rossiter): The build passed.
656: [11:53:00] * travis-ci has joined #silverstripe
657: [11:53:00] * travis-ci has left #silverstripe
658: [11:53:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/7117442
659: [12:07:00] <travis-ci> [travis-ci] silverstripe/sapphire#2231 (3.1 - 15f7c88 : Sean Harvey): The build passed.
660: [12:07:00] * travis-ci has left #silverstripe
661: [12:07:00] * travis-ci has joined #silverstripe
662: [12:07:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7117189
663: [12:07:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fd1aa197d5f3...15f7c884f8a2
664: [12:12:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#23 (scrut - e97c673 : Simon Welsh): The build failed.
665: [12:12:00] * simon__w has joined #silverstripe
666: [12:12:00] * travis-ci has joined #silverstripe
667: [12:12:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/36c1b75f3d3f...e97c673da3ba
668: [12:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/7117521
669: [12:12:00] * travis-ci has left #silverstripe
670: [12:12:00] * kinglozz_ has joined #silverstripe
671: [12:13:00] * howardgr_ has joined #silverstripe
672: [12:13:00] * jrthomer has joined #silverstripe
673: [12:16:00] * simon_w quit (Ping timeout: 264 seconds)
674: [12:16:00] * howardgrigg quit (Ping timeout: 264 seconds)
675: [12:16:00] * kinglozzer quit (Ping timeout: 264 seconds)
676: [12:18:00] * jrthomer quit (Ping timeout: 255 seconds)
677: [12:25:00] <travis-ci> [travis-ci] simonwelsh/silverstripe-framework#24 (scrut - 795c9a6 : Simon Welsh): The build has errored.
678: [12:25:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/simonwelsh/silverstripe-framework/builds/7117566
679: [12:25:00] * travis-ci has left #silverstripe
680: [12:25:00] * travis-ci has joined #silverstripe
681: [12:25:00] <travis-ci> [travis-ci] Change view : https://github.com/simonwelsh/silverstripe-framework/compare/e97c673da3ba...795c9a68d375
682: [12:27:00] * simon__w quit (Read error: Connection reset by peer)
683: [12:27:00] * simon__w has joined #silverstripe
684: [12:31:00] * Shrike_Finland quit (Quit: Leaving.)
685: [12:35:00] * webgueset has joined #silverstripe
686: [12:35:00] * Colin[pi] quit ()
687: [12:50:00] * zfmf1 quit (*.net *.split)
688: [12:51:00] * jrthomer has joined #silverstripe
689: [12:58:00] * jrthomer quit (Ping timeout: 260 seconds)
690: [13:01:00] * UndefinedOffset has joined #silverstripe
691: [13:06:00] * osterlaus quit (Quit: Leaving.)
692: [13:06:00] * jrthomer has joined #silverstripe
693: [13:10:00] * jrthomer_ has joined #silverstripe
694: [13:12:00] * jrthomer quit (Ping timeout: 255 seconds)
695: [13:12:00] * jrthomer__ has joined #silverstripe
696: [13:14:00] * jrthomer__ quit (Remote host closed the connection)
697: [13:15:00] * jrthomer has joined #silverstripe
698: [13:16:00] * jrthomer_ quit (Ping timeout: 260 seconds)
699: [13:18:00] * pewpew has joined #silverstripe
700: [13:18:00] * pewpew is now known as prewprew
701: [13:19:00] * webgueset quit (Ping timeout: 245 seconds)
702: [13:19:00] <prewprew> I have a pagetype C that inherits A > B > C where A is a pagetype provided by a module.. when using page type A the custom layout (/module/templates/Layout/A.ss) gets rendered correctly, however when using C the default Page.ss (from the theme) is rendered, not the A.ss (from the module)
703: [13:20:00] <prewprew> i have a hard time making sense of the showtemplate output, or rather why it chooses the default Layout instead of the module one (since it works on parent pages)
704: [13:21:00] * jrthomer quit (Ping timeout: 260 seconds)
705: [13:23:00] <prewprew> where should i start debugging the template switching logic?
706: [13:25:00] <discorpia> i think i end up in that situation sometimes by forgetting to extend the controller
707: [13:25:00] <discorpia> prewprew: hmmm, that sounds awfully familiar. have you made sure you're extending both the page and the page_controller correctly?
708: [13:28:00] * sekjal__ quit (*.net *.split)
709: [13:29:00] * popeshoe quit (*.net *.split)
710: [13:29:00] * eikonos quit (*.net *.split)
711: [13:38:00] <prewprew> discorpia: omg thank you, i could probably have spent another half an hour looking for that!
712: [13:38:00] <prewprew> indeed that was the problem
713: [13:39:00] * jrthomer has joined #silverstripe
714: [13:40:00] <discorpia> haha, i'm glad my mistakes can help someone else ;D
715: [13:42:00] * spronk quit (Ping timeout: 256 seconds)
716: [13:51:00] * prewprew quit (Ping timeout: 245 seconds)
717: [13:53:00] * willmorgan has joined #silverstripe
718: [13:54:00] <travis-ci> [travis-ci] chillu/sapphire#150 (pulls/folder-creation - 68af840 : Ingo Schommer): The build failed.
719: [13:54:00] * travis-ci has left #silverstripe
720: [13:54:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7123077
721: [13:54:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/1eadff5a4f4f^...68af8409a555
722: [13:54:00] * travis-ci has joined #silverstripe
723: [13:54:00] <DesignerX> hi guys, when using DataObject::get_one(ClassName,$Filter) , whats the format of $Filter ? is it an array or a string like "ColumnName = Value" ?
724: [13:54:00] * DesignerX has joined #silverstripe
725: [13:55:00] * kinglozz_ quit (*.net *.split)
726: [13:55:00] * howardgr_ quit (*.net *.split)
727: [13:55:00] * Guest46770 quit (*.net *.split)
728: [13:55:00] * jrthomer quit (*.net *.split)
729: [13:55:00] * DesignerX quit (*.net *.split)
730: [13:55:00] * chillu quit (*.net *.split)
731: [13:56:00] * DesignerX has joined #silverstripe
732: [13:56:00] * kerosene quit (*.net *.split)
733: [13:56:00] <willmorgan> anyone else having trouble with freenode today?
734: [13:56:00] * kinglozzer has joined #silverstripe
735: [13:58:00] * kerosene has joined #silverstripe
736: [13:58:00] * 45PAACIVK has joined #silverstripe
737: [13:58:00] * Guest46770 has joined #silverstripe
738: [13:58:00] * chillu has joined #silverstripe
739: [13:58:00] * jrthomer has joined #silverstripe
740: [13:58:00] * howardgr_ has joined #silverstripe
741: [13:58:00] * kinglozz_ has joined #silverstripe
742: [13:59:00] * irogue has joined #silverstripe
743: [14:00:00] * Guest46770 quit (Ping timeout: 259 seconds)
744: [14:01:00] <DesignerX> hi
745: [14:01:00] <g4b0_> If I drive through all link
746: [14:01:00] <g4b0_> is it possible to link directly to a DO edit page?
747: [14:01:00] * LoveDuckie has joined #silverstripe
748: [14:01:00] * 45PAACIVK quit (Ping timeout: 276 seconds)
749: [14:01:00] * kinglozz_ quit (Ping timeout: 276 seconds)
750: [14:01:00] * g4b0_ has joined #silverstripe
751: [14:01:00] <g4b0_> HI all
752: [14:04:00] * Zauberfisch|idle quit (Excess Flood)
753: [14:05:00] <g4b0_> but
754: [14:05:00] * WillM quit (Remote host closed the connection)
755: [14:05:00] <g4b0_> and I click the row in my GridFIeld
756: [14:05:00] <DesignerX> should be easy done if the objects managed by ModelAdmin
757: [14:05:00] <g4b0_> O_o
758: [14:05:00] <g4b0_> I'm redirected to /admin/pages/edit/EditForm/field/Regulations/item/66/edit
759: [14:05:00] <g4b0_> DesignerX: It's a GridField inside a Page
760: [14:05:00] <g4b0_> If I try to access the link directly works
761: [14:05:00] <g4b0_> if I void the browser cache
762: [14:05:00] <g4b0_> re-login with the same user
763: [14:05:00] <g4b0_> I get the following error:
764: [14:05:00] <g4b0_> I can't handle sub-URLs of a Form object.
765: [14:05:00] * Zauberfisch|idle has joined #silverstripe
766: [14:05:00] <DesignerX> g4b0_: let me do a test here
767: [14:06:00] <g4b0_> while (DesignerX testing) sleep(1);
768: [14:07:00] <kinglozzer> Zauberfisch|idle: I was secretly hoping someone would put the effort into getting lolcat back when I commented on that old ticket ;)
769: [14:07:00] <kinglozzer> Good stuff
770: [14:07:00] <DesignerX> while (DesignerX testing) If(YouCanSleep = GoodLuck)
771: [14:08:00] <DesignerX> g4b0_: I edited an object on a page using the GF, I copied the URL & accessed it from a new browser sesstion , it works fine
772: [14:08:00] <g4b0_> :)
773: [14:09:00] <g4b0_> ...
774: [14:09:00] <DesignerX> so http://localhost/_my_projects/SS3/SS3Loaded_2/admin/pages/edit/EditForm/field/Sections/item/$ObjectIDHere/edit
775: [14:10:00] <DesignerX> if you trying to make a quick edit link from the front end, all you need to get is the ObjectID & you should be fine
776: [14:10:00] <g4b0_> did you cleaned the cache?
777: [14:10:00] <g4b0_> after accessing the edit clicking the GF row
778: [14:11:00] <g4b0_> 3.1-beta3
779: [14:11:00] <g4b0_> cut&pasting the link works well
780: [14:11:00] <g4b0_> maybe some session issue?
781: [14:11:00] <DesignerX> g4b0_: using SS3.1 ?
782: [14:13:00] <DesignerX> g4b0_: tested again in a new browser cleard cashe & all
783: [14:14:00] <DesignerX> works fine, I dont this is is related to current sesstion anyways
784: [14:16:00] <g4b0_> 3.1-beta3 also for you?
785: [14:17:00] * osterlaus has joined #silverstripe
786: [14:18:00] <DesignerX> yep
787: [14:22:00] <osterlaus> hi there! i'm working on the DateField and the jQuery datepicker. is there a way to enable it for just *all* datefields, besides overriding scaffoldformfields() in all classes that use a datefield?
788: [14:26:00] <g4b0_> DesignerX: really strange... the error message is generated by the last else branch of RequestHandler::handle request
789: [14:28:00] * discorpia has joined #silverstripe
790: [14:28:00] <g4b0_> no errors
791: [14:28:00] <g4b0_> no warning
792: [14:28:00] * discorpia quit (Ping timeout: 256 seconds)
793: [14:36:00] <osterlaus> no ideas around?
794: [14:37:00] <DesignerX> osterlaus: extend that class then override any function you need to enable it
795: [14:37:00] * Marvanni quit (Ping timeout: 264 seconds)
796: [14:37:00] * Marvanni has joined #silverstripe
797: [14:38:00] <osterlaus> and: how should I be sure that if my models use a DateField, it is rendered with my new type?
798: [14:38:00] <osterlaus> that sounds strange. why should i extend a basic ss-class where setOption('showcalendar', true) should be sufficient?
799: [14:40:00] <DesignerX> osterlaus: I must have miss read your question, I think being 12:40 am has something to do with that ..
800: [14:45:00] * Guest46770 has joined #silverstripe
801: [14:47:00] * irogue quit (Ping timeout: 250 seconds)
802: [14:54:00] * osterlaus quit (Quit: Leaving.)
803: [15:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/7125319
804: [15:04:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/commit/c8364e6e72e5
805: [15:04:00] * travis-ci has left #silverstripe
806: [15:04:00] * travis-ci has joined #silverstripe
807: [15:04:00] <travis-ci> [travis-ci] chillu/sapphire#151 (pulls/uploadfield-folder-label - c8364e6 : Ingo Schommer): The build failed.
808: [15:07:00] * chillu quit (Quit: chillu)
809: [15:15:00] * joelpittet has joined #silverstripe
810: [15:18:00] * micmania1 has joined #silverstripe
811: [15:26:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
812: [15:33:00] * gelignite has joined #silverstripe
813: [15:39:00] <gordon_> http://i.imgur.com/6pyrQEB.jpg
814: [15:53:00] * UncleCheese has joined #silverstripe
815: [15:53:00] * joelpittet quit (Remote host closed the connection)
816: [15:59:00] * g4b0_ quit (Quit: Sto andando via)
817: [16:06:00] * kinglozzer quit (Remote host closed the connection)
818: [16:08:00] * UncleCheese quit (Quit: UncleCheese)
819: [16:11:00] * spronk2 has joined #silverstripe
820: [16:15:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
821: [16:17:00] * catcher has joined #silverstripe
822: [16:18:00] * spronk2_ quit (Ping timeout: 256 seconds)
823: [16:30:00] <willmorgan> added some graceful Oauth error handling: https://github.com/BetterBrief/silverstripe-opauth
824: [16:32:00] * howardgrigg has joined #silverstripe
825: [16:33:00] * howardgr_ quit (Read error: No buffer space available)
826: [17:09:00] * [1]LoveDuckie has joined #silverstripe
827: [17:09:00] * irogue has joined #silverstripe
828: [17:12:00] * willmorgan quit (Ping timeout: 245 seconds)
829: [17:18:00] * LoveDuckie quit (*.net *.split)
830: [17:18:00] * [1]LoveDuckie is now known as LoveDuckie
831: [17:18:00] * Guest46770 quit (*.net *.split)
832: [17:18:00] * catcher quit (*.net *.split)
833: [17:18:00] * gelignite quit (*.net *.split)
834: [17:24:00] * catcher has joined #silverstripe
835: [17:32:00] * Guest46770 has joined #silverstripe
836: [17:34:00] * gelignite has joined #silverstripe
837: [17:43:00] * jrthomer quit (*.net *.split)
838: [17:43:00] * irogue quit (*.net *.split)
839: [17:43:00] * kerosene quit (*.net *.split)
840: [17:43:00] * micmania1 quit (*.net *.split)
841: [17:45:00] <FrozenFire> Latest 3.1
842: [17:45:00] <FrozenFire> Hrmm, did someone botch Zend_Locale?
843: [17:45:00] <FrozenFire> PHP Fatal error: Class 'Zend_Locale_Format' not found in /var/www/clients/vhosts/sms/framework/forms/NumericField.php on line 21
844: [17:46:00] <FrozenFire> wilr
845: [17:49:00] * kerozene has joined #silverstripe
846: [17:55:00] <FrozenFire> https://github.com/silverstripe/sapphire/pull/1941
847: [17:58:00] * jrthomer has joined #silverstripe
848: [17:59:00] * Estr3s has joined #silverstripe
849: [18:01:00] <Estr3s> hi all!
850: [18:02:00] <FrozenFire> Sup dawg
851: [18:03:00] <Estr3s> working with translatable module today... let's see how much it takes :P
852: [18:10:00] <FrozenFire> Plenty
853: [18:20:00] * jrthomer quit (*.net *.split)
854: [18:20:00] * Estr3s quit (*.net *.split)
855: [18:27:00] * gordon_ quit (Remote host closed the connection)
856: [18:46:00] * catcher quit (Ping timeout: 264 seconds)
857: [18:46:00] * eikonos has joined #silverstripe
858: [18:46:00] * eikonos quit (Changing host)
859: [18:46:00] * eikonos has joined #silverstripe
860: [18:48:00] * gelignite has joined #silverstripe
861: [18:48:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
862: [18:55:00] * catcher has joined #silverstripe
863: [19:12:00] * irogue has joined #silverstripe
864: [19:16:00] * Guest46770 quit (Ping timeout: 268 seconds)
865: [19:22:00] * xyphoid quit (Ping timeout: 264 seconds)
866: [19:29:00] <FrozenFire> Blegh. Trying to make a Point DBField for storing my coordinates, so I can use MySQL's spatial engine...
867: [19:29:00] <FrozenFire> Complicated as fuck
868: [19:32:00] <FrozenFire> Ucky. No way that I can tell to augment the select operation to perform special SQL
869: [19:35:00] <FrozenFire> Ah, maybe addToQuery
870: [19:49:00] * Werner_2_ is now known as wmk
871: [19:49:00] <Werner_2_> FrozenFire, wasn't there a spacial extension for silverstripe? maybe outdated but a good start for you
872: [19:51:00] <FrozenFire> Meh. I know how it's done in SQL. Just a matter of hacking around SS's iffy SQL engine
873: [19:52:00] <FrozenFire> And prepping the value for DB as GeomFromText('Point({$value})')
874: [19:52:00] <FrozenFire> That should be idempotent
875: [19:52:00] <FrozenFire> Which simply means removing the existing straight select, and replacing it with AsText(field)
876: [19:53:00] <wmk> FrozenFire, sounds interesting, never played w/ mysql spacial extension yet.
877: [19:54:00] <wmk> ok, gis extension used normal numeric fields
878: [19:54:00] <FrozenFire> Idd
879: [19:56:00] <wmk> FrozenFire, http://www.zenserve.eu/php-programming/cms/saving-point-geometries-in-silverstripe-dataobjects/
880: [19:57:00] <FrozenFire> Double-insert with the SQL rewritten
881: [19:57:00] <wmk> ehem, after reading... yes
882: [19:57:00] <FrozenFire> Thanks, but that's a really bad hack. :P
883: [19:59:00] <wmk> so good luck then ;) have to leave
884: [19:59:00] * wmk is now known as wmk|away
885: [20:05:00] <simon__w> FrozenFire, use a CompositeDBField :p
886: [20:05:00] * simon__w is now known as simon_w
887: [20:07:00] <FrozenFire> simon_w, But it's not. ;)
888: [20:07:00] <simon_w> So?
889: [20:07:00] <FrozenFire> So I'm going to be a pedantic dick about it
890: [20:08:00] <FrozenFire> I'll give it a go. :P
891: [20:08:00] <FrozenFire> Not sure if it'll help any, though
892: [20:08:00] <FrozenFire> It's not like it's multiple fields.
893: [20:08:00] <FrozenFire> It's custom SQL
894: [20:08:00] <FrozenFire> Spatial fields are a sort of binary field
895: [20:08:00] <simon_w> So, just like handling an array field?
896: [20:08:00] <simon_w> It really should be renamed, but you be like that then :p
897: [20:08:00] <simon_w> Also, here's how I'm handling an array field with postgres: http://sspaste.com/paste/show/5191480b4ef69
898: [20:09:00] <FrozenFire> Maybe I missed something in my reading of them
899: [20:09:00] <FrozenFire> Hrmm
900: [20:09:00] <FrozenFire> Not really. They require actual SQL to get the value in and out
901: [20:09:00] <FrozenFire> Didn't seem like you could augment the actual SQL in the addToQuery
902: [20:09:00] <simon_w> You get setValue(), addToQuery() and prepValueForDB(). All which handle raw SQL and raw values
903: [20:10:00] <FrozenFire> I suppose maybe $query->selectField("AsText({$this->name})", $this->name);
904: [20:10:00] <FrozenFire> But yea
905: [20:10:00] <FrozenFire> But rather just muddle with the fields to be selected
906: [20:10:00] <simon_w> $query->selectField('Raw SQL for select clause goes here')
907: [20:11:00] <FrozenFire> Been making my day hard.
908: [20:11:00] <FrozenFire> https://github.com/silverstripe/sapphire/pull/1941
909: [20:11:00] <FrozenFire> :P
910: [20:11:00] <FrozenFire> Now that you're awake you can fix wilr's bork
911: [20:11:00] <FrozenFire> Goodie. Thanks
912: [20:11:00] <simon_w> yeah
913: [20:12:00] <FrozenFire> He used Zend_Locale_Format without making sure it's actually loded
914: [20:12:00] <FrozenFire> loaded**
915: [20:12:00] <FrozenFire> Since I don't think the autoloader will read shit out of thirdparty
916: [20:12:00] <simon_w> Nah, it doesn't
917: [20:13:00] <FrozenFire> Danke
918: [20:17:00] <simon_w> Hmm, should've edited that before I merged. Oh well, too late.
919: [20:17:00] <simon_w> Shouldn't have the THIRDPARTY_DIR bit
920: [20:18:00] <simon_w> Should just be 'Zend/blah'
921: [20:18:00] <FrozenFire> Since it's a thirdparty lib
922: [20:18:00] <simon_w> Yeah, the constant
923: [20:18:00] <FrozenFire> THIRDPARTY_PATH is what I used
924: [20:18:00] <FrozenFire> Hrmm
925: [20:18:00] <FrozenFire> include_path buggery?
926: [20:18:00] <FrozenFire> Wasn't aware that that worked
927: [20:18:00] <FrozenFire> ?
928: [20:19:00] <simon_w> third party's stuck in the include path, yeah
929: [20:19:00] <simon_w> Means crazy people like me can override Zend
930: [20:19:00] <simon_w> Eh, someone else can fix it if they ever come across it. Which I highly doubt.
931: [20:19:00] <FrozenFire> :P
932: [20:20:00] * UndefinedOffset quit (Quit: Leaving.)
933: [20:21:00] * ARNHOE has joined #silverstripe
934: [20:22:00] <simon_w> Oops, made my account on the db server expire instead of just the password
935: [20:23:00] * ARNHOE quit (Remote host closed the connection)
936: [20:25:00] * ARNHOE has joined #silverstripe
937: [20:26:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7135056
938: [20:26:00] <simon_w> you broke it FrozenFire!
939: [20:26:00] * travis-ci has left #silverstripe
940: [20:26:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bb6283740a3f...1b3f817862ed
941: [20:26:00] <travis-ci> [travis-ci] silverstripe/sapphire#2243 (3.1 - 1b3f817 : Simon Welsh): The build has errored.
942: [20:26:00] * travis-ci has joined #silverstripe
943: [20:28:00] <FrozenFire> Weee
944: [20:28:00] * jrthomer has joined #silverstripe
945: [20:28:00] * xyphoid has joined #silverstripe
946: [20:29:00] <FrozenFire> Pretty sure it's nothing to do with my stuff. :P
947: [20:29:00] <simon_w> Making me use my powers to fix it or something :p
948: [20:29:00] <FrozenFire> Just the 120 character thing, methinks
949: [20:29:00] <simon_w> So? Still your fault :p
950: [20:30:00] * DigNZ has joined #silverstripe
951: [20:30:00] <simon_w> Composer shat itself
952: [20:30:00] * DigNZ has joined #silverstripe
953: [20:30:00] <simon_w> Nope, that's an allowed failure
954: [20:30:00] * DigNZ quit (Remote host closed the connection)
955: [20:31:00] <FrozenFire> GitHub was having storage server problems with composer/installers, iirc.
956: [20:31:00] <FrozenFire> Probably resolved, though
957: [20:31:00] <FrozenFire> That's to be expected. :P
958: [20:32:00] <simon_w> I just need to re-run the build usually
959: [20:32:00] <FrozenFire> Not sure if maybe Travis has a fucked clone
960: [20:32:00] <simon_w> And it was that that was failing
961: [20:32:00] * Pyromanik has joined #silverstripe
962: [20:32:00] <simon_w> It does a fresh clone each time
963: [20:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bb6283740a3f...1b3f817862ed
964: [20:33:00] <simon_w> Green!
965: [20:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7135056
966: [20:33:00] * travis-ci has left #silverstripe
967: [20:33:00] * travis-ci has joined #silverstripe
968: [20:33:00] <travis-ci> [travis-ci] silverstripe/sapphire#2243 (3.1 - 1b3f817 : Simon Welsh): The build passed.
969: [20:36:00] * ARNHOE quit (Remote host closed the connection)
970: [20:40:00] * nickmolhoek quit (Remote host closed the connection)
971: [20:40:00] * nickmolhoek has joined #silverstripe
972: [20:41:00] * nickmolhoek has joined #silverstripe
973: [20:42:00] * chillu has joined #silverstripe
974: [20:49:00] * simon_w quit (Ping timeout: 252 seconds)
975: [20:50:00] * simon_w has joined #silverstripe
976: [20:54:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
977: [21:07:00] <Pyromanik> Green?
978: [21:08:00] <simon_w> tests
979: [21:08:00] <Pyromanik> [8:33] <travis-ci> [travis-ci] silverstripe/sapphire#2243 (3.1 - 1b3f817 : Simon Welsh): The build passed.
980: [21:08:00] <Pyromanik> oic
981: [21:11:00] <Pyromanik> where is level defiend?
982: [21:11:00] <Pyromanik> is it one of those fancy template global things?
983: [21:13:00] <Pyromanik> oh, on SiteTree
984: [21:13:00] <Pyromanik> makes sense
985: [21:26:00] * Zauberfisch|idle quit (Ping timeout: 250 seconds)
986: [21:26:00] * Zauberfisch|idle has joined #silverstripe
987: [21:38:00] * willr has joined #silverstripe
988: [21:58:00] * priithansen quit (Ping timeout: 246 seconds)
989: [22:06:00] * DigNZ1 has joined #silverstripe
990: [22:06:00] * priithansen has joined #silverstripe
991: [22:06:00] * DigNZ quit (Ping timeout: 256 seconds)
992: [22:07:00] * discorpia quit (Remote host closed the connection)
993: [22:07:00] * discorpia has joined #silverstripe
994: [22:23:00] <catcher> willr, anything in the comment module to require moderation for non-members only?
995: [22:23:00] * willr quit (Read error: Connection reset by peer)
996: [22:24:00] * willr has joined #silverstripe
997: [22:25:00] * nickmolhoek quit (Ping timeout: 264 seconds)
998: [22:26:00] * nickmolhoek quit (Remote host closed the connection)
999: [22:26:00] * nickmolhoek has joined #silverstripe
1000: [22:27:00] * nickmolhoek has joined #silverstripe
1001: [22:30:00] <unsignedint> In a silverstripe form, how do you know if validation has failed or succeeded?
1002: [22:30:00] <unsignedint> SS 2.4 by the way
1003: [22:31:00] <FrozenFire> :P
1004: [22:31:00] <FrozenFire> By upgrading to SS3
1005: [22:31:00] <FrozenFire> But seriously, the form won't call its action if it doesn't validate using its validator
1006: [22:32:00] <FrozenFire> It'll redirect back and populate the session with the errors, to be loaded by the form
1007: [22:32:00] <unsignedint> how do I change where it redirects back to? its not redirecting back to the right place
1008: [22:33:00] <FrozenFire> BackURL is the key to most of it
1009: [22:33:00] * Colin[pi] has joined #silverstripe
1010: [22:33:00] <Colin[pi]> good morning!
1011: [22:33:00] <FrozenFire> You can do a number of things, iirc
1012: [22:34:00] <FrozenFire> I think you can Session::set("BackURL", <where>)
1013: [22:34:00] <FrozenFire> Yep
1014: [22:34:00] <FrozenFire> http://api.silverstripe.org/2.4/source-class-Form.html#323
1015: [22:35:00] <FrozenFire> Director::redirectBack() has a fallthrough to figure out where to go on a redirect
1016: [22:35:00] <FrozenFire> Checks the request, checks the session, then otherwise just goes derp and goes to the homepage, iirc.
1017: [22:36:00] <FrozenFire> Because I'm getting an empty value.
1018: [22:36:00] * EasyCo has joined #silverstripe
1019: [22:36:00] <FrozenFire> See anything wrong with that?
1020: [22:36:00] <FrozenFire> simon_w, $query->selectField("AsText({$this->name}) AS {$this->name}", $this->name);
1021: [22:36:00] <unsignedint> Right, ill try that. Whats happening is its going to /page/FormName instead of just /page where the form is
1022: [22:37:00] <FrozenFire> So if your form action doesn't redirect somewhere, then there you are.
1023: [22:37:00] <FrozenFire> unsignedint, That's your form action.
1024: [22:37:00] <FrozenFire> It sends the form submission to /page/FormName
1025: [22:37:00] <simon_w> FrozenFire, you need to name the field something other than $this->name (which is really bloody annoying)
1026: [22:37:00] <FrozenFire> And then that routes the request
1027: [22:37:00] <unsignedint> FrozenFire: the action doesnt get called because validation fails
1028: [22:38:00] <Pyromanik> he has an error
1029: [22:38:00] <FrozenFire> simon_w, Watsicle.
1030: [22:38:00] <unsignedint> FrozenFire: I have die("hello") in the action
1031: [22:38:00] <FrozenFire> unsignedint, Then you have something seriously goofy going on, I think
1032: [22:38:00] <FrozenFire> If validation fails, it doesn't even get to the action. It just redirects back.
1033: [22:38:00] <unsignedint> FrozenFire: what I want it to do is redirect back to the proper page when validation fails
1034: [22:38:00] <FrozenFire> Unless you have an error.
1035: [22:38:00] <unsignedint> I do indeed have an error
1036: [22:39:00] <FrozenFire> Not sure what to suggest, then
1037: [22:39:00] <FrozenFire> If you're not in dev mode and have an error in validation (as opposed to just failed validation), then it will whitepage.
1038: [22:39:00] <Pyromanik> or display_errors off
1039: [22:39:00] <FrozenFire> Error being an actual PHP error
1040: [22:39:00] <unsignedint> oh right. I have failed validation then
1041: [22:39:00] <FrozenFire> Pyromanik, SS munges display_errors
1042: [22:39:00] <unsignedint> and im in dev mode
1043: [22:39:00] <FrozenFire> Could you paste the form?
1044: [22:40:00] <FrozenFire> I mean, there are better solutions, but SS's forms work well enough for what SS is for.
1045: [22:40:00] <unsignedint> *sigh* why is form handling in Silverstripe so useless
1046: [22:40:00] <unsignedint> sure
1047: [22:40:00] <FrozenFire> Nah, I actually quite like SS's forms
1048: [22:40:00] <Pyromanik> paste some code.
1049: [22:40:00] <FrozenFire> And I'm a harsh critic on elegant code. :P
1050: [22:40:00] <Colin[pi]> yeah I have seen much worse
1051: [22:40:00] <Pyromanik> unsignedint: form handling is very streamlined. You're just doing it wrong.
1052: [22:41:00] <simon_w> FrozenFire, yeah
1053: [22:41:00] <Pyromanik> a fault of ignorance does not lie with the system.
1054: [22:41:00] <unsignedint> http://pastebin.com/neXXnd0f
1055: [22:41:00] <FrozenFire> simon_w, Is this why you used CompositeDBField?
1056: [22:42:00] <simon_w> FrozenFire, I'm using $this->name . 'Array'
1057: [22:42:00] <FrozenFire> Though, I'm not seeing you name it elsewise
1058: [22:42:00] <FrozenFire> Unless that's what alias is for
1059: [22:42:00] <unsignedint> and in the CheckoutPage.ss I have $MembershipForm
1060: [22:43:00] <Pyromanik> unsignedint: then use ?debug_request
1061: [22:43:00] <simon_w> And then grabbing that in setValue()
1062: [22:43:00] <FrozenFire> Oh boy.
1063: [22:43:00] <Pyromanik> unsignedint: you said 2.4 right?
1064: [22:43:00] <unsignedint> yep
1065: [22:44:00] <simon_w> unsignedint, swap the two fields in $actions around
1066: [22:45:00] <FrozenFire> Is implementing CompositeDBField important, or just you using interfaces to enforce doing it right?
1067: [22:45:00] <unsignedint> simon_w: still the same issue, clicking "Add User" makes the page go to /checkout/MembershipForm (page not found) instead of /checkout (and show form errors)
1068: [22:46:00] <FrozenFire> :(
1069: [22:46:00] <Pyromanik> http://api.silverstripe.org/2.4/source-class-Form.html#219-336
1070: [22:46:00] <Pyromanik> at a guess
1071: [22:46:00] <Pyromanik> unsignedint: because the action is found on the form controller, not the page.
1072: [22:46:00] <simon_w> FrozenFire, it's important
1073: [22:46:00] <simon_w> unsignedint, and have you forgotten to add MembershipForm to allowed_actions?
1074: [22:47:00] <Pyromanik> simon_w: yeh, I realise.
1075: [22:47:00] <simon_w> In fact, makes for much cleaner controllers
1076: [22:47:00] <unsignedint> simon_w: actually, yes, that was it. thanks!
1077: [22:47:00] <simon_w> Pyromanik, that's fine
1078: [22:48:00] <Pyromanik> I thought the redirection on failure might have been going to the controller of the action, rather than redirectBack
1079: [22:48:00] <Pyromanik> but it's not.
1080: [22:48:00] <Pyromanik> allowed actions
1081: [22:48:00] <FrozenFire> simon_w, I'm so confused by your code. You're saving it into a name that is different than the "actual" field name, in the database, and then pulling it out using the "actual" name?
1082: [22:48:00] <unsignedint> simon_w: Thats not mentioned in the 2.4 docs (http://docs.silverstripe.org/framework/en/2.4/topics/forms) which is why I didnt do it to start with
1083: [22:48:00] <Pyromanik> unsignedint: allowed actions came after the docs
1084: [22:49:00] <unsignedint> ah right
1085: [22:51:00] * catcher quit (Quit: Leaving)
1086: [22:53:00] * simon_w quit (Ping timeout: 268 seconds)
1087: [22:54:00] * simon_w has joined #silverstripe
1088: [22:56:00] <Colin[pi]> if I access a Currency value of a DO, it returns a string, so what's the best thing to do with price arithmetic?
1089: [22:56:00] <Colin[pi]> converting to float seems like a bad idea
1090: [22:58:00] * sekjal__ has joined #silverstripe
1091: [22:58:00] <FrozenFire> http://www.sspaste.com/paste/show/51917017be05b
1092: [22:58:00] <FrozenFire> Field's not happening.
1093: [22:58:00] <FrozenFire> Hrmm, this is frustrating
1094: [22:59:00] * popeshoe has joined #silverstripe
1095: [22:59:00] <FrozenFire> But that shouldn't affect it
1096: [22:59:00] <FrozenFire> I'm also a giant derp for the setValue stuff
1097: [23:01:00] <FrozenFire> It doesn't like me :(
1098: [23:05:00] * FrozenFire is so confused
1099: [23:07:00] * travis-ci has joined #silverstripe
1100: [23:07:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7140110
1101: [23:07:00] * travis-ci has left #silverstripe
1102: [23:07:00] <travis-ci> [travis-ci] silverstripe/sapphire#2248 (3.1 - d5bcbbd : Hamish Friedlander): The build passed.
1103: [23:07:00] <simon_w> FrozenFire, $query->selectField("AsText(\"{$this->name}\")", "{$this->name}Point"); should be AsText("{$this->name}Point") ?
1104: [23:07:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/1b3f817862ed...d5bcbbd66a8a
1105: [23:08:00] <FrozenFire> simon_w, Build never makes the field in the schema
1106: [23:08:00] <FrozenFire> Or maybe your implementation confused me
1107: [23:08:00] <FrozenFire> Boy, it really hates me today
1108: [23:09:00] <FrozenFire> Yes
1109: [23:09:00] <simon_w> Got a db field that means it should?
1110: [23:09:00] <FrozenFire> It never calls my requireField
1111: [23:10:00] * travis-ci has joined #silverstripe
1112: [23:10:00] <FrozenFire> And no errors that I can see
1113: [23:10:00] * travis-ci has left #silverstripe
1114: [23:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7140151
1115: [23:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/f0e7990ca357...46166408bfb3
1116: [23:10:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#367 (3.1 - 4616640 : Sean Harvey): The build passed.
1117: [23:10:00] <FrozenFire> "Location" => "Point"
1118: [23:11:00] <simon_w> Is any sort of Location field created?
1119: [23:11:00] <FrozenFire> http://www.sspaste.com/paste/show/5191733632e7a
1120: [23:11:00] <FrozenFire> So it's never calling my requireField
1121: [23:11:00] <FrozenFire> Dropping the table and recreating it results in everything but Location
1122: [23:11:00] <FrozenFire> Nope
1123: [23:14:00] <priithansen> I have some reports that need to probably have multiple gridfields/tabels and a graph. Also a printer friendly output option. Probably should not try hacking it onto reports module?
1124: [23:15:00] <FrozenFire> If the answer includes the reports functionality in SS, then the question is probably wrong.
1125: [23:16:00] <simon_w> Bah, it does want the compositeDatabaseFields method to return something (look at Money) though mine's working without it
1126: [23:17:00] <FrozenFire> Maybe you had created the schema field at some other point in the process
1127: [23:17:00] <FrozenFire> But dropping the same table would not result in it coming back
1128: [23:18:00] <priithansen> You are saying that the reports module is very limited?
1129: [23:19:00] <FrozenFire> Hrmm, no idea what to put in the composite fields...
1130: [23:20:00] * Marvanni quit (Ping timeout: 264 seconds)
1131: [23:21:00] * Marvanni has joined #silverstripe
1132: [23:24:00] <simon_w> Nup
1133: [23:24:00] <FrozenFire> Since that'd cause an infinite recursion
1134: [23:24:00] <FrozenFire> You're just fucking with me, now. :P
1135: [23:24:00] <simon_w> 'Point' => 'Point',
1136: [23:25:00] <FrozenFire> Da fack
1137: [23:25:00] <simon_w> Well, it would if you copy+pasted Money's requireField
1138: [23:25:00] <FrozenFire> Well that's just all sorts of weirdness. But whatever. It works, ish
1139: [23:25:00] <FrozenFire> For no good reason.
1140: [23:25:00] <FrozenFire> It worked
1141: [23:25:00] <FrozenFire> :P
1142: [23:26:00] * chillu quit (Quit: chillu)
1143: [23:26:00] <simon_w> Yeah, CompositeDBField is weird, but is really the only way to get things like this working properly :(
1144: [23:27:00] * Zauberfisch has joined #silverstripe
1145: [23:28:00] <simon_w> Colin[pi], the value's just a number
1146: [23:28:00] <Colin[pi]> simon_w, is there best practice when doing calcs involving Currency fields?
1147: [23:29:00] <Colin[pi]> or will I need to calc using the dbObject ?
1148: [23:29:00] <FrozenFire> Lol. It seems to want to lazy load this composite
1149: [23:29:00] <FrozenFire> [Location_Lazy] => Client
1150: [23:29:00] <FrozenFire> Client being the table
1151: [23:29:00] <Colin[pi]> hmm when I access the value, it returned a string
1152: [23:30:00] <simon_w> Eh, float's fine
1153: [23:30:00] <simon_w> FrozenFire, yup, composite fields get lazy loaded
1154: [23:30:00] <simon_w> Colin[pi], it's a string containing the number
1155: [23:30:00] <Colin[pi]> yeah but I'm guessing (float) is not good... convert to cents?
1156: [23:31:00] <simon_w> Or, you know, just add or whatever. Screw conversion
1157: [23:32:00] <Colin[pi]> or office space, take your pick :D
1158: [23:32:00] <Colin[pi]> but... but... superman 3
1159: [23:32:00] <Colin[pi]> or I'm just paranoid lol
1160: [23:33:00] <FrozenFire> This whole thing
1161: [23:33:00] <FrozenFire> It's so bloody useless. :P
1162: [23:36:00] <FrozenFire> Fuck it all.
1163: [23:36:00] * spronk has joined #silverstripe
1164: [23:36:00] <FrozenFire> I'm just going to use SQL queries :P
1165: [23:38:00] <FrozenFire> Decimal here we come
1166: [23:49:00] <FrozenFire> Sometimes I wonder if SS is written explicitly so that you cannot do useful things.
1167: [23:49:00] <FrozenFire> :P
1168: [23:49:00] <FrozenFire> I need to alter a DataList's query.
1169: [23:49:00] <FrozenFire> But nooo
1170: [23:49:00] <FrozenFire> That'd be too useful
1171: [23:49:00] <unsignedint> FrozenFire: me too
1172: [23:49:00] <ss23> Does static-publisher work transparently with blog? OR wahts the best thing to make it all good (no comments)
1173: [23:50:00] <FrozenFire> And you know, I could probably hack it by setting the queried fiels
1174: [23:50:00] <FrozenFire> And by alter the query, I mean the actual SQL. :P
1175: [23:50:00] <FrozenFire> fields**
1176: [23:51:00] <FrozenFire> So fack you, right?
1177: [23:51:00] <FrozenFire> But then, it doesn't give you a way to *get* the current queried fields.
1178: [23:52:00] <FrozenFire> Can't use its createDataObject function
1179: [23:52:00] <FrozenFire> But nooo
1180: [23:52:00] <FrozenFire> So I'd be like, okay, I'll just get the final SQL query, modify that, execute it and pass it back into the DataList
1181: [23:52:00] * simon_w quit (Ping timeout: 256 seconds)
1182: [23:53:00] * simon_w has joined #silverstripe
1183: [23:59:00] * Colin[pi] quit ()

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