#silverstripe IRC Log

IRC log for 23 April 2013

All timestamps are in UTC.

1: [00:05:00] <solva> morning everyone!
2: [00:07:00] * mirrors has joined #silverstripe
3: [00:07:00] <mirrors> Hey..is there are way to combine the css files that are added in the theme
4: [00:08:00] <mirrors> I am using 4 different themes and obvisouly include different css in different themes....now I want to combine these files, but I can only work out how to do so in the init() function but you have to include the css from this function instead of the theme .ss file
5: [00:09:00] <solva> can you explain that again? :)
6: [00:10:00] <mirrors> sorry...all themes have custom css......but each theme uses at least 5 or more different css files....so for each theme I want to combine their css files into one
7: [00:10:00] <solva> you have common css you want to use in all four, but also custom css you want in individual themes?
8: [00:11:00] <mirrors> normally I include the css in the themes using <% require themedCSS(form) %> so therefore only the custom css for each theme is included
9: [00:12:00] <solva> sup
10: [00:12:00] <mirrors> I am not sure how I can cominbe only the custom css files for each theme
11: [00:12:00] <mirrors> since the Page.php init() function is executed for all themes
12: [00:12:00] <Jakx> yo
13: [00:12:00] * Jakx has joined #silverstripe
14: [00:13:00] <simon_w> mirrors, combine_files only works in a controller
15: [00:13:00] <solva> mirrors, well you could programatically check what theme is set in init() and then include the css files based on that
16: [00:13:00] <simon_w> He's being weird and doing work, or some such
17: [00:13:00] <Jakx> no pyromanik today
18: [00:14:00] <simon_w> solva, that won't work. init() is called long before the theme
19: [00:15:00] <solva> but that actually hits a controller that looks at which theme is set and loads and outputs the contents of those files....
20: [00:15:00] <solva> hmm its a bit out there, but you could have a controller that pretends to be a css file, but actually dynamically reads in the contents of the different css files, based on which theme is set...
21: [00:15:00] <solva> ie, have a route that goes for /foo/coolcss.css
22: [00:15:00] <solva> just an idea..
23: [00:24:00] <simon_w> SSViewer::current_theme()
24: [00:24:00] <mirrors> simon_w: is there another way to check what theme is set in the init function
25: [00:25:00] * spronk2 quit (*.net *.split)
26: [00:25:00] * mobiusnz quit (*.net *.split)
27: [00:25:00] * Kolin quit (*.net *.split)
28: [00:26:00] <mirrors> simon_w: so then why can I not do it programatically like solva suggested?
29: [00:29:00] <simon_w> Having a big switch block'll work fine
30: [00:29:00] <simon_w> I thought he meant grab all the requirements from the theme (as in, all the calls to <% require %>), then combine them
31: [00:30:00] * Kolin has joined #silverstripe
32: [00:30:00] * mobiusnz has joined #silverstripe
33: [00:30:00] * spronk2 has joined #silverstripe
34: [00:33:00] * jerga has joined #silverstripe
35: [00:33:00] * jerga quit (Quit: Leaving.)
36: [00:34:00] <Jakx> SearchContext*
37: [00:34:00] <Jakx> simon_w, could you please help me with an example of how to use SearchContect to search my dataobjects? I can quite visualise it based on the documentation ><
38: [00:38:00] <Jakx> can't*
39: [00:39:00] <Jakx> I swear I make more typos in irc than anywhere else lol.
40: [00:41:00] * terryapodaca has left #silverstripe
41: [00:41:00] <Colin[pi]> wow I hate you sometimes ajax >_<
42: [00:48:00] <Jakx> simon_w, hmmm - my question above was under the assumption that SearchContext was like a search engine... I'm starting to think otherwise.
43: [00:59:00] * jerga quit (Ping timeout: 276 seconds)
44: [01:03:00] <Jakx> what's the easiest way to filter dataobjects based on their many_many relationships? i.e return objects with a relationship to a relatedObject->Title like something?
45: [01:06:00] * EasyCo has joined #silverstripe
46: [01:09:00] * SticksM has joined #silverstripe
47: [01:09:00] <Jakx> alright, maybe an simpler question. What Search Filter modifier is similar to the sql "LIKE" ?
48: [01:09:00] * Motoservo has joined #silverstripe
49: [01:10:00] <simon_w> Jakx, ->filter('Rel.Title:Contains', $blah)
50: [01:12:00] <Jakx> [User Error] Uncaught InvalidArgumentException: ExactMatchFilter does not accept Contains as modifiers
51: [01:13:00] <Jakx> simon_w, PartialMatch seems to work fine
52: [01:14:00] <simon_w> Which version? And what type of OR?
53: [01:14:00] <Jakx> simon_w, do you have a way to simulate sql "OR" with these filters?
54: [01:15:00] <simon_w> ->filterAny()
55: [01:15:00] <Jakx> simon_w, 3.1
56: [01:15:00] <simon_w> pass in an array
57: [01:15:00] <Jakx> simon_w, i.e "Title LIKE 'Something' OR Description LIKE 'Something'"
58: [01:16:00] <Jakx> simon_w, awesome. That could be added to the Datamodel docs?
59: [01:17:00] <simon_w> Like it already is?
60: [01:18:00] <Jakx> #facepalm
61: [01:18:00] <Jakx> simon_w, I was readying 3.0 docs :S soz ><
62: [01:18:00] <Jakx> simon_w, ty ty
63: [01:33:00] * mirrors quit (Quit: Page closed)
64: [01:37:00] * Guest78745 is now known as elgrodo
65: [01:37:00] <elgrodo> is it possible to filter access to the CMS so that only items you 'own' can be edited. Scenario is editing players in a sports team, model admin
66: [01:38:00] <Jakx> elgrodo, yep. canCreate(), canEdit(), canDelete(), canPublish() ...
67: [01:38:00] <elgrodo> I know there is a can view method, is there a similar one for can edit?
68: [01:40:00] <Jakx> elgrodo, yeah you got it
69: [01:40:00] <elgrodo> Jakx: Cool, thanks. So I just need to add an ownership/permission check in canEdit then I take it
70: [01:43:00] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
71: [01:43:00] <Jakx> cheers guys! have a good one
72: [01:45:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
73: [01:55:00] * DesignerX quit (Ping timeout: 256 seconds)
74: [02:02:00] * lewellyn quit (Ping timeout: 256 seconds)
75: [02:05:00] <Pyromanik> Chrome world's worst browser.
76: [02:05:00] <Pyromanik> every update, a new float bug.
77: [02:05:00] <Pyromanik> gg, worse than IE.
78: [02:05:00] * Pyromanik has joined #silverstripe
79: [02:07:00] <spronk> mm
80: [02:08:00] <Pyromanik> how to force a reflow?
81: [02:09:00] <Pyromanik> lol so buggy
82: [02:09:00] <Pyromanik> push all the beta's to stable!
83: [02:09:00] <Pyromanik> hmm 0 f's givne.
84: [02:09:00] <Pyromanik> given*
85: [02:10:00] <spronk> google to a t
86: [02:10:00] <spronk> mm
87: [02:13:00] <Pyromanik> yeh
88: [02:14:00] <Pyromanik> "Oh, you're srs?... LOL HARDER"
89: [02:14:00] <Pyromanik> fast losing their image of innovators and just turning into pipe dreamers with NIH syndrome
90: [02:14:00] <Pyromanik> rest of the world: lol.
91: [02:14:00] <Pyromanik> "Javascript NIH, so Dart"
92: [02:17:00] <EasyCo> Can you debug XHR requests in Firefox?
93: [02:17:00] <EasyCo> But the dev tools??? I can't let go of em.
94: [02:17:00] <EasyCo> I tend to agree with you??? I used to love Chrome and it' starting to piss me off
95: [02:19:00] <simon_w> Safari and Opera :)
96: [02:19:00] * joelpittet quit (Ping timeout: 272 seconds)
97: [02:19:00] <simon_w> Yes (with Firebug, which is its own can of worms)
98: [02:19:00] <simon_w> Well, the Presto version of Opera
99: [02:21:00] <EasyCo> Cant' say I've ever tried Opera
100: [02:22:00] <simon_w> It's my fallback for when the WebKit nightlys are being buggy
101: [02:22:00] <simon_w> Presto, like Apple's WebKit
102: [02:22:00] <EasyCo> Presto like Chrome's Canary?
103: [02:37:00] <spronk> opera is elite
104: [02:37:00] <spronk> context menus, NIH, so ... REMAKE!
105: [02:41:00] * joelpittet has joined #silverstripe
106: [02:45:00] * clodeindustrie has joined #silverstripe
107: [02:46:00] <clodeindustrie> hey what's the recommended way for modifying a modelAdmin form?
108: [02:51:00] <Pyromanik> I'm worried bugs will carry over :<
109: [02:51:00] <Pyromanik> spronk: but
110: [02:51:00] <Pyromanik> opera switching to chromium rendering engine
111: [02:54:00] <Pyromanik> EasyCo: firebug is good
112: [02:54:00] <Pyromanik> but is an addon so can be a bit of a slowdown at times.
113: [02:54:00] <Pyromanik> but not often.
114: [02:58:00] <clodeindustrie> does getCMSField impact the form in ModelAdmin?
115: [02:59:00] <Pyromanik> yes
116: [03:05:00] <clodeindustrie> thanks
117: [03:05:00] * BaronGrivet has joined #silverstripe
118: [03:07:00] <BaronGrivet> Howdy chaps. I've run into a "[Notice] Array to string conversion" error message on a 2.4 website I've got to do some work on. Problem is here: http://www.silverstripe.org/installing-silverstripe/show/22795#post321514
119: [03:10:00] <solva> it seems anyone who is not an Administrator can't use ModelAdmin? ie i have a Content Editor role but she can't use ModelAdmin for data objects. how can i fix this please?
120: [03:13:00] <Bollig|DesignCty> solva: in the security interface, give her access to the specific admin interface
121: [03:15:00] <Bollig|DesignCty> BaronGrivet: there isn't going to be anyone who's going to want to spend time diagnosing issues like that on 2.4.x??? have you tried upgrading to post-2.4 as willr suggests on the forums, or at minimum just hiding notice-level errors in PHP?
122: [03:16:00] <spronk> firebug slows to a fucking crawl if you leave your browser open for a while
123: [03:16:00] <spronk> Pyromanik: they will :(
124: [03:18:00] <solva> Bollig|DesignCty, thanks, that looks like the key!!
125: [03:18:00] <BaronGrivet> Cheers @Bollig|DesignCty - it's one of those jobs which is just adding minor additional functionality. Pity the upgrade from 2.4 to 3.0 is such a mission - I'd love to upgrade the site but can't justify it to the client.
126: [03:18:00] <ss23> >firebug
127: [03:18:00] <ss23> Well if ew're going to talk about how bad archacic browers are, why not just talk about IE6 instead?
128: [03:18:00] <Bollig|DesignCty> yeah, agreed BaronGrivet??? Hiding the notice level error is probably the best and easiest thing to do...
129: [03:19:00] <Bollig|DesignCty> solva: nice and easy :)
130: [03:19:00] <solva> just how i like it ;)
131: [03:28:00] <Bollig|DesignCty> solva: you could also update Content Editor to allow access to the admin for all users if you need to
132: [03:29:00] * DesignerX has joined #silverstripe
133: [03:41:00] <solva> but none of the items appear there
134: [03:41:00] <solva> hmm, that didnt work
135: [03:41:00] <solva> she can still click on the Tab in the left hand column (as she could before)
136: [03:49:00] <solva> she only gets access if she's given full admin rights...?!
137: [03:53:00] * simon_w quit (Ping timeout: 256 seconds)
138: [03:54:00] * cloph_away has joined #silverstripe
139: [03:55:00] * cloph quit (Ping timeout: 264 seconds)
140: [03:56:00] * simon_w has joined #silverstripe
141: [03:58:00] * BaronGrivet quit (Quit: Page closed)
142: [03:59:00] <Pyromanik> 2.4 complex table field prototype.js throwing error
143: [03:59:00] <Pyromanik> 'iterator' undefined.
144: [04:00:00] <Pyromanik> anyone else had an issue like this, how solve?
145: [04:00:00] <Pyromanik> preventing other scripts from running per page
146: [04:03:00] <Pyromanik> I feel like if I knew where the call originated from I could prevent it
147: [04:04:00] <Pyromanik> but IE only shows the stack in the current scope, not the route taken from document :<
148: [04:07:00] <Pyromanik> spronk: yeh, instead of using Chromium Webkit they should just open source Presto
149: [04:18:00] * lewellyn has joined #silverstripe
150: [04:23:00] * lewellyn quit (Quit: Reconnecting)
151: [04:23:00] * lewellyn has joined #silverstripe
152: [04:30:00] <spronk> presto has a nice js engine
153: [04:41:00] <unsigned_> Hello, can anybody tell me why the Silverstripe session doesnt save its data? I call Session::set("Key", $data) and then do a redirect, and the data is not available when doing a Session:get("Key"). I have made it work on every browser except Internet Explorer by using $_SESSION directly. Note: I am storing arrays of arrays in the session, I hope this is supported.
154: [04:42:00] <spronk> its not as fast as v8 or jskit but it doesn't rape your computer as much
155: [04:45:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
156: [04:47:00] <FrozenFire> unsigned_, Are you doing anything wonky? SS implements its sessions a bit crazy, iirc.
157: [04:48:00] <FrozenFire> I think it basically eliminates $_SESSION and stores everything elsewhere
158: [04:49:00] <unsigned_> Well, I basically have a shopping cart array that looks something like array("product_id" => array("quantity" => 2), "product_2_id" => array("quantity" => 1))
159: [04:49:00] <FrozenFire> I mean, it still uses the normal sessions save handler, but it doesn't write things back to $_SESSION until the end
160: [04:49:00] <FrozenFire> I think that's to facilitate mocking a session for tests
161: [04:49:00] <FrozenFire> Personally, I like to save carts in the database
162: [04:50:00] <unsigned_> To add an item I use Session::get("Cart") to get the whole array, add to the array, and then use Session::set("Cart", $array) to set it back
163: [04:50:00] <unsigned_> Well theres no user login for this website
164: [04:50:00] <FrozenFire> Then have a task for cleaning up old carts
165: [04:50:00] <FrozenFire> So if someone goes to another computer and logs in, it lets them keep going
166: [04:51:00] <unsigned_> The data disappears after calling Session::set(); Its like Director::redirect() makes it skip its session saving
167: [04:51:00] <unsigned_> Anyway, the session functions appear to work on every browser except IE
168: [05:00:00] * nickmolhoek quit (Quit: nickmolhoek)
169: [05:02:00] * mobiusnz quit (Quit: Leaving.)
170: [05:14:00] <EasyCo> Funny that everytime I read IIRC I need to google it. So much for recalling anything.
171: [05:19:00] * Shrike_Finland has joined #silverstripe
172: [05:24:00] <solva> i have a problem where non-administrators (ie content editors) cannot edit data objects through Model Admin
173: [05:25:00] <solva> neither works; is this a bug or something i'm missing?
174: [05:25:00] <simon_w> When you say can't edit, what do you mean?
175: [05:25:00] <solva> i have also over ridden the canEdit, canCreate etc methods on the dataobject, forcing them to all return true
176: [05:25:00] <solva> i have given their groups a role which allows editing that data object
177: [05:26:00] <solva> so they can see the menu item up the left, in the admin. they click on the menu item on the left
178: [05:26:00] <solva> it then says "No Items Found", with a View 1 - 4 of 4
179: [05:27:00] <solva> actually, they can click the Add Foo green button at the top, create an object
180: [05:27:00] <solva> (ie there are four pages of items, but they can't see any of them, nor paginate through them)
181: [05:27:00] <solva> but then back on the listing, they can't see the object
182: [05:28:00] <solva> so its not showing in the listing?!
183: [05:28:00] <solva> harrrrrrr
184: [05:28:00] <solva> nope
185: [05:28:00] <solva> if i copy and paste a link to edit the page, from an admin account, that user can actually edit it..
186: [05:28:00] <simon_w> You haven't overridden canView()?
187: [05:29:00] <solva> and the class directly extends DataObject (ie theres no intermediatary class)
188: [05:29:00] <solva> i also havent messed with summary fields or anything
189: [05:30:00] <simon_w> You need to override canView()
190: [05:31:00] <solva> is this intentional behaviour?
191: [05:31:00] <simon_w> Yes
192: [05:31:00] <solva> bah, that fixed it
193: [05:32:00] <solva> i dont understand it
194: [05:32:00] <solva> can you explain why please? :)
195: [05:35:00] <simon_w> You were saying the user couldn't view an item, so that item wasn't being displayed in the GridField
196: [05:46:00] * Motoservo has joined #silverstripe
197: [05:50:00] <EasyCo> Listening to the Spotify top 50 makes me lose hope in humanity.
198: [05:50:00] <solva> yes but i would have thought that being given access in the backend would have allowed them to view it; as well as edit it
199: [05:54:00] <Colin[pi]> listening to humanity makes me lose hope in humanity
200: [05:58:00] <EasyCo> So emo.
201: [06:17:00] <simon_w> solva, the model (the actual DataObject) doesn't know about the permissions of the controller (the ModelAdmin you have people permission to)
202: [06:26:00] * zfmf has joined #silverstripe
203: [06:37:00] * maknz quit (Read error: Connection reset by peer)
204: [06:44:00] * Colin[pi] quit (Read error: Connection reset by peer)
205: [06:44:00] * Colin[pi] has joined #silverstripe
206: [06:52:00] * mobiusnz has joined #silverstripe
207: [06:53:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
208: [06:58:00] * joelpittet quit (Remote host closed the connection)
209: [06:59:00] * SightUnseen has left #silverstripe
210: [06:59:00] * SightUnseen has joined #silverstripe
211: [07:01:00] * EasyCo quit (Quit: EasyCo)
212: [07:12:00] * webguest has joined #silverstripe
213: [07:14:00] * ajshort has joined #silverstripe
214: [07:16:00] * Motoservo has joined #silverstripe
215: [07:21:00] * chillu has joined #silverstripe
216: [07:28:00] <webguest> i got this now, http://paste2.org/3gBv1PD0
217: [07:28:00] <webguest> how do i make a _t translatable dropdown field in a front-end FORM ?
218: [07:29:00] * priithansen has joined #silverstripe
219: [07:30:00] <ajshort> webguest: you don't put quotes around the _t function call
220: [07:32:00] <ajshort> array('Male' => _t(), 'Female' => _t())
221: [07:32:00] <webguest> ok srry, but i ment the value's Male, Female
222: [07:32:00] <webguest> how do i translate the mapped Values?
223: [07:32:00] <ajshort> easiest way is just hardcode the array
224: [07:34:00] * mobiusnz quit (Quit: Leaving.)
225: [07:34:00] <webguest> but then in the db/ cms it would also show: array('Male' => _t() ?
226: [07:34:00] <ajshort> no
227: [07:34:00] * SticksM quit (Read error: Connection reset by peer)
228: [07:46:00] <webguest> ajshort: http://paste2.org/DPwjnsJM like this?
229: [07:47:00] <ajshort> close enough
230: [07:48:00] <ajshort> you need to fix your syntax though
231: [07:59:00] <webguest> ajshort, replaced ; for , ... but im getting " the method 'setform' does not exist on 'ArrayData'"
232: [07:59:00] <ajshort> your gender array declaration is in the wrong place
233: [07:59:00] <webguest> http://paste2.org/jAMNaBGt
234: [08:00:00] <ajshort> either put it outside the FieldSet constructor, or write it inline in the DropdownField constructor
235: [08:00:00] <webguest> :O
236: [08:03:00] * kinglozzer has joined #silverstripe
237: [08:06:00] * solva quit (Quit: Leaving)
238: [08:10:00] * travis-ci has joined #silverstripe
239: [08:10:00] <travis-ci> [travis-ci] silverstripe/sapphire#2057 (3.0 - 50d2c26 : Trevor): The build passed.
240: [08:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a303a39d71c4...50d2c262303d
241: [08:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6559360
242: [08:10:00] * travis-ci has left #silverstripe
243: [08:11:00] * Rojod has joined #silverstripe
244: [08:24:00] * osterlaus has joined #silverstripe
245: [08:30:00] * waveydave has joined #silverstripe
246: [08:42:00] * Silverstriper has joined #silverstripe
247: [08:44:00] <Silverstriper> hi there! anybody knows about this one? : an automaticaly generated page dropdownlistfield (working on our servers and no problem till now) suddenly is a textfield on the clients server... I don't get it. Anybody?
248: [08:44:00] <Silverstriper> btw the field is in the CMS
249: [08:47:00] <kinglozzer> Silverstriper: I don't know what's causing it, but if it were me I'd force it to be a DropdownField in my getCMSFields() method
250: [08:48:00] <ajshort> Silverstriper: once you get more than a certain number of items, it switches to a text field for performance reasons
251: [08:50:00] * mobiusnz has joined #silverstripe
252: [08:52:00] * webguest quit (Ping timeout: 245 seconds)
253: [08:52:00] <Rojod> Hm,
254: [08:52:00] <Rojod> Is it possible that SS only run on the root site, and don't mess with my subdomains?
255: [09:07:00] <Rojod> chillu or simon_w?
256: [09:09:00] <simon_w|air> Rojod, set up your subdomains so they're not in the same folder as silverstripe
257: [09:13:00] * lx-berlin_ has joined #silverstripe
258: [09:20:00] * qlex has joined #silverstripe
259: [09:22:00] <qlex> i think it was Opticblaze who was creating such gallery
260: [09:22:00] * qlex says hi
261: [09:22:00] <lx-berlin_> hi
262: [09:22:00] <qlex> there was a discussion on image gallery for ss3, which could be linked to blog module
263: [09:22:00] <qlex> do you guys have any knowledge on this?
264: [09:23:00] <qlex> first i need to add a gallery module for ss3.0.5 and then hopefully link it somehow to blog, so that blog entry is linked to album in gallery (either by link or best by display of thumbnails from that album)
265: [09:23:00] <lx-berlin_> sorry, the only gallery module i have been using was https://github.com/cwsoft/silverstripe-cwsoft-foldergallery
266: [09:23:00] <qlex> obviosuly client would need it for tomorrow morning ;)
267: [09:23:00] <qlex> any hints ?
268: [09:24:00] * jerga has joined #silverstripe
269: [09:26:00] <qlex> https://github.com/OpticBlaze/ss3Gallery
270: [09:26:00] <qlex> cwsoft gallery requires that user goes to Files and creates the album first there and uploads the files there correct ?
271: [09:26:00] <qlex> lx-berlin_: clients isnt that good in using Files - only uses Pages
272: [09:26:00] * jerga has left #silverstripe
273: [09:26:00] <qlex> have this github page open, along this one
274: [09:27:00] <lx-berlin_> yes,
275: [09:27:00] <lx-berlin_> so this is also an advantage. You can upload many images at once in the file section and then choose the folder
276: [09:27:00] <qlex> bin ?
277: [09:27:00] <lx-berlin_> bin the gallerypage you just select a folder
278: [09:27:00] <qlex> and then the gallery in Pages automatically grabs those pics yes ?
279: [09:28:00] <lx-berlin_> :)
280: [09:28:00] <Silverstriper> I'm searching for a long time on this one too: the search function in SS3.03 in the from-files dialog is not working. Is this a known bug? Any workaround for this? (A client of us needs it... )
281: [09:28:00] <lx-berlin_> *in
282: [09:28:00] <lx-berlin_> a do a lot of typos
283: [09:29:00] <lx-berlin_> i think 3.0.5 is the current version
284: [09:29:00] <lx-berlin_> i never tested the search function in files
285: [09:29:00] <qlex> i got Warning at line 131 of /.../framework/filesystem/Upload.php
286: [09:29:00] <lx-berlin_> maybe you update your SS ?
287: [09:30:00] <Silverstriper> @lx-berlin: if we're sure it's fixed in that version we will, but is it a known bug and fixed in that version?
288: [09:30:00] <qlex> would that mean that there's a problem with permissions ?
289: [09:30:00] <qlex> mkdir(ASSETS_PATH . "/" . $folderPath, Filesystem::$folder_create_mask);
290: [09:30:00] <qlex> if(!file_exists(ASSETS_PATH . "/" . $folderPath)){
291: [09:30:00] <qlex> and that line in upload.php is:
292: [09:32:00] <lx-berlin_> in SS its always the choice between cutting edge and Bleeding edge. There is no bug free version. Sorry that i say this. :)
293: [09:33:00] <qlex> Opticblaze gallery module saves pictures and creates albums in root of /assets/
294: [09:33:00] <qlex> to answer myt own question, yes, permissions problem
295: [09:34:00] <qlex> can i leave assets set to 777 ?
296: [09:34:00] <qlex> so that assets need to be 777
297: [09:34:00] <lx-berlin_> according to simon_w : "777 is bad bad bad" :)
298: [09:34:00] <lx-berlin_> thats what he told me, when i asked this question
299: [09:35:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
300: [09:36:00] * cloph_away is now known as cloph
301: [09:36:00] <Silverstriper> @lx-berlin: haha, I found out, but in the end it's all about workarounds an I didn't find one for thisone
302: [09:36:00] <cloph_away> qlex: much simplet to change the owner of the assets folder to your php/web user
303: [09:37:00] * mobiusnz quit (Quit: Leaving.)
304: [09:38:00] <qlex> and then it can be 755 rite ?
305: [09:38:00] <qlex> cloph_away: ok, once i get to my vps via ssh, i will try that
306: [09:41:00] <cloph> yes
307: [09:44:00] <ss23> Does anyone want some magnets? Buying some from http://products.dangerousmagnets.co.nz/ (Anyone who I'll see at hackfest that is)
308: [09:44:00] <cloph> chillu: regarding the nginx pull-request: I'd like to keep the "expires" setting (as almost no tutorial uses it and thus people forget about this little switch that can make quite a difference) and also the "#fastcgi_read_timeout" one (as when you ask google, most results are about proxy-timeouts and thus don't apply) - OK with that, or do you want those to be removed as well?
309: [09:45:00] <cloph> and should the silverstripe-cache entry also be a prefix match or just the vendor one?
310: [09:49:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
311: [09:54:00] <chillu> cloph: What's the default fastcgi_read_timeout?
312: [09:55:00] <cloph> default is 60s
313: [09:58:00] <chillu> Can you please note that this needs to sync up with php's own settings? The config file is turning into a bit of a kitchen sink IMHO, but if it helps people, sure
314: [10:00:00] * Motoservo has joined #silverstripe
315: [10:03:00] <ajshort> chillu: is the addons stuff behaving itsel fok?
316: [10:04:00] <chillu> ajshort: I've added god to puppet via vagrant, but haven't gotten anybody to deploy that yet
317: [10:04:00] <ajshort> ok cool
318: [10:04:00] <ajshort> it seems to be working ok from what i can see
319: [10:05:00] <ajshort> ah yep
320: [10:05:00] <chillu> Doesn't look like the queue is running through, e.g. this one doesn't have a readme: http://addons.silverstripe.org/add-ons/kinglozzer/bfgoogleanalytics
321: [10:05:00] <ajshort> yeah i stopped it eventually :)
322: [10:05:00] <chillu> And I've fixed a bug where the queue would always fail on first_load because no ID was set in the queue data
323: [10:05:00] <ajshort> but once god is set up it should be ok
324: [10:05:00] <chillu> Why did you stop it? Shouldn't we just make it a background process for now?
325: [10:06:00] <chillu> Can you restart as background?
326: [10:06:00] <ajshort> i was running it in the foreground so i could watch it using VVERBOSE
327: [10:06:00] <simon_w|air> screen.
328: [10:06:00] <chillu> or that
329: [10:06:00] <ajshort> my ssh connection died i think
330: [10:07:00] <ajshort> can do
331: [10:08:00] <chillu> If you're bored, you could add a footer - we need at least a link to github addons project somewhere :) https://github.com/silverstripe/addons.silverstripe.org/issues/16. I'm hoping to take care of the ss.org related bits this week
332: [10:09:00] <ajshort> heh
333: [10:09:00] <ajshort> not a lot of free time right at the moment unfortunately
334: [10:09:00] <ajshort> i can add a quick paragraph or something
335: [10:09:00] <chillu> btw, i'm using resque-web through lynx, working pretty well haha
336: [10:09:00] <chillu> nw
337: [10:10:00] <chillu> is there any blockers from your perspective (for a beta launch)?
338: [10:11:00] <simon_w|air> It still doesn't support SVN over SSL?
339: [10:11:00] <chillu> you mean the underlying composer libs don't?
340: [10:12:00] <simon_w|air> That too. The current ss.org/extensions doesn't support it either
341: [10:13:00] <chillu> and you've turned off non-ssl for your repos? OK, well ??? both addons and composer are open source projects :)
342: [10:14:00] <cloph> chillu: remains my question whether the vendor and static-cache rules should be (regex) patterns (as in .htaccess and in current version of pull-request) or simple prefixes (I assume both should be prefixes, but to avoid yet another iteration please clarify)
343: [10:14:00] <simon_w|air> And composer has basically told me it's a security risk to enable :)
344: [10:14:00] <chillu> prefix is fine
345: [10:15:00] <simon_w|air> https://svn.pocketrent.com
346: [10:15:00] <chillu> because you have your own cert, and they'd need to ignore it? c'mon man
347: [10:15:00] <simon_w|air> Nope
348: [10:15:00] <simon_w|air> We pay good money for that
349: [10:16:00] <ajshort> ok, resque should hopefully run in the background now until we can set up a proper process monitor
350: [10:16:00] <chillu> Thanks Andrew!
351: [10:17:00] <chillu> May your process never vanquish!
352: [10:17:00] <ajshort> hopefully
353: [10:17:00] * Zauberfisch has joined #silverstripe
354: [10:17:00] <ajshort> the queue had become confused again as well so i reset it
355: [10:18:00] * webguest has joined #silverstripe
356: [10:19:00] <webguest> its a multi lingual website
357: [10:19:00] <webguest> [ SS 2.4.10 ] - i have the groupDecorator so admin and users can log-in to front and back-end of the website
358: [10:19:00] <webguest> in the CMS you can choose groups to redirect (for non-admins)
359: [10:19:00] <webguest> but these are only English pages
360: [10:20:00] <webguest> so it would redirect to the page your currently on
361: [10:20:00] <webguest> if your on Dutch, and log-in .. you'll get redirected to the English page
362: [10:20:00] <webguest> it would be nice if i could add ?Locale=$locale
363: [10:22:00] * qlex needs to run and will return :)
364: [10:22:00] * qlex has left #silverstripe
365: [10:28:00] * osterlaus quit (Quit: Leaving.)
366: [10:41:00] * jerga has joined #silverstripe
367: [10:58:00] * Zauberfisch quit (Ping timeout: 260 seconds)
368: [11:01:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
369: [11:05:00] * waveydave has joined #silverstripe
370: [11:05:00] <kinglozzer> Phew. Managed to add the ability to insert iframes to the htmleditor
371: [11:05:00] <kinglozzer> This is where someone tells me someone has already done it.. :P
372: [11:05:00] * waveydave has left #silverstripe
373: [11:07:00] * osterlaus has joined #silverstripe
374: [11:11:00] <lx-berlin_> :)
375: [11:14:00] * Liquide quit ()
376: [11:18:00] * Silverstriper quit (Ping timeout: 245 seconds)
377: [11:31:00] <kinglozzer> Hmm. When using updateMediaForm, if I push a new field both the <div id="myfield" class="field text"> and the input have the same ID :/
378: [11:32:00] <kinglozzer> They both have the ID "myfield" instead of one having "Form_EditorToolbarMediaForm_myfield"
379: [11:34:00] * lx-berlin_ quit (Ping timeout: 252 seconds)
380: [11:43:00] * lx-berlin_ has joined #silverstripe
381: [11:44:00] * zfmf quit (Remote host closed the connection)
382: [11:44:00] * zfmf has joined #silverstripe
383: [11:44:00] * Zauberfisch has joined #silverstripe
384: [11:45:00] <Zauberfisch> in the silverstripe translateable module there is "silverstripe/framework": "~3.1"
385: [11:45:00] <Zauberfisch> (in the composer.json)
386: [11:45:00] <Zauberfisch> what is ~3.1 standing for?
387: [11:46:00] <Zauberfisch> ah, nvm
388: [11:46:00] <Zauberfisch> found the docs
389: [11:47:00] <Zauberfisch> so am I right to say it will allow anything from 3.0 to 3.x but not 2 and not 4 ?
390: [11:47:00] <Zauberfisch> ah, actually, from 3.1 to 3.x but not 4 and not 3.0
391: [11:51:00] * Rojod quit (Ping timeout: 245 seconds)
392: [12:00:00] * Rojod has joined #silverstripe
393: [12:01:00] <Rojod> simon_w|air: no other way to do that?
394: [12:02:00] <Rojod> 'cause I shouldn't know how I could transport the sub's ;)
395: [12:03:00] * UndefinedOffset has joined #silverstripe
396: [12:19:00] * webguest quit (Ping timeout: 245 seconds)
397: [12:43:00] * oskarholo quit (Read error: Connection reset by peer)
398: [12:50:00] * lx-berlin_ quit (Ping timeout: 240 seconds)
399: [12:53:00] * lx-berlin_ has left #silverstripe
400: [12:53:00] * lx-berlin_ has joined #silverstripe
401: [13:07:00] * ajshort has joined #silverstripe
402: [13:22:00] <Shrike_Finland> Hi
403: [13:22:00] <Shrike_Finland> What is the right way of writing this in YAML config? BootstrapForm::set_bootstrap_included(true);
404: [13:23:00] * tari-d has joined #silverstripe
405: [13:24:00] * Nyger has joined #silverstripe
406: [13:26:00] * tari has joined #silverstripe
407: [13:26:00] * osterlaus quit (Quit: Leaving.)
408: [13:27:00] * tari-d quit (Ping timeout: 245 seconds)
409: [13:27:00] <Shrike_Finland> Something like this? http://pastebin.com/taAFUpEm
410: [13:34:00] <kinglozzer> I might be talking out of my backside there
411: [13:34:00] <kinglozzer> Shrike_Finland: Is this for UncleCheese's module? I don't think you can use YAML for that, the properties aren't marked as private
412: [13:35:00] <Shrike_Finland> Kinglozzer: yes. It's including css now with 3.1 beta 3 version as it ignores those lines from _config.php
413: [13:36:00] <Shrike_Finland> and as I use Bootstrap on site, css gets polluted
414: [13:37:00] <kinglozzer> Oh sorry, I forgot your site config :P
415: [13:37:00] <kinglozzer> Shrike_Finland: This would be how I'd do it http://pastebin.com/Qi364gAy
416: [13:38:00] <kinglozzer> Shrike_Finland: http://pastebin.com/kumXa4Xn
417: [13:39:00] <Shrike_Finland> Should the _config.php lines still work or is YAML overriding them?
418: [13:39:00] <Shrike_Finland> of course I can delete .css from bootstrapforms folder and it works, but???
419: [13:39:00] <Shrike_Finland> Ain't working.
420: [13:40:00] <Shrike_Finland> offline for a while...
421: [13:40:00] * Shrike_Finland quit (Quit: Leaving.)
422: [13:48:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
423: [13:55:00] * gelignite has joined #silverstripe
424: [13:56:00] * Colin[pi] quit (Ping timeout: 264 seconds)
425: [14:01:00] * joelpittet has joined #silverstripe
426: [14:07:00] * Rojod quit (Ping timeout: 245 seconds)
427: [14:19:00] <Shrike_Finland> and back
428: [14:19:00] * Shrike_Finland has joined #silverstripe
429: [14:21:00] * Zauberfisch quit (Remote host closed the connection)
430: [14:22:00] * osterlaus has joined #silverstripe
431: [14:42:00] * wmk has joined #silverstripe
432: [14:47:00] * Guits has joined #silverstripe
433: [14:48:00] <Guits> Hi all, anyone know enough bout the memberprofiles module to explain how to order the profile fields
434: [14:49:00] <osterlaus> Hi there. I recently set up a new machine, and now calling phpunit is horribly(!) slow
435: [14:50:00] <osterlaus> I tracked it down to SapphireTest.resetDBSchema which takes some seconds to run, which seems crazy, as the new machine is much faster than the old one but testing takes way more time
436: [14:52:00] <osterlaus> okay, its UploadFieldTest_Record->requireTable() that holds and holds....
437: [14:53:00] * feejin has joined #silverstripe
438: [14:57:00] * feejin has joined #silverstripe
439: [14:57:00] * feejin quit (Remote host closed the connection)
440: [14:57:00] <osterlaus> yeah, seems to be a mysql bug: http://bugs.mysql.com/bug.php?id=46738
441: [15:08:00] * joelpittet quit (Remote host closed the connection)
442: [15:09:00] * webguest has joined #silverstripe
443: [15:10:00] <webguest> SS 2.4x question : i have a multi lingual website and want to check inSection.. but this isnt possible on other languages of the site.. so i would like to check inSection by ClassName, how do i do something liek this?
444: [15:15:00] * catcher has joined #silverstripe
445: [15:22:00] * Nyger has left #silverstripe
446: [15:22:00] <webguest> i need something like this http://paste2.org/3bYD3MtY but then nicer written
447: [15:28:00] <catcher> webguest, http://sspaste.com/paste/show/5176a8790ef3c
448: [15:28:00] <catcher> minus the extra right paren :) untested, obviously
449: [15:32:00] * DesignerX quit (Ping timeout: 255 seconds)
450: [15:34:00] * osterlaus quit (Quit: Leaving.)
451: [15:43:00] * joelpittet has joined #silverstripe
452: [15:57:00] <webguest> catcher, srry didnt see your message in time, i got this now: http://paste2.org/mXCf2K74 which works
453: [15:57:00] * zfmf quit (Remote host closed the connection)
454: [15:57:00] * zfmf has joined #silverstripe
455: [15:58:00] <webguest> which checks the urlsegment in all languages
456: [15:58:00] <webguest> so sort of inSection by using classname
457: [15:58:00] <webguest> and then does the normal insection
458: [16:05:00] * feejin quit (Remote host closed the connection)
459: [16:14:00] <catcher> webguest, depending on your situation, it can be bad to base code on URLSeg since they change.
460: [16:26:00] * kinglozzer quit (Remote host closed the connection)
461: [16:28:00] * Motoservo quit (Ping timeout: 252 seconds)
462: [16:41:00] * Motoservo has joined #silverstripe
463: [16:43:00] * waveydave has left #silverstripe
464: [16:59:00] * osterlaus has joined #silverstripe
465: [17:00:00] * Colin[pi] has joined #silverstripe
466: [17:00:00] <osterlaus> does anybody in here know about a way to restart a travis build? see https://travis-ci.org/silverstripe/sapphire/jobs/6574403 for an interesting error....
467: [17:02:00] * tari quit (Remote host closed the connection)
468: [17:12:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
469: [17:17:00] <FrozenFire> Is there a casting for turning a comma separated list into an ArrayList?
470: [17:17:00] <FrozenFire> E.g. the result of a ListboxField
471: [17:21:00] * Colin[pi] quit (Ping timeout: 264 seconds)
472: [17:32:00] * osterlaus quit (Quit: Leaving.)
473: [17:37:00] * lx-berlin_ has joined #silverstripe
474: [17:42:00] * FrozenFire just writes his own method for it
475: [17:49:00] <UndefinedOffset> osterlaus: you need to be using an account that is a contributor to the repo, like chillu for instance
476: [18:02:00] * joelpittet quit (Remote host closed the connection)
477: [18:15:00] <FrozenFire> E.g. add a lang/en.yml which just includes overrides?
478: [18:15:00] <FrozenFire> Can you overload translations?
479: [18:15:00] <FrozenFire> Or do you have to copy the whole file?
480: [18:20:00] <FrozenFire> Uggh, note to self, never run i18n text collector
481: [18:23:00] <catcher> FrozenFire, you can override in an otherwise empty module.
482: [18:24:00] <catcher> Or whatever will put it last.
483: [18:24:00] <catcher> I believe they're included alphabetically though, so start your dir name with a 'z' to make sure it's last.
484: [18:25:00] <FrozenFire> And my project starts with o
485: [18:25:00] <FrozenFire> So I think I'm fine
486: [18:25:00] <catcher> k
487: [18:25:00] <FrozenFire> But yeah, I can override individually, yeah?
488: [18:25:00] <FrozenFire> Eh, I think all of what I want to override is in framework and cms
489: [18:25:00] <FrozenFire> Say I want to override Security.LOGIN only
490: [18:26:00] <catcher> I thought that's what I had done in the past, though I just discovered I copied the whole file.
491: [18:27:00] <FrozenFire> I *think* it's working to just override individually
492: [18:30:00] * webguest quit (Ping timeout: 245 seconds)
493: [18:35:00] * wmk quit (Quit: nice to meet you ;))
494: [18:38:00] <FrozenFire> Is there any way to run the i18n text collector on a theme?
495: [19:11:00] * Liquide has joined #silverstripe
496: [19:22:00] <FrozenFire> Translations are hard. Let's go shopping!
497: [19:24:00] * Nivery has joined #silverstripe
498: [19:27:00] <simon_w> Less shopping, more shipping!
499: [19:31:00] <FrozenFire> And doing the relation copying there, using the $this->_TranslationGroupID hack
500: [19:31:00] <FrozenFire> I'm needing to copy a bunch of relationships over to newly created translations on a DataObject, using the translatable extension.
501: [19:31:00] <FrozenFire> I'm just adding a method called onTranslatableCreate
502: [19:32:00] <FrozenFire> Is this right?
503: [19:33:00] <simon_w> Probably? I try not to delve into Translatable :p
504: [19:34:00] <FrozenFire> Hrmm, the docs say you should be able to use MasterTranslationID
505: [19:34:00] <FrozenFire> Though the code says TranslationMasterID
506: [19:35:00] <FrozenFire> never**
507: [19:35:00] <FrozenFire> Though the code comments that out and ever refers to it again
508: [19:35:00] * FrozenFire sticks to his hack
509: [19:37:00] <FrozenFire> Create the goddamn tables...
510: [19:37:00] * FrozenFire mutters obscenities at Translatable
511: [19:39:00] <FrozenFire> Translatable talks like a fag and its shit's all retarded
512: [19:39:00] * mobiusnz has joined #silverstripe
513: [19:40:00] <FrozenFire> Weird. When I added the extension externally, it never created the tables
514: [19:40:00] <FrozenFire> I added it to the class directly, and it created the tables.
515: [19:41:00] <FrozenFire> Ugggggghh
516: [19:41:00] <FrozenFire> Now I have to define an interface for creating translations?
517: [19:42:00] <FrozenFire> And https://github.com/silverstripe-labs/silverstripe-translatablemodeladmin is old as sin
518: [19:44:00] * lx-berlin_ has left #silverstripe
519: [19:49:00] <FrozenFire> halp -.-
520: [19:50:00] * FrozenFire has crocodile tears streaming down his face
521: [19:50:00] <simon_w> Down the rabbit hole with you! :p
522: [19:52:00] <FrozenFire> I do not look forward to this in the least >.>
523: [19:53:00] <simon_w> Perhaps you should move the crocodile crying on your face first?
524: [20:04:00] * ARNHOE has joined #silverstripe
525: [20:06:00] <FrozenFire> The tears help me ignore the bad code I'm inevitably writing
526: [20:06:00] * zfmf has left #silverstripe
527: [20:14:00] * ARNHOE quit (Remote host closed the connection)
528: [20:16:00] * jerga quit (Ping timeout: 246 seconds)
529: [20:16:00] * jerga has joined #silverstripe
530: [20:18:00] <catcher> anyone have a better way than rsync & /dev/build as quickly as possible?
531: [20:18:00] <catcher> ugh, I hate pushing large code changes to a live site.
532: [20:20:00] * mobiusnz quit (Quit: Leaving.)
533: [20:20:00] * UndefinedOffset quit (Quit: Leaving.)
534: [20:20:00] <simon_w> Have multiple installs load balanced, take one down at a time for the update
535: [20:21:00] <catcher> ahh, that would be nice.
536: [20:31:00] <FrozenFire> I have a custom DataObject. I add the Translatable extension to it.
537: [20:31:00] * FrozenFire is confused by this Translatable behaviour...
538: [20:31:00] <FrozenFire> Translatable::updateCMSFields isn't called
539: [20:31:00] <FrozenFire> And yet, if I call it manually...
540: [20:32:00] <FrozenFire> It works as expected
541: [20:32:00] <FrozenFire> Doesn't ItemEditForm automagically call updateCMSFields?
542: [20:32:00] * mobiusnz has joined #silverstripe
543: [20:33:00] <FrozenFire> I guess since I don't call parent::getCMSFields() (to avoid scaffolding), it never gets called
544: [20:33:00] <FrozenFire> You have to call that yourself...
545: [20:33:00] <FrozenFire> Oh weird
546: [20:34:00] * nickmolhoek has joined #silverstripe
547: [20:34:00] * nickmolhoek has joined #silverstripe
548: [20:34:00] * nickmolhoek quit (Remote host closed the connection)
549: [20:34:00] * nickmolhoek has joined #silverstripe
550: [20:34:00] * nickmolhoek quit (Remote host closed the connection)
551: [20:35:00] * jerga has left #silverstripe
552: [20:44:00] <simon_w> That's because IE does weird things on redirects, especially in frames
553: [20:44:00] <unsigned_> Hello, does anyone know the secret for making sessions work in Silverstripe? Even ignoring its inbuilt sessions and using $_SESSION doesn't work in IE for some reason
554: [20:46:00] <FrozenFire> I believe the solution is to put this in your controller's init: $this->Response->addHeader("P3P", 'CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"');
555: [20:46:00] <FrozenFire> That satisfies IE to not be a complete dick in iframes, for the most part.
556: [20:46:00] <FrozenFire> E.g. public function init() { parent::init(); $this->Response->addHeader("P3P", 'CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"'); }
557: [20:50:00] <unsigned_> Im not using iframes, just IE in general, but thanks ill give that a crack
558: [20:50:00] * eikonos quit (Quit: Leaving.)
559: [20:51:00] <FrozenFire> Yeah, probably applies in many situations
560: [20:51:00] * EasyCo has joined #silverstripe
561: [20:52:00] <FrozenFire> It's some sort of weird privacy standard that was being worked on, and everyone else dropped it like the steaming pile of shit it is, except for Microsoft
562: [20:53:00] <unsigned_> well the new request cant see them
563: [20:53:00] <unsigned_> Hmm, it didnt work. The values are all fine throughout the method, but as soon as redirectBack() is called (ie a new request is started), they all disappear again
564: [20:54:00] <FrozenFire> Are you trying to save the contents of a form when you redirectBack on error?
565: [20:54:00] <FrozenFire> Can you clarify what you're trying to do?
566: [20:57:00] <unsigned_> works fine on everything that isnt IE
567: [20:57:00] <unsigned_> Nope. Im adding items to a "cart" (just an array stored in $_SESSION). I have an action, "AddToCart/<productid>" which pretty much just puts the productid in the array (and a quantity too). Once the product is added to the array in $_SESSION, $this->redirectBack() is called. The new request then checks the session to see if theres any items to display a 'Shopping Cart' link on the page, and also a 'This item was added' label on
568: [20:57:00] <unsigned_> the current item
569: [20:58:00] <unsigned_> works fine on firefox
570: [20:58:00] <unsigned_> no sorry I retract that
571: [20:58:00] <unsigned_> safari worked when I was using Session::get()/Session::set() in combination with $_SESSION
572: [20:59:00] <unsigned_> chrome works fine same as firefox
573: [21:03:00] <FrozenFire> Yeah. That's pretty typical. IE and Safari are abusive to develop for.
574: [21:04:00] <FrozenFire> Have you created a session *before* you call this action?
575: [21:04:00] <FrozenFire> Or is the action creating a session?
576: [21:05:00] <unsigned_> I just start adding values to the session array
577: [21:05:00] <unsigned_> I have to create a session? I thought Silverstripe did it as part of its bootstrap
578: [21:06:00] <FrozenFire> The other possible issue is that IE could be caching the redirect
579: [21:06:00] <unsigned_> Understood
580: [21:06:00] <FrozenFire> Sorry, it's a distinction in regards to your process. If the user doesn't yet have a session cookie, then it will cause issues
581: [21:06:00] <unsigned_> well I am not explicitly creating a session, is this going toc ause me problems? How can I explicitly create a session?
582: [21:07:00] <unsigned_> Actually I did notice it redirected very fast
583: [21:07:00] <FrozenFire> Sessions are only created if you actually save data into them.
584: [21:07:00] * Motoservo has joined #silverstripe
585: [21:08:00] <FrozenFire> http://api.silverstripe.org/master/source-class-Session.html#405
586: [21:08:00] <FrozenFire> By default, both Controller::redirect and Controller::redirect use a 302 redirect
587: [21:09:00] <unsigned_> I tried setting "Cache-Control: no-cache" before calling $this->redirectBack() but it didnt help
588: [21:09:00] <unsigned_> Problem is the data doesnt get saved!
589: [21:10:00] <FrozenFire> It just goes to where it was redirected before
590: [21:10:00] <FrozenFire> Nah, the two issues that may be occuring are: 1) The session data is "saved", but the browser never saves the session cookie client-side. 2) The redirect is being cached
591: [21:10:00] <FrozenFire> If the redirect is being cached, it never actually goes to the action
592: [21:10:00] * SightUnseen has joined #silverstripe
593: [21:10:00] * SightUnseen has left #silverstripe
594: [21:10:00] <FrozenFire> So you should do $this->redirect("someurl", 303);
595: [21:11:00] <unsigned_> well I just issued a Session::start() in my Page_Controller::init() and it magically started working
596: [21:11:00] <unsigned_> mind you I am still using $_SESSION and not Session::
597: [21:11:00] <unsigned_> understood
598: [21:11:00] * Motoservo quit (Client Quit)
599: [21:12:00] <FrozenFire> You'll be sorry
600: [21:12:00] <unsigned_> well Session:: wasnt working..
601: [21:12:00] <FrozenFire> And now that it is, it'll start overwriting $_SESSION
602: [21:12:00] <Pyromanik> ask for site files, get given shadow
603: [21:12:00] <unsigned_> thanks heaps for your help
604: [21:12:00] <Pyromanik> ...
605: [21:12:00] <FrozenFire> Yeah, don't use $_SESSION in SilverStripe
606: [21:13:00] * qloazy has joined #silverstripe
607: [21:13:00] <unsigned_> I'll switch all by $_SESSION manipulation back to Session::set and Session::get and see if its still working
608: [21:13:00] <unsigned_> my*
609: [21:13:00] <qloazy> hello
610: [21:14:00] <simon_w> Would be nice if you could get sessions to use a read/write lock
611: [21:14:00] <qloazy> how do I add an URLsegment to a dataobject in SS3? static $indexes = array( "URLSegment" => true ); doesnt seam to work
612: [21:15:00] <qloazy> cant I use the normal URLSegment controller which is used for pages?
613: [21:15:00] <Pyromanik> stomach
614: [21:15:00] <Pyromanik> or
615: [21:15:00] <simon_w> qloazy, you add a Varchar to the $db array, then set up a controller that knows how to handle it
616: [21:15:00] * EasyCo quit (Ping timeout: 248 seconds)
617: [21:15:00] <Pyromanik> hmm
618: [21:15:00] <Pyromanik> lol
619: [21:15:00] <unsigned_> ok its still working. I cant believe the fix was so simple, its not mentioned in the docs to call Session::start() before doing anything
620: [21:15:00] <FrozenFire> unsigned_, Because that's outside of the scope of the framework.
621: [21:16:00] <unsigned_> Well I dont think developers shoudl know about calling Silverstripes custom session class
622: [21:16:00] <FrozenFire> Yup. Common enough that developers should already know about it. :)
623: [21:16:00] <unsigned_> It must be a common problem though...
624: [21:16:00] <FrozenFire> Because IE is a dick
625: [21:16:00] <FrozenFire> It'd happen no matter the framework
626: [21:17:00] <FrozenFire> That would be inefficient
627: [21:17:00] <unsigned_> calling session_start() is of course what you do if youre using PHP's inbuilt sessions
628: [21:17:00] <unsigned_> but most frameworks call it somewhere in their bootstrap process so you dont have to worry about it
629: [21:17:00] <simon_w> qloazy, no, that only works with pages
630: [21:18:00] <Pyromanik> yes
631: [21:18:00] <Pyromanik> 09:16 < FrozenFire> Because IE is a dick
632: [21:18:00] <Pyromanik> but so is Prototype
633: [21:20:00] <FrozenFire> Everything is terrible
634: [21:20:00] * FrozenFire is extremely saddened by Translatable
635: [21:21:00] <Pyromanik> FrozenFire: you don't
636: [21:21:00] <FrozenFire> How the goddamn hell do you create a new translation?
637: [21:21:00] <FrozenFire> In a DataObject
638: [21:21:00] <FrozenFire> In a ModelAdmin
639: [21:21:00] * EasyCo has joined #silverstripe
640: [21:21:00] <FrozenFire> In this hell that I am living
641: [21:21:00] * EasyCo quit (Client Quit)
642: [21:21:00] <Pyromanik> you install translatablemodeladmin (in 2.4)
643: [21:22:00] <FrozenFire> "FUCK"
644: [21:22:00] <unsigned_> hahaha
645: [21:22:00] <unsigned_> FrozenFire: Developers should already know about it ;)
646: [21:22:00] <FrozenFire> Pyromanik, Yes. I already rode that emotional rollercoaster
647: [21:22:00] <FrozenFire> "OH FUCK YES. A MODULE!"
648: [21:22:00] <FrozenFire> 2.4
649: [21:24:00] <Pyromanik> dear heydey, why you give me shadow file but no sql dump?
650: [21:24:00] <Pyromanik> mmm
651: [21:24:00] <FrozenFire> Or whatever it is
652: [21:24:00] <FrozenFire> They gave you /etc/shadow?
653: [21:25:00] * Nivery quit (Quit: Nivery)
654: [21:25:00] <Pyromanik> only 1 line in it
655: [21:25:00] <Pyromanik> a localised one, I suspect is part of cpanel's packaging system.
656: [21:26:00] <Pyromanik> nevermind, found sql
657: [21:26:00] <Pyromanik> 50 Mb :<
658: [21:27:00] <Pyromanik> I have about every single thing here except actual emails.
659: [21:27:00] <FrozenFire> Lucky you. I have to deal with 70GB SQL dumps. :P
660: [21:27:00] <Pyromanik> man, when cpanel packages a site, it really goes to town
661: [21:27:00] <Pyromanik> including authorized_keys :<
662: [21:28:00] <FrozenFire> Nothing sensitive about authorized_keys
663: [21:29:00] <Pyromanik> just pointing out how complete it is
664: [21:29:00] <Pyromanik> I don't wany any of this info
665: [21:29:00] <Pyromanik> instead I have about 50 empty folders and 200 symlinks (useless on windows)
666: [21:29:00] <Pyromanik> no I know
667: [21:29:00] <Pyromanik> only db dump and public_html
668: [21:30:00] <Pyromanik> came on DVD from client
669: [21:30:00] <Pyromanik> because i'm not the one requesting it
670: [21:30:00] <FrozenFire> So why aren't you requesting access to the box, instead of getting some halfwit to dump it using cPanel?
671: [21:31:00] <Pyromanik> I can just cat sqldump | mysql right?
672: [21:31:00] <Pyromanik> or what is that switch?
673: [21:31:00] <Pyromanik> -e ?
674: [21:32:00] <Pyromanik> import DB
675: [21:32:00] <FrozenFire> Wat
676: [21:32:00] <Pyromanik> well
677: [21:33:00] <FrozenFire> mysql database < file
678: [21:33:00] <Pyromanik> right, ta
679: [21:33:00] <Pyromanik> how do best?
680: [21:41:00] * qloazy quit (Quit: Page closed)
681: [21:52:00] <catcher> trying to generate a report a la http://doc.silverstripe.org/framework/en/reference/site-reports
682: [21:53:00] <FrozenFire> Reports are completely buggered, both in code and in docs
683: [21:53:00] <FrozenFire> Lolgudluck
684: [21:53:00] <catcher> but it won't show in the report admin.
685: [21:53:00] * EasyCo has joined #silverstripe
686: [21:55:00] <catcher> ah, k, good to know
687: [21:56:00] * EasyCo quit (Client Quit)
688: [22:02:00] * chillu quit (Quit: chillu)
689: [22:05:00] <simon_w> Man, I'm glad that the level of issue activity on github has matched what we had on open.
690: [22:06:00] <unsigned_> In a template, how can I check that an image has been uploaded? The Page has a $has_one = array("HeroImage" => "Image"), and doing <% if HeroImage %> in the template always returns true
691: [22:07:00] <unsigned_> I assume this is because as soon as I save the page, the records in the Image table are created even though there is no physical file associated
692: [22:07:00] <unsigned_> Docs say there is a .exists() function but that returns true too
693: [22:08:00] <simon_w> That the if is returning true means that the file exists
694: [22:10:00] * eikonos has joined #silverstripe
695: [22:10:00] * eikonos quit (Changing host)
696: [22:10:00] * eikonos has joined #silverstripe
697: [22:10:00] <unsigned_> does it? it says the filesystem isnt checked
698: [22:11:00] <simon_w> Image->exists() returns isset($this->record["Filename"])
699: [22:11:00] <unsigned_> the field is managed via an UploadField and there is definitely no image associated with it
700: [22:14:00] <priithansen> catcher: the docs are out of date about reports. One should extend SS_Report instead and after flush=all the cms should pick it up
701: [22:17:00] <mobiusnz> how do I filter a relation based on something != 0
702: [22:18:00] <FrozenFire> I'm trying to remember: Is it *possible* to override the ItemRequestClass in a GridFieldDetailForm?
703: [22:18:00] <unsigned_> simon_w: isset() returns true for an empty string
704: [22:18:00] <simon_w> mobiusnz, in 3.1, ->exclude('Rel.Something', 0)
705: [22:19:00] <unsigned_> eg $foo = array("Filename" => ""); if (isset($foo["Filename"])) { echo("true"); } //echos 'true'
706: [22:19:00] <simon_w> unsigned_, and $this->record is an empty array on the empty object
707: [22:19:00] <unsigned_> ohkay
708: [22:19:00] <simon_w> FrozenFire, ->setItemRequestClass()
709: [22:21:00] <mobiusnz> simon_w: ah, I'm on 3.0.5. Is 3.1 GA out?
710: [22:21:00] <FrozenFire> simon_w, Yeah, but does it even persist?
711: [22:21:00] <simon_w> || 3.1.0-beta3 (bleeding edge) released 19/04/2013: http://ss.org.nz/3.1.0b3 ||
712: [22:21:00] <simon_w> FrozenFire, if you do it in EditForm/whatever, yes
713: [22:22:00] * Jeremy_ is now known as clodeindustrie
714: [22:22:00] * Jeremy_ has joined #silverstripe
715: [22:23:00] <mobiusnz> simon_w: ok, can I do something like this in the meantime? $this->ApplicableCharges()->filter('CarrierID != 0');
716: [22:23:00] <clodeindustrie> hey
717: [22:23:00] <FrozenFire> Hrmm, actually, yeah. I had thought it wasn't persisting, but I was just doing it wrong
718: [22:24:00] <simon_w> well, you'd be using ->where() instead of filter
719: [22:25:00] <mobiusnz> oh, actually - looks like exclude is in 3.0.5
720: [22:25:00] <clodeindustrie> I created my own action on a controller but it doesn't seem to use the layout that it uses when rendering the index action?
721: [22:25:00] <simon_w> clodeindustrie, what are you returning?
722: [22:26:00] <simon_w> just return an array
723: [22:26:00] <simon_w> That'd be why
724: [22:26:00] <clodeindustrie> return $this->renderWith("mytemplate");
725: [22:27:00] <simon_w> nothing
726: [22:27:00] <clodeindustrie> fair enough
727: [22:27:00] <simon_w> Or, values you want to pass to the template
728: [22:27:00] <clodeindustrie> an array of what exactly?
729: [22:28:00] <clodeindustrie> fyi for those who have seen me asking questions those past two days
730: [22:28:00] <clodeindustrie> that would be cleaner
731: [22:28:00] <clodeindustrie> ah cool I didn't know that, I had to create properties on my controller to pass variables
732: [22:29:00] <clodeindustrie> I ended up replacing my pages with data object that I can manage with modeladmin and display in only on page
733: [22:29:00] <clodeindustrie> if that makes sense
734: [22:29:00] <clodeindustrie> s/on/one
735: [22:31:00] <clodeindustrie> lucky the irc channel is great because I often had trouble finding what I want in the doc
736: [22:32:00] <clodeindustrie> or it's just maybe that I started SS from scratch 2 weeks ago
737: [22:33:00] <FrozenFire> http://www.sspaste.com/paste/show/51770c425d679
738: [22:33:00] <FrozenFire> Translatable ModelAdmin using GridField
739: [22:33:00] <FrozenFire> I'm actually making this shit work :D
740: [22:34:00] <FrozenFire> And have a CMSEditLink on your DataObject
741: [22:34:00] <FrozenFire> Just have to change the GridFieldDetailForm ItemRequestClass to use that
742: [22:34:00] * DigNZ quit (Ping timeout: 256 seconds)
743: [22:34:00] * nickmolhoek quit (Ping timeout: 258 seconds)
744: [22:34:00] <FrozenFire> Then just let the Translatable updateCMSFields hit your DataObject, and it should actually work?
745: [22:35:00] * zfmf has joined #silverstripe
746: [22:36:00] <FrozenFire> Now that I know how to actually deal with that ugly mess
747: [22:36:00] <FrozenFire> Which actually gives me some ideas for other shit I need to refactor
748: [22:39:00] <clodeindustrie> can I create a route like that:
749: [22:40:00] <clodeindustrie> mycontroller/$Name
750: [22:40:00] <FrozenFire> Well, it'll automatically route to your controller.
751: [22:40:00] * DigNZ has joined #silverstripe
752: [22:40:00] * DigNZ quit (Remote host closed the connection)
753: [22:40:00] <clodeindustrie> and pick up the $Name in the index action?
754: [22:40:00] <clodeindustrie> and then assume that the index action is called
755: [22:41:00] <FrozenFire> That is, if you just have MyController, and nothing else matches, it'll send the request to MyController
756: [22:41:00] <FrozenFire> And then it lets it handle the routing thereafter
757: [22:41:00] <FrozenFire> So you can set up your $url_handlers
758: [22:41:00] <FrozenFire> Normally it's $Action/$ID/$OtherID
759: [22:42:00] <clodeindustrie> so I have to have the action my url then?
760: [22:42:00] * nickmolhoek has joined #silverstripe
761: [22:42:00] <FrozenFire> http://doc.silverstripe.org/framework/en/topics/controller
762: [22:43:00] <FrozenFire> But normally you should route the action before the ID
763: [22:43:00] * nickmolhoek quit (Remote host closed the connection)
764: [22:43:00] <FrozenFire> You could have public static $url_handlers = array( "$Name" => "YourAction" )
765: [22:43:00] <FrozenFire> I think
766: [22:44:00] <FrozenFire> I'm sure $ID/$Action would be fine
767: [22:44:00] <FrozenFire> Or normally you would. I don't know if it's necessarily better to.
768: [22:44:00] <clodeindustrie> it does make more sense usually but in that situation I only have one action on this controller
769: [22:45:00] * DigNZ quit (Remote host closed the connection)
770: [22:45:00] * DigNZ has joined #silverstripe
771: [22:45:00] <clodeindustrie> thanks though I'll play around
772: [22:47:00] <clodeindustrie> );
773: [22:47:00] <clodeindustrie> '$Title' => 'index'
774: [22:47:00] <clodeindustrie> public static $url_handlers = array(
775: [22:47:00] <clodeindustrie> no likey
776: [22:47:00] * zfmf has joined #silverstripe
777: [22:47:00] * zfmf quit (Remote host closed the connection)
778: [22:47:00] <clodeindustrie> I'll do without
779: [22:47:00] <clodeindustrie> :)
780: [22:47:00] <clodeindustrie> ???..
781: [22:47:00] <clodeindustrie> $sp = $request->param("Title");
782: [22:47:00] <clodeindustrie> {
783: [22:47:00] <clodeindustrie> public function index($request)
784: [22:48:00] * zfmf has joined #silverstripe
785: [22:48:00] <FrozenFire> I rarely deviate from the standard routing
786: [22:48:00] <FrozenFire> Someone else can probably answer the question better.
787: [22:48:00] * oskarholo has joined #silverstripe
788: [22:48:00] * zfmf quit (Remote host closed the connection)
789: [22:49:00] * zfmf quit (Remote host closed the connection)
790: [22:49:00] <simon_w> clodeindustrie, send it to handleAction instead of index
791: [22:49:00] * DigNZ quit (Remote host closed the connection)
792: [22:49:00] * DigNZ has joined #silverstripe
793: [22:49:00] * zfmf quit (Remote host closed the connection)
794: [22:49:00] * zfmf has joined #silverstripe
795: [22:50:00] * zfmf has joined #silverstripe
796: [22:50:00] * DigNZ has joined #silverstripe
797: [22:51:00] * zfmf has joined #silverstripe
798: [22:51:00] <clodeindustrie> thanks
799: [22:51:00] <clodeindustrie> and now I read the doc for handleAction and it all makes sense :)
800: [22:51:00] * zfmf quit (Remote host closed the connection)
801: [22:53:00] * nickmolhoek has joined #silverstripe
802: [22:53:00] <clodeindustrie> oops
803: [22:53:00] <clodeindustrie> POPCURRENT CALLED ON MODELASCONTROLLER CONTROLLER, BUT IT WASN'T AT THE TOP OF THE STACK"
804: [22:53:00] * nickmolhoek quit (Remote host closed the connection)
805: [22:53:00] <clodeindustrie> no likey
806: [22:55:00] <FrozenFire> Are you trying to pass the request off, or something?
807: [22:56:00] * nicolaas has joined #silverstripe
808: [22:56:00] * Colin[pi] has joined #silverstripe
809: [22:57:00] <nicolaas> hey BIG QUESTION...what is the best way to manage pages (e.g my BlogEntries) using ModelAdmin??? in 3???? Is there a module for this? should it be done at all?
810: [22:57:00] <clodeindustrie> not that I know, I have just changed the following compares to my last copypasta
811: [22:57:00] <nicolaas> sorry to butt in....
812: [22:57:00] <clodeindustrie> '$Title' => 'handleAction'
813: [22:58:00] <clodeindustrie> and used modelAdmin to manage them in the CMS
814: [22:58:00] <clodeindustrie> nicolaas: not sure but in my case I ended up having my posts as dataobjects
815: [22:58:00] <simon_w> clodeindustrie, what are you returning?
816: [22:58:00] <clodeindustrie> from?
817: [22:59:00] <simon_w> nicolaas, don't do it is the sanest answer
818: [22:59:00] <clodeindustrie> an array with a couple of variables
819: [22:59:00] <simon_w> clodeindustrie, index()
820: [22:59:00] <simon_w> clodeindustrie, and are you using a custom route?
821: [23:00:00] <clodeindustrie> oh
822: [23:00:00] <clodeindustrie> '$Title' => 'handleAction'
823: [23:00:00] <simon_w> route, not handler
824: [23:00:00] <clodeindustrie> no I'm not
825: [23:03:00] <FrozenFire> nicolaas, Someone here had written a replacement for the blog module that was much lighter weight, and non-SiteTree
826: [23:03:00] <FrozenFire> Can't rightly recall who
827: [23:05:00] <nicolaas> thank you @simon_w... @FrozenFire it is not really for Blog Entries.
828: [23:06:00] <nicolaas> I think you are right Simon...
829: [23:06:00] <nicolaas> Just for one page type.... I wonder how it would work.
830: [23:08:00] <simon_w> I am also hungry. I should fix that.
831: [23:08:00] * EasyCo has joined #silverstripe
832: [23:10:00] * nicolaas quit (Remote host closed the connection)
833: [23:11:00] * nicolaas has joined #silverstripe
834: [23:12:00] * Bollig|DesignCty has joined #silverstripe
835: [23:13:00] * nickmolhoek has joined #silverstripe
836: [23:13:00] * zfmf quit (Remote host closed the connection)
837: [23:13:00] * nickmolhoek quit (Remote host closed the connection)
838: [23:14:00] * priithansen quit (Quit: priithansen)
839: [23:14:00] <nicolaas> did I miss anything? FF crashed ;-)
840: [23:14:00] * catcher quit (Quit: Leaving)
841: [23:18:00] <FrozenFire> When calling ::map on an SS_List, is it possible to define a semi-complex field for one of the map fields?
842: [23:19:00] <FrozenFire> I need $this->Translations->map("Locale", "Locale.Nice")
843: [23:21:00] * EasyCo quit (Ping timeout: 276 seconds)
844: [23:22:00] * tari has joined #silverstripe
845: [23:22:00] <simon_w> Should be
846: [23:22:00] * EasyCo has joined #silverstripe
847: [23:22:00] <FrozenFire> Apparently not. :P
848: [23:26:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
849: [23:40:00] * cloph is now known as cloph_away
850: [23:50:00] <FrozenFire> Except it's not just SiteTree
851: [23:50:00] <FrozenFire> Blegh. I need to switch the locale in the session and redirect back to where I was, except in the new locale...
852: [23:50:00] <FrozenFire> God that's fracking complicated.
853: [23:51:00] <FrozenFire> Blegh, screw that. Too much state is lost in a form...
854: [23:53:00] <Colin[pi]> morning all
855: [23:58:00] * Shrike_Finland quit (Read error: Connection reset by peer)
856: [23:58:00] * Shrike_Finland1 has joined #silverstripe

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