#silverstripe IRC Log

IRC log for 28 June 2013

All timestamps are in UTC.

1: [00:02:56] <ss23> lol
2: [00:03:18] <metanat> For anyone interested, this issue documents the Config Only environment stuff https://github.com/silverstripe/silverstripe-framework/issues/2043
3: [00:03:44] <metanat> And by documents I mean gives insight to why it doesn't work
4: [00:06:00] <ss23> goddam it gitorious
5: [00:06:09] <ss23> "4 monre branches" but doesn't let you view them
6: [00:06:11] <Peavers> why are you doing with gitorious?
7: [00:06:18] <Peavers> what are you**
8: [00:06:19] <ss23> Whats the point in a UI if it forces you to clone and look yourself
9: [00:06:21] <ss23> Peavers: We use it here
10: [00:06:31] <Peavers> ew
11: [00:06:52] <ss23> Gitlab is nicer, but it's still no Github
12: [00:09:27] <ss23> how to subsites in dev...
13: [00:17:13] <Peavers> never really got subsites...
14: [00:17:25] <Peavers> just keep creating entire new ones. Not like it takes more than 30 seconds..
15: [00:18:56] <ss23> But sharing content is what's important, right?
16: [00:19:17] <ss23> simon_w: OH MAN LUNCH?
17: [00:19:24] <ss23> inb4 "I already got it"
18: [00:19:29] <ss23> Peavers: Want burgerfuel? :D
19: [00:19:46] <Peavers> lol I'm in Thorndon, thats miles away!
20: [00:20:00] <ss23> fff
21: [00:20:59] <ss23> woah
22: [00:21:19] <ss23> I somehow edited the right file last night, even though I was like 99% sure I didn't
23: [00:24:30] * priithansen has joined #silverstripe
24: [00:25:36] * priithansen quit (Client Quit)
25: [00:26:12] <simon_w> ss23, could do. Last day of smash browns!
26: [00:26:23] <irogue> ss23 likes hash browns
27: [00:26:25] <ss23> :O
28: [00:26:26] <ss23> lol
29: [00:26:41] <ss23> ONE TIME I eat like 15 hashbrowns, and I'm forever the ss23 who likes hashbrowns
30: [00:26:53] <irogue> http://iforce.co.nz/i/p2zvng5y.e24.jpg
31: [00:26:55] <irogue> OM NOM NOM
32: [00:27:12] <Peavers> you fat kent.
33: [00:28:19] <ss23> kent?
34: [00:28:27] <ss23> simon_w: mmk, same as normal, gimmie a poke when ~3 mins away
35: [00:28:30] <ss23> WAIT NO
36: [00:28:32] <ss23> 4 mins, gotta piss.
37: [00:29:11] * Colin[pi] has joined #silverstripe
38: [00:29:16] <Colin[pi]> good moaning
39: [00:29:34] <Colin[pi]> woah it
40: [00:29:36] <ss23> moin Colin[pi]
41: [00:29:36] <Colin[pi]> oops
42: [00:29:40] <Colin[pi]> it's an op fest in here
43: [00:29:51] <Colin[pi]> hey ss23
44: [00:30:02] <ss23> :D
45: [00:30:11] <ss23> Here
46: [00:30:15] <ss23> .deop
47: [00:30:17] <ss23> Hmm
48: [00:30:23] <Colin[pi]> derp
49: [00:30:34] <ss23> I like Freenodes services, but they're different
50: [00:30:59] <simon_w> Blitzed has moved to flags too
51: [00:31:19] <ss23> Anope has supported it for a long while too, though different to how Freenode does
52: [00:31:22] <ss23> Freenode does better I think
53: [00:31:42] * ss23 tries using sspak again
54: [00:31:43] <ss23> :D
55: [00:32:35] * AlphaCactus quit (Quit: kthxbai)
56: [00:34:34] <Colin[pi]> has anyone ever been approached by a potential client to produce a gnatt chart of deliverables? (when that client has not even engaged services)
57: [00:34:51] <Colin[pi]> I'm like... uh...
58: [00:35:17] <Colin[pi]> hard to chart deliverables when I have no idea what we're delivering yet, lol
59: [00:35:31] <Peavers> I think your client just likes buzzwords.
60: [00:35:35] <Colin[pi]> yep
61: [00:35:52] <Colin[pi]> I said to him bluntly "I wont waste time making charts when that time is better spent actually doing work"
62: [00:36:00] <ss23> simon_w: Are we having lunch later today?
63: [00:36:17] <simon_w> ss23, I'm just tidying things up
64: [00:36:19] <Peavers> ss23, simon_w, you guys are like a cute couple!
65: [00:36:22] <ss23> sweet np
66: [00:36:27] <ss23> Peavers: You're welcome to join! <3
67: [00:36:34] <ss23> willr paid for me the other day :D
68: [00:36:48] <willr> charity.
69: [00:36:52] <Peavers> High rollers.
70: [00:37:56] <ss23> lol
71: [00:38:09] <ss23> charity for a support developer :D
72: [00:38:30] <ss23> tfw I forget to flush.
73: [00:38:50] <ss23> oh god wtf
74: [00:38:52] <ss23> tfw I break live site
75: [00:39:08] <Colin[pi]> D:
76: [00:39:26] <ss23> minimize IRC, brb
77: [00:40:40] <Colin[pi]> we never saw him again
78: [00:41:13] <simon_w> This is when I tell him it's lunch time, right?
79: [00:41:17] <Colin[pi]> correct
80: [00:42:30] * Bollig|DesignCty has joined #silverstripe
81: [00:47:24] <simon_w> ss23, ready yet?
82: [00:53:37] <ss23> back
83: [00:53:38] <ss23> simon_w: yep yep
84: [00:53:51] <ss23> friggin Silverstripe
85: [00:54:03] <ss23> somehow messed up the JS when it combined them, had to delete combinedjs
86: [00:54:04] <ss23> :<
87: [00:54:10] <ss23> simon_w: HALP DID YOU GO TO LUNCH ALREADY?
88: [00:54:14] <Colin[pi]> HA HA
89: [00:54:25] <simon_w> ss23, nah, just about to
90: [00:54:35] <ss23> simon_w: cool, lets do it! you 3 mins away?
91: [00:54:44] <simon_w> and delete assets/_cobminedfiles/blah.js
92: [00:54:48] <simon_w> Yeah
93: [00:55:03] <ss23> sweet, cya soon, bbiab guise!
94: [00:55:09] <Colin[pi]> cyas
95: [00:56:33] * tractorcow has joined #silverstripe
96: [00:59:41] * zippy__ quit (Quit: zippy__)
97: [01:16:58] * ZzZzZzZzZz quit (Read error: Connection reset by peer)
98: [01:17:11] * RojoD has joined #silverstripe
99: [01:21:22] * kerosene quit (Ping timeout: 256 seconds)
100: [01:26:46] <ss23> back!
101: [01:27:18] <ss23> http://www.odt.co.nz/news/dunedin/262761/dunedin-woman-superglues-lips-together
102: [01:27:23] <ss23> no comment on the location of said woman
103: [01:28:24] <ss23> Senior Sergeant Steve Aitken said the woman "sounded gagged or possibly had a medical condition''.
104: [01:29:04] <Peavers> where was your lunch date?
105: [01:29:10] <ss23> ask Colin[pi] :D
106: [01:29:21] <Colin[pi]> BOIGERFOOL!
107: [01:29:25] <Peavers> ew
108: [01:29:45] <ss23> XD
109: [01:30:24] <ss23> I don't understand how all three of these sites, production dev and staging, all when flushed th first time, managed to generate a bogus/broken combined_js
110: [01:33:20] <Peavers> ffs anyone ever tried to register at htcdev? what a nightmare
111: [01:33:36] <ss23> android stuff is it?
112: [01:33:40] <Peavers> yeah
113: [01:34:46] <simon_w> Aww, my shake ran out
114: [01:35:24] * irogue shakes simon_w
115: [01:35:40] <simon_w> Don't shake your man child!
116: [01:39:53] <ss23> :O
117: [01:40:44] <tractorcow> Hey guys, back on irc. :)
118: [01:40:54] <tractorcow> When I'm really bored at work I wonder what's going on in here
119: [01:41:14] <simon_w> Are you sure you want to know?
120: [01:41:19] <tractorcow> I'm keen :)
121: [01:41:31] <tractorcow> I know I'm missing out on burgerfuel =(
122: [01:41:57] <simon_w> Well, we actually have a SS employee frequent the channel again
123: [01:42:19] <Peavers> why and how he is an employee we're still not sure though...
124: [01:43:25] <tractorcow> If he's listening, can they figure out who runs http://www.silverstripe.org/modules/ and get them to add 3.1 to the list of supportable SS versions?
125: [01:43:38] <tractorcow> I've been adding some modules
126: [01:43:52] <simon_w> Hey ss23, do that :p
127: [01:44:30] <simon_w> silverstripe-fluent says it needs 3.1
128: [01:44:37] <tractorcow> yes :)
129: [01:44:43] <simon_w> Like, in the metadata
130: [01:44:44] <tractorcow> I was building up to that simon
131: [01:44:56] <simon_w> That's displayed
132: [01:44:57] <simon_w> http://addons.silverstripe.org/add-ons/tractorcow/silverstripe-fluent
133: [01:45:11] <tractorcow> can you look at my cool thing I made and give feedback?
134: [01:45:27] <simon_w> Can you refractor this SAML authenticator for me? :p
135: [01:45:52] <tractorcow> I haven't seen addons.silverstripe.org before o_O
136: [01:45:53] <ss23> lol
137: [01:45:55] <ss23> I don't run it!
138: [01:45:58] <Peavers> I'm I allowed to perve at it yet simon_w?
139: [01:46:35] * ss23 tries SSHing to it anyway
140: [01:46:41] <simon_w> Peavers, nope! Needs to be pretty!
141: [01:47:00] <ss23> Oh I take it back, I do have access!
142: [01:48:05] <tractorcow> Nice, third on the list of vendors :) http://addons.silverstripe.org/vendors
143: [01:48:39] <ss23> I didn't even know addons.silverstripe.org existed!
144: [01:48:47] <tractorcow> That's probably a measure of how much useless coding I do. o_O
145: [01:48:57] <simon_w> ss23, you asked willr about it over lunch!
146: [01:49:00] <ss23> haha tractorcow
147: [01:49:03] <ss23> simon_w: I REMEMBER
148: [01:49:07] <ss23> They launched it but didn't tell anyone!
149: [01:50:48] <ss23> tractorcow: Hack on core instead!
150: [01:51:31] <tractorcow> I have been...
151: [01:52:07] <tractorcow> I think I need a new project :)
152: [01:52:19] <ss23> tractorcow: I've got a bug you can fix if you want
153: [01:52:20] <simon_w> Make issues not suck!
154: [01:52:26] <ss23> tractorcow: I've got two in facts!
155: [01:52:33] <tractorcow> Ok, lay it on me:
156: [01:53:31] <ss23> sec, needa find the links :P
157: [01:54:13] <tractorcow> I must make it sound like my company does nothing... >_>
158: [01:54:22] <tractorcow> truth is all the other employees are at yoga =/
159: [01:54:23] <ss23> hmm
160: [01:54:29] <ss23> hahah tractorcow
161: [01:54:48] <ss23> Is it hard to change the "CSRF attack / value missing / blurgh csrf *cry*!" change to a nicer error message?
162: [01:55:30] <tractorcow> Configurable ErrorPage?
163: [01:55:47] <ss23> I am a Silverstripe noob please expand on that answer, tractorcow
164: [01:56:16] <tractorcow> Don't you get a plain text error message when a CSRF attack is detected, or is that only in dev mode?
165: [01:56:28] <ss23> Plaintext, yes
166: [01:57:02] <tractorcow> Probably should redirect to the error page, but with the actual "CSRF" attack notification message than the "generic an error has occurred" one?
167: [01:57:10] <simon_w> ss23, create an ErrorPage with a 400 code
168: [01:57:35] <ss23> simon_w: Oh, and that will prevent the plaintext CSRF and redirect instead?
169: [01:57:42] <simon_w> *405
170: [01:57:49] <ss23> tyvm ^.^
171: [01:57:59] <simon_w> Well, it'll be like a 404/500
172: [01:58:11] <simon_w> Assuming the error's coming from a Page_Controller
173: [02:00:45] <ss23> simon_w: Hmm, a post seems to suggest it won't work
174: [02:01:07] <ss23> "the default RequestHandler::httpError() function just throws the actual error string, and doesn't retrieve the errorpage, only gives you the white screen... The httpError() function in the ContentController does, but that doesn't work for the Form class class. "
175: [02:03:14] <simon_w> ss23, fix it!
176: [02:04:10] <tractorcow> You could move the implementation of ContentController::httpError up into RequestHandler::httpError
177: [02:04:36] <simon_w> tractorcow, no
178: [02:04:38] <tractorcow> or better yet, copy it into Form
179: [02:04:40] <tractorcow> :)
180: [02:04:45] <simon_w> tractorcow, also no
181: [02:04:55] <ss23> lol
182: [02:05:16] <tractorcow> I know my ideas are stupid, I just don't know why yet
183: [02:06:06] <simon_w> public function handleRequest(SS_HTTPRequest $request, DataModel $model) { try { parent::handleRequest($request, $model); } catch(SS_HTTPResponse_Exception $e) { $this->httpError($e->getResponse()->getStatusCode(), $e->getResponse()); } }
184: [02:06:24] <simon_w> tractorcow, ContentController's in cms, RequestHandler and Form are framework
185: [02:06:39] <tractorcow> Oh righty,
186: [02:06:46] <tractorcow> Separation of concerns :)
187: [02:06:49] <tractorcow> erm,
188: [02:07:02] <simon_w> Likewise, ErrorPage is CMS
189: [02:07:06] <tractorcow> yes
190: [02:07:18] <tractorcow> Could there be an ErrorHandler extension?
191: [02:07:41] <tractorcow> Seems a bit over engineering though =/
192: [02:07:54] <simon_w> Well, you can already stick an Extension on httpError()
193: [02:08:37] <simon_w> Though you can't stick an extension directly on RequestHandler, which just seems stupid
194: [02:09:10] <tractorcow> it doesn't let you actually generate the response in that extension though
195: [02:09:34] <tractorcow> it only passes the error code
196: [02:09:56] * Guest74618 quit (Ping timeout: 250 seconds)
197: [02:10:21] <ss23> tractorcow: http://www.silverstripe.org/content-editor-discussions/show/24005
198: [02:10:27] <tractorcow> I love how $this->extend ('onBeforeHTTPError') is called twice in succession, "just to be sure" eh?
199: [02:10:37] <simon_w> tractorcow, you throw your own exception
200: [02:10:43] <simon_w> and no it isn't. Look closer :p
201: [02:10:57] <ss23> It calls onBeforeHTTPError once, and onBeforeHTTPError404 once right?
202: [02:10:59] <tractorcow> oh shiver my timbers =(
203: [02:11:03] <ss23> (replace 404 with whatever it is)
204: [02:11:04] <tractorcow> reading comprehension fail
205: [02:11:14] <tractorcow> I think I failed the turing test
206: [02:11:22] <ss23> simon_w: Should we deprecate one of those and migrate to a single one/
207: [02:11:41] <simon_w> ss23, nope. sminnee did two for a reason
208: [02:11:50] <ss23> What was the reason?
209: [02:12:02] <simon_w> You can choose to target just one or all of them
210: [02:12:22] <simon_w> and a specific one wins over a generic one
211: [02:14:26] * EasyCo has joined #silverstripe
212: [02:15:54] <tractorcow> so why can't we move the implementation of ContentController::httpError to an extension on RequestHandler?
213: [02:16:13] <simon_w> Because you can't have extensions on RequestHandler
214: [02:16:16] <ss23> You can make that functionality with a generic onBeforeHTTPError($code) though, right?
215: [02:16:30] <simon_w> ss23, not the specific winning
216: [02:16:49] <tractorcow> RequestHandler:
217: [02:16:49] <tractorcow> extensions:
218: [02:16:49] <tractorcow> - ErrorPageHandler
219: [02:17:02] <simon_w> private static $unextendable_classes = array('Object', 'ViewableData', 'RequestHandler');
220: [02:17:28] <tractorcow> Form?
221: [02:17:38] <tractorcow> or does this affect subclasses of unextendable_classes?
222: [02:18:16] <simon_w> So, add it to Form, Controller, FormField and any other subclass of RequestHandler?
223: [02:18:18] <tractorcow> having the extension on Form would at least solve the immediate case :)
224: [02:18:29] <ss23> simon_w: if ($code == 'specific') { } else { generic }
225: [02:18:44] * lietzmk has joined #silverstripe
226: [02:18:45] <simon_w> ss23, nope
227: [02:18:57] <tractorcow> ss23: I think I see the point though. If there's a specific extension, the generic one doesn't get called on any extensions at all
228: [02:19:11] <simon_w> tractorcow, half-arsed fixes aren't worth it
229: [02:19:21] <ss23> hmm
230: [02:19:22] <ss23> idk
231: [02:19:25] <ss23> I don't understand, but I don't care
232: [02:20:00] <tractorcow> Well, like I said, it solves the immediate case, but it's probably something that should be handled a bit more generically.
233: [02:20:08] <ss23> tractorcow: Did you fix the bug I posted!
234: [02:20:11] <ss23> tractorcow: Or do a proper report for it
235: [02:20:23] <simon_w> ss23, you can have something on onBeforeHTTPError404 that gets always called before the generic onBeforeHTTPError handlers
236: [02:20:32] <tractorcow> ss23: I am thinking about the first one still. :)
237: [02:27:32] <ss23> tractorcow: The first one isn't a bug I care about!
238: [02:27:42] <ss23> The other one is going to break Silverstripe for a large amount of people
239: [02:27:48] <ss23> Think of the people!
240: [02:29:26] * zippy__ has joined #silverstripe
241: [02:31:52] * simon_w quit (Ping timeout: 264 seconds)
242: [02:33:07] * simon_w has joined #silverstripe
243: [02:33:20] <tractorcow> Could Form ask it's parent controller (which will generally be ContentController) to handle the error instead of doing it itself?
244: [02:34:15] <ss23> ss23 breaking live sites like a boss
245: [02:35:23] <tractorcow> public function httpError($errorCode, $errorMessage = null) {
246: [02:35:23] <tractorcow> if($this->controller instanceof RequestHandler) {
247: [02:35:23] <tractorcow> $this->controller->httpError($errorCode, $errorMessage);
248: [02:35:23] <tractorcow> } else {
249: [02:35:23] <tractorcow> parent::httpError($errorCode, $errorMessage);
250: [02:35:24] <tractorcow> }
251: [02:35:24] <tractorcow> }
252: [02:35:57] <tractorcow> Then having an ErrorPage for 400 error would generate a templated error page with your custom message
253: [02:38:18] <tractorcow> Another possible solution would be to take out the ContentController::httpError code, and move it up to ModelAsController (to the try - catch), and have the catch generate the response from the ErrorPage
254: [02:38:28] <tractorcow> at least that way it's not touching the framework
255: [02:45:00] <tractorcow> ew, doesn't work, since the Form only is handling the request :)
256: [02:46:59] <ss23> I SWEAR, A 5 MIN WINDOW AND THE CLIENT MANAGES TO NOTICE THE SITE IS DOWN ON IT
257: [02:47:13] <ss23> friggen zendesk is being slow as shit too
258: [02:47:15] <ss23> GRRRR
259: [02:47:16] * ss23 dies
260: [02:48:06] <spronk> didn't you know ss23
261: [02:48:20] <spronk> clients sit there with their site on reload 24/7
262: [02:48:27] <ss23> lol
263: [02:48:35] <ss23> zendesk won't load so I can't read the message and reply
264: [02:48:38] <ss23> I'll have to use manual emails
265: [02:48:39] * ss23 cries
266: [02:49:49] <ss23> taking 30 seconds to load a page isn't normal, not even on zendesk.
267: [02:53:55] <tractorcow> ok, I have a solution for the problem :) No changes to the framework and a net decrease in total code.
268: [02:54:17] <tractorcow> // After the 'catch' in ModelAsController::handleRequest
269: [02:54:17] <tractorcow> if($result->isError() && !$this->request->isMedia()) {
270: [02:54:17] <tractorcow> // Don't use the HTML response for media requests
271: [02:54:17] <tractorcow> $response = ErrorPage::response_for($result->getStatusCode());
272: [02:54:17] <tractorcow> if($response) $result = $response;
273: [02:54:17] <tractorcow> }
274: [02:54:19] <simon_w> ss23, you know you can do all of zendesk over email too?
275: [02:54:46] <tractorcow> and removal of ContentController::httpError
276: [02:54:53] <ss23> simon_w: Yeah, doing it like that now
277: [02:56:06] <simon_w> tractorcow, until you don't go through ModelAsController
278: [02:57:04] <tractorcow> I haven't checked every use case yet... aha...
279: [02:58:15] <ss23> tractorcow: My bug is more important!
280: [02:58:16] * ss23 cries
281: [02:58:19] <tractorcow> Yes you're right, Security/login doesn't work -_-;
282: [02:58:27] <tractorcow> I mean, it works just as bad as it already did. :)
283: [02:59:16] <tractorcow> but, that doesn't even touch the CMS module... does it?
284: [02:59:49] <simon_w> Security uses Page if it exists
285: [03:00:07] <simon_w> something about templates or some such
286: [03:00:24] <tractorcow> yeah, it makes a Page and Page_Controller
287: [03:04:59] <ss23> Oh Gitorious...
288: [03:05:05] <ss23> Popular labels: Foo
289: [03:05:10] <ss23> click it... "no results for foo"
290: [03:05:11] <ss23> WHY
291: [03:07:55] <ss23> ow, my head is sore :<
292: [03:08:10] <ss23> All the tools and stuff and releases and zendesk here need to be normalized so they're not so weird and stupid etc etc etc
293: [03:10:16] * wmk has joined #silverstripe
294: [03:13:59] <tractorcow> simon_w: The problem I am having with trying to hook into error handling and passing it through ErrorPage rendering is that there's no real function for this in the framework that allows this to be possible. The CMS only gets away with it by injecting the ErrorPage content on errors generated by ContentController. Otherwise, we assume that the message passed into the initial SS_HTTPResponse_Exception object is the body that should be output. Am I ju
295: [03:14:40] <tractorcow> There could be... I don't know... some kind of way of registering an error handler?
296: [03:15:11] <tractorcow> a nice pretty ErrorPage might not always be the desired outcome.
297: [03:15:40] <simon_w> tractorcow, you got cut off
298: [03:15:52] <tractorcow> Did I flood the channel?
299: [03:16:01] <simon_w> No, you went over the character limit
300: [03:16:08] <ss23> tput. Am I ju
301: [03:16:17] <ss23> That sounds like another language
302: [03:16:19] <tractorcow> (1/3) simon_w: The problem I am having with trying to hook into error handling and passing it through ErrorPage rendering is that there's no real function for this in the framework that allows this to be possible.
303: [03:16:21] <ss23> tput am iju
304: [03:16:28] <tractorcow> (2/3) The CMS only gets away with it by injecting the ErrorPage content on errors generated by ContentController.
305: [03:16:34] <tractorcow> (3/3) Otherwise, we assume that the message passed into the initial SS_HTTPResponse_Exception object is the body that should be output. Am I just trying to produce the wrong outcome?
306: [03:18:12] <tractorcow> ss23: I'll solve your problem soon :) Or at least try
307: [03:18:18] <ss23> ty
308: [03:18:28] <simon_w> Well, the current way of doing things would be to switch to creating the SS_HTTPResponse_Exception using the injector
309: [03:18:31] <ss23> Looks like the kind of thing that's a simple bug with an easy fix, but hard to track down which of the random layers is failing
310: [03:18:39] <tractorcow> http://www.silverstripe.org/content-editor-discussions/show/24005 right?
311: [03:18:40] <tractorcow> with the dates?
312: [03:20:16] <ss23> date was fine
313: [03:20:55] <ss23> tractorcow: Looks like if you load the CMS with a time that has a PM in it, e.g "03:19 PM" (obviously it's in the database as a normal SS_Datetime), it'll load it as 03:19 AM
314: [03:21:28] <ss23> tractorcow: Best guess is that somewhere in the long long chain, the PM is being dropped off, then when it gets loaded close to the view layers, it gets AM added by default
315: [03:21:33] * SightUnseen has left #silverstripe
316: [03:21:55] <ss23> tractorcow: Fix, as said in that thread, is to use 24 hour time instead (like literally $datetimefield->getTimeField()->setConfig('format', '24 hour'); (not 100% on the syntax, but you get the idea)
317: [03:22:03] <ss23> That's a workaround at least, not a real fix
318: [03:22:06] <tractorcow> That's a workaround not a fix :)
319: [03:22:08] <tractorcow> lol
320: [03:23:06] <tractorcow> Looking into it now. Good thing I'm used to having trouble with dates.
321: [03:23:14] <ss23> Times!
322: [03:23:15] <ss23> :P
323: [03:23:19] <tractorcow> those too
324: [03:23:49] * simon_w gave up on Zend and switched to drop downs :p
325: [03:26:06] * EasyCo quit (Ping timeout: 246 seconds)
326: [03:26:52] <ss23> This _config.php defines a bunch of functions
327: [03:26:53] <ss23> idek
328: [03:27:38] * EasyCo has joined #silverstripe
329: [03:30:21] <tractorcow> Well, I see the problem
330: [03:30:32] <tractorcow> the default timefield config for datavalueformat doesn't consider AM/PM
331: [03:30:51] <ss23> Got a patch/fix? :D
332: [03:30:52] <tractorcow> but the output format uses whatever the Zend library tells it to use (based on current locale). This could have AM/PM included
333: [03:31:13] <ss23> Yep, makes sense that only some people have the issue, cause ther's obv reproducability, but some people have it fine it seems
334: [03:31:44] <tractorcow> It depends on your locale, and the time format specified in your user profile I think
335: [03:32:09] <tractorcow> if you have HH:mm:ss as your setting, then i18n::get_time_format() and the default datavalueformat will match up nicely
336: [03:32:42] <ss23> tractorcow: Is there a nice generic fix do you think?
337: [03:32:46] <tractorcow> h:mm:ss a
338: [03:32:47] <tractorcow> yeah
339: [03:33:11] <tractorcow> I think flip the order of parsing; Check the i18n locale first (some format string used to generate the text) before considering the datavalueformat
340: [03:33:12] <tractorcow> however,
341: [03:33:24] <tractorcow> that will break other people's code if they have set a value explicitly for datavalueformat
342: [03:33:50] <ss23> tractorcow: At the very least, do you think you could open a bug on github for it describing the issue? I would be grateful!
343: [03:33:54] <tractorcow> I think just change the DEFAULT value for datavalueformat to i18n::get_time_format();
344: [03:34:01] <tractorcow> and people can override it as they wish
345: [03:34:12] <tractorcow> yep,
346: [03:34:25] <tractorcow> but if I'm uploading a PR i'll need to do massive testing
347: [03:35:46] <simon_w> What you should do is get Zend to use the date/time field's format
348: [03:36:04] <ss23> simon_w: I heard "zend" and decided it was a bad idea
349: [03:36:19] <ss23> Last issue I had with a zend library, the answer was "upstream won't fix it so we'll work around it" iirc
350: [03:38:01] <simon_w> Oops, wasn't supposed to open that third can of V
351: [03:38:09] <tractorcow> Ah, I see why the code was written this way...
352: [03:38:19] <tractorcow> setValue needs to understand the database (iso format) time
353: [03:38:24] <ss23> lol simon_w XD
354: [03:38:36] <tractorcow> as well as the value from the frontend (locale specific)
355: [03:39:10] <tractorcow> Zend is doing that, but it's doing it wrong
356: [03:39:29] <tractorcow> Zend_Date::isDate is being asked if "1:00 AM" is in "HH:mm:ss" format, and saying "yes"
357: [03:40:00] <simon_w> And things like that is why PocketRent ditched DateField
358: [03:40:06] <simon_w> Zend_Date is shit :p
359: [03:40:28] <tractorcow> yes indeed
360: [03:42:00] <tractorcow> I could do a reverse comparison, check if the formats match, parse the date in that format, and then output that date in the format, and do a comparison against the original string
361: [03:42:21] <tractorcow> this will catch the "1:00 AM" != "1:00:00" issue
362: [03:42:31] <tractorcow> or rather
363: [03:42:38] <tractorcow> the "1:00 PM" != "1:00:00"
364: [03:42:50] * simon_w blames Peavers for the MoE IdP problems
365: [03:43:00] <tractorcow> data direct from the database should be pretty exact, so I won't expect that problem
366: [03:43:05] <tractorcow> we could always have a fallback:
367: [03:43:41] <simon_w> Now I get to try to write tests. Hooray!
368: [03:43:43] <tractorcow> - Check if exact DB format
369: [03:43:43] <tractorcow> - Check if exact locale format
370: [03:43:44] <tractorcow> - fallback to inexact comparison
371: [03:45:18] <ss23> simon_w: Yay! :D
372: [03:45:33] <tractorcow> I'll refactor the date comparison into a function that has an "$exactComparison" flag
373: [03:45:33] <ss23> simon_w: If you want, there's another bug in SS
374: [03:45:59] <simon_w> ss23, wanna write my tests for me then? :p
375: [03:46:03] <tractorcow> I'll fix this one first :)
376: [03:46:12] * cloph has joined #silverstripe
377: [03:46:13] <ss23> simon_w: If a page is set as "removed from draft", aka in _live but not stagged, and it has children that are also _live but not stagged, they won't show up in the CMS interface, until you restore it back to draft, then flush or build (aka clear cache) and then the children show
378: [03:46:18] <ss23> lol tractorcow, ty :D
379: [03:46:22] <ss23> simon_w: ... No :D
380: [03:46:56] <simon_w> Hmm, 21 year old male stabbed in Karori. Had to check it wasn't me...
381: [03:47:39] * cloph_away quit (Ping timeout: 256 seconds)
382: [03:48:01] <Colin[pi]> was it?
383: [03:48:22] <simon_w> Nope. I don't go down that far
384: [03:48:37] <simon_w> (Street it happened on was further into Karori)
385: [03:48:55] <Colin[pi]> whew! who would answer our annoying questions?
386: [03:48:56] <tractorcow> protected function matchesFormat($value, $format, $locale = null, $exactMatch = false) {
387: [03:48:56] <tractorcow> if(Zend_Date::isDate($value, $format)) {
388: [03:48:56] <tractorcow> if(!$exactMatch) return true;
389: [03:48:56] <tractorcow> // For exact matches, ensure the value preserves formatting after conversion
390: [03:48:56] <tractorcow> $valueObject = new Zend_Date($val, $format, $locale);
391: [03:48:56] <tractorcow> return $value === $valueObject->get($format);
392: [03:48:56] <ss23> lol
393: [03:48:57] <tractorcow> } else {
394: [03:48:57] <tractorcow> return false;
395: [03:48:58] <tractorcow> }
396: [03:48:58] <tractorcow> }
397: [03:49:05] <ss23> And everyone said newtown was bad, least I haven't been stabbed! :D
398: [03:49:07] <ss23> Colin[pi]: ++ :D
399: [03:49:14] <Colin[pi]> sspaste tractorcow?
400: [03:49:48] <tractorcow> Colin: ok :)
401: [03:49:53] <Colin[pi]> wow after using a mechnical kb for a week, I used a membrane one... feels like typing on pudding
402: [03:50:01] <tractorcow> sorry.... didn't mean to annoy anyone XD
403: [03:50:09] <ss23> Colin[pi]: ikr
404: [03:50:17] <Colin[pi]> dont think I can ever go back :D
405: [03:50:30] <ss23> Colin[pi]: It's one of those things where you go from membrane -> mechanical and think "hmm this is nicer, but I don't care", then you change back to membrane and you're like "OH GOD WHYYYYYYYY"
406: [03:50:46] <Colin[pi]> lol EXACTLY thatg
407: [03:50:49] <tractorcow> I'd like to try one someday
408: [03:50:51] <Colin[pi]> that was my exact feeling lol
409: [03:50:54] <tractorcow> but then, I'd never be able to go back would I?
410: [03:50:57] <tractorcow> http://www.sspaste.com/paste/show/51cd07a0443e5
411: [03:50:58] <ss23> lol
412: [03:51:05] <tractorcow> ss23: part of my solution
413: [03:51:10] <Colin[pi]> i started typing and I'm like ..... ew
414: [03:51:51] <ss23> Wonder if I can get SS to buy me a decent KB for here... though idk what happens to the special apple keys
415: [03:51:58] <ss23> I should just get them to buy me a real PC instead
416: [03:51:59] <ss23> o/
417: [03:52:10] <Colin[pi]> hahaha
418: [03:52:20] <Colin[pi]> careful of the apple zealots
419: [03:52:39] <Colin[pi]> macs are nice and all, but I'm not like OMMMMG APPLE SO SEXY
420: [03:52:43] <Colin[pi]> it's a computer
421: [03:52:52] <tractorcow> what's the opposite of parse?
422: [03:52:58] <Bollig|DesignCty> an expensive one at that...
423: [03:53:12] <Bollig|DesignCty> I'm a much bigger fan of osx vs windows than I am about their hardware.
424: [03:53:15] <ss23> tractorcow: hmmm... write?
425: [03:53:17] <tractorcow> 'print'
426: [03:53:20] <ss23> parse something in, write it out
427: [03:53:21] <tractorcow> I guess
428: [03:53:22] <ss23> print, write, yeah
429: [03:54:05] <Colin[pi]> Bollig|DesignCty: Apple is all about the image and marketing
430: [03:54:19] <Colin[pi]> some of their marketing is the most cringe-inducing I've seen. But it works.
431: [03:54:34] <Bollig|DesignCty> sure, they're a business. they want to make money...
432: [03:54:36] <Colin[pi]> It's like FASTEST COMPUTER IN THE WORLD, EVER EVER.
433: [03:54:41] <Colin[pi]> and everyone is like OMG
434: [03:54:48] <Bollig|DesignCty> yeah lol
435: [03:54:54] <Colin[pi]> SAFARI IS THE WORLDS FASTEST WEB BROWSER
436: [03:54:57] <Colin[pi]> *cough*bs*cough*
437: [03:55:08] <Bollig|DesignCty> YOU CAN VIDEO CHAT ON YOUR PHONE! THE REVOLUTIONARY FACETIME!
438: [03:55:12] <Colin[pi]> OMGOMGOMG
439: [03:55:15] <Bollig|DesignCty> *omgyay*
440: [03:55:16] <Colin[pi]> shut up and take my money
441: [03:55:21] <Bollig|DesignCty> lol
442: [03:55:33] <Colin[pi]> so much spin
443: [03:55:37] <Colin[pi]> but it works for them, so...
444: [03:55:45] <Bollig|DesignCty> yeah, people like being told what to think.
445: [03:55:52] <Colin[pi]> but but THINK DIFFERENT
446: [03:56:00] <Bollig|DesignCty> he says, as he checks the messages on his iPhone, duping on his iMac...
447: [03:56:08] <Bollig|DesignCty> lol, that's an old slogan...
448: [03:56:15] <Colin[pi]> showing my age :(
449: [03:56:18] <simon_w> ss23, you can remap meta keys
450: [03:56:22] <Bollig|DesignCty> OSX7: think Windows8
451: [03:56:36] <Colin[pi]> iOS7 you mean?
452: [03:56:46] <Bollig|DesignCty> yes.
453: [03:56:58] <Bollig|DesignCty> also osx, there are more crossovers there too
454: [03:56:59] <Colin[pi]> it's kinda like they rolled all of their competitors into one OS
455: [03:57:09] <Bollig|DesignCty> or wait for whatever-the-hell they call the next one...
456: [03:57:23] <Colin[pi]> even the glass-style transparency is so much like Windows 7
457: [03:57:36] <Colin[pi]> which is old obviously
458: [03:58:30] <ss23> simon_w: Figurd you can, just wasn't sure 100%
459: [03:58:36] <tractorcow> I could videochat on my old ericson dumbphone about 6 years ago :)
460: [03:58:56] <Colin[pi]> yeah but they didn't put an "i" in front of it's name
461: [03:59:02] <tractorcow> I used it like, once
462: [03:59:07] <tractorcow> with my mate in the bus sitting beside me
463: [03:59:19] <tractorcow> "woah dude I can see you"
464: [03:59:35] <tractorcow> ss23: sorry, I'll go back to my hole and code... >_>
465: [03:59:35] * zippy__ quit (Quit: zippy__)
466: [03:59:35] <simon_w> FaceTime works because a lot more people have it
467: [03:59:44] <ss23> ;p; XD
468: [03:59:54] <ss23> tractorcow: It's okay, I apperciate you debugged it at all <3
469: [04:00:20] <Colin[pi]> anyone looking to get google glass when it's released proper?
470: [04:00:23] <Colin[pi]> or just for wankers?
471: [04:00:28] <ss23> Meh
472: [04:03:06] <simon_w> Oh man, turns out it helps to trim certificates before trying to use them for validation
473: [04:03:30] <tractorcow> I better check this is postgres...
474: [04:04:40] <ss23> lol simon_w
475: [04:06:15] <wmk> is there an easy way to see, if locale files got updated? can i diff only the labels between en_US.yml and de_DE.yml?
476: [04:07:21] <tractorcow> fixed it ss23 :)
477: [04:07:28] <ss23> YAY
478: [04:07:30] <tractorcow> Shall I paste you my updated TimeField to try out?
479: [04:07:31] * ss23 awards tractorcow 500 points
480: [04:07:36] <ss23> tractorcow: Hmm
481: [04:07:38] <ss23> Yeap
482: [04:07:39] <tractorcow> (will do some more testing)
483: [04:07:54] <tractorcow> but you can help
484: [04:08:02] <tractorcow> I've changed the parsing process to
485: [04:08:02] <ss23> :D
486: [04:08:06] * lietzmk quit (Quit: Leaving)
487: [04:08:30] <tractorcow> 1. Check ISO date time (expected from database), but only if in exact format
488: [04:08:31] <tractorcow> 2. Check locale specific format if that fails (but not exact match)
489: [04:08:53] * supernovah has joined #silverstripe
490: [04:09:04] <supernovah> lol I've been sitting in silverstrpie waiting for the userlist to load
491: [04:09:09] <supernovah> for 10 minutes
492: [04:09:41] <ss23> lol
493: [04:10:03] <tractorcow> http://sspaste.com/paste/show/51cd0bff649b9
494: [04:10:17] <tractorcow> my change was to add the `parseTime` code
495: [04:10:50] <supernovah> But after tonight it's snoboarding, and silverstripe at the lodge -> http://farm8.staticflickr.com/7253/7524728806_f0517027fa_k.jpg
496: [04:11:26] <tractorcow> righteous
497: [04:12:18] <simon_w> Peavers, want a readme?
498: [04:12:50] * spronk quit (Read error: Connection reset by peer)
499: [04:13:15] * spronk has joined #silverstripe
500: [04:13:41] <tractorcow> ss23: What do you think of my translatable contender? https://github.com/tractorcow/silverstripe-fluent
501: [04:14:06] <simon_w> it works it works it works it works :)
502: [04:14:25] <tractorcow> It uses single-row storage instead of multiple filtered rows for each translation
503: [04:14:42] <tractorcow> simon_w: congrats! (what works?)
504: [04:14:49] <simon_w> tractorcow, this module for Peavers
505: [04:15:43] <tractorcow> that's great :)
506: [04:16:09] <supernovah> Famous Programmer words huh: It works it works! Wait.... why does it work...
507: [04:16:28] <simon_w> I've spent about six and a half days coding this :p
508: [04:16:37] <ss23> lol
509: [04:18:06] <spronk> hmm
510: [04:18:07] <spronk> guys
511: [04:18:18] <tractorcow> anyways, tests pass. Will PR i guess
512: [04:18:23] <spronk> can i use language translation files to change CMS labels?
513: [04:18:25] <ss23> yay
514: [04:18:27] <ss23> ty tractorcow <3
515: [04:18:35] <tractorcow> Should be able to :)
516: [04:18:37] <ss23> tractorcow: Link to the PR if you can when you're done
517: [04:25:31] <tractorcow> I still haven't solved my error message bug =(
518: [04:29:14] <spronk> where would i find the name of Security so i can override it
519: [04:29:39] <tractorcow> https://github.com/silverstripe/silverstripe-framework/pull/2164
520: [04:29:46] <tractorcow> There you go ss23
521: [04:31:14] <tractorcow> spronk: framework/lang/en.yml
522: [04:31:15] <tractorcow> en:
523: [04:31:15] <tractorcow> SecurityAdmin:
524: [04:31:15] <tractorcow> MENUTITLE: 'Security'
525: [04:31:39] <spronk> ahh
526: [04:31:41] <spronk> SecurityAdmin
527: [04:31:42] <tractorcow> Is that what you need?
528: [04:31:44] <tractorcow> yep :)
529: [04:31:54] <spronk> damnit
530: [04:32:07] <spronk> cheers tractorcow
531: [04:32:47] <spronk> hmm
532: [04:32:58] <spronk> do i have to override it in the framework/lang/ yml?
533: [04:33:03] <tractorcow> no
534: [04:33:04] <spronk> or can i put it in mysite/lang?
535: [04:33:07] <tractorcow> you make yoru own en.yml
536: [04:33:09] <tractorcow> yep
537: [04:33:09] <spronk> hmm
538: [04:33:17] <spronk> isn't working :(
539: [04:33:29] <spronk> oh
540: [04:33:32] * spronk flushes
541: [04:33:35] <tractorcow> What are you changing it to?
542: [04:33:36] <tractorcow> lol
543: [04:33:42] <spronk> there we go :D
544: [04:34:25] <tractorcow> MENUTITILE: "Don't press this button"
545: [04:35:50] <simon_w> tractorcow, tests!
546: [04:35:57] <tractorcow> I did run the tests
547: [04:36:02] <simon_w> Write some.
548: [04:36:03] <tractorcow> lol, ok
549: [04:36:19] * DigNZ quit (Quit: DigNZ)
550: [04:36:31] <tractorcow> I suppose I can drink and write tests
551: [04:36:40] <tractorcow> at the same time
552: [04:36:54] <spronk> * burp
553: [04:39:18] <Peavers> simon_w, I want more than a readme
554: [04:39:33] <Peavers> I want a 500 page manual
555: [04:39:51] <simon_w> Peavers, I could include the SAML documentation if you really wanted me too :p
556: [04:40:08] <Peavers> Colour print and on my desk before end of day please.
557: [04:40:16] <Peavers> bound with leather of course too.
558: [04:40:19] <Peavers> nothing else is acceptable.
559: [04:44:36] * Colin[pi] quit (Ping timeout: 252 seconds)
560: [04:47:19] <tractorcow> simon_w: Are these ok? https://github.com/silverstripe/silverstripe-framework/pull/2164/files
561: [04:49:34] <tractorcow> Sorry for the delay in tests :)
562: [04:50:12] * Shrike_Finland has joined #silverstripe
563: [04:50:24] * howardgrigg has joined #silverstripe
564: [04:50:33] * mobiusnz quit (Quit: Leaving.)
565: [04:54:27] <tractorcow> ss23: Do you mind checking my work for me?
566: [04:54:48] <tractorcow> Would be nice for a second opinion before I go home :)
567: [04:54:51] <tractorcow> third, I mean,
568: [04:55:07] <ss23> lol
569: [04:55:12] <ss23> tractorcow: The pull request? I had a quick look, it seemed okay
570: [04:55:26] <tractorcow> I mean, pull it to your project and test that it fixes your problem
571: [04:55:38] <tractorcow> in case it's still unresolved due to some odd locale you have set
572: [04:59:18] <ss23> lol, not really an option, since it's a clients website that is all in super cool git management, so it's kind of hard to do that
573: [04:59:45] <tractorcow> What is super cool git management?
574: [04:59:57] <supernovah> pull *
575: [05:00:06] <spronk> http://www.lamebook.com/wp-content/uploads/2013/06/a-statue-of-stupidity.jpg
576: [05:01:27] <simon_w> Home time :)
577: [05:02:01] <tractorcow> Do I get a pat on the head before we go?
578: [05:02:04] <tractorcow> I'm on the way out too
579: [05:02:27] <simon_w> That means actually reviewing your patch :p
580: [05:02:27] * nickmolhoek quit (Quit: nickmolhoek)
581: [05:02:40] <tractorcow> Just a "that'll do cow" will do
582: [05:02:50] <tractorcow> and i'm slightly drunk
583: [05:02:55] <tractorcow> so I'll believe whatever you say
584: [05:03:07] <simon_w> And I'm so looking forward to no SAML over the weekend
585: [05:03:11] * simon_w quit (Quit: This computer has gone to sleep)
586: [05:03:12] <tractorcow> (not really, but bear with my enthusiasm for our progress today)
587: [05:03:15] <spronk> :D
588: [05:03:16] <tractorcow> cya :)
589: [05:03:22] <tractorcow> night all,
590: [05:03:24] <tractorcow> I'm going home
591: [05:03:31] * tractorcow has left #silverstripe
592: [05:05:46] * guzzlefry has joined #silverstripe
593: [05:06:06] <wmk> why oh why doesn't $Date.Nice use i18n date format?
594: [05:08:15] <guzzlefry> return new RegistrationForm(new Page_Controller(Page::get()->First()), __FUNCTION__); <-- What does this do? Trying to figure out why two exact (pretty sure anyway) code bases resolve a different action for a form.
595: [05:15:29] * Peavers quit (Ping timeout: 256 seconds)
596: [05:15:56] <ss23> home time
597: [05:15:58] <ss23> simon_w|air: I WIN
598: [05:17:20] * coldblooded01 quit (Quit: coldblooded01)
599: [05:21:41] <metanat> guzzlefry: http://php.net/manual/en/language.constants.predefined.php this might help
600: [05:22:30] * metanat quit (Quit: Leaving.)
601: [05:51:08] * simon_w has joined #silverstripe
602: [05:51:13] <simon_w> ss23, why?
603: [05:51:30] <ss23> simon_w: I got home first!
604: [05:51:31] <ss23> :D
605: [05:51:38] <simon_w> Eh
606: [05:51:56] <ss23> If I get home first, the competition is who leaves work first
607: [05:52:02] <ss23> If I leave last, the competition is who stays at work the longest
608: [05:52:24] * lerni has joined #silverstripe
609: [05:54:49] <guzzlefry> Page::get()->First() <-- Does this more or less grab the first page in the database? >_> Docs are kind of vague on the get() method.
610: [05:55:33] <simon_w> guzzlefry, yes
611: [05:56:29] <guzzlefry> simon_w: So it could lead to ambiguity between two installs of the same code base?
612: [05:56:52] <simon_w> Yes
613: [05:57:47] <guzzlefry> ok, cool. I have a starting point then. Thank you :)
614: [06:08:17] * kerosene has joined #silverstripe
615: [06:27:07] * gumble has joined #silverstripe
616: [06:32:22] * willr quit (Quit: willr)
617: [06:47:40] * simon_w|air quit (Ping timeout: 268 seconds)
618: [06:49:33] * MrJeremy quit (Quit: MrJeremy)
619: [07:05:50] * guzzlefry quit (Quit: Leaving.)
620: [07:13:37] * zippy__ has joined #silverstripe
621: [07:18:42] * anujit has joined #silverstripe
622: [07:18:48] <anujit> Hi all
623: [07:19:01] <anujit> facing trouble in installing silverstripe 2.4
624: [07:19:09] <anujit> on development server
625: [07:19:10] <ss23> More details?
626: [07:19:37] <anujit> magic_quotes_gpc is set to '1' in php.ini. This should be turned off, as it can cause issues with cookies. More specifically, unserializing data stored in cookies.
627: [07:19:56] <anujit> You need mod_rewrite to use friendly URLs with SilverStripe, but it is not enabled.
628: [07:20:26] * SamMargalit has joined #silverstripe
629: [07:28:15] <SamMargalit> Hey guys, having trouble locating a custom theme dir
630: [07:28:15] <anujit> in htaccess, I have written...http://www.sspaste.com/paste/show/51cd38e6b6c86
631: [07:28:18] <anujit> hi ss23.... I have given the details
632: [07:28:18] * ss-log quit (Ping timeout: 252 seconds)
633: [07:28:18] * ss23 quit (Ping timeout: 256 seconds)
634: [07:33:37] * zippy__ quit (Quit: zippy__)
635: [07:33:37] <Shrike_Finland> Hi,
636: [07:38:54] <Shrike_Finland> I'm trying to save data with " character on database with Varchar but it puts &quot back on template
637: [07:38:54] <Shrike_Finland> if I change table type to HtmlText, it adds <p> tags (not good)
638: [07:38:54] * howardgrigg quit (Remote host closed the connection)
639: [07:38:54] <Shrike_Finland> is there a way to get data as it is written back to template?
640: [07:38:54] <Shrike_Finland> with Varchar
641: [07:38:54] <SamMargalit> hiya, for some reason my $themedir isn't working
642: [07:38:54] <SamMargalit> http://grayreidgallery.com.au/
643: [07:38:54] <SamMargalit> seems to be pulling up the template directory fine
644: [07:38:54] <SamMargalit> but can't find my /theme/colab/ dir
645: [07:43:06] * ss23 has joined #silverstripe
646: [07:45:55] <Shrike_Finland> simon_w: any good tip, how to pull " instead of &quot; back to template from Varchar table?
647: [07:46:41] <wmk> Shrike_Finland, $myvar.RAW ??
648: [07:46:54] <Shrike_Finland> lets test...
649: [07:47:12] <wmk> there was a change recently that all variables are casted as HTML for security reasons
650: [07:48:48] * anujit quit (Ping timeout: 250 seconds)
651: [07:48:57] <Shrike_Finland> wmk: it worked! Thanx. Do I have to react to that security thing somehow or is it save to do it just with .raw?
652: [07:49:34] <wmk> Shrike_Finland, afaik it's casting in templates, so your value is saved correctly
653: [07:51:50] * SamMargalit quit (Ping timeout: 250 seconds)
654: [07:52:55] <Shrike_Finland> great
655: [07:54:04] <ss23> IMO it's a bad change, but I guess it'll protect noobies
656: [07:54:14] * chillu has joined #silverstripe
657: [07:54:39] <wmk> ss23, well, secure by default can suck sometimes, for us it's a change but we'll live with it
658: [08:02:40] * kinglozzer has joined #silverstripe
659: [08:10:50] * zippy__ has joined #silverstripe
660: [08:12:19] <wmk> can i disable modeladmins import and export functionality by config?
661: [08:12:51] * popeshoe quit (Quit: This computer has gone to sleep)
662: [08:22:24] * travis-ci has joined #silverstripe
663: [08:22:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#446 (3.1 - a9f1501 : Ingo Schommer): The build passed.
664: [08:22:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/973a23fac823...a9f150126c73
665: [08:22:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8532744
666: [08:22:24] * travis-ci has left #silverstripe
667: [08:26:00] * zippy__ quit (Quit: zippy__)
668: [08:35:17] * EasyCo quit (Quit: EasyCo)
669: [08:35:54] <wmk> what's the official place for declaring javascript requirements? in page_controller init or inside my templates?
670: [08:37:20] <wmk> a mixture of both makes problems with jquery, if e.g. i declare jquery requirement inside the template and a module requires js inside init, module's js. is loaded first and i get: ReferenceError: jQuery is not defined
671: [08:48:57] * micmania1 has joined #silverstripe
672: [09:07:36] * RojoD quit (Read error: Connection reset by peer)
673: [09:12:18] * RojoD has joined #silverstripe
674: [09:29:30] * mattybalaam has joined #silverstripe
675: [09:32:49] * SightUnseen has joined #silverstripe
676: [09:34:16] * SightUnseen has left #silverstripe
677: [09:41:05] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
678: [09:48:47] <RojoD> hui
679: [09:53:38] * priithansen has joined #silverstripe
680: [09:59:35] * spronk2 has joined #silverstripe
681: [10:06:36] * travis-ci has joined #silverstripe
682: [10:06:37] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#435 (3.1 - 0bd257c : Ingo Schommer): The build passed.
683: [10:06:37] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/98750a9cf149...0bd257c8fcee
684: [10:06:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/8534805
685: [10:06:37] * travis-ci has left #silverstripe
686: [10:10:06] <Zauberfisch-idle> hey gents
687: [10:10:17] <Zauberfisch-idle> [User Error] Uncaught Zend_Translate_Exception: Locale "de" not found in file /home/example.com/public_html/mysite/lang/de.yml
688: [10:10:28] <Zauberfisch-idle> I can't seem to find the issue
689: [10:11:27] <Zauberfisch-idle> my /mysite/lang/de.yml file: http://paste2.org/maXyn9jM
690: [10:16:54] <Zauberfisch-idle> fml
691: [10:17:36] <Zauberfisch-idle> turns out I just spent half an hour just to find out there was some line endings mixup
692: [10:18:06] <Zauberfisch-idle> or at least I guess it was, because typing the whole file by hand fixed the issue
693: [10:21:33] * samthejarvis has joined #silverstripe
694: [10:22:08] * samthejarvis quit (Client Quit)
695: [10:33:44] <simon_w> wmk, that shouldn't happen. The module should also be requiring jQuery
696: [10:35:03] <simon_w> Shrike_Finland, uh, that's how a Varchar works. If you want HTML in it, use HTMLVarchar
697: [10:35:30] <simon_w> ss23, the change was for methods that returned strings, not DB fields.
698: [10:43:02] <ss23> simon_w: Was that meant for me?
699: [10:43:11] <simon_w> [19:53:20] <ss23> IMO it's a bad change, but I guess it'll protect noobies
700: [10:43:28] <ss23> I don't get it
701: [10:43:36] <ss23> What does whether it's for things that return strings etc matter?
702: [10:43:57] <simon_w> You were under the impression from wmk that it affected Varchar fields
703: [10:44:30] <ss23> I thought it affected everything in templates
704: [10:44:41] <ss23> apart from HTMLField I guess
705: [10:44:51] <simon_w> Nope. Default cast is only applied to things that don't have a cast
706: [10:45:27] <ss23> Anyway, tired,nn simon_w and co.
707: [10:45:34] <simon_w> Slack!
708: [10:45:38] <ss23> lol
709: [10:45:57] <ss23> I might read some of a book
710: [10:46:04] <ss23> Friend I'm staying with ahs soom good ones
711: [10:46:07] <ss23> fml I can't spell
712: [10:46:09] <ss23> Anyway, nn
713: [10:46:14] <simon_w> night
714: [10:50:07] * simon_w|air has joined #silverstripe
715: [10:50:41] * ss-log has joined #silverstripe
716: [10:50:42] * ss-log quit (Changing host)
717: [10:50:43] * ss-log has joined #silverstripe
718: [10:56:23] <Zauberfisch-idle> simon_w appending to our conversation yesterda
719: [10:56:24] <Zauberfisch-idle> y
720: [10:56:25] * zippy__ has joined #silverstripe
721: [10:56:38] <wmk> simon_w, ok, module should also require jquery, but if i add a newer jquery for modules and block old jquery i have to do it in page_controller init
722: [10:56:57] <Zauberfisch-idle> don't you have to flush as well for yml file changes to take effect? like lang files
723: [10:57:26] <simon_w|air> Zauberfisch-idle, yeah. I forgot about translations, but the rest is part of the config manifest
724: [11:00:58] * zippy__ quit (Client Quit)
725: [11:03:39] * chillu quit (Quit: chillu)
726: [11:14:04] * chillu has joined #silverstripe
727: [11:20:03] * Colin[pi] has joined #silverstripe
728: [11:28:57] * Colin[pi] quit (Read error: Connection reset by peer)
729: [11:34:18] * Colin[pi] has joined #silverstripe
730: [11:50:02] * mattybalaam quit (Quit: mattybalaam)
731: [11:59:51] * chillu quit (Quit: chillu)
732: [12:08:55] * UndefinedOffset has joined #silverstripe
733: [12:14:33] * ARNHOE has joined #silverstripe
734: [12:23:38] * r3v3rb has joined #silverstripe
735: [12:32:48] * gumble quit (Ping timeout: 246 seconds)
736: [12:42:58] * ARNHOE_ has joined #silverstripe
737: [12:42:59] * ARNHOE quit (Read error: Connection reset by peer)
738: [12:46:51] * Shrike_Finland quit (Quit: Leaving.)
739: [12:59:58] * samthejarvis has joined #silverstripe
740: [13:11:39] * swordsmanz_ has joined #silverstripe
741: [13:12:17] * swordsmanz quit (Read error: Operation timed out)
742: [13:12:18] * swordsmanz_ is now known as swordsmanz
743: [13:16:44] * mattybalaam has joined #silverstripe
744: [13:20:25] * lerni quit (Remote host closed the connection)
745: [13:21:36] * samthejarvis quit (Ping timeout: 250 seconds)
746: [13:24:57] * r3v3rb has left #silverstripe
747: [13:30:40] * Colin[pi] quit (Ping timeout: 264 seconds)
748: [13:32:27] * silverstripe has joined #silverstripe
749: [13:33:40] <silverstripe> what's happened to the grouped CMS menu buttons in 3.1?
750: [13:33:59] <silverstripe> what the, why am I called silverstripe..
751: [13:34:03] * silverstripe quit (Client Quit)
752: [13:34:17] * samthejarvis has joined #silverstripe
753: [13:34:43] * DesignerX quit (Ping timeout: 256 seconds)
754: [13:35:49] * ARNHOE_ quit (Remote host closed the connection)
755: [13:38:08] * popeshoe has joined #silverstripe
756: [13:54:38] * g4b0 has joined #silverstripe
757: [13:56:14] <g4b0> hi all
758: [13:57:07] <samthejarvis> 'ello
759: [14:00:02] * chillu has joined #silverstripe
760: [14:00:57] * ARNHOE has joined #silverstripe
761: [14:06:27] * g4b0 quit (Ping timeout: 256 seconds)
762: [14:09:47] <samthejarvis> so cute! http://www.keyboardco.com/spot-light/minila.asp
763: [14:11:31] * priithansen quit (Quit: priithansen)
764: [14:14:15] * kerosene is now known as KEROSENE
765: [14:19:46] * g4b0_ has joined #silverstripe
766: [14:22:49] * KEROSENE is now known as kerosene
767: [14:29:12] * samthejarvis quit (Ping timeout: 250 seconds)
768: [14:38:59] * ARNHOE quit (Remote host closed the connection)
769: [14:40:51] * lietzmk has joined #silverstripe
770: [14:55:50] * g4b0_ quit (Ping timeout: 256 seconds)
771: [15:07:58] * r3v3rb has joined #silverstripe
772: [15:09:04] * g4b0_ has joined #silverstripe
773: [15:09:11] * r3v3rb quit (Client Quit)
774: [15:16:07] * UndefinedOffset quit (Quit: Leaving.)
775: [15:41:26] * popeshoe quit (Quit: This computer has gone to sleep)
776: [15:49:04] * Shrike_Finland has joined #silverstripe
777: [16:00:18] * chillu quit (Quit: chillu)
778: [16:10:06] * g4b0_ quit (Remote host closed the connection)
779: [16:13:52] * mattybalaam quit (Quit: mattybalaam)
780: [16:15:11] * spronk2 quit (Quit: spronk2)
781: [16:22:57] <Shrike_Finland> Hi guys, is it possible to lock uploadfield to specifc folder based on user group, for example?
782: [16:27:52] * catcher has joined #silverstripe
783: [16:30:43] * kinglozzer quit (Remote host closed the connection)
784: [16:34:17] * priithansen has joined #silverstripe
785: [16:43:35] <micmania1> Shrike_Finland, you can set the upload folder, but I don't think its possible to do it globally. I suppose you could extend Upload field which would ensure running the logic each time.
786: [16:44:07] <micmania1> So every time the UploadField was rendered you could check where the user should be uploading to, and set that folder.
787: [16:50:28] * micmania1 quit (Ping timeout: 250 seconds)
788: [17:00:43] * Colin[pi] has joined #silverstripe
789: [17:19:23] * gelignite has joined #silverstripe
790: [17:23:39] * Colin[pi] quit (Ping timeout: 256 seconds)
791: [18:03:07] * ARNHOE has joined #silverstripe
792: [18:05:03] * micmania1 has joined #silverstripe
793: [18:19:38] * ARNHOE quit (Remote host closed the connection)
794: [18:21:54] * RojoD quit (Ping timeout: 252 seconds)
795: [18:36:05] * ARNHOE has joined #silverstripe
796: [18:36:10] * RojoD has joined #silverstripe
797: [18:36:10] * RojoD quit (Changing host)
798: [18:36:10] * RojoD has joined #silverstripe
799: [19:00:55] * ARNHOE quit (Remote host closed the connection)
800: [19:03:33] * lenix- has joined #silverstripe
801: [19:03:33] * lenix quit (Read error: Connection reset by peer)
802: [19:44:49] * SphereSilver has joined #silverstripe
803: [19:45:12] <SphereSilver> weird, freenode is actively blocking my other PC to connect to freenode
804: [19:55:56] * ARNHOE has joined #silverstripe
805: [19:57:59] <SphereSilver> Hey ARNHOE
806: [19:58:09] <SphereSilver> Dutch AND a German connection to freenode???
807: [20:01:16] * guzzlefry has joined #silverstripe
808: [20:13:30] <wmk> SphereSilver, and i was wondering where you've been
809: [20:26:32] <guzzlefry> Are there any better docs, besides the API reference, that can give me an idea of how to use DataObject::get()?
810: [20:28:53] <micmania1> guzzlefry, have a read through these: http://doc.silverstripe.org/framework/en/topics/datamodel
811: [20:28:54] <guzzlefry> Well, viewing the source helps a bit. Curious as to why the @param comments aren't in the docs themselves?
812: [20:29:09] <guzzlefry> oh, no I haven't. I will. Thank you.
813: [20:32:54] <micmania1> Anybody know why the validate method gets called before it attempts to delete something? Seems odd.
814: [20:33:42] <micmania1> If a DataObject isn't 'valid' it refuses to delete it.
815: [20:40:48] * wmk quit (Ping timeout: 268 seconds)
816: [20:50:28] * mobiusnz has joined #silverstripe
817: [20:51:18] * mobiusnz1 has joined #silverstripe
818: [20:55:17] * mobiusnz quit (Ping timeout: 264 seconds)
819: [21:07:10] * Colin[pi] has joined #silverstripe
820: [22:04:39] * RojoD quit (Ping timeout: 240 seconds)
821: [22:16:21] <simon_w> guzzlefry, because you shouldn't be passing agreements to DataObject::get()
822: [22:16:56] <simon_w> micmania1, it doesn't.
823: [22:32:35] <micmania1> simon_w, it does. When you delete something from the CMS it checks ->validate() and throws an error instead of deleting.
824: [22:36:08] <micmania1> As an example, I have an extra field called Username added onto Member through DataExtension.
825: [22:36:13] * SphereSilver quit (Ping timeout: 246 seconds)
826: [22:36:43] <micmania1> A record has been put into the db without a username before any validation has been set.
827: [22:37:27] <simon_w> micmania1, there's no calls to validate() in cms, framework/admin or grid field. validate() itself is only every called on writing a DataObject or changing a Member's password
828: [22:37:38] <simon_w> *ever
829: [22:37:42] <micmania1> Now that I check that a username exists in validate(), it throws that error rather than deleting the member.
830: [22:42:58] <micmania1> I've figured out what it is.
831: [22:44:08] <micmania1> Try removing a users Email Address. Click Save (validation error). Click Delete (validation error again).
832: [22:45:27] <micmania1> Then you can refresh the page and see that the Member hasn't been deleted.
833: [22:46:07] <simon_w> That's the form validator
834: [22:48:42] <micmania1> javascript?
835: [22:49:30] <simon_w> No
836: [22:49:45] <simon_w> It's similar to RequiredFields
837: [22:50:19] <micmania1> so i'm not going crazy? lol
838: [22:51:03] <simon_w> The form has to be valid for it to submit. For that, a FirstName and Email are required
839: [22:51:29] <simon_w> If you delete through the list of users, rather than through the edit form, there's no form to validate
840: [22:51:41] <micmania1> That seems a bit flawed. If you're deleting a record then it shouldn't matter (theoretically).
841: [22:52:07] <simon_w> The form doesn't know the semantics of what you're trying to do
842: [23:03:09] * simon_w|air quit (Quit: This computer has gone to sleep)
843: [23:04:06] * gelignite quit (Quit: http://bit.ly/nkczDT)
844: [23:08:36] * PigeonFriend quit ()
845: [23:19:11] * curtosis has joined #silverstripe
846: [23:45:12] * catcher quit (Quit: Leaving)
847: [23:55:20] <guzzlefry> I keep getting errors like these on a production server but not development: Action 'FormSetQuantity' isn't allowed on class CartItemController.
848: [23:55:47] <guzzlefry> Code was just pulled from development. Any idea why it's doing this?
849: [23:56:33] <guzzlefry> both are on 3.1.x-dev
850: [23:57:35] <guzzlefry> The only difference that I can think of is that dev is on PHP 5.3 while prodction is 5.4.
851: [23:58:01] <guzzlefry> Aside from slightly different data in the database

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