#silverstripe IRC Log

IRC log for 20 September 2013

All timestamps are in UTC.

1: [00:01:23] <simon_w> BPower, then add your own things to your hardcoded paths
2: [00:01:43] <BPower> huh?
3: [00:02:08] <simon_w> images in your theme require hardcoded paths
4: [00:02:29] <BPower> I use $AuthorPhoto.SetRatioSize(130,159)
5: [00:02:42] <BPower> So are you suggesting? $AuthorPhoto.SetRatioSize(130,159)?$LastEdited
6: [00:02:58] <BPower> Actually that wouldn't work because it creates the whole img tag
7: [00:03:11] <simon_w> You know that UploadField doesn't replace files, right?
8: [00:03:22] <simon_w> Uploading a new image gets a new path
9: [00:04:29] <BPower> Yes, I know. They delete the image, then re-upload and it forces the filename to be the same for SEO. If you can point me to where exactly the final URL comes from in the Image or File (or other) class, that's all I need right now.
10: [00:04:38] <BPower> I tried ->Link and ->RelativeLink to no avail.
11: [00:05:00] <BPower> FYI, SS 3.1 allows UploadField to replace files.
12: [00:05:09] <BPower> but that doesn't help me right now.
13: [00:05:15] <simon_w> So does 3.0, but you have to enable it
14: [00:05:24] <simon_w> Enabling it is a bad idea because of this exact case
15: [00:05:27] <BPower> 3.0 has a trigger to enable it, but the code isn't there.
16: [00:05:41] * Peavers has joined #silverstripe
17: [00:05:45] <BPower> i've been scouring the code for the last few hours.
18: [00:05:51] <Peavers> Children.
19: [00:05:55] <BPower> Ladies.
20: [00:06:38] <BPower> The issue of cache is a non-issue. SS just needs to append a cachebuster, just like it does with its Requirements (CSS, JS) files.
21: [00:07:02] <BPower> I'm trying to add it myself right now, but I can't seem to find the exact place to do it.
22: [00:07:08] <simon_w> getURL()
23: [00:07:17] <simon_w> Called by getTag()
24: [00:07:22] <simon_w> Call by forTemplate()
25: [00:07:33] <simon_w> Called by trying to render something in the template
26: [00:07:43] <BPower> PERFECT!
27: [00:07:51] <BPower> I can't believe I didn't think to look at getTag
28: [00:08:24] <BPower> I was trying Link and RelativeLink and cacheFilename (which I knew wasn't right).
29: [00:08:29] <BPower> Thanks, simon_w
30: [00:25:11] <simon_w> Hmm, at that "I haven't eaten anything in the last 24 hours" stage. Oops.
31: [00:26:36] <ss23> simon_w: Wanna eat/
32: [00:26:37] <ss23> :D
33: [00:26:44] <simon_w> I probably should
34: [00:26:49] <ss23> I've been doing the 1 meal a day thing lately
35: [00:26:59] <ss23> Though normally I have a snack thingy for dinner, and hot chocolate for breakfast
36: [00:27:06] <ss23> So its more like "one meal a day, lots of food"
37: [00:27:15] <simon_w> Yeah, I missed my dinner snack and breakfast UP&Go
38: [00:27:29] <ss23> up&go so handy
39: [00:27:30] <ss23> :D
40: [00:27:33] <ss23> running late -> grab up and go
41: [00:27:38] <ss23> chug in 10 seconds, then go to bus
42: [00:27:38] <ss23> :D
43: [00:28:38] * BPower quit (Remote host closed the connection)
44: [00:28:57] <simon_w> ss23, 4 minutes
45: [00:29:55] <ss23> kk
46: [00:29:56] <ss23> ^.^
47: [00:36:16] * spronk quit (Read error: Connection reset by peer)
48: [00:39:20] * chillu quit (Quit: chillu)
49: [00:46:13] <Colin[pi]> anyone have experience with teh payment module stuff?
50: [00:55:51] <Peavers> why is it so friken complicated to create a new login template?
51: [00:58:04] * zippy__ quit (Ping timeout: 264 seconds)
52: [01:00:26] * Bollig|DesignCty has joined #silverstripe
53: [01:04:11] * spronk has joined #silverstripe
54: [01:08:20] <Colin[pi]> ok so the payment module is broken rather a lot
55: [01:10:32] * Stomach quit (Quit: Leaving.)
56: [01:13:03] <simon_w> Colin[pi], sounds about right
57: [01:13:18] <ss23> Is BPower Jean Fabian on Github?
58: [01:13:19] <Colin[pi]> :C
59: [01:14:11] * guzzlefry has left #silverstripe
60: [01:15:29] <atmos> is there somekind of known but with 3.0 that the sitetree refreshes when dragging and dropping pages?
61: [01:15:35] <atmos> bug*
62: [01:19:47] <mobiusnz> what's the best way of getting a datalist made out of dataobjects that match a complex sql query?
63: [01:20:18] * will__ has joined #silverstripe
64: [01:20:51] <simon_w> mobiusnz, build up a DataQuery object, then point the DataList at it
65: [01:21:03] <simon_w> Ooh, I can almost be done for the week
66: [01:21:32] <mobiusnz> simon_w: can DataQuery use calculated columns?
67: [01:22:18] <will__> Hey guys. I just wanted to pop on and say thanks to everyone that has helped out on here whilst i made our first ss site in a little while that we launch monday - iq2oz.com - really appreciated. would have been totally lost without your help. especially simon_w but others too. : )
68: [01:22:19] <Peavers> Is there a reason why Director::addRules(100, array('adminLogin' => 'CustomLogin_Controller')); doesn't call the customLogin controller?!
69: [01:22:45] <mobiusnz> simon_w: in SQLQuery I have: $query->addSelect("(6371 * ACOS(COS(RADIANS($lat)) * COS(RADIANS(`Latitude`)) *
70: [01:22:45] <mobiusnz> COS(RADIANS(`Longitude`) - RADIANS($long)) + SIN(RADIANS($lat)) * SIN(RADIANS(`Latitude`)))) AS distance");
71: [01:23:13] <simon_w> mobiusnz, hmm, may be best to subclass DataQuery so you can poke with the SQLQuery directly (and override getFinalisedQuery so it doesn't change the columns)
72: [01:24:34] <mobiusnz> will datalist work happily with a subclassed DataQuery?
73: [01:24:45] <simon_w> yup
74: [01:25:05] <simon_w> Ooh, then you could write a blog post about it so there's something to direct people to
75: [01:25:53] <mobiusnz> maybe when I get a spare couple of minutes
76: [01:27:59] <mobiusnz> hmm, DataQuery's $queriedColumns is private not protected
77: [01:28:19] <simon_w> setQueriedColumns()
78: [01:33:22] * razzi quit ()
79: [01:35:53] * UncleCheese quit (Quit: UncleCheese)
80: [01:37:21] * will__ quit (Ping timeout: 250 seconds)
81: [01:37:38] * Stomach has joined #silverstripe
82: [01:44:33] * zippy__ has joined #silverstripe
83: [01:49:57] <pippy_> any reason why Silverstripe would limit the size of a of a text string before writing it to the database?
84: [01:50:40] <mobiusnz> herp, this dataquery stuff confuses the hell out of me
85: [01:51:10] <mobiusnz> might just do an sql query then look up dataobjects from an id list
86: [01:53:24] <simon_w> pippy_, because the database field has a limited size?
87: [01:55:59] <simon_w> Home time! :D
88: [01:56:24] * simon_w quit (Quit: This computer has gone to sleep)
89: [01:57:50] <Peavers> ss23 where have you gotten to!
90: [01:58:25] <ss23> :P
91: [01:58:27] <ss23> :O*
92: [01:58:28] <ss23> I'm here!
93: [01:59:04] <Peavers> I'm stuck
94: [01:59:10] <ss23> Peavers: Use some un-glue
95: [01:59:12] <Stomach> grease it up
96: [01:59:15] <Peavers> I tried =(
97: [01:59:21] <Peavers> It just got all over the keyboard
98: [01:59:24] <Peavers> and tissues
99: [01:59:25] <Peavers> etc etc
100: [01:59:32] <ss23> Xd
101: [01:59:34] <ss23> XD
102: [01:59:50] <Peavers> So, tell me
103: [02:00:25] <Peavers> can I have a login template with just two text fields and two buttons without having to override the default authenticator and etc etc etc...?
104: [02:01:12] <pippy_> simon_w|air: looks like pg_escape_string is doing it :/
105: [02:01:34] <Peavers> simon_w|air has jump shipped and gone
106: [02:03:08] <pippy_> Peavers: i want too as well :(
107: [02:05:59] * coldblooded01 has joined #silverstripe
108: [02:06:11] <coldblooded01> hey
109: [02:06:25] <coldblooded01> how do i change the main index URL. At the moment its set to home
110: [02:11:59] <ss23> Peavers: Pretty much, yeah
111: [02:12:10] <ss23> Peavers: But it'll be not awesome
112: [02:12:27] <Peavers> Its driving me up the wall trying to figure out
113: [02:16:25] <Colin[pi]> dat feel when you realise you've been using the wrong branch of code
114: [02:18:57] * gavin___ quit (Ping timeout: 250 seconds)
115: [02:23:33] <Bollig|DesignCty> anyone tried to use Silverstripe as an intranet/document management system?
116: [02:23:58] <Peavers> Building one right this very second Bollig|DesignCty
117: [02:24:31] <Bollig|DesignCty> Awesome! I hope you're open sourcing the code lol
118: [02:24:43] <Peavers> Ha, not a chance.
119: [02:24:51] <Bollig|DesignCty> :)
120: [02:25:12] <Bollig|DesignCty> building on 3.1?
121: [02:25:32] <Peavers> yeah
122: [02:25:49] * wilr_ has joined #silverstripe
123: [02:26:32] <Bollig|DesignCty> cool. Are you finding most of the functionality you're building from scratch or are there are modules out there that get you part way?
124: [02:26:45] <Peavers> building 99% of it from scratch
125: [02:27:21] <Bollig|DesignCty> Because the job calls for some pretty cool custom stuff or just because there aren't any useful modules?
126: [02:27:44] <Peavers> Isn't really any useful modules for what I want it to do
127: [02:27:56] <Bollig|DesignCty> coll, thanks Peavers :)
128: [02:30:46] <simon_w|air> Peavers, simon_w|air doesn't go home :p
129: [02:31:14] <Peavers> Oh good, then he can help me deal with this damn module he wrote for me that is causing me headaches
130: [02:31:48] <Peavers> Seriouse question though, should the method on this blog post still work with 3.1.0? http://tamethebackbutton.blogspot.co.nz/2009/10/disabling-standard-authenticator-and.html
131: [02:33:04] <simon_w|air> Yes, but you have to call it after it's been added
132: [02:33:24] <simon_w|air> I really should get around to submitting the patch for that that we're using
133: [02:33:33] <Peavers> oh?
134: [02:33:59] <simon_w|air> Basically makes it so unregister_authenticator() maintains a list of unregistered and the getter does a diff
135: [02:35:40] <Peavers> So I'm setting your plugin as the default authenticator, then unregistering the memberauth, then setting the director
136: [02:42:29] <Peavers> but now I can't login =S
137: [02:46:38] <simon_w|air> You know what would help? Is Security::login() didn't hardcode the layout and stuff and actually used a template
138: [02:46:49] <Peavers> YES!!!!
139: [02:46:54] <Peavers> This x10000000000000000000000000000000000
140: [02:47:17] <Peavers> That is the reason I'm left to dick around trying to split things out this way
141: [02:47:35] <simon_w|air> What you could do is subclass Security, override the rule and override login
142: [02:47:56] <Peavers> The users need to only see your login button and no the username/password fields, but I need the cms admin to be able to see them...
143: [02:48:03] <Peavers> entire day wasted on this so far
144: [02:48:42] <simon_w|air> So you've got the login button working but the admin login not at the moment?
145: [02:49:15] <Peavers> Yeah, I can display just the button, or the button and the admin login, or just the admin login and not the button...
146: [02:49:23] <Peavers> hence trying to get the method on that blog working
147: [02:49:24] <atmos> :< I have no idea how to allow a url to have a 'null' value for a given parameter
148: [02:49:27] <atmos> ffffffffffffffffff
149: [02:50:35] <simon_w|air> Peavers, you've already got $LoginForm in a Content/Page_Controller subclass. Does using that in your admin login template not work?
150: [02:53:02] <Peavers> at the moment I've got your button as the default, its when typing "manager" nothing happens
151: [02:53:17] <Peavers> it just redirectes back to your button... not the admin controller
152: [02:53:31] <simon_w|air> Does it at least log you in?
153: [02:53:34] <Peavers> nop
154: [02:53:37] <Peavers> does nothing
155: [02:53:51] <Peavers> doesn't give the "page not found" error though
156: [02:55:21] <simon_w|air> What's the action value on the <form>?
157: [02:55:25] <Peavers> when logged out: localhost/admin takes me to your button as expected, localhost/test takes me to page not found, again as expected, localhost/manager takes me to your button - not as expected. Expected to be taken to the admin login page...
158: [02:55:58] <Peavers> on your button?
159: [02:56:01] <simon_w|air> Hmm, can you pastie your admin controller?
160: [02:56:10] <simon_w|air> Nah, I thought you actually had the MemberLoginForm showing up
161: [02:57:42] <Peavers> The admin controller is as basic as it gets pastebin.com/vgrvcZbf
162: [02:58:18] <simon_w|air> Got an AdminLogin.ss template?
163: [02:58:21] <Peavers> Yup
164: [02:58:30] <Peavers> should I have created an AdminLogin page in the CMS?
165: [02:58:34] <simon_w|air> And it's using $Form?
166: [02:58:38] <simon_w|air> Shouldn't need to
167: [02:58:39] <Peavers> Yeah it is
168: [02:59:02] <simon_w|air> Hmm, having that not return a MemberLoginForm is rather weird
169: [02:59:11] <Peavers> You're telling me...
170: [02:59:42] <simon_w|air> What happens if you use $LoginForm?
171: [03:00:17] <Peavers> pastebin.com/9aam67pZ my _config file, I moved the register from your _config for testin...
172: [03:01:22] <Peavers> Still nothing
173: [03:04:10] <simon_w|air> Hmm, and the hidden field in the form says MemberAuthenticator?
174: [03:05:51] * Peav has joined #silverstripe
175: [03:05:55] <Peav> Random DC...
176: [03:06:07] * Peavers quit (Ping timeout: 246 seconds)
177: [03:06:16] <simon_w|air> Another thing to try, switch back to $Form and change to subclassing Controller instead of Page_Controller
178: [03:06:24] * coldblooded01 quit (Quit: coldblooded01)
179: [03:06:46] <simon_w|air> Or just call Controller::init(); instead of parent::
180: [03:07:06] <simon_w|air> That's probably easier
181: [03:07:09] <Peav> using $Form just calls your button... shouldn't it call the normal login?
182: [03:07:42] <simon_w|air> I have a feeling you're getting hit by Security::permissionFailure()
183: [03:08:01] <simon_w|air> Hence skipping ContentController's init()
184: [03:08:36] <simon_w|air> Hmm, I should set simon_w up and get this sneaker net going
185: [03:08:36] <Peav> hmm
186: [03:09:40] <Peav> If I'm unregistering memberAuthenticator in my _config file, wouldn't I need to reregister it on the admin controller?
187: [03:10:09] <simon_w|air> Well, that'll be for submitting. We can get to that later
188: [03:15:37] <Peav> ha
189: [03:15:39] <Peav> got it
190: [03:15:40] <Peav> kinda
191: [03:15:44] <Peav> its just in reverse lol
192: [03:16:56] * Peav has left #silverstripe
193: [03:17:36] * Peavers has joined #silverstripe
194: [03:19:19] * simon_w has joined #silverstripe
195: [03:21:15] <atmos> zippy__: phwoar, good storm out
196: [03:21:25] <zippy__> yeap, it's good one
197: [03:21:28] <Colin[pi]> downloads 3rd party source code to save time on project, spends most of time fixing 3rd party source code /programmer bad luck brian
198: [03:21:44] <atmos> CTRL+S ALL THE THINGS
199: [03:21:51] <ss23> :w :w :w :w
200: [03:22:08] <simon_w> autosave, bitches!
201: [03:23:19] <atmos> my UPS just had a spaz
202: [03:23:27] <atmos> 0.o
203: [03:23:32] <zippy__> laptop has a battery, it's all good
204: [03:23:44] <Peavers> Did we just lose power?
205: [03:23:53] <simon_w> I've still got it
206: [03:24:17] <Peavers> my servers at home just rebooted...
207: [03:24:19] <Peavers> hmm
208: [03:24:40] <zippy__> with SS, other than writing a function is there a way to tell it not to resize image with setwidth?I got an image 100 wide, and I call SetWidth(100) and it still resizes it
209: [03:25:13] <simon_w> zippy__, update
210: [03:25:30] <zippy__> yes, this is 2.4...
211: [03:25:37] <zippy__> bastards that force me to use this
212: [03:25:49] <Peavers> so simon_w, so so close to having this working, just getting LoginForm isn't allowed on class AdminLogin_Controller even though I've added the to the allowed actions?
213: [03:26:09] <atmos> zippy__: you freelancing?
214: [03:26:15] <simon_w> Peavers, use Form instead
215: [03:26:20] <zippy__> atmos: yes
216: [03:26:32] <Peavers> form in the template or in the allowed actions?
217: [03:26:41] <Peavers> I've got Form in allowed actions already..
218: [03:26:41] <Colin[pi]> iPhone has become completely unresponsive for the 4th time in 2 days with iOS7 \o/
219: [03:26:54] <simon_w> Peavers, new MemberLoginForm($this, 'Form')
220: [03:27:01] <Peavers> ah
221: [03:27:03] <zippy__> flash
222: [03:27:07] * zippy__ waits for boom
223: [03:27:07] <simon_w> Colin[pi], sucker!
224: [03:27:17] <atmos> Colin[pi]: it seems iPhones got screwed with iOS7, my iPad is good as gold
225: [03:27:18] <Peavers> iphone - it just works....
226: [03:27:30] <zippy__> not a fan of ios7
227: [03:27:46] <Peavers> Apple is as dead as jobs.
228: [03:29:16] <Peavers> simon_w, gonna be made if I modify code in your plugin?! =D
229: [03:29:23] <simon_w> Nah
230: [03:29:32] <Peavers> Identification provider... don't need this here label.
231: [03:29:33] <Colin[pi]> atmos: that's the funny thing, the iPad release was suppoosed to be delayed as a few weeks ago they said it was nowhere near ready
232: [03:29:35] <spronk> anyone know if you can rent a swappa gas bottle without bringing in an empty bottle?
233: [03:30:05] <atmos> Colin[pi]: true story
234: [03:34:54] * travis-ci has joined #silverstripe
235: [03:34:54] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1002 (3.1 - 5c82609 : Hamish Friedlander): The build was fixed.
236: [03:34:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/eb3cd197acc8...5c82609802a2
237: [03:34:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11578695
238: [03:34:54] * travis-ci has left #silverstripe
239: [03:36:32] <atmos> <travis-ci> is a pretty cool guy and doesn't afraid of anything
240: [03:37:05] <simon_w> Whereas that Hamish guy just merged something with a bug in it
241: [03:41:57] <zippy__> spronk: believe you can, ring potrol station
242: [03:58:02] * cloph has joined #silverstripe
243: [03:59:35] * cloph_away quit (Ping timeout: 268 seconds)
244: [04:05:59] <spronk> leet
245: [04:12:03] <spronk> also
246: [04:12:04] <spronk> angular or ember
247: [04:12:06] <spronk> !?
248: [04:12:36] * Jayden90 quit (Quit: Jayden90)
249: [04:16:49] <Colin[pi]> oh boy, I sure love downloading code that is completely broken!
250: [04:17:17] <atmos> Colin[pi]: ?
251: [04:17:25] <Colin[pi]> payment module stuff
252: [04:17:32] <Colin[pi]> completely foobared
253: [04:17:38] <atmos> Colin[pi]: when is that ever not broken?
254: [04:18:14] <Colin[pi]> yes all too true
255: [04:19:46] <Colin[pi]> oh for fuck's sake
256: [04:20:00] <Colin[pi]> 30 mins to learn that one bug is the config has "REAL-TIME" instead of "REAL_TIME"
257: [04:20:03] <Colin[pi]> one
258: [04:20:04] <Colin[pi]> frickin
259: [04:20:06] <Colin[pi]> underscore
260: [04:22:05] * dilshan has joined #silverstripe
261: [04:23:55] <spronk> woo, wobbly
262: [04:24:23] * Peavers quit (Ping timeout: 260 seconds)
263: [04:36:51] <Colin[pi]> YAY finally the gateway is returning a response
264: [04:39:21] <spronk> o_O
265: [04:39:37] <ss23> How to usort() on ArrayList?
266: [04:39:44] <ss23> I need to run a custom sort algo over an ArrayList
267: [04:39:50] <ss23> 16:13:39 < spronk> angular or ember
268: [04:39:52] <ss23> Suicide.
269: [04:39:58] <spronk> :(
270: [04:40:07] <spronk> marionette?
271: [04:40:11] <ss23> SUICIDE
272: [04:40:22] <ss23> I'll also accept leaving your current job
273: [04:40:48] <spronk> lol
274: [04:40:50] <spronk> :/
275: [04:40:53] <spronk> but
276: [04:40:58] <spronk> I WANT MAKE THE FANCY COOL
277: [04:42:02] <ss23> FANCY FUCK
278: [04:43:17] <spronk> SHUT YOUR FACE
279: [04:44:08] <simon_w|air> ss23, usort($list->toArray(), blah) may work
280: [04:44:39] <simon_w> Otherwise, $blah = $list->toArray(); usort($blah, blah); $list = new ArrayList($blah);
281: [04:44:44] <ss23> blargh
282: [04:44:46] <ss23> Yucky, but it works
283: [04:44:47] * smaranika has joined #silverstripe
284: [04:45:00] <simon_w> And is exactly what something built in would do
285: [04:45:52] <ss23> syntatically yucky
286: [04:46:11] * mobiusnz quit (Quit: Leaving.)
287: [04:46:22] <ss23> I like my frameworks how I like my girls. Broken and ugly on the inside, but with a pretty exterior
288: [04:46:50] <kerosene> that sounds like my car
289: [04:48:09] <simon_w|air> transcode faster!
290: [04:48:57] <smaranika> hi...
291: [04:49:07] <smaranika> I have a dataobject
292: [04:49:21] <simon_w|air> PID COMMAND %CPU
293: [04:49:21] <simon_w|air> 59380 HandBrake 342.1
294: [04:49:21] <simon_w|air> At least it's multithreaded now
295: [04:49:41] <smaranika> and I need to show the dataobject from a cms
296: [04:50:59] <simon_w|air> http://doc.silverstripe.org/framework/en/reference/modeladmin?
297: [04:51:10] <smaranika> thnks
298: [04:51:52] * DigNZ quit (Quit: DigNZ)
299: [04:52:51] <smaranika> Can I show some selected field of member table in cms panel?
300: [04:54:42] <spronk> lawl ss23
301: [04:54:53] * UncleCheese has joined #silverstripe
302: [04:55:21] <ss23> will also accept "tiny, tight, and less than a year old"
303: [04:55:34] <ss23> Though I fear that one is getting into "You're fired" territory...
304: [04:55:35] <spronk> :|
305: [04:55:42] <wilr_> ss23 pedo.
306: [04:55:44] <spronk> wow
307: [04:55:44] <spronk> just wow
308: [04:55:50] <ss23> Thoroughly penetration tested, too
309: [04:55:51] <spronk> there was a line, man
310: [04:55:55] <ss23> hahahaha
311: [04:56:08] <spronk> pretty sure you've gone sooo far across you can't even see it anymore
312: [04:56:32] <spronk> talked to insomnia, ss23
313: [04:56:34] <spronk> they seem pretty decente
314: [04:56:37] <ss23> hahahhaa
315: [04:56:38] <ss23> wait
316: [04:56:39] <ss23> Oh
317: [04:56:43] <ss23> I thought you said "talk to insomnia"
318: [04:56:43] <simon_w|air> smaranika, what do you mean?
319: [04:56:49] <ss23> like "Wow you went so far over the line, you should talk to Insomnia."
320: [04:56:54] <spronk> haha
321: [04:56:57] <ss23> spronk: Yeah, they're the best :D
322: [04:57:30] <smaranika> In member table there are sevaral fields....
323: [04:57:43] <smaranika> used member decorator to add new fields
324: [04:58:09] <smaranika> in cms panel I jest need to show the registered member details...
325: [04:58:19] <smaranika> no password and not all the added fields
326: [04:58:34] <simon_w|air> smaranika, where in the CMS?
327: [04:59:26] * nickmolhoek quit (Quit: nickmolhoek)
328: [04:59:55] <smaranika> in left hand panel site tree
329: [05:00:04] <smaranika> as a page
330: [05:00:57] <simon_w|air> Have a look at GridField and the GridFieldDataColumns component
331: [05:01:10] <smaranika> m using 2.4
332: [05:01:29] <simon_w|air> Then have a look at ComplexTableField
333: [05:01:48] <smaranika> ok
334: [05:02:30] <smaranika> but not able to figure it out... when i set the parent class as members, and click view icon, all data from member is comming
335: [05:03:48] <simon_w|air> You can provide the name of a method that gets called on each Member that only returns the subset you want
336: [05:03:56] <smaranika> http://www.sspaste.com/paste/show/523bd5ebb7a5a
337: [05:04:33] <spronk> motherfuckers
338: [05:04:37] <spronk> how do i get current URL?
339: [05:04:45] <simon_w|air> smaranika, Yes, you need to use something other than getCMSFields_forPopup, or change getCMSFields_forPopup to only include what you
340: [05:04:52] <simon_w|air> spronk, $_SERVER['REQUEST_URL']?
341: [05:05:11] <spronk> hmm
342: [05:05:18] <spronk> theres something Director-y to do it no?
343: [05:05:40] <simon_w|air> Maybe? Sublime's not open so I can't check :p
344: [05:05:51] <spronk> mm
345: [05:06:10] * zippy__ quit (Ping timeout: 246 seconds)
346: [05:06:11] <spronk> SS needs reverse routing :(
347: [05:06:18] <spronk> link_to so handeh
348: [05:06:42] <simon_w|air> Huh, it just got dark
349: [05:06:53] <spronk> can do base_href but hmm
350: [05:11:04] <UncleCheese> Just out of curiosity.. what would happen if I just didn't pay my $1,200 power bill?
351: [05:11:13] <spronk> 1200 :|
352: [05:11:19] <UncleCheese> yeah
353: [05:11:26] <UncleCheese> two bedroom flat
354: [05:11:27] <spronk> ouuuuuuuch
355: [05:11:31] <UncleCheese> i love new zealand
356: [05:11:34] <spronk> month?
357: [05:11:37] <UncleCheese> yup
358: [05:11:38] <spronk> surely not
359: [05:11:39] <spronk> :|
360: [05:11:40] <UncleCheese> yup
361: [05:11:44] <spronk> what on earth do you use for heating?
362: [05:11:57] <UncleCheese> we have one of those column heaters
363: [05:12:00] <smaranika> simon_w|air: I did this but no luck http://www.sspaste.com/paste/show/523bd5ebb7a5a
364: [05:12:00] <UncleCheese> in the lounge
365: [05:12:02] <spronk> that's all?
366: [05:12:03] * guzzlefry has joined #silverstripe
367: [05:12:15] <UncleCheese> a smaller one that runs while my son sleeps at night
368: [05:12:18] <spronk> $1200 is absurdly high for a month
369: [05:12:20] <UncleCheese> but that's it
370: [05:12:22] <UncleCheese> i know
371: [05:12:33] <UncleCheese> they're reviewing it, but it sounds like the readings were accurate
372: [05:12:34] <simon_w|air> UncleCheese, they cut your power and send out collectors
373: [05:12:38] <spronk> i'd check your hot water system, and fridge and stuff
374: [05:12:40] <UncleCheese> so i'm thinking about just not paying
375: [05:12:44] <UncleCheese> and switching to powershop
376: [05:12:47] <kerosene> spronk: there's also the lighting for the hydroponic weed farm to consider
377: [05:12:52] <spronk> :D
378: [05:13:45] <simon_w|air> smaranika, you still need to use something other than getCMSFields_forPopup that only returns the fields you want to see
379: [05:19:47] <smaranika> http://www.sspaste.com/paste/show/523bd5ebb7a5a
380: [05:19:51] * Stomach quit (Quit: Leaving.)
381: [05:19:53] <smaranika> no luck :)
382: [05:20:42] <smaranika> http://www.sspaste.com/paste/show/523bd9d5980ee
383: [05:20:51] <smaranika> simon_w|air: please help
384: [05:21:19] <simon_w|air> smaranika, the method needs to be on Member (or in your decorator)
385: [05:21:42] * wilr_ quit (Quit: wilr_)
386: [05:22:38] <ss23> Fatal error: Uncaught exception 'Exception' with message 'Object->__call(): the method 'delete' does not exist on 'HasManyList''
387: [05:22:41] <smaranika> did not get your point
388: [05:22:41] <ss23> wai not
389: [05:23:09] <spronk> UncleCheese: for reference, my power bills in chch with electric water heating and heat pump to heat house have been no higher than 250$ for a month
390: [05:23:37] <spronk> UncleCheese: they may also refer the debt to a collector
391: [05:24:01] <simon_w|air> smaranika, the method you call (getFields in this case) has to be in Member or your decorator, not in your Page class
392: [05:24:12] <simon_w|air> ss23, removeAll()?
393: [05:24:43] <ss23> churchur bro
394: [05:24:43] <ss23> :D
395: [05:25:02] <smaranika> ok
396: [05:25:03] <smaranika> thnx
397: [05:25:52] <smaranika> DONE
398: [05:27:46] <spronk> seriously
399: [05:27:51] <spronk> how can i get the current link in SS
400: [05:28:02] <spronk> if i'm using standard controllers
401: [05:28:06] <spronk> and actions and shit
402: [05:28:56] <simon_w|air> $this->request-> getURL()?
403: [05:29:22] <spronk> aaahhh
404: [05:29:23] <spronk> request
405: [05:29:32] <simon_w|air> true or false depending on if you want the get params or not
406: [05:29:37] <simon_w|air> default's false
407: [05:30:44] <spronk> marvellous
408: [05:30:56] <spronk> you using sublime 3, simon_w?
409: [05:31:00] <simon_w|air> Nope
410: [05:31:14] <simon_w|air> Should look at it sometime to see if it's worth the point of paying for the upgrade
411: [05:31:20] <spronk> oh? navigate just using find in files? or do you have some sort of fancy plugin?
412: [05:31:27] <simon_w|air> cmd-P
413: [05:31:41] <spronk> ooh
414: [05:32:01] <spronk> how have i not known about this
415: [05:32:01] <simon_w|air> file name, then @ for function, : for line number
416: [05:32:30] <simon_w|air> cmd-R's the same, but starts with the @ and there's one for : that I can't remember but my fingers usually can
417: [05:32:37] <spronk> niice
418: [05:35:54] * UncleCheese quit (Quit: UncleCheese)
419: [05:48:42] <ss23> CRASH
420: [05:48:44] <ss23> BOOM
421: [05:50:55] * stecman quit (Quit: This computer has gone to sleep)
422: [05:51:54] <simon_w|air> Stupid weather, ruining my fun
423: [05:51:59] <ss23> lol
424: [05:52:01] <simon_w|air> Come back you stupid storm!
425: [05:52:01] <ss23> It's making it fun
426: [05:52:01] <ss23> :D
427: [05:52:04] <ss23> oh
428: [05:52:06] <ss23> did it run away/
429: [05:52:09] <ss23> I think it got closed here
430: [05:52:18] <ss23> :<
431: [05:52:20] <simon_w|air> I got all set up to start watching and now it's moved north
432: [05:52:20] <ss23> closer*
433: [05:52:22] <ss23> I wanna walk home in it
434: [05:52:23] <ss23> awwww
435: [05:52:26] <ss23> COME BACK
436: [05:52:27] <ss23> sTORM
437: [05:52:28] <ss23> ;_;
438: [05:52:33] <ss23> Still
439: [05:52:40] <ss23> Storms here are shit compared to Sydney
440: [05:52:43] <ss23> FLASH
441: [05:52:46] <simon_w|air> Ooh, that one was close
442: [05:52:46] <ss23> BANG!
443: [05:53:12] <simon_w|air> I dunno, I'd take hail over sand any day :p
444: [05:53:17] <ss23> lol
445: [05:53:19] <ss23> I mean the storms!
446: [05:53:26] <ss23> Thunder ones
447: [05:53:38] <ss23> oh
448: [05:53:40] <ss23> that one closer
449: [05:53:40] <ss23> :D
450: [05:53:57] <simon_w|air> Hmm, hot, humid city or one that's cooler and drier. I wonder which one causes more lightning :p
451: [05:55:44] <smaranika> Hi need some help on multiform
452: [05:56:08] <smaranika> http://www.planmytournament.com/plan-a-tournament
453: [05:56:14] <ss23> wow
454: [05:56:16] <ss23> that one was lots closer
455: [05:56:39] <smaranika> from step 1 to 2 redirection message appears
456: [06:07:34] <Colin[pi]> want to snuggle ss23?
457: [06:08:06] <ss23> uguu
458: [06:08:06] <ss23> NO!
459: [06:08:07] * ss23 blushes
460: [06:08:10] <Colin[pi]> lol
461: [06:08:11] * dilshan quit (Ping timeout: 250 seconds)
462: [06:13:17] * Marvanni quit ()
463: [06:13:20] <smaranika> can anybody help on theming recaptcha?
464: [06:13:44] <Colin[pi]> yep
465: [06:14:11] <Colin[pi]> changing the theme? I use this: RecaptchaField::$js_options = array('theme'=>'clean');
466: [06:14:57] <smaranika> Yes.. Thats fine... But I need to know where to put the <div> for custom theme....
467: [06:15:16] <smaranika> http://planmytournament.com/
468: [06:15:25] <smaranika> the feft side form...
469: [06:15:28] <smaranika> left..
470: [06:15:40] * Shrike_Finland has joined #silverstripe
471: [06:15:46] <smaranika> form is getting generated by .php file
472: [06:48:13] * Marvanni has joined #silverstripe
473: [06:50:07] * Guits quit (Quit: Leaving)
474: [06:50:50] * Zauberfisch__ quit (Ping timeout: 246 seconds)
475: [06:52:42] * Shrike_Finland quit (Quit: Leaving.)
476: [06:53:16] * zfmf1 has joined #silverstripe
477: [06:57:07] <smaranika> hi can anyone tell me how to get current page url in silverstripe class file
478: [06:57:09] <smaranika> ?
479: [07:00:02] <Marvanni> $_GET['url'] ?
480: [07:00:38] <Marvanni> or Director::get_current_page();
481: [07:00:40] <Bollig|DesignCty> smaranika: $this->AbsoluteURL()
482: [07:01:06] <Marvanni> Then you need to be on a PageController ?
483: [07:01:23] <Marvanni> That won't work in DO's or other classes
484: [07:01:43] <Bollig|DesignCty> correct.
485: [07:09:36] * Zauberfisch__ has joined #silverstripe
486: [07:17:46] * pippy_ quit (Ping timeout: 241 seconds)
487: [07:19:51] * pippy has joined #silverstripe
488: [07:48:39] * kerosene quit (Quit: killed)
489: [08:09:30] * anujit has joined #silverstripe
490: [08:09:41] <anujit> hi need some html help
491: [08:11:46] <anujit> need to aling the recaptcha left
492: [08:20:21] * anujit quit (Ping timeout: 250 seconds)
493: [08:22:28] <Marvanni> Is it possible to create a custom set of Profiler triggers?
494: [08:27:24] <Marvanni> I use a remote webservice and I would like to show only Profile::mark() for the webservice calls
495: [08:34:46] * ocm has joined #silverstripe
496: [08:34:48] <ocm> howdy!
497: [08:42:18] * chillu has joined #silverstripe
498: [08:42:49] * micmania1 has joined #silverstripe
499: [08:48:43] * ARNHOE has joined #silverstripe
500: [08:48:47] * benly has joined #silverstripe
501: [08:49:00] <benly> help need i ngetting values from gridfield
502: [08:50:40] <Zauberfisch> benly: don't ask for help
503: [08:50:43] <Zauberfisch> ask your question
504: [08:51:28] <ocm> haha
505: [08:52:28] <benly> my question is
506: [08:52:38] <benly> how to get a valueo f a gridfield in cms
507: [08:52:44] <benly> while adding
508: [08:53:13] <Zauberfisch> define "value" in this context
509: [08:54:00] <benly> menas i have a gridfield od employee area while adding it in cms i need to get the value of it
510: [08:54:26] <Zauberfisch> I still don't see what the value of a gridfield could be
511: [08:54:34] <Zauberfisch> gridfield has a DataList ob objects
512: [08:54:51] <Zauberfisch> the gridfield itself has no real value, the only value it has is a collection of objects
513: [08:55:27] <benly> thats right but it will hold a value and we need to add to a datbse field
514: [08:55:45] <Zauberfisch> no it will not
515: [08:56:12] <benly> $fields->addFieldToTab('Root.Main',$emplyeeareaAreasField);
516: [08:56:16] <Zauberfisch> the objects managed by the gridfield have values, do you mean those?
517: [08:56:23] <benly> yes
518: [08:56:54] <benly> $config->getComponentByType('GridFieldDataColumns')->setDisplayFields(array( 'main_employeearea' => 'main_studyarea', 'sub_employeearea'=> 'sub_studyarea' ));
519: [08:56:57] <Zauberfisch> ok, well then, now it depends how you want to access them and from where
520: [08:57:19] <benly> i need to acces them from a cms page
521: [08:57:30] <benly> and need to get the value to imported to databse
522: [08:59:50] <Zauberfisch> I need more details to comprehend your goal
523: [09:04:28] <benly> there is a database fiedl employee_locationid , i need to update it while we save the data in cms
524: [09:09:45] <micmania1> Anybody had this problem? https://github.com/silverstripe/silverstripe-framework/issues/2424#issuecomment-24638440
525: [09:10:24] <micmania1> It keeps happening to me, but I can't pin down why as it seems random
526: [09:11:10] <micmania1> ...and chillu replies to the ticket as I type that. Good timing.
527: [09:11:17] * zfmf1 quit (Remote host closed the connection)
528: [09:11:17] <chillu> :D
529: [09:11:32] <chillu> can you still reproduce it?
530: [09:11:40] <chillu> its like a heisenbug for me
531: [09:11:43] * g4b0 has joined #silverstripe
532: [09:12:30] <micmania1> I list steps to reproduce in the ticket, but even then sometimes it doesn't happen.
533: [09:12:52] * Guits has joined #silverstripe
534: [09:13:06] <micmania1> I'll check my dev tools now as I log in.
535: [09:14:19] <Guits> Aargh .. Undefined variable: _SESSION ..seems like SESSION is cleared on every page load.. looking for whitespaces but find nothing
536: [09:14:24] <micmania1> logged my straight in. I'll try again later when I have a bit of time.
537: [09:15:26] <g4b0> hi
538: [09:16:37] <Zauberfisch> benly: what data in the CMS? what page are you on in the CMS? in which table/object is this DB field? ... I can't guess your stuff, you need to give us some useful details so we know what you are trying to do
539: [09:17:03] <g4b0> how can I customize the gridfield in /admin/assets/ ?
540: [09:17:19] <g4b0> I would like to add file names into the grid
541: [09:18:14] <Zauberfisch> g4b0: create a Extension, add it to the AssetAdmin, use the updateEditForm($form) method to hook in
542: [09:18:45] <g4b0> mmm intresting
543: [09:18:59] <g4b0> let's me try...
544: [09:19:13] <Zauberfisch> with $form you can do $grid = $form->fieldByName('File')
545: [09:23:46] <benly> I am in edit page , i have gridfield
546: [09:24:14] <benly> in public function onBeforeWrite() { i need to get its value
547: [09:25:06] * qlex has joined #silverstripe
548: [09:28:54] <ARNHOE> To understand mysql indexes better. I have some 3/4 queries calling for $sqlQuery->selectField('URLSegmentFinalWinnerName', 'URLSegmentFinalWinnerName');, would it be good to add that to indexes to increase the performance?
549: [09:30:32] * chillu quit (Quit: chillu)
550: [09:32:26] <g4b0> Zauberfisch: the method 'fieldbyname' does not exist on 'CMSForm'
551: [09:33:45] <Zauberfisch> ah, wait
552: [09:33:58] <Zauberfisch> you have to do $form->Fields()->fieldByName(
553: [09:34:03] * Colin[pi] quit (Ping timeout: 260 seconds)
554: [09:34:05] <g4b0> $form->Fields()->fieldByName('File'); returns null :)
555: [09:34:32] <Zauberfisch> benly: we are slowly getting somewhere, but still not enough
556: [09:34:48] <Zauberfisch> what value do you want to access and where do you want to save it to?
557: [09:35:17] <Zauberfisch> and where is the onBeforeWrite? in which class
558: [09:35:25] * micmania1 quit (Read error: Connection reset by peer)
559: [09:35:38] <Zauberfisch> (it would probably also help if you paste the relevant code to http://paste2.org)
560: [09:35:44] * micmania2 has joined #silverstripe
561: [09:38:13] * travis-ci has joined #silverstripe
562: [09:38:13] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1006 (3.1 - 5b3f8bc : Ingo Schommer): The build passed.
563: [09:38:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4f7dc653d132...5b3f8bc04da5
564: [09:38:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11587065
565: [09:38:13] * travis-ci has left #silverstripe
566: [09:42:06] * Stomach has joined #silverstripe
567: [09:48:26] <micmania2> Is there a way to define the default image alignment classes in the HTML editor?
568: [09:54:29] <ocm> yes, you can do that in your _config file
569: [09:54:41] <micmania2> do you have an example?
570: [09:54:51] <ocm> HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'Links - text rondom=left; Rechts - text rondom=right; In lijn met tekst=inline; Gecentreerd - losstaand=centered', '[img]');
571: [09:54:58] <ocm> sorry for the duch inside of it
572: [09:55:01] <ocm> but I think you get the message
573: [09:55:17] <micmania2> Thanks. Much appreciated.
574: [09:55:20] <ocm> np
575: [09:58:41] <g4b0> Zauberfisch: any news about $form->Fields()->fieldByName('File') that returns null?
576: [10:02:26] <ocm> is it possible to block a requirement like themedcss?
577: [10:03:14] * Stomach quit (Quit: Leaving.)
578: [10:03:52] <micmania2> ocm, you can clear something after its been required
579: [10:04:08] <micmania2> ie Requirement::clear("path/to/file")
580: [10:04:16] <micmania2> Requirements*
581: [10:04:30] <ocm> ah requirements::block doesnt work anymore?
582: [10:05:03] <ocm> is there a trick to clear/block all requirements from Page.php?
583: [10:07:52] <micmania2> I didn't know there was a block method. Have you tried it?
584: [10:08:06] <micmania2> and to clear all you can just use Requirements::clear() without a param.
585: [10:08:10] <Marvanni> Requirements::clear();
586: [10:08:16] <ocm> oh wow :)
587: [10:08:21] <ocm> thanks micmania2 and Marvanni
588: [10:08:27] <ocm> I should have tried that, sounds logical :D
589: [10:14:35] <Zauberfisch> g4b0: maybe you have to go atep bystep
590: [10:16:23] <Zauberfisch> ->fieldByName('Root')->...
591: [10:16:43] <g4b0> I'm trying this way
592: [10:16:54] <g4b0> not really straightforward...
593: [10:24:58] <g4b0> I did it
594: [10:25:22] <g4b0> step by step
595: [10:25:25] <g4b0> it works
596: [10:25:36] <g4b0> $root = $form->Fields()->fieldByName('Root');
597: [10:25:42] <g4b0> foreach ($root->getChildren() as $t) {
598: [10:26:02] <g4b0> if ($t->fieldByName('File')) {
599: [10:26:08] <g4b0> $gridField = $t->fieldByName('File');
600: [10:26:13] <g4b0> :)
601: [10:27:19] * smaranika quit (Ping timeout: 250 seconds)
602: [10:29:47] * g4b0 quit (Quit: Sto andando via)
603: [10:31:54] * qlex has left #silverstripe
604: [10:42:30] * Shrike_Finland has joined #silverstripe
605: [10:54:03] * Guits quit (Ping timeout: 260 seconds)
606: [10:57:58] * swordsmanz has joined #silverstripe
607: [11:01:49] * Guits has joined #silverstripe
608: [11:05:29] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
609: [11:06:07] * Bollig|DesignCty has joined #silverstripe
610: [11:06:21] * Bollig|DesignCty quit (Client Quit)
611: [11:09:43] * kerosene has joined #silverstripe
612: [11:33:32] <Zauberfisch> simon_w|air: could you setup logs., docs., ... subdomains for ss.org.nz?
613: [11:47:40] * spronk quit (Ping timeout: 257 seconds)
614: [11:55:34] <micmania2> is there a simple way to check that a user has access to the CMS (at all)?
615: [11:56:11] <micmania2> Or would I have to check for each permissions which would allow them to do that?
616: [12:03:21] * qlex has joined #silverstripe
617: [12:03:24] * qlex says hi
618: [12:03:47] <qlex> what could be the reason that when i type myhost.com/dev/build?flush=all i get white screen and just: "Not found" on it ???
619: [12:03:58] <qlex> never had anything like this with my ss3 install
620: [12:04:08] * UndefinedOffset has joined #silverstripe
621: [12:09:42] * spronk has joined #silverstripe
622: [12:10:18] * Guits quit (Ping timeout: 264 seconds)
623: [12:27:55] * sam__ has joined #silverstripe
624: [12:28:17] <sam__> hi can any body halp me in styling captcha?
625: [12:28:41] <sam__> http://planmytournament.com/
626: [12:47:34] <micmania2> qlex, is you htaccess setup/working correctly?
627: [12:48:00] <micmania2> try going to /index.php/dev/build?flush=1.
628: [12:52:58] * feejin has joined #silverstripe
629: [12:54:39] * benly quit (Ping timeout: 250 seconds)
630: [12:56:15] <qlex> micmania2: got fed up and reinstalling from scratch :)
631: [13:05:41] * Guits has joined #silverstripe
632: [13:13:50] * osterlaus has joined #silverstripe
633: [13:16:36] * osterlaus has left #silverstripe
634: [13:20:13] * jrthomer quit (Remote host closed the connection)
635: [13:21:09] <sam__> html issue on recaptcha
636: [13:21:12] <sam__> please help
637: [13:25:56] <feejin> what's the issue?
638: [13:28:38] * Shrike_Finland quit (Quit: Leaving.)
639: [13:36:32] <sam__> http://planmytournament.com/
640: [13:36:39] <sam__> left side form
641: [13:42:49] * qlex has left #silverstripe
642: [13:52:08] * qlex has joined #silverstripe
643: [13:52:33] <qlex> is it normal behaviour that deleting tutorial in themes breakes up whole ss3 installation ?
644: [13:52:52] <qlex> im getting:
645: [13:53:10] <qlex> [Warning] filemtime() [function.filemtime]: stat failed for ../themes/tutorial/templates/HomePage.ssGET /something/Line 881 in /var/www/vhosts/something.net/httpdocs/something/framework/view/SSViewer.php
646: [13:57:37] <Zauberfisch> qlex: have flush templates on?
647: [13:57:48] <qlex> nope ?
648: [13:57:51] <qlex> where do i set it up
649: [13:57:57] <qlex> or do you mean did i flush=all ?
650: [13:58:05] <Zauberfisch> pre 3.1 in _config.php
651: [13:58:16] <Zauberfisch> 3.1 in yml config
652: [13:58:20] <qlex> if i copy my theme and rename it to tutorial
653: [13:58:23] <qlex> then everything works
654: [13:58:29] <qlex> can you tell me how ?
655: [13:58:35] <qlex> i mean, what line do i need to add ?
656: [13:59:26] <Zauberfisch> well, its turned off by default
657: [13:59:28] * sam__ quit (Quit: Page closed)
658: [13:59:35] <Zauberfisch> so you don't need to do anything
659: [13:59:43] <Zauberfisch> just check if you have SSViewer::set_source_file_comments(true); somewhere
660: [13:59:44] <qlex> i got this
661: [13:59:45] <qlex> SSViewer::set_theme('simple');
662: [13:59:53] <Zauberfisch> if you have, remove it
663: [14:00:01] <qlex> nope i dont
664: [14:00:02] <Zauberfisch> fail
665: [14:00:05] <Zauberfisch> wrong line
666: [14:00:05] <Zauberfisch> moment
667: [14:00:08] <qlex> ok
668: [14:00:16] <Zauberfisch> SSViewer::flush_template_cache();
669: [14:00:18] <Zauberfisch> this one
670: [14:00:18] <qlex> nothing suspiciould
671: [14:00:24] <qlex> should i add it ?
672: [14:00:30] <Zauberfisch> no, but if you have it, remove it
673: [14:00:43] <qlex> i dont have it
674: [14:00:46] <Zauberfisch> its known to cause filetime warnings
675: [14:00:47] <Zauberfisch> ok
676: [14:01:14] <Zauberfisch> hmmm, then no idea
677: [14:01:19] <Zauberfisch> when is it occuring again?
678: [14:01:23] <qlex> http://pastie.org/8341801
679: [14:01:43] <qlex> sorry this pastie has this line added
680: [14:01:50] <qlex> but im working without this line
681: [14:01:58] <qlex> this happens, when i delete "themes/tutorial" folder
682: [14:02:19] <Zauberfisch> ah, I see
683: [14:02:26] <Zauberfisch> so you delete the folder and then SS breaks?
684: [14:02:31] <Zauberfisch> did you flush=1 after deleting?
685: [14:02:52] <qlex> http://kulesza.net/kombus/
686: [14:02:54] <qlex> check thus out
687: [14:02:55] <qlex> yes
688: [14:03:04] <Zauberfisch> NOTE /dev/build/?flush=1 flushes only the configs, not the template, so you also need to do /?flush=1
689: [14:03:11] <Zauberfisch> or /?flush=all
690: [14:03:14] <qlex> now i removed that line SSViewer::set_theme('simple');
691: [14:03:16] <qlex> from config
692: [14:03:22] <qlex> and set it directly in admin settings of CMS
693: [14:04:07] <qlex> yes, flushed both
694: [14:04:14] <Zauberfisch> there is something weird with your server
695: [14:04:15] <Zauberfisch> http://kulesza.net/dev/
696: [14:04:22] <Zauberfisch> 404?
697: [14:04:27] <Zauberfisch> thats not suppose to happen
698: [14:04:35] <Zauberfisch> ah, wait
699: [14:04:36] <Zauberfisch> subfolder
700: [14:04:37] <Zauberfisch> fail
701: [14:04:40] <qlex> yes
702: [14:04:41] <qlex> subfolder
703: [14:04:52] <qlex> for some reason it works now
704: [14:05:01] <qlex> i flushed again and now it works with tutorial folder being deleted
705: [14:05:02] <qlex> strange
706: [14:06:31] <qlex> ok
707: [14:06:33] <qlex> i needto be going
708: [14:06:35] <qlex> very strange
709: [14:06:40] <qlex> but i think i need to upgrade to 3.1 now
710: [14:06:42] <qlex> or soon
711: [14:06:43] <qlex> bye
712: [14:09:07] * qlex has left #silverstripe
713: [14:21:47] * zfmf1 has joined #silverstripe
714: [14:34:19] * chr1stopher has joined #silverstripe
715: [15:17:21] <ocm> good weekend all
716: [15:17:22] <ocm> cheers
717: [15:20:26] * ARNHOE quit (Remote host closed the connection)
718: [15:22:39] * feejin quit (Remote host closed the connection)
719: [15:33:00] * Nivery has joined #silverstripe
720: [16:17:01] * Nivery quit (Quit: Nivery)
721: [16:17:29] * Liquide has joined #silverstripe
722: [16:58:50] * Motoservo has joined #silverstripe
723: [17:25:02] <AlphaCactus> oi, how come unpublished page shows up in nav
724: [17:31:25] * gelignite has joined #silverstripe
725: [17:32:37] * ARNHOE has joined #silverstripe
726: [17:37:30] <guzzlefry> AlphaCactus: previous version that is published?
727: [17:37:38] * guzzlefry throws random guesses out. :)
728: [17:38:09] <AlphaCactus> ah, figured itout. I was viewing staging site, just the "simple" theme doesn't show the SilverStripeNavigator so I didn't know I was...
729: [17:44:39] <AlphaCactus> i rarely work on front end page stuff so i'm total newb at editing content and pages and such
730: [17:45:34] * ARNHOE quit (Remote host closed the connection)
731: [17:46:08] * ARNHOE has joined #silverstripe
732: [17:46:24] * jcwacky has joined #silverstripe
733: [17:47:15] <jcwacky> What's the best way to achieve this: http://spdr.me/wO09 (SS3.1) Obtaining a single DataList containing all the has_many's of several DOs.
734: [17:50:19] * ARNHOE quit (Ping timeout: 248 seconds)
735: [18:01:30] <guzzlefry> Can you handle has-many relationships with SiteConfig extensions?
736: [18:25:44] * Nivery has joined #silverstripe
737: [18:36:21] <jcwacky> How can I get all the DataObjects which don't have any of their "has_many" relations.
738: [18:36:26] * Error404NotFound has joined #silverstripe
739: [18:38:20] <Zauberfisch> guzzlefry: of course
740: [18:39:00] * Guits quit (Read error: Connection reset by peer)
741: [18:39:25] * Guits has joined #silverstripe
742: [18:39:27] <Zauberfisch> jcwacky: way 1: http://paste2.org/8kGG0bnY
743: [18:39:39] <Zauberfisch> actually, misstake, hold on
744: [18:39:40] * zfmf1 has left #silverstripe
745: [18:40:29] <Zauberfisch> http://paste2.org/cL1vwLEM
746: [18:40:33] <Zauberfisch> something like this
747: [18:40:42] <Zauberfisch> but thats of course no data list
748: [18:40:59] <Zauberfisch> so you loose the fancy lazy loading and stuff
749: [18:41:09] <jcwacky> is that better than skipping the 2nd foreach and just using merge, instead of add?
750: [18:41:49] <Zauberfisch> no, but I was not sure if merge is working (used to be broken in some 3.x version I think, and I don't wanted to paste broken code)
751: [18:42:01] <jcwacky> Ah ok, cool. Thanks!
752: [18:42:23] <jcwacky> And how about getting all the "Events" with no "Showings" (has_many)?
753: [18:42:52] <jcwacky> tried something like Event::get()->filter(array('Showings.ID' => 0)); so far.
754: [18:43:24] <Zauberfisch> way 2 (the nicer if you ask me): http://paste2.org/WKVZGndV
755: [18:43:32] <guzzlefry> So, data passed into filter(), should I be escaping that, or is it automagic?
756: [18:44:05] <Zauberfisch> ->filter(array('Showings.ID' => 0)); will not work, becuase ID 0 is never going to happen
757: [18:44:10] <jcwacky> ah, nice, knew it could be done better!
758: [18:44:12] <Zauberfisch> it doesn't work this way
759: [18:44:38] <UndefinedOffset> guzzlefry memory serves its not done automatically when you pass an array in, though in this case your only passing auto generated numbers so it shouldn't* be an issue
760: [18:45:13] <guzzlefry> This is form data. >_>
761: [18:45:18] <UndefinedOffset> oh...
762: [18:45:49] <UndefinedOffset> well should use array_map or walk it manually to escape it first then
763: [18:45:53] <guzzlefry> value of a select list determines which row ID to look up to find which email address to send info to.
764: [18:46:07] <guzzlefry> hrm
765: [18:46:13] <guzzlefry> is_int() should be adequate I think?
766: [18:46:21] <guzzlefry> Guess I could check. :)
767: [18:46:31] <Zauberfisch> jcwacky: there ar enow several ways to get the events that have now showings
768: [18:46:45] <UndefinedOffset> is_int would return boolean, try intval() instead :)
769: [18:46:48] <jcwacky> What would you recommend? :)
770: [18:47:28] * chr1stopher quit (Quit: Page closed)
771: [18:47:42] <jcwacky> I know I could foreach them, but seems inefficient.
772: [18:47:59] <jcwacky> Ah, could I use column(), like you did before? And then exclude()?
773: [18:48:51] <guzzlefry> UndefinedOffset: I mean if (!is_int($form_value)) { throw angry error and return } otherwise use that value to find email address in database. :P
774: [18:49:14] <guzzlefry> Also pondering throwing some type of hacking alert email my way, but that could be overkill. :P
775: [18:49:49] <UndefinedOffset> guzzlefry ah ya you could do that, personally i prefer to be a bit more quiet when someone is trying something they shouldn't but ya that would work as well lol
776: [18:50:03] <Zauberfisch> jcwacky: wait
777: [18:50:52] <guzzlefry> oh, I'm not going to say "you be hackin bro!", just quietly pass myself an email about it. :P
778: [18:50:59] <UndefinedOffset> :)
779: [18:51:20] <guzzlefry> Script kiddies are a sensitive and easily aggitated creature.
780: [18:51:38] <Zauberfisch> jcwacky: way 1 would be to loop them all in php, which is really slow if you have much events
781: [18:54:00] <jcwacky> Yeh, I presume there's a faster way?
782: [18:54:41] <guzzlefry> Does filter() have to take an array?
783: [18:54:47] <AlphaCactus> no
784: [18:54:55] <AlphaCactus> if you only have one filter you can pass 2 params
785: [18:55:08] <AlphaCactus> it just converts that to an array tho...
786: [18:56:02] <guzzlefry> okay, thanks
787: [18:56:49] <guzzlefry> oh, derp
788: [18:57:10] <guzzlefry> DataObject::get()->byID(int) might make more sense, huh? :)
789: [18:59:00] <Zauberfisch> jcwacky: the better way would be to custruct a query for Event and join the Showings and then count the showings for each event and only select the events that have a count of 0
790: [18:59:09] <Zauberfisch> I would do all that in sql
791: [18:59:18] <Zauberfisch> or in a dataquery that turns into a sql
792: [18:59:39] <Zauberfisch> b
793: [18:59:51] <Zauberfisch> but I can't write an example for that now
794: [18:59:51] <guzzlefry> So now that I have a single DataObject, is there a way to get a primitive value out of it via method chaining?
795: [19:00:18] <Zauberfisch> anyway, got to go
796: [19:00:34] <jcwacky> Ah, ok. Thanks. Shame there isn't an in-between option! But I'll give the data query a go.
797: [19:00:41] <jcwacky> Thank you very much!
798: [19:00:47] <Zauberfisch> maybe there is, but I am not aware of it
799: [19:01:48] <guzzlefry> oh, looks like getField() does it.
800: [19:01:50] * guzzlefry checks.
801: [19:02:02] <Zauberfisch> last time I did such a thing was 2.4 and there I used an mysqlquery object to build the query, but in 3.x one should use the datalist for that, but I would have to take a look at it
802: [19:02:51] * Error404NotFound quit (Read error: Connection reset by peer)
803: [19:03:29] <jcwacky> Ok cool, not to worry. I'll have a play. Thanks again!
804: [19:03:53] * Error404NotFound has joined #silverstripe
805: [19:06:53] * Zauberfisch__ quit (Ping timeout: 246 seconds)
806: [19:09:05] <guzzlefry> There seems to have been a technical problem. Please click the back button, refresh your browser, and try again. <-- How do I begin to debug this? No errors in logs.
807: [19:12:27] <guzzlefry> Well, I'm getting a 404 error for something that exists. :P
808: [19:25:27] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
809: [19:34:48] * Zauberfisch__ has joined #silverstripe
810: [19:35:04] * Motoservo has joined #silverstripe
811: [19:44:55] <guzzlefry> oh, dataFieldByName($SecurityID) doesn't work as well as dataFieldByName(SecurityID)
812: [19:48:11] <guzzlefry> Any idea on how I can restrict a single checked item within a class of dataobjects?
813: [19:50:43] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
814: [19:51:34] * Zauberfisch__ quit (Read error: Connection timed out)
815: [19:51:59] * Zauberfisch__ has joined #silverstripe
816: [20:02:05] <simon_w> Zauberfisch, do you know how much effort that is? :p
817: [20:07:04] * Guits quit (Read error: Connection reset by peer)
818: [20:07:23] * Guits has joined #silverstripe
819: [20:08:08] * Guits quit (Read error: Connection reset by peer)
820: [20:08:15] * UndefinedOffset quit (Quit: Leaving.)
821: [20:08:24] <Zauberfisch> what? writing the dns zone file? 1min
822: [20:09:04] <Zauberfisch> creating a redirect? if you make a coffee break in the middle maybe 5 :p
823: [20:09:21] <simon_w> So yes, you don't know how much effort it is
824: [20:10:50] <Zauberfisch> what setup do you have that this takes an effort >15min?
825: [20:11:15] <simon_w> One that I'd prefer to not hack to add in domain redirects
826: [20:14:25] * Guits has joined #silverstripe
827: [20:14:53] * Zauberfisch__ quit (Read error: Connection reset by peer)
828: [20:15:00] * Guits quit (Read error: Connection reset by peer)
829: [20:15:17] * zfmf1 has joined #silverstripe
830: [20:15:23] <Zauberfisch> simon_w: well then i guess you have to do it the hard way :p
831: [20:15:38] * Zauberfisch__ has joined #silverstripe
832: [20:18:18] * zfmf1 has left #silverstripe
833: [20:18:27] <guzzlefry> Is there a quick way to set all values for a dataobject of classname to a specific value?
834: [20:18:42] <guzzlefry> basically UPDATE MyClass SET value = false; :P
835: [20:18:56] <Zauberfisch> onetime thing? use a sql query
836: [20:19:12] <simon_w> Zauberfisch, done
837: [20:19:20] <Zauberfisch> yay, thanks simon_w
838: [20:19:21] <guzzlefry> There isn't a cleaner way?
839: [20:19:34] <Zauberfisch> not sure
840: [20:20:18] <guzzlefry> oh wait, it's in the docs. :P
841: [20:20:45] <guzzlefry> just not very clear...
842: [20:20:55] <guzzlefry> http://doc.silverstripe.org/framework/en/topics/datamodel#batch-update
843: [20:24:45] <guzzlefry> I'm not even sure that does what I need.
844: [20:27:51] <simon_w> guzzlefry, there isn't an efficient cleaner way
845: [20:29:34] <guzzlefry> Ah okay, raw SQL it is. :)
846: [20:37:53] <simon_w> Man, almost two minutes behind. Poor Team USA
847: [20:39:39] * Zauberfisch__ quit (Ping timeout: 252 seconds)
848: [20:40:57] * Nivery quit (Quit: Nivery)
849: [20:41:24] * Nivery has joined #silverstripe
850: [20:41:53] * Nivery quit (Client Quit)
851: [20:54:32] <guzzlefry> My onBeforeWrite() method seems to cause the CMS to hang...
852: [20:55:06] <guzzlefry> Only when creating new DataObjects though.
853: [20:55:41] <guzzlefry> oh, maybe I need to call the parent method. :P
854: [20:57:22] <guzzlefry> yay, that was it
855: [20:58:53] * Zauberfisch__ has joined #silverstripe
856: [21:04:50] * DryerLintPurple quit (Ping timeout: 246 seconds)
857: [21:09:08] * Zauberfisch__ quit (Read error: Connection reset by peer)
858: [21:09:55] * Zauberfisch__ has joined #silverstripe
859: [21:15:42] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
860: [21:25:34] * razzi has joined #silverstripe
861: [21:38:55] * DryerLintPurple has joined #silverstripe
862: [21:41:21] * gelignite quit (Quit: http://bit.ly/nkczDT)
863: [22:00:27] <simon_w> Chances that composer's going to time out?
864: [22:00:32] <simon_w> I'm putting it at "rather high"
865: [22:01:34] <simon_w> Also:
866: [22:01:35] <simon_w> Executing command (framework/): git remote set-url --push origin 'git@github.com:silverstripe/silverstripe-framework.git'
867: [22:01:35] <simon_w> Is rather annoying
868: [22:03:13] <simon_w> Also, that self.version crap
869: [22:16:42] <DryerLintPurple> you mean timing out during the git pulls? you can change the timeout, you know.
870: [22:17:34] <DryerLintPurple> set the COMPOSER_PROCESS_TIMEOUT environment variable to a higher value (I have mine at 600, ie 10 minutes)
871: [22:18:38] * willr has joined #silverstripe
872: [22:18:59] <simon_w> Or, I could just use git itself and screw using composer
873: [22:21:26] <simon_w> One of these options sounds much easier :p
874: [22:29:52] * willr quit (Quit: willr)
875: [22:35:57] * willr has joined #silverstripe
876: [22:43:23] * Zauberfisch__ quit (Ping timeout: 260 seconds)
877: [22:51:09] * AlphaCactus_ has joined #silverstripe
878: [22:52:31] * AlphaCactus quit (Ping timeout: 260 seconds)
879: [22:52:34] * AlphaCactus_ is now known as AlphaCactus
880: [22:55:15] <willr> simon_w how's mavericks? Seems like one way to kill an afternoon
881: [22:55:31] <simon_w> Distinct spaces is amazing
882: [22:56:31] <willr> yes. Multiple display win
883: [22:57:42] * travis-ci has joined #silverstripe
884: [22:57:42] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1009 (3.1 - 89cee10 : Will Rossiter): The build was broken.
885: [22:57:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5b3f8bc04da5...89cee10e0ca7
886: [22:57:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11614247
887: [22:57:42] * travis-ci has left #silverstripe
888: [22:58:16] <willr> wasn't me.
889: [22:58:47] <simon_w> You broke it!
890: [22:59:13] <simon_w> Oh, a cache test failure
891: [23:06:12] * travis-ci has joined #silverstripe
892: [23:06:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1009 (3.1 - 89cee10 : Will Rossiter): The build passed.
893: [23:06:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5b3f8bc04da5...89cee10e0ca7
894: [23:06:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11614247
895: [23:06:12] * travis-ci has left #silverstripe
896: [23:06:38] * Zauberfisch__ has joined #silverstripe
897: [23:06:48] <simon_w> There, I fixed it for you willr :p
898: [23:09:22] * blumberg has joined #silverstripe
899: [23:09:44] * Zauberfisch quit (Remote host closed the connection)
900: [23:10:02] <willr> want a cookie?
901: [23:10:17] <simon_w> Yup!
902: [23:10:41] <blumberg> i read on the blog module that required version is 3.1, i have a 3.0.5 installed via composer. how do i upgrade it?
903: [23:11:26] <blumberg> (or how do i install 3.1 from scratch? if that's easier)
904: [23:11:36] <willr> https://github.com/silverstripe/silverstripe-blog/tree/0.6 supports 3.0.*
905: [23:11:46] <blumberg> Thanks
906: [23:14:06] <willr> upgrading to 3.1 is also pretty easy via composer, just change the version number in the composer.json file to 3.1.x-dev
907: [23:14:33] <blumberg> willr: maybe a stupid question, is it enough to do git checkout 0.6 once i have cloned the repo?
908: [23:14:59] <willr> via git yep. Or use 0.6.x-dev in your composer.json
909: [23:15:30] <willr> git checkout 0.6 --track origin/0.6 might be required
910: [23:15:31] <blumberg> much obliged
911: [23:19:30] <simon_w> Failures everywhere!
912: [23:23:57] <willr> what have you broken now? :P
913: [23:24:21] <simon_w> Well, I managed to get SS to finish its bootstrap in HHVM
914: [23:24:26] <simon_w> So now I'm running the tests
915: [23:24:43] <simon_w> Had to switch from blowfish back to sha1 to get it slightly nicer
916: [23:25:20] <simon_w> Tests: 1337, Assertions: 4704, Failures: 21, Errors: 75, Incomplete: 6, Skipped: 23.
917: [23:26:38] <willr> tests run at least
918: [23:27:16] <willr> interesting to see that they're trying to PHP parity. Thought they were just going to scrap some of the shitty stuff
919: [23:27:55] <blumberg> another question; the 3.1 installer.php warns about not having tidy support. i have tidy installed on the system as a binary, what is it more exactly that silverstripe is looking for? is there a php5-tidy module or similar?
920: [23:29:25] <willr> blumberg yeah it'll be looking for tidy() as a PHP method
921: [23:30:38] <simon_w> http://pastebin.com/0uckwqHa
922: [23:30:56] <simon_w> The change to Object is the only one need to get the bootstrap working, the ones it i18nTest just stop it from fatalling out
923: [23:36:14] <willr> Nice, you can get them to update http://www.hhvm.com/blog/?p=875 once you get it all up and running
924: [23:36:43] <simon_w> Well, I'm going to make it so that I don't need that change to Object first
925: [23:36:54] <simon_w> But yeah, that's the plan
926: [23:37:56] <simon_w> (too slow ss23 :p)
927: [23:41:28] <guzzlefry> Doesn't 90% of PHPUnit's tests failing make the other stuff in that table useless? :P
928: [23:42:55] <simon_w> Uh, that's 90% pass
929: [23:47:33] * Zauberfisch__ quit (Quit: Leaving)
930: [23:55:25] <willr> So that's vs 98.5% for SS. Not bad
931: [23:57:31] <simon_w> I can turn 8 of those skipped into passed
932: [23:58:42] <simon_w> phpunit-run tests can't find php in my path but ss-run ones can

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