#silverstripe IRC Log

IRC log for 7 September 2014

All timestamps are in UTC.

1: [00:20:35] * muskie9 has joined #silverstripe
2: [00:32:17] * muskie9 quit (Ping timeout: 276 seconds)
3: [00:40:29] * muskie9 has joined #silverstripe
4: [00:48:29] * babak has joined #silverstripe
5: [01:01:39] * willr has joined #silverstripe
6: [01:02:55] * muskie9 quit (Read error: Connection reset by peer)
7: [01:03:08] * muskie9 has joined #silverstripe
8: [01:06:24] * vebb has joined #silverstripe
9: [01:13:28] * willr quit (Quit: willr)
10: [01:20:52] * muskie9 quit (Ping timeout: 240 seconds)
11: [01:41:47] * muskie9 has joined #silverstripe
12: [01:42:35] * joelpittet quit ()
13: [01:50:17] * muskie9 quit (Ping timeout: 260 seconds)
14: [02:02:00] * [SD]LoveDuckie quit (Remote host closed the connection)
15: [02:33:03] * Colin[pi] quit (Ping timeout: 268 seconds)
16: [02:34:16] * Colin[pi] has joined #silverstripe
17: [02:37:11] * stephanvd quit (Quit: stephanvd)
18: [02:38:49] * Colin[pi] quit (Ping timeout: 260 seconds)
19: [02:42:39] * eagles0513875 has joined #silverstripe
20: [03:34:25] * willr has joined #silverstripe
21: [03:39:32] * babak quit (Quit: Connection closed for inactivity)
22: [03:43:24] * eagles0513875 quit (Ping timeout: 246 seconds)
23: [03:45:24] * cloph has joined #silverstripe
24: [03:45:28] * cloph_away quit (Ping timeout: 252 seconds)
25: [03:52:19] * joelpittet has joined #silverstripe
26: [04:28:18] * joelpittet quit ()
27: [04:43:04] * r_hector has joined #silverstripe
28: [04:45:53] * elgrodo notices issue with focuspoint module
29: [04:46:06] <elgrodo> if I change the focus, the image breaks, it is not being regenerated
30: [04:46:31] <elgrodo> how does SilverStripe detect whether an image needs regenerated or not?
31: [04:48:25] <elgrodo> looks like getFormattedImage in Image is ultimately where to look
32: [05:23:30] * Kingy quit (Quit: ZNC - http://znc.in)
33: [05:24:43] * Kingy has joined #silverstripe
34: [05:28:13] * babak has joined #silverstripe
35: [05:50:05] <elgrodo> after several interruptions figured it out, the cache key for the page does not take account of the images in the objects rendered (PageWithImage, a page with an image)
36: [05:50:49] <elgrodo> so when I used focuspoint to change the focuspoint of the image, it deletes the old rendered images. When I reload the page the cachekey is the same for the several PageWithImage children, and thus the newly focussed image does not get re-rendered
37: [06:31:14] * spronk2 has joined #silverstripe
38: [06:33:22] * willr quit (Quit: willr)
39: [06:54:38] * __will has joined #silverstripe
40: [06:55:20] <__will> is there a module that fixes the image finding UI?
41: [07:13:23] * spronk2 quit (Quit: spronk2)
42: [07:14:23] * Colin[pi] has joined #silverstripe
43: [07:52:43] * simon_w|air has joined #silverstripe
44: [07:54:52] * vebb has joined #silverstripe
45: [07:56:03] * joelpittet has joined #silverstripe
46: [08:10:36] * spronk2 has joined #silverstripe
47: [08:10:38] * spronk2 quit (Client Quit)
48: [08:27:17] * willr has joined #silverstripe
49: [08:27:37] * Liongold has joined #silverstripe
50: [08:27:44] <Liongold> Hi. Anyone here?
51: [08:41:49] * simon_w|air quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
52: [08:43:00] <simon_w> Perhaps
53: [08:44:25] <Liongold> simon_w: I have a problem with the Recaptcha module. It's showing Please answer error even though I don't have any captcha in the form.
54: [08:44:46] * __will quit (Ping timeout: 246 seconds)
55: [09:04:47] <elgrodo> I've never used it
56: [09:06:01] <elgrodo> think I've noticed a bug with flushing generated images in that images uploaded with TinyMCE into the body of some HTML do not render and are not regenerated. Need to test on a clean copy though
57: [09:11:26] * spronk2 has joined #silverstripe
58: [09:23:43] * Zopiclone has joined #silverstripe
59: [09:24:06] <Zopiclone> Hello all
60: [09:29:38] * Kingy is now known as Kingy[a]
61: [09:40:31] * simon_w quit (Quit: Ping timeout: your mum)
62: [09:41:23] * simon_w|air has joined #silverstripe
63: [09:45:12] * simon_w|air quit (Read error: Connection reset by peer)
64: [09:53:51] * joelpittet quit ()
65: [10:02:30] <Zopiclone> anyone here?
66: [10:17:35] * adrexia_ has joined #silverstripe
67: [10:25:13] <willr> Zopiclone sunday, who works on a sunday :)
68: [10:28:22] <willr> Need a hand with something?
69: [10:28:28] <Zopiclone> lol
70: [10:28:29] <Zopiclone> yeah
71: [10:28:40] <Zopiclone> trying to get a GroupedDropdownField to populate
72: [10:29:44] <Liongold> willr: Zopiclone Hi
73: [10:29:52] <Zopiclone> http://www.sspaste.com/paste/show/540c2ee56e889
74: [10:30:17] <Zopiclone> I am getting lost and can't find anything on google
75: [10:31:09] <willr> GroupedDropdown requires the source to be a nested array
76: [10:31:13] <Zopiclone> basically its 2 dataobjects that need to turn into a bidimensional array
77: [10:31:15] <Zopiclone> yeah
78: [10:31:54] <Zopiclone> is there a simple way to do that?
79: [10:31:58] <Liongold> Does anyone of you have experience with the Recaptcha module?
80: [10:32:42] <willr> Yeah so http://api.silverstripe.org/3.1/class-GroupedDropdownField.html is what you want to achieve. To transform the dataobjects can just do a simple for each, push each to an array like you’ve done
81: [10:35:52] <Liongold> willr: Do you have experience with the Recaptcha module, please?
82: [10:36:31] <willr> Zopiclone added a comment to your code with a solution for an array. Assumes you have a has_many relationship between Town->Suburb
83: [10:36:44] <willr> Liongold yep used it a bunch of times.
84: [10:37:15] <willr> last used it on http://www.silverstripehq.com/jobs/post/ even
85: [10:37:32] <Liongold> willr: I am getting a Please answer error even though I removed the captcha from the form. I did run dev/builf and flushing
86: [10:37:49] <willr> How did you remove it?
87: [10:38:06] <Liongold> willr: Took it out from the code
88: [10:38:29] <willr> Well if it’s saying you should answer it then some trace of it still exists
89: [10:38:54] <Liongold> willr: May I send you the code of the controller?
90: [10:39:13] <willr> sure just use sspaste and I can take a look
91: [10:39:51] <Zopiclone> @willr you are amazing!!
92: [10:44:46] <Liongold> willr: May I use Github gist?
93: [10:46:41] <Liongold> willr: https://gist.github.com/Liongold/ca027bca6673bf95e01e
94: [10:47:27] * Zopiclone quit (Read error: Connection reset by peer)
95: [10:47:37] <willr> Liongold so you can’t rely on request state when outputting a form
96: [10:48:11] <willr> because when you submit the form, you go directly to the form object and the new request object is the POST request
97: [10:48:23] <Liongold> willr: The form is showing up correctly.
98: [10:48:48] <willr> yes but when you submit you’ll get a form instance that hasn’t gone into that top if
99: [10:48:56] <Liongold> willr: What should I do then? Do I have to write another form?
100: [10:50:42] <willr> $this->request->getVar('key') won’t be set on submit. What you could do if you wanted to rely on that is if($request->isGET()) { .. do your top if } else if($request->isPOST()) { .. form is being access directly check $_POST for your key, token}
101: [10:52:13] <Liongold> willr: Those ifs should go in RegistrationForm?
102: [10:52:54] <Liongold> willr: Also just so I know are there any other ways to do?
103: [10:55:05] * gelignite has joined #silverstripe
104: [10:56:50] <willr> Various ways to structure it. Just remember your Form method will respond to multiple request objects (GET and POST) so don’t rely on controller state.
105: [10:58:31] <Liongold> willr: I'm still a beginer so mind me the question: but what should I put in $request->isPOST()?
106: [10:59:32] <willr> check $_POST for your key and token values
107: [10:59:44] <willr> basically what you’re doing in GET, but just POST
108: [11:01:06] <Liongold> willr: So I should publicate (sort of) lines 34-48?
109: [11:01:12] <Liongold> duplicate I mean
110: [11:01:32] <Liongold> And also the first lines till 13?
111: [11:02:07] * r_hector quit (Quit: Leaving.)
112: [11:06:49] * Zopiclone has joined #silverstripe
113: [11:07:41] <willr> something like https://gist.github.com/wilr/d33bbdcbba980fb5e706
114: [11:09:06] <willr> or if you’re form is multi stage? I think that could be what you’re trying to do. Make it two form objects. One for register, one for edit
115: [11:11:01] <Liongold> willr: What do you mean by multistage?
116: [11:16:20] <willr> Well from the code it looks like the form has 2 states which is causing your issue
117: [11:16:33] <willr> the captcha is only shown in 1 state.
118: [11:17:16] * adrexia_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
119: [11:18:07] <Liongold> willr: I am trying to make the form serve both the Registration and the Edit yes. The only difference is the Captcha. Do you think I should write a Edit form?
120: [11:18:48] <willr> That would be one way around the issue yep.
121: [11:26:41] * willr quit (Quit: willr)
122: [11:33:38] * Shrike_Finland has joined #silverstripe
123: [11:34:58] <Liongold> willr: Thanks for your help.
124: [11:42:38] * vebb has joined #silverstripe
125: [12:01:40] <Liongold> Bye all
126: [12:01:43] * Liongold has left #silverstripe
127: [12:05:41] * Shrike_Finland quit (Quit: Leaving.)
128: [12:25:22] * Colin[pi] quit (Ping timeout: 240 seconds)
129: [12:39:16] * gelignite quit (Quit: http://bit.ly/nkczDT)
130: [14:54:09] * stephanvd has joined #silverstripe
131: [14:57:40] * muskie9 has joined #silverstripe
132: [14:58:32] * Shrike_Finland has joined #silverstripe
133: [15:04:10] * stephanvd quit (Quit: stephanvd)
134: [15:04:31] * stephanvd has joined #silverstripe
135: [15:19:05] * meerkat has joined #silverstripe
136: [15:19:24] * meerkat is now known as Guest90268
137: [15:20:39] * Guest90268 is now known as timonmeerkat
138: [15:22:04] * Shrike_Finland quit (Quit: Leaving.)
139: [15:24:52] * Shrike_Finland has joined #silverstripe
140: [15:35:28] * timonmeerkat has left #silverstripe
141: [15:37:31] * spronk2 quit (Quit: spronk2)
142: [15:44:41] * timonmeerkat has joined #silverstripe
143: [15:49:59] * spronk2 has joined #silverstripe
144: [15:50:05] * spronk2 quit (Client Quit)
145: [16:01:36] <timonmeerkat> evening :)
146: [16:08:17] * muskie9 quit (Ping timeout: 268 seconds)
147: [16:08:40] * Pyromanik has joined #silverstripe
148: [16:10:14] <Pyromanik> how is the planning going Anselm_ >
149: [16:10:22] <Pyromanik> ?*
150: [16:11:31] <Pyromanik> / Zauberfisch ?
151: [16:11:47] * timonmeerkat quit (Quit: *jumps into a hole... as meerkats do...*)
152: [16:22:25] * Pyromanik quit (Remote host closed the connection)
153: [16:29:32] * babak quit (Quit: Connection closed for inactivity)
154: [16:45:40] * Shrike_Finland quit (Quit: Leaving.)
155: [16:52:37] * Shrike_Finland has joined #silverstripe
156: [16:54:57] * muskie9 has joined #silverstripe
157: [17:37:52] * muskie9 quit (Ping timeout: 240 seconds)
158: [17:50:34] * Shrike_Finland quit (Quit: Leaving.)
159: [18:03:43] * Shrike_Finland has joined #silverstripe
160: [18:32:00] * babak has joined #silverstripe
161: [18:32:19] * eagles0513875 has joined #silverstripe
162: [18:44:54] * Sphere_ has joined #silverstripe
163: [18:45:03] <Sphere_> \o
164: [18:45:07] <Sphere_> Hey guys
165: [18:46:00] <Sphere_> Crap, I lost my nickserv password
166: [18:48:48] <Sphere_> Hmmm, just a quick question... There is no such thing as to filter on the amount of related Objects, is there?
167: [18:49:09] <Sphere_> Like, filter('RelatedObject:Amount' => 0);
168: [18:49:14] * joelpittet has joined #silverstripe
169: [18:49:27] * vebb has joined #silverstripe
170: [18:50:12] <Sphere_> Specifically on many_many relations
171: [18:56:41] <Shrike_Finland> Is there any good example, how to create a gridfield, which pick up rows to be filled from another gridfield? Is it even possible? I'm trying to figure out a way to create comparison table with gridfield. Needed columns should be picked from "master gridfield"…
172: [19:00:50] <Sphere_> Isn't that just a many_many relation?
173: [19:09:36] * muskie9 has joined #silverstripe
174: [19:10:26] * vebb has joined #silverstripe
175: [19:11:58] * vebb quit (Client Quit)
176: [19:14:15] * vebb has joined #silverstripe
177: [19:17:56] * vebb quit (Client Quit)
178: [19:25:18] <Shrike_Finland> Sphere_: might be, but I'm not sure, is it possible to pickup fields inside gridfield from another gridfield. Or at least, how it should be done…
179: [19:32:04] * Liquide has joined #silverstripe
180: [20:00:04] * muskie9 quit (Ping timeout: 252 seconds)
181: [20:08:23] * Zopiclone quit (Ping timeout: 240 seconds)
182: [20:08:43] * Stomach has joined #silverstripe
183: [20:09:55] * stephanvd quit (Quit: stephanvd)
184: [20:10:46] * stephanvd has joined #silverstripe
185: [20:11:14] * stephanvd has left #silverstripe
186: [20:12:57] * willr has joined #silverstripe
187: [20:12:58] * willr quit (Client Quit)
188: [20:17:53] * muskie9 has joined #silverstripe
189: [20:21:08] * stephanvd has joined #silverstripe
190: [20:21:10] * stephanvd quit (Remote host closed the connection)
191: [20:21:30] * stephanvd has joined #silverstripe
192: [20:28:09] * muskie9 quit (Ping timeout: 264 seconds)
193: [20:28:33] * stephanvd quit (Quit: stephanvd)
194: [20:30:12] * lenix has joined #silverstripe
195: [20:30:55] <lenix> hey, does anybody know whether there's some kind of single signon available for phpbb / silverstripe?
196: [20:32:29] * stephanvd has joined #silverstripe
197: [20:35:58] * Olliepop has joined #silverstripe
198: [20:39:21] * nickmolhoek has joined #silverstripe
199: [20:40:03] * Ryan-Toast has joined #silverstripe
200: [20:40:50] * Zopiclone has joined #silverstripe
201: [20:42:43] * vebb has joined #silverstripe
202: [20:47:54] * joelpittet quit ()
203: [20:50:20] <Zopiclone> Good morning all :)
204: [20:52:49] <Ryan-Toast> Hi
205: [20:54:13] * zippy has joined #silverstripe
206: [20:55:10] * muskie9 has joined #silverstripe
207: [20:57:16] <Stomach> morning
208: [20:59:42] * stephanvd quit (Quit: stephanvd)
209: [21:00:35] * Kingy[a] is now known as Kingy
210: [21:02:39] * vebb quit (Read error: Connection reset by peer)
211: [21:03:21] * vebb has joined #silverstripe
212: [21:06:55] * micmania1 has joined #silverstripe
213: [21:09:33] * muskie9 quit (Ping timeout: 264 seconds)
214: [21:11:23] * willr_ has joined #silverstripe
215: [21:14:52] * willr_ quit (Client Quit)
216: [21:16:32] * Colin[pi] has joined #silverstripe
217: [21:16:47] * hailwood has joined #silverstripe
218: [21:18:09] * muskie9 has joined #silverstripe
219: [21:20:10] * StefanLehmann has joined #silverstripe
220: [21:33:43] * Olliepop quit (Ping timeout: 246 seconds)
221: [21:39:24] * Olliepop has joined #silverstripe
222: [21:40:13] * vebb has joined #silverstripe
223: [21:40:48] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
224: [21:41:05] * micmania1 quit (Quit: micmania1)
225: [21:41:12] * willr has joined #silverstripe
226: [21:45:37] * Olliepop quit (Ping timeout: 246 seconds)
227: [21:47:24] * micmania1 has joined #silverstripe
228: [21:52:07] <adrexia> anyone know if it is possible to use a template with populateDefaults? I have quite a lot of html to add to the content field, and writing it in php makes me feel icky
229: [21:54:05] <zippy> yes, but explain yourself a bit more
230: [21:55:12] <adrexia> I want to supply a default template for a pagetype with the headings of all the fields the cms author should look at filling in (obviously, if a heading isn't applicable they cvan also delete it)
231: [21:55:37] <adrexia> by 'template' I just mean html text in the wysiwyg editor
232: [21:56:22] <Ryan-Toast> adrexia: couldn’t you create a function in the model and populate it using $defaults?
233: [21:56:30] * Sphere_ quit (Remote host closed the connection)
234: [21:56:54] <adrexia> Ryan-Toast tried using populateDefaults() and renderWith
235: [21:57:01] <adrexia> it just silently fialed
236: [21:57:09] <adrexia> / di nothign
237: [21:57:12] <adrexia> *did
238: [21:57:50] <adrexia> $this->Content = "test" works, sao it _is_ hitting the correct place
239: [21:58:25] <Ryan-Toast> hmm, strgange
240: [21:58:42] <adrexia> yeah
241: [21:59:05] <adrexia> when I supplied the wrong template name - it died as expected
242: [21:59:41] <Colin[pi]> morning all
243: [21:59:42] <adrexia> but the rendering of the template resulted in... an empty content field
244: [21:59:53] <adrexia> mornin'
245: [22:02:12] * UncleCheese has joined #silverstripe
246: [22:03:16] * Shrike_Finland quit (Quit: Leaving.)
247: [22:03:52] * Liquide quit (Ping timeout: 240 seconds)
248: [22:08:41] * Liquide has joined #silverstripe
249: [22:29:32] * babak quit (Quit: Connection closed for inactivity)
250: [22:45:54] <zippy> anyone do any hosting with amazon cloud in syndey?
251: [22:47:17] <zippy> elastic cloud
252: [22:47:57] * Azure quit (Ping timeout: 260 seconds)
253: [22:48:27] * simon_w|work has joined #silverstripe
254: [22:49:29] <zippy> morning simon_w|work
255: [22:50:06] <simon_w|work> Morning
256: [22:50:21] <simon_w|work> Released two modules over the weekend and someone gave me some money!
257: [22:50:26] <zippy> wooo!
258: [22:50:37] <zippy> what was the page for that ss hosting?
259: [22:50:47] <simon_w|work> 91carriage.com?
260: [22:51:13] <simon_w|work> http://www.gofundme.com/91carriage is the one for giving me money
261: [22:51:23] * Azure has joined #silverstripe
262: [22:51:31] <zippy> 60 so far eh!
263: [22:51:35] <simon_w|work> Yup!
264: [22:51:40] <zippy> silverstripe modules?
265: [22:51:45] <simon_w|work> Yup
266: [22:51:51] <simon_w|work> 2FA and an encrypted text field
267: [22:52:03] <simon_w|work> 91carriage twitter account has links
268: [22:52:19] <simon_w|work> So does http://git.simon.geek.nz/public
269: [22:52:53] <Ryan-Toast> “A designer. For the site to be of a high quality, you don't want me designing it. I will hire a local designer to help with it.” lol
270: [22:54:07] <simon_w|work> Being honest and all that :p
271: [22:54:43] <zippy> nice way to fund a new laptop
272: [22:55:41] <zippy> be nice is stripe supported nz
273: [22:55:46] <zippy> does au, why not nz, so close!!
274: [22:55:54] <simon_w|work> I'll be using Pin
275: [22:56:03] <zippy> Pin?
276: [22:56:08] <simon_w|work> Is cheaper for international things than Stripe, and is based in Melbourne
277: [22:56:11] <simon_w|work> pin.net.au
278: [22:57:13] <zippy> ah, dingo land only it seems
279: [22:57:20] <simon_w|work> Yup
280: [22:57:24] <simon_w|work> But that's fine :p
281: [22:58:54] <simon_w|work> And since the main site will be running on HHVM, and then talking to VMs, being able to run multiple ones is kinda important
282: [22:59:01] <simon_w|work> My current laptops can't :(
283: [23:00:29] <simon_w|work> (Also, my main one is literally starting to fall apart)
284: [23:01:29] <zippy> what about if you used Digital Ocean for the vms, because that is where you will be hosting production right? so could have some development ones as well - and they wouldn't be online all the time only when developing... and means your constantly testing the spin up and provision of new vms
285: [23:02:54] * nicolaas has joined #silverstripe
286: [23:03:21] <nicolaas> Hi, can anyone please review this bug report: https://github.com/silverstripe/silverstripe-framework/issues/3473. Is this a bug or is it supposed to work like this?
287: [23:03:27] <simon_w|work> Yeah, but then I need to pay for them
288: [23:04:02] <simon_w|work> zippy, that's what I'll be doing until I can get a powerful enough local machine
289: [23:04:18] <simon_w|work> But does enforce that I work on provisioning first
290: [23:05:18] <simon_w|work> nicolaas, like that, it is expected. ->MyPrice is the string 0.00, which PHP evaluates as true
291: [23:05:58] <nicolaas> Thank you simon, but why would a currency field be a string?
292: [23:06:16] <simon_w|work> nicolaas, everything returned from the database is a string
293: [23:07:17] <nicolaas> I guess I sort of understand why - but it is one of those things that it totally counter-intuitive
294: [23:07:22] <nicolaas> i wonder if it can be improved
295: [23:07:49] <nicolaas> I mean, the double does not return true
296: [23:08:14] <nicolaas> and Currency extends Decimal (it does not extend Varchar)
297: [23:16:48] <nicolaas> in any case, thank you for your comments
298: [23:17:38] <adrexia> I logged a bug this morning too. Because this is the second time in two months I've wanted populateDefaults to work like the docs imply it should
299: [23:19:02] <simon_w|work> Looking at the report, I have a feeling it's more the docs will get fixed then populateDefaults will change behaviour
300: [23:19:15] <adrexia> yeah, that's my assumption too
301: [23:19:36] <adrexia> which is sad, but it looks like it broke because of something super complex
302: [23:19:52] <simon_w|work> Should get around to adding an "onBeforeFirstWrite" hook, since that sort of thing gets used a lot
303: [23:20:02] <adrexia> that would be nice
304: [23:20:28] <adrexia> its really common to want to change page defaults based on the parent
305: [23:21:01] <adrexia> but all the wanting doesn't make it possible
306: [23:21:24] <simon_w|work> And the amount of times people want to do it in GridField too. Need to provide some mechanism for that
307: [23:22:00] <adrexia> yeah, it's broken there too right? I seem to remmeber it being brokewn there, but didn't have time to test both
308: [23:22:24] <simon_w|work> Well, you can't even use onBeforeWrite(), since the parent relation isn't added until the second write
309: [23:22:40] <adrexia> oh yeah :(
310: [23:22:54] <adrexia> but onAfterWrite works, right?
311: [23:23:07] <simon_w|work> Only the second time
312: [23:23:18] <adrexia> lame
313: [23:23:23] <simon_w|work> And then you're screwed if it's through a many_many
314: [23:24:11] <simon_w|work> Instead, you get to use nasty hacks on GridFieldDetailForm
315: [23:24:37] <adrexia> I've used some of those nasty hacks
316: [23:25:04] <adrexia> usually for trying to deal with pages inside gridfields
317: [23:25:15] <simon_w|work> At least it finally makes the parent selector read only
318: [23:25:44] <simon_w|work> Welp, meeting time
319: [23:25:56] * vebb quit (Quit: preprocessor-irc-cli)
320: [23:28:19] * vebb has joined #silverstripe
321: [23:31:34] * vebb quit (Client Quit)
322: [23:33:59] <Stomach> adrexia - we had big issues with pages inside gridfields last week
323: [23:34:01] <Stomach> what a nightmare
324: [23:34:04] * vebb has joined #silverstripe
325: [23:34:26] <adrexia> yeah, gridfield doesn't handle hierachy or versioned objects so well
326: [23:34:46] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
327: [23:37:30] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
328: [23:42:19] * UncleCheese has joined #silverstripe
329: [23:43:20] * sminnee has joined #silverstripe
330: [23:55:02] * mirrors has joined #silverstripe
331: [23:56:06] <mirrors> hey all...can anyone tell me how I can refresh a gridfield using js. I am trying this.closest('.ss-gridfield').reload(); however i am getting a ".reload is not a function" error. this.closest('.ss-gridfield') is returning the desired gridfield
332: [23:58:45] <adrexia> tried this.closest('.ss-gridfield').trigger('reload'); ?
333: [23:59:01] <adrexia> I haven't, but its worth a shot
334: [23:59:24] * __will has joined #silverstripe
335: [23:59:33] <adrexia> actually, that won't work, it expects params
336: [23:59:36] <mirrors> I always seem to find the answer as soon as I ask the question
337: [23:59:42] <mirrors> $(this).parents('.ss-gridfield').entwine('.').entwine('ss').reload();
338: [23:59:46] <mirrors> that'll do it
339: [23:59:55] <adrexia> that's a bit ugly

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