#silverstripe IRC Log

IRC log for 29 April 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:08:37] <nghtjr> lol chillu_23 <3
4: [00:08:49] <chillu_23> Highlight of my day nghtjr :D
5: [00:09:14] <nghtjr> did you see the commit message?
6: [00:09:42] <chillu_23> Haha, there’s a whole story in it! No I didn’t
7: [00:09:43] <chillu_23> https://github.com/silverstripe/silverstripe-framework/pull/5416/commits/4959ac6e5d9498cb500feadb218b743d25394c1b
8: [00:09:50] <nghtjr> lol, I don't even follow the rugby if I'm honest :p
9: [00:10:24] * Stomach quit (Quit: zzz)
10: [00:10:24] <nghtjr> I figured it must have been you or uncle cheese or someone like that :>
11: [00:11:22] <nghtjr> yeah I did a good proper commit message to make kernel.org proud :p
12: [00:15:03] <ss-helper> Watch out, 4.0.0-alpha1 is nigh! - https://groups.google.com/d/msg/silverstripe-dev/H5v2t5vg6aI/gkKKXXW3AwAJ
13: [00:16:14] * Stomach has joined #silverstripe
14: [00:16:28] <Stomach> hahahaha nghtjr thats awesome
15: [00:21:35] * spronk suckles on his nips
16: [00:32:19] * vanny quit (Quit: Page closed)
17: [00:33:34] * Stomach quit (Quit: zzz)
18: [00:45:37] * BrewNaked quit (Remote host closed the connection)
19: [00:56:34] * micmania1 quit (Quit: micmania1)
20: [00:58:42] <ss23> NO DOCS 4 ME
21: [00:59:10] * DonkeyCongo has joined #silverstripe
22: [01:00:12] <DonkeyCongo> Hey! Why can't I pass $Me (object) to another function without getting the fortemplate-error?
23: [01:11:44] * robbiea has joined #silverstripe
24: [01:12:28] <robbiea> Afternoon all! QQ - if I add cache tags to a template, where would I look in the filesystem to examine the cache files for that template?
25: [01:15:31] * Stomach has joined #silverstripe
26: [01:16:00] <nghtjr> DonkeyCongo - can you provide more context than that?
27: [01:17:20] <nghtjr> robbiea - the cache folder. common practice is to create it ('silverstripe-cache') in your project's root.
28: [01:17:21] <DonkeyCongo> nghtjr: Looping a list of DataObjects and trying to pass it along like so: <% include Something Var=$Function($Me) %>
29: [01:17:35] <robbiea> Thanks nghtjr
30: [01:17:39] <DonkeyCongo> Or just <% with $Function($Me) %>
31: [01:19:11] <nghtjr> robbiea - but of it's not there, try ls /tmp/*silverstripe*
32: [01:19:22] <robbiea> cheers, will do
33: [01:19:34] <nghtjr> or some combo of the domain name it's served under.
34: [01:22:42] <nghtjr> DonkeyCongo - that seems way too complex for template work. I'd investigate putting it in php instead. regardless, I suspect since the $Me identifier has no dot, the view model is trying to tender it
35: [01:23:27] <nghtjr> meaning your function would receive a string of HTML, not an object.
36: [01:23:44] <DonkeyCongo> Makes sense
37: [01:23:54] <nghtjr> templates are for rendered things. not objects.
38: [01:24:48] <DonkeyCongo> Sure, but there's sense in passing an object down to a subview :)
39: [01:25:02] <nghtjr> the variable notation is more of a lookup reference, instructions on how to find the thing to print, not object refreshed as they would be in php
40: [01:25:19] <nghtjr> not really.
41: [01:26:07] <nghtjr> it should be in scope, or you need to provide some other kind of accessor
42: [01:26:54] <DonkeyCongo> Well, if you like to build everything with a single template, sure
43: [01:28:19] <nghtjr> no.
44: [01:28:39] <nghtjr> templates inherit from each other.
45: [01:29:19] <DonkeyCongo> Sure, but partials shouldnt necessarily have to worry about scope or context if the necessary data is passed to it
46: [01:30:11] * micmania1 has joined #silverstripe
47: [01:30:33] <nghtjr> yes, but you're not passing data. you're passing dereferenced tender info. ie, strings.
48: [01:31:18] <DonkeyCongo> You should be able to pass objects down so the template can decide what to do with it.
49: [01:31:23] <DonkeyCongo> It's a pointless restriction
50: [01:31:30] <DonkeyCongo> And tbh I doubt it's intentional
51: [01:31:52] <nghtjr> your're thinking about it a bit wrong. it's not php. it's a template. it's not passing objects and primitives around. it's passing rendered partial bits.
52: [01:32:00] <DonkeyCongo> Cause passing $Me down works fine, just not $Wrapper($Me)
53: [01:32:26] <nghtjr> then there's am issue in that function.
54: [01:32:48] <DonkeyCongo> No, there's an issue in the template renderer
55: [01:32:51] <nghtjr> perhaps .Debug might help you.
56: [01:32:59] <nghtjr> no, there isn't.
57: [01:33:37] <DonkeyCongo> How are you so sure about that?
58: [01:34:09] * wmk quit (Ping timeout: 250 seconds)
59: [01:34:22] <nghtjr> there's am issue in your understanding. a gap in your knowledge. you need to fill that first before you can claim bugs, because you need to provide facts beyond "not what I expect".
60: [01:34:48] <DonkeyCongo> Dude.. You just said that the problem is in the function
61: [01:35:04] <DonkeyCongo> Which implies that the object should be able to make it into the function
62: [01:35:10] <nghtjr> your* function.
63: [01:35:19] <DonkeyCongo> ye, my function
64: [01:35:29] <DonkeyCongo> But the object doesnt make it through the template-engine
65: [01:35:39] <nghtjr> no, it implies that your input to the function might not be what you expect.
66: [01:35:44] <nghtjr> etc.
67: [01:35:53] <DonkeyCongo> Ye, cause it should be the object that's been passed to it
68: [01:35:58] <nghtjr> I don't know what the function is
69: [01:36:18] <nghtjr> and I keep telling you it's not an object.
70: [01:36:21] <DonkeyCongo> The template trying to render a variable before passing it out of the view makes no sense
71: [01:36:42] <DonkeyCongo> It shouldnt call forTemplate before it's been told to render it
72: [01:37:04] <nghtjr> you told it to render it -.-
73: [01:37:24] <DonkeyCongo> No
74: [01:37:36] <nghtjr> and I might be wrong. it might be your function that's trying to render it
75: [01:37:37] <DonkeyCongo> $Function($Me) doesnt tell it to render it
76: [01:37:45] <nghtjr> wrong.
77: [01:38:03] <nghtjr> again, this is not php.
78: [01:38:10] <DonkeyCongo> I know -_-
79: [01:38:37] <nghtjr> so stop expecting it to behave like php.
80: [01:38:53] <DonkeyCongo> I expect it to behave properly
81: [01:39:17] <nghtjr> all I'm saying is that you need to debug your functions input.
82: [01:39:55] <nghtjr> I could be wrong.
83: [01:40:37] <nghtjr> of I'm not, and you feel so strongly about it, start a debate in a github issue.
84: [01:40:55] <nghtjr> good luck
85: [01:50:18] <micmania1> DonkeyCongo: what does your $Function look like in php?
86: [01:51:03] <DonkeyCongo> micmania1: The problem isnt the function, cause I can see that it doesnt ever make it inside
87: [01:51:10] <DonkeyCongo> It dies before
88: [01:51:28] <DonkeyCongo> Cause it tries to call $Me.forTemplate before passing it in
89: [01:51:43] <micmania1> ahhhh, ok
90: [01:53:25] <micmania1> I guess canView() methods have the same problem. They default to Member::currentUser() when no member is passed in.
91: [02:11:19] * robbiea quit (Remote host closed the connection)
92: [02:15:38] * robbiea has joined #silverstripe
93: [02:19:57] * robbiea quit (Ping timeout: 246 seconds)
94: [02:20:41] * robbiea has joined #silverstripe
95: [02:27:07] * robbiea quit (Quit: Leaving...)
96: [02:34:27] * BrewNaked has joined #silverstripe
97: [02:37:23] * UncleCheese has joined #silverstripe
98: [02:38:51] * BrewNaked quit (Ping timeout: 244 seconds)
99: [02:51:24] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
100: [03:10:29] * micmania1 quit (Quit: micmania1)
101: [03:12:33] * Pysdhkdk has joined #silverstripe
102: [03:12:33] <ss-helper> Pysdhkdk: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
103: [03:15:31] <Pysdhkdk> guys composer create-project silverstripe/silverstripe-installer . 3.3.1 fails
104: [03:15:43] <Pysdhkdk> can't find stability stable
105: [03:15:57] <Pysdhkdk> or, can't find version 3.3.1
106: [03:16:28] <Pysdhkdk> oh fk no silverstripe- prefix, is there :<
107: [03:16:56] <Pysdhkdk> sweet, blame friday :>
108: [03:25:11] * Pysdhkdk quit ()
109: [03:48:55] * Admonish has joined #silverstripe
110: [04:23:15] * micmania1 has joined #silverstripe
111: [04:23:20] * BrewNaked has joined #silverstripe
112: [04:27:55] * BrewNaked quit (Ping timeout: 250 seconds)
113: [04:31:59] * Sh4d03 quit (Ping timeout: 268 seconds)
114: [04:47:58] * micmania1 quit (Quit: micmania1)
115: [04:49:39] * micmania1 has joined #silverstripe
116: [05:03:57] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
117: [05:06:20] * spronk quit (Quit: I may need a longer sleep timer...)
118: [05:06:21] * DonkeyCongo quit (Remote host closed the connection)
119: [05:12:38] * Hailwood has joined #silverstripe
120: [05:16:08] * UncleCheese has joined #silverstripe
121: [05:20:12] * micmania1 quit (Quit: micmania1)
122: [05:29:31] * Stomach quit (Quit: zzz)
123: [05:29:31] * eightythree has joined #silverstripe
124: [05:31:05] * chillu_23 quit (Quit: chillu_23)
125: [05:32:32] * spronk has joined #silverstripe
126: [05:39:15] * Hailwood quit (Remote host closed the connection)
127: [05:43:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
128: [05:50:35] * Agilix_ has joined #silverstripe
129: [05:50:51] <Agilix_> Morning o/
130: [05:50:57] * UncleCheese has joined #silverstripe
131: [05:56:06] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
132: [05:58:42] * codegy has joined #silverstripe
133: [05:58:42] <ss-helper> codegy: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
134: [06:00:33] <codegy> Does anyone know how to show/hide fields in ModelAdmin depending on DataObject::validate() result?
135: [06:02:25] * spronk quit (Quit: I may need a longer sleep timer...)
136: [06:10:06] * wmk has joined #silverstripe
137: [06:12:14] * BrewNaked has joined #silverstripe
138: [06:16:49] * BrewNaked quit (Ping timeout: 252 seconds)
139: [06:34:51] * Eliseth has joined #silverstripe
140: [06:43:35] * Mike123 has joined #silverstripe
141: [07:01:57] * marvanni has joined #silverstripe
142: [07:08:55] * arnhoe has joined #silverstripe
143: [07:18:48] * Admonish quit (Remote host closed the connection)
144: [07:29:31] * swaiba has joined #silverstripe
145: [07:29:49] * spronk has joined #silverstripe
146: [07:37:34] * eightythree quit (Ping timeout: 250 seconds)
147: [07:45:45] * Tanger has joined #silverstripe
148: [07:57:30] * bummzack has joined #silverstripe
149: [07:58:02] <bummzack> greetings…
150: [07:58:33] <bummzack> Did anybody ever use ErrorControlChain in his own application?
151: [07:59:03] <bummzack> I’m a bit concerned, as the docblock states: “WARNING: This class is experimental and designed specifically for use pre-startup in main.php
152: [07:59:03] <bummzack> * It will likely be heavily refactored before the release of 3.2"
153: [07:59:48] <bummzack> but it would be a great tool to wrap some code in DB transactions…
154: [08:01:07] * BrewNaked has joined #silverstripe
155: [08:05:53] * Werner_2_ has joined #silverstripe
156: [08:06:14] * BrewNaked quit (Ping timeout: 276 seconds)
157: [08:06:33] * swaiba quit (Remote host closed the connection)
158: [08:06:42] * wmk quit (Ping timeout: 276 seconds)
159: [08:06:48] * spronk quit (Quit: I may need a longer sleep timer...)
160: [08:09:12] * Werner_2_ is now known as wmk
161: [08:16:11] * kinglozzer has joined #silverstripe
162: [08:27:00] * slievr_ has joined #silverstripe
163: [08:38:32] <Agilix_> Anyone see why I get an error on limit> https://gist.github.com/Agilix/c36ee126e60e703f9e4dd7dc855d3efe
164: [08:38:43] <Agilix_> Error is: [User Error] Uncaught Exception: Object->__call(): the method 'limit' does not exist on 'MySite\Model\Project'
165: [08:39:05] <Agilix_> class Project extends \DataObject implements \PermissionProvider
166: [08:45:53] * saysora has joined #silverstripe
167: [08:47:42] <bummzack> Maybe you should use `filter` instead of `find`?
168: [08:48:11] <bummzack> because find just returns one record… and one record cannot be limited
169: [08:48:23] <bummzack> you probably want a set, so you should use filter instead
170: [08:49:11] <Agilix_> I'll hve a go, thx bummzack
171: [08:49:57] <Agilix_> Did the trick, thx bummzack
172: [08:50:04] <bummzack> you’re welcome
173: [09:14:46] * Tanger quit (Quit: Tanger)
174: [09:19:03] * saysora quit (Quit: Textual IRC Client: www.textualapp.com)
175: [09:24:41] * agent44 has joined #silverstripe
176: [09:49:57] * BrewNaked has joined #silverstripe
177: [09:50:11] * Teddy_ has joined #silverstripe
178: [09:54:22] * BrewNaked quit (Ping timeout: 260 seconds)
179: [09:59:27] * agent44 quit (Quit: zzz)
180: [10:01:54] * wmk quit (Ping timeout: 268 seconds)
181: [10:03:11] <Agilix_> Bug squashing on friday, gotta love it
182: [10:15:40] * agent44 has joined #silverstripe
183: [10:21:21] * swaiba has joined #silverstripe
184: [10:24:04] * bummzack quit (Quit: bummzack)
185: [10:33:08] * marvanni quit (Quit: marvanni)
186: [10:47:59] * nikee has joined #silverstripe
187: [10:47:59] <ss-helper> nikee: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
188: [10:48:06] <nikee> help
189: [10:48:09] <nikee> hi
190: [10:48:24] <nikee> i need help regarding upload files at frontend
191: [10:48:30] <ss23> Go ahead and ask your question then, nikee
192: [10:48:33] <ss23> No one can help unless you ask
193: [10:48:49] <nikee> http://localhost/strata/Documents_Controller/documents/field/DocumentsUpload/upload
194: [10:48:51] <nikee> see
195: [10:49:03] <nikee> this file is not found in my server
196: [10:49:06] <ss23> We can't see a link to your local development envrionment if that's what you mean
197: [10:49:12] <nikee> i have created dataobject named documents
198: [10:49:21] <nikee> and i want to upload docs from frontend
199: [10:49:32] <nikee> but some how its not possible
200: [10:49:42] <nikee> wait let me give u a live link
201: [10:49:50] <nikee> http://localhost/strata/Documents_Controller/documents
202: [10:49:53] <nikee> sorry
203: [10:50:18] <nikee> http://test.diy-strata.com.au/documents
204: [10:50:23] <nikee> please check now
205: [10:51:57] <swaiba> ss23 talk to me... please :)
206: [10:52:35] <nikee> have you checked?
207: [10:53:20] * Mike123 quit (Quit: Page closed)
208: [10:54:40] <nikee> der???
209: [10:59:16] <nikee> hi please help me
210: [10:59:19] <nikee> its urgent
211: [11:00:23] * nikee quit (Quit: Page closed)
212: [11:00:50] * abu has joined #silverstripe
213: [11:00:50] <ss-helper> abu: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
214: [11:01:03] <abu> hi
215: [11:01:09] <abu> any one there?
216: [11:01:13] <abu> i need help
217: [11:02:05] <swaiba> hi abu
218: [11:02:11] <swaiba> Please ask your questions but don't leave too soon, we are a busy lot
219: [11:02:11] <cloph> see the bot's message - just ask ans wait. No reason to ask whether you can ask..
220: [11:02:25] <abu> http://test.diy-strata.com.au/documents
221: [11:02:27] * bummzack has joined #silverstripe
222: [11:02:40] <abu> i need to upload my files in documents dataobject
223: [11:02:57] <abu> but some how its not working i see there is and error regarding upload not found
224: [11:03:06] <abu> and i haven't more idea about it
225: [11:03:11] <abu> please guide me
226: [11:06:55] <swaiba> abu !paste
227: [11:06:57] <swaiba> abu !pastie
228: [11:07:06] <swaiba> oh whatever bot!
229: [11:07:16] <swaiba> I'm trying to get a message up saying please paste stuff
230: [11:07:23] <swaiba> like the code error you have seen
231: [11:07:31] <swaiba> and the code you've written under question
232: [11:07:48] <swaiba> http://www.sspaste.com/ is good
233: [11:08:30] <cloph> !paste
234: [11:08:30] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
235: [11:08:51] <cloph> pastie.org is also nice
236: [11:09:15] <swaiba> !paste
237: [11:09:15] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
238: [11:09:25] <swaiba> cloph !paste
239: [11:09:33] <swaiba> ah only works if it is the only word
240: [11:09:36] <cloph> nah, that way the bot doesn't feel responsible :-)
241: [11:09:44] <abu> http://www.sspaste.com/paste/show/572340e39e7bc
242: [11:09:48] <cloph> ss-helper: paste
243: [11:09:59] <abu> please check now
244: [11:10:00] <cloph> oh, only listens for trigger character, not for nick..
245: [11:12:14] <swaiba> and the error abu ?
246: [11:14:40] <abu> i see error in console like...http://test.diy-strata.com.au/Documents_Controller/documents/field/DocumentsUpload/upload not found
247: [11:23:59] * agent44 quit (Quit: zzz)
248: [11:27:41] <swaiba> abu I get "Page not found Sorry, it seems you were trying to access a page that doesn't exist. Please check the spelling of the URL you were trying to access and try again."
249: [11:27:54] <swaiba> that isn't an error I (or others here can help you with)
250: [11:27:56] <swaiba> !debug
251: [11:27:56] <ss-helper> Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
252: [11:29:56] <abu> k i'll try
253: [11:31:49] * Mike123 has joined #silverstripe
254: [11:38:46] * BrewNaked has joined #silverstripe
255: [11:42:35] <swaiba> abu I'm only asking for the error - so just turn on dev mode and then pastie the output
256: [11:42:56] <swaiba> but it's a big ask for anyone to read over 200 lines of code with no indication what the error might be
257: [11:42:59] * BrewNaked quit (Ping timeout: 250 seconds)
258: [11:59:57] * swaiba quit (Remote host closed the connection)
259: [12:15:47] * UndefinedOffset has joined #silverstripe
260: [12:20:08] * XorPush has joined #silverstripe
261: [12:20:08] <ss-helper> XorPush: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
262: [12:22:19] * agent44 has joined #silverstripe
263: [12:23:39] <XorPush> Hi, I have the followong problem: I am using memberprofiles modul and added the comments modul also, users should be able to post some sort of reviews, all is fine till I send the comment, but then I receive an error: method 'link' does not exist on 'Member'. The comment is saved to the database. Any ideo for workaround?
264: [12:26:29] <XorPush> I think that the problem is that I am calling comment on Member object while I am on the memberprofile page, but have no clue how to solve it
265: [12:30:30] * Agilix_ quit (Ping timeout: 250 seconds)
266: [12:34:22] * Nerijus has joined #silverstripe
267: [12:34:36] <Nerijus> Hey guys, maybe someone ever encountered this error : "DataList::create Can't find data classes (classes linked to tables) for" ?
268: [12:34:50] <Nerijus> I have it on production server only, really annoying
269: [12:35:33] <Mike123> Nerijus hi
270: [12:36:10] <Mike123> with what class you are creating the DataList ?
271: [12:37:28] <Mike123> i thing the problem is that there's no record of the given class
272: [12:54:00] <Nerijus> what do you mean ?
273: [12:54:57] <Nerijus> You say, that somewhere in code DataList from that class is being generated and that is from where error comes , am I right?
274: [12:57:02] <Mike123> em.. can u paste please ?
275: [12:57:49] <Mike123> where is the error coming from ? do u declare DataList somethere ?
276: [13:00:09] <Nerijus> Error at framework/model/DataQuery.php line 116: DataList::create Can't find data classes (classes linked to tables) for ProjectsPage. Please ensure you run dev/build after creating a new DataObject. (http://artoteka.lt/)
277: [13:00:38] <Nerijus> I runned dev/build several times, it rans without any errors
278: [13:04:54] <Nerijus> and creates all the tables
279: [13:05:27] <Nerijus> also, there is no such error, when I build the site with the same database on my local
280: [13:10:48] <kinglozzer> Nerijus: Have you missed some files during a deploy?
281: [13:11:17] <Mike123> very strange
282: [13:14:32] <Nerijus> it's really a strange error.. As I said, I create new site on my local, pulled the production code, production database, built everything and it worked without any errors. However, on production, it gives me this error.
283: [13:14:48] <Nerijus> I restarted nginx server and it started working
284: [13:15:16] <Nerijus> any ideas where the issue was ?
285: [13:15:34] <Nerijus> really strange magic is going on here
286: [13:16:54] * martimiz has joined #silverstripe
287: [13:17:35] <Nerijus> kinglozzer: no, all files were in place
288: [13:18:01] <Nerijus> kinglozzer: and all the tables were built successfully from the very first build
289: [13:18:07] <kinglozzer> Nerijus: Try creating a directory named "silverstripe-cache" in your document root
290: [13:18:10] * abu quit (Ping timeout: 250 seconds)
291: [13:18:23] <kinglozzer> Then run a dev/build again
292: [13:18:35] <kinglozzer> Seems that the 'ProjectsPage' class isn't in the manifest for some reason
293: [13:19:32] <Nerijus> kinglozzer: as I said, nginx restart helped me. Now there is no error. Maybe server restart cleared the cache and forced to rebuild manifest?
294: [13:19:49] <kinglozzer> Maybe, yeah
295: [13:20:01] <kinglozzer> Default cache location is somewhere in temp dir, so restart might have cleared it
296: [13:21:12] * marvanni has joined #silverstripe
297: [13:21:23] <Nerijus> kinglozzer: Hm, I guess that was the case there. Anyway, thanks for the help!
298: [13:22:57] * agent44 quit (Quit: zzz)
299: [13:27:41] * BrewNaked has joined #silverstripe
300: [13:27:42] * agent44 has joined #silverstripe
301: [13:32:32] * BrewNaked quit (Ping timeout: 276 seconds)
302: [13:46:35] * swaiba has joined #silverstripe
303: [13:46:47] <XorPush> any suggestions to my problem please?
304: [13:47:59] <swaiba> !debug it XorPush
305: [13:48:00] <ss-helper> Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
306: [13:48:52] <swaiba> it sounds fine to have the two modules, but lack of response is probably that know one around has had this error
307: [13:49:04] <swaiba> but it you debug and paste the relevnat areas that might help
308: [13:49:14] <swaiba> then again if you just debug that might help
309: [13:49:46] <XorPush> ok, ty swaiba
310: [14:04:50] * muskie9 has joined #silverstripe
311: [14:08:04] * UndefinedOffset quit (Quit: Leaving.)
312: [14:19:08] <Teddy_> guys, if i can pass nore then one action to the FormAction function for a form, i need one email to go the client and one as confirmation to the sender, each with different email template
313: [14:22:04] <swaiba> Teddy_ do you mean have two buttons or one button that does two things?
314: [14:22:21] <Teddy_> swaiba, one button that does two things
315: [14:22:47] <swaiba> sure that is just adding the two functions wihtin the one... unless I'm missing something?
316: [14:24:44] * UndefinedOffset has joined #silverstripe
317: [14:29:16] <Teddy_> swaiba, but won't calling FormAction::create('ProcessEnquiry', 'Register') two times with different function create two buttons
318: [14:29:29] <swaiba> well yeah
319: [14:29:43] <swaiba> that is why I asked you that
320: [14:29:52] <swaiba> I'm confused as to what you want
321: [14:31:40] <marvanni> sending 2 emails has nothing to do with having one or more form actions
322: [14:31:40] <Teddy_> swaiba, i want two things to happen but the user to just click on send
323: [14:32:31] <Teddy_> swaiba, they are two email, but one is to be rendered with a different template and sent to client, and one is to be send to the person filling in the form, with a different theme and template
324: [14:32:52] <kinglozzer> Teddy_: Just put the logic to send both emails inside your ProcessEnquiry function
325: [14:32:55] <marvanni> sendMethod($data, Form $form) { $e = (new Email())->setTemplate(‘’template)->send(); $e2 = (new Email())->setTemplate(‘OtherTemplate’)->send(); return redirect}
326: [14:33:01] <kinglozzer> Yeah that ^^
327: [14:33:10] * muskie9 quit (*.net *.split)
328: [14:33:21] * kerozene quit (*.net *.split)
329: [14:34:34] <marvanni> or even better $customer = Member::get()->byID(1)->first(); $customer->sendConfirmationEmail($data);
330: [14:34:54] <marvanni> keep your dorm methods clean
331: [14:34:58] <marvanni> d = f
332: [14:35:10] <marvanni> hehe, well, maybe you dorm room methods as well
333: [14:35:36] <Teddy_> thanks kinglozzer, marvanni
334: [14:35:45] <Teddy_> will give it a go
335: [14:36:04] * UncleCheese has joined #silverstripe
336: [14:37:07] * muskie9 has joined #silverstripe
337: [14:37:23] <kinglozzer> swaiba: I reported that bug on https://bugs.php.net btw, haven't heard anything yet though...
338: [14:38:02] * kerozene has joined #silverstripe
339: [14:39:38] * Nerijus quit (Ping timeout: 250 seconds)
340: [14:41:15] * UncleCheese quit (Ping timeout: 276 seconds)
341: [14:43:39] <marvanni> is DataObject::get()->filter() eascaped ?
342: [14:44:12] <kinglozzer> marvanni: Yep
343: [14:44:15] <kinglozzer> ->where() isn't
344: [14:44:31] <marvanni> thanks
345: [14:45:18] <swaiba> kinglozzer sounds like when you put something on silverstripe user voice...
346: [14:45:32] <kinglozzer> For reference marvanni https://docs.silverstripe.org/en/3.3/developer_guides/security/secure_coding/
347: [14:45:53] <kinglozzer> swaiba: Ha, I confess I had forgotten that uservoice exists
348: [14:46:12] <kinglozzer> It's still used for the roadmap iirc
349: [14:47:14] <swaiba> even if there are comments, you dont' get a notification
350: [15:01:28] * agent44 quit (Quit: zzz)
351: [15:05:32] * BrewNaked has joined #silverstripe
352: [15:06:04] * Mike123 quit (Ping timeout: 250 seconds)
353: [15:08:28] * agent44 has joined #silverstripe
354: [15:22:49] * arnhoe quit ()
355: [15:27:13] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
356: [15:32:58] * bummzack quit (Quit: bummzack)
357: [15:33:17] * UndefinedOffset quit (Quit: Leaving.)
358: [15:37:40] * r3v3rb has joined #silverstripe
359: [15:37:50] <r3v3rb> happy weekend all!
360: [15:37:59] <r3v3rb> good luck tomorrow kinglozzer
361: [15:41:37] * marvanni quit (Quit: marvanni)
362: [15:42:02] * martimiz quit (Ping timeout: 250 seconds)
363: [15:42:16] <swaiba> r3v3rb you too
364: [15:51:05] * swaiba quit (Remote host closed the connection)
365: [15:51:13] <kinglozzer> ty r3v3rb, I've a feeling we'll need it ;)
366: [15:51:41] <r3v3rb> just support leicester like a million others as of tomorrow!
367: [15:59:56] <kinglozzer> Same! I so want them to win it...
368: [16:00:15] <kinglozzer> Tottenham would be okay, but I'd prefer Leicester
369: [16:01:15] <kinglozzer> Anyway, gotta run, cya!
370: [16:01:15] * kinglozzer quit ()
371: [16:05:34] <muskie9> anyone use versioned data objects in model admin? I'm finding save & publish works fine, but just saving a DataObject will result in it not showing in the grid
372: [16:13:42] <r3v3rb> next, I want to block the UI during onAfterWrite due to a long running process
373: [16:13:58] <r3v3rb> possible?
374: [16:14:18] * eightythree has joined #silverstripe
375: [16:20:11] * marvanni has joined #silverstripe
376: [16:20:25] * marvanni quit (Client Quit)
377: [16:20:58] * marvanni has joined #silverstripe
378: [16:21:46] * markcl has joined #silverstripe
379: [16:21:51] * marvanni quit (Client Quit)
380: [16:22:17] * UndefinedOffset has joined #silverstripe
381: [16:22:18] <markcl> Hi guys! I hate how SS needs a long time to rebuild databases on automated tests.
382: [16:22:57] <markcl> I wonder if it’s ok to just use Codeception for the automated tests and ignore SS tests with the need to make a new db and dev/build on it then add the fixture stuff altogether.
383: [16:23:48] <markcl> I made a script that allows one to access SS models within Codeception anyway. What do you think? Would it be ok? (in this setup, the fixtures gets loaded/unloaded into the db manually however)
384: [16:30:23] * marvanni has joined #silverstripe
385: [16:36:57] * DimiStripe quit (Quit: DimiStripe)
386: [16:51:30] * XorPush quit (Quit: Page closed)
387: [16:58:04] * toddv has joined #silverstripe
388: [17:10:22] * UndefinedOffset quit (Quit: Leaving.)
389: [17:11:12] * agent44 quit (Quit: zzz)
390: [17:13:48] * marvanni quit (Quit: marvanni)
391: [17:17:08] * UndefinedOffset has joined #silverstripe
392: [17:22:22] * marvanni has joined #silverstripe
393: [17:23:25] * marvanni quit (Client Quit)
394: [17:24:10] * marvanni has joined #silverstripe
395: [17:24:10] * marvanni quit (Client Quit)
396: [17:27:13] * DimiStripe has joined #silverstripe
397: [17:37:24] * gelignite has joined #silverstripe
398: [17:38:29] * slievr_ quit (Ping timeout: 260 seconds)
399: [17:39:14] * marvanni has joined #silverstripe
400: [17:39:14] * marvanni quit (Client Quit)
401: [17:45:18] * marvanni has joined #silverstripe
402: [17:45:19] <ss-helper> SilverStripe 3.1+ change FileNameFilter default replacements - http://stackoverflow.com/questions/36944404/silverstripe-3-1-change-filenamefilter-default-replacements
403: [17:49:06] * toddv quit ()
404: [18:02:01] <marvanni> has anyone tried to create a redirector page or menu item to a MyPage_Controller action method ?
405: [18:06:41] * Admonish has joined #silverstripe
406: [18:07:25] <Admonish> Hello everyone
407: [18:14:44] * slievr_ has joined #silverstripe
408: [18:25:43] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
409: [18:26:11] * muskie9 has joined #silverstripe
410: [18:43:14] * Azure quit (Remote host closed the connection)
411: [20:19:21] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
412: [20:19:50] * UndefinedOffset quit (Quit: Leaving.)
413: [20:48:50] * neomang quit (Ping timeout: 250 seconds)
414: [21:00:22] <ss-helper> Silverstripe 3.1+ Dynamically creating page redirects - http://stackoverflow.com/questions/36947205/silverstripe-3-1-dynamically-creating-page-redirects
415: [21:47:13] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
416: [21:54:22] * muskie9 has joined #silverstripe
417: [21:55:30] * marvanni quit (Quit: marvanni)
418: [21:56:25] * Admonish has joined #silverstripe
419: [22:03:32] * markcl has left #silverstripe
420: [22:17:24] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
421: [22:25:53] * r3v3rb quit (Quit: Leaving)
422: [22:39:53] * phorloop has joined #silverstripe
423: [22:48:59] * Azure has joined #silverstripe
424: [22:52:46] * eightythree quit (Ping timeout: 250 seconds)
425: [22:53:04] * zlinux has joined #silverstripe
426: [23:01:43] <Admonish> Does anyone know why ModelAdmin is an abstract class?
427: [23:05:15] <Admonish> Scratch that
428: [23:06:15] <Admonish> How would I extend ModelAdmin so that I can override some of its functions? Would I just use "class MyModelAdmin extends ModelAdmin" ?
429: [23:11:30] * chillu_23 has joined #silverstripe
430: [23:26:45] <BrewNaked> o/ Everyone. Anyone here willing to claim that they have a moderately solid understanding of the "Display Rules" logic happening in UserForms module?
431: [23:30:05] * zlinux_ has joined #silverstripe
432: [23:30:40] * chillu_23 quit (Quit: chillu_23)
433: [23:31:11] <Admonish> Absolutly not
434: [23:31:19] <Admonish> not me anyway
435: [23:31:22] <Admonish> XD
436: [23:31:33] <Admonish> sorry thats probubly not helpful at all
437: [23:31:57] * zlinux__ has joined #silverstripe
438: [23:31:57] <ss-helper> zlinux__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
439: [23:33:08] * zlinux quit (Ping timeout: 276 seconds)
440: [23:33:56] * zlinux has joined #silverstripe
441: [23:33:58] * zlinux__ quit (Read error: Connection reset by peer)
442: [23:34:40] * zlinux_ quit (Ping timeout: 252 seconds)
443: [23:53:33] <Admonish> I was reading through the SS modelAdmin code and am wondering if anyone knows what the singleton() does?
444: [23:54:05] <Admonish> code:
445: [23:54:10] <Admonish> !paste
446: [23:54:10] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
447: [23:56:35] * Admonish slaps Admonish with a fat walrus

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