#silverstripe IRC Log

IRC log for 9 April 2013

All timestamps are in UTC.

1: [00:06:00] * EasyCo has joined #silverstripe
2: [00:09:00] * Shrike_Finland quit (Read error: Connection reset by peer)
3: [00:09:00] * Shrike_Finland1 has joined #silverstripe
4: [00:11:00] * Shrike_Finland1 quit (Read error: Connection reset by peer)
5: [00:11:00] * Shrike_Finland has joined #silverstripe
6: [00:11:00] * chillu quit (Quit: chillu)
7: [00:45:00] <EasyCo> I need to do some processing on a form submit in the CMS before the data is saved to the DB
8: [00:46:00] <EasyCo> Server side processing that is, what files/classes handle a form submit for modifying a data object?
9: [00:49:00] <simon_w> In the CMS? ModelAdmin, LeftAndMain and Form
10: [00:49:00] <simon_w> Your best bet is probably an onBeforeWrite method
11: [00:51:00] <EasyCo> Yah, CMS, I'll have a look at that thx.
12: [01:13:00] * willr_ has joined #silverstripe
13: [01:22:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
14: [01:25:00] * joelpittet has joined #silverstripe
15: [01:25:00] * LoveDuckie quit (Ping timeout: 245 seconds)
16: [01:25:00] * Zauberfisch^idle quit (Quit: Leaving)
17: [01:31:00] * SightUnseen has left #silverstripe
18: [01:31:00] * SightUnseen has joined #silverstripe
19: [01:40:00] * Jeremy_ has joined #silverstripe
20: [01:40:00] <clodeindustrie> hey guys what is the best way to make sure my relation table is clean up when I delete an entry in a many to many table ?
21: [01:40:00] * Jeremy_ is now known as clodeindustrie
22: [01:41:00] <clodeindustrie> when I do it from a modeladmin subclass
23: [01:43:00] * SticksM has joined #silverstripe
24: [01:44:00] <simon_w> clodeindustrie, are you deleting the DataObject or just the relation?
25: [01:44:00] <simon_w> Well, in the latter, absolutely nothing
26: [01:44:00] <clodeindustrie> I want to delete the tag and the relations
27: [01:44:00] <clodeindustrie> in case of articles with tags
28: [01:44:00] <clodeindustrie> both
29: [01:45:00] <simon_w> For the form, public function onBeforeDelete() { parent::onBeforeDelete(); $this->ManyManyName()->removeAll(); }
30: [01:45:00] <clodeindustrie> that look exactly like what I need :)
31: [01:45:00] <clodeindustrie> thank you
32: [01:46:00] <clodeindustrie> I would add that to my Tag dataObject then?
33: [01:48:00] <EasyCo> Do you work for SS Simon. You're pretty damn knowledgeable.
34: [01:52:00] <simon_w> EasyCo, nope
35: [01:52:00] <simon_w> clodeindustrie, whichever one you're deleting
36: [01:53:00] <EasyCo> *your
37: [01:53:00] <EasyCo> simon_w: Just know you SS then.
38: [01:53:00] <simon_w> Something like that
39: [01:54:00] <clodeindustrie> simon_w: thanks
40: [01:56:00] <SticksM> Does anyone have any experience selling tickets to online events? I'm thinking a third party supplier would be the way to go but I can't find any that do online events as well as live events.
41: [01:56:00] <SticksM> I'm not even sure how a virtual ticket would work.
42: [01:57:00] * joelpittet is now known as joelpittet|afk
43: [01:57:00] <EasyCo> simon_w: Well according to your Github profile you're a pretty heavy SS contrib so thanks.
44: [02:05:00] <SticksM> I could setup registration on the site, and then members could buy a 'ticket' (simple change of a boolean field on Member), then when they login they have access to the online event. Is that too simple?
45: [02:08:00] <simon_w> SticksM, main thing you have to do is only allow one login at a time (assuming they're like that)
46: [02:14:00] <simon_w> Nope
47: [02:14:00] <SticksM> Yeah, that's a big one. Is there a standard way of doing that, simon_w?
48: [02:16:00] <EasyCo> How would you differentiate a form save performed automatically (ajax save when uploading an image) and manually when click on the Save button? I'm currently using onBeforeWrite() but it's triggered every time an image is uploaded when I only want to do stuff on final save.
49: [02:19:00] <simon_w> EasyCo, usually by checking if something that can only (and has to be) manually changed has changed
50: [02:23:00] <Pyromanik> ss23, cool site you pasted yesterday
51: [02:23:00] <ss23> ty simon_w
52: [02:24:00] <Pyromanik> mmm
53: [02:24:00] <Pyromanik> I decided to give it a go
54: [02:24:00] <ss23> The copy/paste one?
55: [02:24:00] <ss23> ya :D
56: [02:25:00] <Pyromanik> simon_w, load it in links and the span isn't even hidden
57: [02:25:00] <ss23> lol Pyromanik XD
58: [02:25:00] <Pyromanik> turns out the first line in my /etc/passwd is root:root *SHOCK, HORROR, AMAZEMENT*
59: [02:25:00] <simon_w> Kinda obvious that something is off though. Triple click and the selection stops at the span
60: [02:25:00] <Pyromanik> who would have thought?
61: [02:26:00] <Pyromanik> it'd work with any command...
62: [02:26:00] <simon_w> Pyromanik, don't use git, and you're sweet!
63: [02:26:00] <Pyromanik> haha
64: [02:26:00] <willr_> simon_w hater.
65: [02:27:00] <Pyromanik> actually
66: [02:27:00] <Pyromanik> hehe, so is.
67: [02:27:00] <Pyromanik> meh
68: [02:27:00] <Pyromanik> so anyway
69: [02:27:00] <Pyromanik> does DataObjectSet have a Dupliate function?
70: [02:27:00] <simon_w> Nope
71: [02:27:00] <willr_> DataObjectSet - duplicate the whole set or just an item in a set?
72: [02:27:00] <Pyromanik> manual looping it is
73: [02:27:00] <Pyromanik> willr_, well
74: [02:27:00] <Pyromanik> duplicate a calendar_event has_many DateTimes
75: [02:28:00] <Pyromanik> May 11 eh
76: [02:28:00] <Pyromanik> from events_calendar
77: [02:28:00] <Pyromanik> (yes, that one *sigh*)
78: [02:28:00] <simon_w> Pyromanik, we've decided on May 11 for the hackfest. Just need to get SilverStripe/Sam to agree now
79: [02:29:00] <Pyromanik> let me check my busy schedule
80: [02:29:00] <ss23> lol
81: [02:29:00] <Pyromanik> gawd, that's only like 1 month away
82: [02:29:00] <Pyromanik> ish
83: [02:29:00] <Pyromanik> 1m2d to be exact
84: [02:29:00] <simon_w> Yeah, so Sam should hurry up and agree to it already
85: [02:29:00] <willr_>  simon_w my accesscode still works, all we need is a swipe card for the lift and we could do it without SilverStripe/Sam
86: [02:29:00] <ss23> Let me guess, YOU'RE FREE
87: [02:30:00] <Pyromanik> will there be more than 3 of us?
88: [02:30:00] <Pyromanik> heh
89: [02:30:00] <simon_w> willr_, also, a CC for pizza
90: [02:30:00] <Pyromanik> 1m1.5d~ish really
91: [02:30:00] <simon_w> willr_, dammit, handed mine back
92: [02:30:00] <willr_> simon_w got works one for that
93: [02:31:00] <Pyromanik> well, four I guess if you count Mateusz, but he didn't sit in the circle of hack.
94: [02:31:00] <simon_w> Pyromanik, if irogue and ss23 show up too, yup
95: [02:31:00] <Pyromanik> simon_w, orly?
96: [02:31:00] <simon_w> And maybe even a willr_
97: [02:31:00] <Pyromanik> MAYBE EVEN
98: [02:31:00] <willr_> If it's a whole month alway I'll have trac tickets all cleaned up by then!
99: [02:31:00] <Pyromanik> that's what you said last time -.-
100: [02:31:00] <Pyromanik> willr_, trac tix?
101: [02:32:00] <Pyromanik> shifting them all to github?
102: [02:32:00] <Pyromanik> clean? up?
103: [02:32:00] <willr_> 250 to go! Down from 393.
104: [02:32:00] <Pyromanik> for?
105: [02:33:00] <willr_> Some, but trying to triage and fix them as much as possible
106: [02:33:00] <Pyromanik> oh I think I found a bug the other day, but I've forgotten what it was now
107: [02:33:00] <willr_> http://open.silverstripe.org/query?status=accepted&status=assigned&status=infoneeded&status=infoneeded_new&status=new&status=started&keywords=!~migration-todo&keywords=!~migrate-todo&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component&order=priority&report=132
108: [02:34:00] <willr_> Needs to get to 0 in the next couple months.
109: [02:34:00] <willr_> So ss23 can get cracking on that list..
110: [02:35:00] <willr_> That's tickets that are open and haven't been marked as migration-todo which Ingo will script across to sapphire.
111: [02:35:00] <Pyromanik> is taht all that's left on trac?
112: [02:36:00] <Pyromanik> so basically everything that isn't core?
113: [02:37:00] <ss23> willr_: We're sitting here talking about free pizza when we go to close bugs, and you expect me to close them NOW?
114: [02:37:00] <simon_w> Or ones over two years old
115: [02:37:00] <willr_> Well core stuff is still in there, they only migrated 2011 and 2012 tickets for core
116: [02:37:00] <ss23> I'll wait and take the pizza, thanks!
117: [02:39:00] <Pyromanik> simon_w, so for 2.4, does componentsSet have a ->add() ?
118: [02:39:00] <simon_w> yes
119: [02:39:00] <Pyromanik> thank f for that.
120: [02:47:00] <willr_> ss23 plenty more tickets on github :P
121: [02:47:00] <willr_> I don't think we'll run out anytime soon
122: [02:47:00] <willr_> Pyromanik RTFM
123: [02:48:00] <simon_w> Apparently, I'm the FM
124: [02:48:00] <Pyromanik> not really, you're just more immediate.
125: [02:48:00] <Pyromanik> but mostly because I can't read you.
126: [02:50:00] <Pyromanik> so it's more like ATSW
127: [02:50:00] <Pyromanik> ask the simon_w
128: [02:52:00] <simon_w> Except when I'm not here! Then you're stuck! Muahahaha!
129: [02:52:00] <lewellyn> oh noes! :)
130: [02:52:00] <ss23> It's true
131: [02:52:00] <ss23> I was trying to Silverstripe last night
132: [02:52:00] <ss23> simon_w: wasn't her and no one would help
133: [02:52:00] * ss23 cries
134: [02:52:00] <willr_> We should really live stream and do the hackathon over night again. That was too much fun
135: [02:52:00] <ss23> here*
136: [02:53:00] <simon_w> Get Sam to stop doing his CEO stuff and come plan the hackathon with us
137: [02:55:00] <willr_> No more Kerstin to plan parties either. We have to rely on Brooke
138: [02:57:00] <Pyromanik> simon_w, after using ->add() do I need to call write() on the object (page) the componentslist belongs to?
139: [02:58:00] <Pyromanik> simon_w, thanks :)
140: [02:58:00] <Pyromanik> willr_, yeh, I was let down when the last one consisted of Sam, Simon and I, and there was no alcohol :<
141: [02:58:00] <Pyromanik> :P
142: [02:58:00] <Pyromanik> but then, it was only a 1 dayer
143: [02:58:00] <Pyromanik> more like a 20/20 really
144: [02:58:00] <simon_w> Pyromanik, nope
145: [02:59:00] <Pyromanik> yeh
146: [02:59:00] <simon_w> Didn't Brooke show up for like half a minute?
147: [02:59:00] <Pyromanik> just been to yoga
148: [02:59:00] <willr_> When was this?
149: [02:59:00] <Pyromanik> she seemed kinda embarrassed that there were people in the office and she was in her yogasuit
150: [02:59:00] <Pyromanik> it was slightly awkward
151: [03:00:00] <Pyromanik> ps, I'm owed 2 shirts.
152: [03:01:00] <Pyromanik> hmm
153: [03:01:00] <Pyromanik> $page->hasManyRel() with no rels = null return?
154: [03:02:00] <Pyromanik> not empty componentsSet?
155: [03:03:00] <simon_w> Should return an empty componentset
156: [03:04:00] * Pyromanik puffs his cheeks out
157: [03:04:00] <simon_w> Doing it wrong!
158: [03:04:00] <Pyromanik> doesn't seem to be though.
159: [03:04:00] <Pyromanik> indeed
160: [03:04:00] <Pyromanik> http://api.silverstripe.org/2.4/source-class-DataObject.html#1272
161: [03:05:00] <Pyromanik> msut be
162: [03:06:00] <Pyromanik> simon_w, http://www.sspaste.com/paste/show/5163859b6c7f1
163: [03:08:00] <simon_w> Got a Dates() method?
164: [03:20:00] * cloph_away quit (Read error: Operation timed out)
165: [03:25:00] * cloph_away has joined #silverstripe
166: [03:26:00] <simon_w> Oops, lunch
167: [03:28:00] <ss23> I haven't even had breakfast yet...
168: [03:28:00] <ss23> Lunch this late?!
169: [03:32:00] <Pyromanik> simon_w, no Dates() method, just the has_many.
170: [03:33:00] <Pyromanik> shh you
171: [03:33:00] <ss23> lol
172: [03:33:00] <Pyromanik> ah f, you're right as usual, it's upstream.
173: [03:34:00] <ss23> ?
174: [03:34:00] <ss23> wanna help me, Pyromanik
175: [03:34:00] <Pyromanik> No.
176: [03:34:00] <ss23> Not even a little?
177: [03:34:00] <ss23> XD
178: [03:34:00] <Pyromanik> But I might, because I'm a nice guy.
179: [03:35:00] <ss23> lol
180: [03:36:00] <Pyromanik> problem solved. Quoted 2 hours for it. Brilliance.
181: [03:36:00] <Pyromanik> yes, I've changed ->Dates() to getComponents('Dates') and everything is swimming great.
182: [03:37:00] <simon_w> You've got a Dates() somewhere :p
183: [03:37:00] <Pyromanik> I'll come in undertime and look like a champion :D
184: [03:37:00] <clodeindustrie> hey any idea why I get that when I try to removeall on a manymanylist => "Unknown column 'SiteTree_Live.ClassName' in 'where clause"
185: [03:38:00] <simon_w> clodeindustrie, what're your filter/where statements?
186: [03:38:00] <clodeindustrie> that's the snippet you pasted for me earlier
187: [03:38:00] <clodeindustrie> none
188: [03:39:00] <clodeindustrie> so $this->ManyManyName()->removeAll() inside the data object I want to delete
189: [03:40:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
190: [03:40:00] <clodeindustrie> re
191: [03:40:00] * Jeremy_ is now known as clodeindustrie
192: [03:40:00] * Jeremy_ has joined #silverstripe
193: [03:41:00] <simon_w> Oh, this is Versioned breaking things again
194: [03:42:00] <Pyromanik> Versioned, such a PITA
195: [03:44:00] <clodeindustrie> meh
196: [03:44:00] <clodeindustrie> is there something I can do?
197: [03:46:00] <Pyromanik> do it manually I guess :<
198: [03:47:00] <clodeindustrie> I guess I'll do that then
199: [03:47:00] <clodeindustrie> thanks
200: [03:49:00] <Pyromanik> corrupt install
201: [03:49:00] <joelpittet|afk> failed to open stream: No such file or directory
202: [03:49:00] <Pyromanik> permissions?
203: [03:49:00] <joelpittet|afk> What would be the deal if your server looks to meet the requirements but then throws "Warning on require_once 'cache/Cache.php';"
204: [03:50:00] <joelpittet> I wonder what's corrupt about it
205: [03:50:00] <joelpittet|afk> interesting
206: [03:50:00] * joelpittet|afk is now known as joelpittet
207: [03:50:00] <Pyromanik> Make sure the file exists on the server
208: [03:50:00] <joelpittet> it totally does
209: [03:50:00] <Pyromanik> well the fact that the file is missing I guess
210: [03:50:00] <joelpittet> and the include_path seems to have all the right stuff
211: [03:51:00] <Pyromanik> well then I'd say permissions then
212: [03:52:00] <joelpittet> ok thanks Pyromanik i'll have a peek
213: [03:53:00] <joelpittet> Pyromanik: sorry you're write missing file, was looking local, but transmit was excluding cache and log from upload sync
214: [03:53:00] <Pyromanik> urgh, seriously disturbing: http://polldaddy.com/poll/5553650/?view=results
215: [03:54:00] <Pyromanik> joelpittet, :)
216: [03:54:00] <joelpittet> Pyromanik: totally
217: [03:54:00] <joelpittet> Pyromanik: and yes very stilly poll
218: [03:54:00] <Pyromanik> easy fix then! :D
219: [03:55:00] <Pyromanik> joelpittet, that's true. But for SS :P
220: [03:55:00] <Pyromanik> yeah, code igniter, urgh
221: [03:55:00] <Pyromanik> you want to ignore silverstripe-cache, not cache*
222: [03:55:00] <joelpittet> Pyromanik: depends which CMS I'm using at the time
223: [03:55:00] <Pyromanik> then again, people who fill this out are likely wordpress fans.
224: [03:56:00] <joelpittet> Pyromanik: wordpress fans would have trouble with code igniter I presume
225: [03:57:00] * Error404NotFound has joined #silverstripe
226: [03:57:00] <Pyromanik> no, just more a comment about wordpress fans being dumb.
227: [03:57:00] <joelpittet> Pyromanik: to a "new developer" I wouldn't even put them on a framework till they understood some things first
228: [03:57:00] <Pyromanik> they think wordpress is a fantastic cms, so something as horrible as codeigniter probably seems like a fantastic framework.
229: [03:58:00] <joelpittet> Pyromanik: just finished a wordpress site today, lol
230: [03:58:00] <Pyromanik> joelpittet, I hope it was a blog.
231: [03:58:00] * Error404NotFound quit (Client Quit)
232: [03:58:00] <joelpittet> Pyromanik: they would learn good habits and nobody would hire them because they would scoff at all the crap out there:P
233: [03:58:00] <joelpittet> http://2012annualreport.kinross.com/
234: [03:58:00] <Pyromanik> get the jobs you want, not the jobs that need you :P
235: [03:58:00] <Pyromanik> joelpittet, I could argue the opposite. A framework helps to structure code and enforces good habits from the get go.
236: [03:59:00] <joelpittet> and AR
237: [03:59:00] <joelpittet> haha, I like that
238: [03:59:00] <Pyromanik> did they pay you in bullion :D
239: [03:59:00] <joelpittet> not a blog
240: [03:59:00] <Pyromanik> ?
241: [04:00:00] <joelpittet> Pyromanik: I hope so:) It may help pay taxes down though
242: [04:00:00] <joelpittet> until next year of course
243: [04:01:00] <Pyromanik> that's worth an extra gold bar all by itself!
244: [04:01:00] <Pyromanik> not in America, don't know what taxes are.
245: [04:01:00] <joelpittet> had a nice IE7 requirement on launch day... that wasn't fun
246: [04:01:00] <Pyromanik> :<
247: [04:02:00] <joelpittet> it was >ie8 until they realized their IT department has Compatibility mode turned on for their intranet:S
248: [04:02:00] <simon_w> Bah, Sam can't do the 11th. ss23 irogue
249: [04:02:00] <joelpittet> and they threw the CEO has a blackberry and we won't launch until it works there too, on launch day
250: [04:03:00] <ss23> How about he CONTRIBUTES to conversations about it then!
251: [04:03:00] * ss23 cries
252: [04:03:00] <ss23> ^^^
253: [04:03:00] <willr_> IT WAS SO PERFECT
254: [04:03:00] <willr_> He's CEO, not meant to have a life.
255: [04:03:00] <ss23> simon_w: WHY NOT?
256: [04:04:00] <simon_w> Something about "being busy"
257: [04:04:00] <ss23> Sounds like excuses to me...
258: [04:04:00] <ss23> WE TWEET HE... TWEETS BACK
259: [04:06:00] <willr_> Well can't really run it without SilverStripe unless you want to come crash the DNA offices. I can basically do any weekend during winter.
260: [04:07:00] <simon_w> "we can do the 18th or the 25th, but everyone from SilverStripe is busy on the 11th :-/"
261: [04:07:00] <simon_w> All the other ones
262: [04:07:00] <ss23> simon_w: Did he offer alternatives?
263: [04:07:00] <simon_w> "oh, the 4th would be okay as well."
264: [04:07:00] <willr_> Yep all of the above.
265: [04:08:00] <willr_> 25th is a thursday?
266: [04:08:00] <simon_w> Of those, I'd prefer the 4th or 18th, so the ones that don't line up with irogue :p
267: [04:09:00] <willr_> oh right
268: [04:09:00] <simon_w> of May
269: [04:09:00] <ss23> simon_w: Meh, irogue's preference was only cause of payday, he needs to not be bad with his money and he'll be fine!
270: [04:09:00] <simon_w> 25th is also public holiday
271: [04:10:00] <simon_w> irogue, STOP WORKING AND COME PLAN
272: [04:10:00] <ss23> XD
273: [04:10:00] <ss23> Last thing I heard from him was "Mother, fucker.", and he hasn't said anything since
274: [04:10:00] <ss23> Not sure if he's turned straight, or just busy...
275: [04:13:00] <willr_> simon_w it's like herding cats
276: [04:16:00] <simon_w> Well, the 4th means I can do an overnight one
277: [04:17:00] <simon_w> and don't have to bugger off for a music practice (or arrive late)
278: [04:18:00] <ss23> This'll be my first hackfest, what happens with that sleeping thing?
279: [04:18:00] <simon_w> Usually they stop just before dinner time
280: [04:19:00] <willr_> Well depends if SS want to do an overnight thing or flag
281: [04:20:00] <willr_> the over night one started at like 1pm and we got kicked out by sam at about 3am
282: [04:20:00] * Cam_ has joined #silverstripe
283: [04:20:00] <willr_> big*
284: [04:20:00] <willr_> ss23 - you can crash at simon_w's place, it's bit enough now
285: [04:21:00] * clodeindustrie quit (Ping timeout: 255 seconds)
286: [04:21:00] * Cam_ is now known as Guest58805
287: [04:23:00] <ss23> Yay!
288: [04:24:00] <simon_w> I have to remember to buy food for myself first
289: [04:24:00] <ss23> simon_w: plz remember to buy me food
290: [04:24:00] <ss23> simon_w: swet I stay at your house
291: [04:25:00] <ss23> It's okay! I know you'll get hungry, then you can buy for me too :D
292: [04:25:00] <ss23> Actually, will try meet up with some other friends while I'm there. Wonder if I can go the entire time without buying my own food :O
293: [04:39:00] * Error404NotFound has joined #silverstripe
294: [04:39:00] * Shrike_Finland quit (Quit: Leaving.)
295: [04:56:00] <ss23> Time to do real work
296: [04:56:00] * ss23 flexes
297: [04:59:00] * nickmolhoek quit (Quit: nickmolhoek)
298: [04:59:00] * DigNZ quit (Quit: DigNZ)
299: [05:00:00] <irogue> 18th would def be better than 4th for me
300: [05:00:00] <irogue> hmmm
301: [05:03:00] * DigNZ quit (Remote host closed the connection)
302: [05:03:00] * DigNZ quit (Client Quit)
303: [05:03:00] * DigNZ has joined #silverstripe
304: [05:03:00] <simon_w> Let's do it! I may only be around for five hours, but oh well :)
305: [05:03:00] * DigNZ has joined #silverstripe
306: [05:04:00] <Pyromanik> or
307: [05:04:00] * DigNZ has joined #silverstripe
308: [05:04:00] <Pyromanik> on a thursday
309: [05:04:00] <Pyromanik> do it June
310: [05:04:00] * Shrike_Finland has joined #silverstripe
311: [05:04:00] <irogue> hard
312: [05:04:00] <Pyromanik> oh
313: [05:04:00] <irogue> finding dates that fit everyone :P
314: [05:04:00] <Pyromanik> wut
315: [05:04:00] <Pyromanik> 18th 4th 11th
316: [05:04:00] <Pyromanik> what's this?
317: [05:04:00] <Pyromanik> do it in July
318: [05:04:00] <irogue> everyone else settled on 11th, EXCEPT SAM
319: [05:04:00] <Pyromanik> before WDC
320: [05:04:00] <Pyromanik> haha
321: [05:04:00] <Pyromanik> like WDC in July
322: [05:05:00] <Pyromanik> home
323: [05:05:00] <Pyromanik> I didn't settle anywhere
324: [05:05:00] * Pyromanik quit (Quit: Leaving)
325: [05:05:00] <Pyromanik> coz home
326: [05:05:00] <Pyromanik> anyway
327: [05:06:00] * DigNZ quit (Client Quit)
328: [05:08:00] * DigNZ has joined #silverstripe
329: [05:13:00] <simon_w> irogue, you tell Sam. I'm pretending to be too busy :p
330: [05:23:00] * willr_ quit (Quit: willr_)
331: [05:28:00] * Guest58805 quit (Quit: Textual IRC Client: www.textualapp.com)
332: [05:29:00] <EasyCo> Any examples of using SelectionGroup around? I can't seem to get it to work.
333: [06:22:00] * DigNZ quit (Quit: DigNZ)
334: [06:23:00] <AntiSol> hi
335: [06:23:00] * AntiSol has joined #silverstripe
336: [06:25:00] <ss23> simon_w~
337: [06:26:00] <ss23> And also, my form action is "doBuy", but "doBuy($data, $form" -> [Warning] Missing argument 2 for HomePage_Controller::doBuy()
338: [06:26:00] <ss23> http://doc.silverstripe.org/framework/en/topics/form-validation "At this point, RequiredFields->validate() will have been called already," How can we assume that?
339: [06:26:00] <simon_w> (that is a bad way of doing validation, BTW. Should use a custom validator)
340: [06:26:00] <simon_w> Because validation is done before passing to the form handler method
341: [06:27:00] <simon_w> ss23, new Form($this, __FUNCTION__, ...
342: [06:27:00] <ss23> simon_w: The only validation I need are "Are these filled in"
343: [06:27:00] <ss23> Nothing custom
344: [06:28:00] <ss23> (Evidently, I don't understand forms in Silverstripe atm)
345: [06:28:00] <ss23> simon_w: Thats now what the docs said? Can you explain?
346: [06:28:00] <simon_w> It's how the actual form handling knows what form to use
347: [06:28:00] <simon_w> ss23, first two arguments to Form can be considered a callback to the method that returns the form
348: [06:29:00] <simon_w> __FUNCTION__ is the magic constant for name of the current function/method, so I use it over typing the name (less chance of screwing up)
349: [06:29:00] <ss23> I just thought that was meant to be the thing you call to process the form
350: [06:29:00] <ss23> Thats what the docs say
351: [06:29:00] <ss23> Are they all wrong? :S
352: [06:29:00] <ss23> I know what __FUNCTION__ is
353: [06:30:00] <simon_w> Neither example on that page has the action method as the second argument
354: [06:30:00] <ss23> Oh
355: [06:30:00] <ss23> I did misread :O
356: [06:30:00] <ss23> Yeah, I read http://doc.silverstripe.org/framework/en/topics/forms too
357: [06:31:00] <ss23> I'm still completely confused though
358: [06:32:00] <ss23> I've just misread lots
359: [06:32:00] <ss23> ah...
360: [06:32:00] * guci0 has joined #silverstripe
361: [06:32:00] <ss23> my bad
362: [06:32:00] * ss23 tries again
363: [06:32:00] <ss23> heya guci0
364: [06:32:00] <guci0> Howdy!
365: [06:32:00] <simon_w> And I've just got to do the SSH side of this deploy script now
366: [06:33:00] <ss23> These docs are just 10/10 confusing
367: [06:33:00] <ss23> NO I DIDn'T
368: [06:34:00] <ss23> wait no
369: [06:34:00] * ss23 cries
370: [06:34:00] <ss23> this is confusing
371: [06:34:00] <ss23> simon_w: http://doc.silverstripe.org/framework/en/topics/forms The first example. How does doSayHello get called?
372: [06:35:00] <simon_w> ss23, form gets submitted to page/HelloForm, the returned form object does the validation and stuff, then calls the submitted action
373: [06:36:00] <ss23> simon_w: I'm going to gist some code...
374: [06:36:00] <ss23> Because I can't make it work
375: [06:36:00] <ss23> simon_w: It looks like my submitted action is never called or something
376: [06:37:00] <simon_w> Oh well
377: [06:37:00] <simon_w> I thought i had change the docs to use __FUNCTION__ over the name of the form, since it's far less confusing and doesn't look like something you should change
378: [06:37:00] <ss23> simon_w: https://gist.github.com/ss23/5343445
379: [06:38:00] <ss23> kk
380: [06:38:00] <ss23> Clicking the button
381: [06:38:00] <simon_w> and how are you submitting the form?
382: [06:38:00] <ss23> It was in the docs, and I thought it was rquired
383: [06:38:00] <simon_w> Well, that loadDataFrom line is redundant
384: [06:39:00] <ss23> The validation message was being hidden
385: [06:39:00] <ss23> simon_w: Looks like it's defaulting to the right action anyway, enter and click
386: [06:39:00] <ss23> It was failing validation
387: [06:39:00] <ss23> or pressing enter
388: [06:39:00] <ss23> Does it make a difference?
389: [06:39:00] <simon_w> When you have more than one 'action', yes
390: [06:39:00] <ss23> ;_;
391: [06:39:00] <ss23> I figured it out...
392: [06:40:00] <ss23> :<
393: [06:40:00] <simon_w> Yeah, it picks the first one. Just something to watch out for when you have more than one thing in $actions
394: [06:40:00] <ss23> Yeah, good to note
395: [06:40:00] <ss23> Sorry, simon_w, I'm failing really hard tonight :
396: [06:44:00] <simon_w> Well, I think http://s.geek.nz/p/4q is enough for today. SSH into hosts and things can wait until tomorrow
397: [06:45:00] <ss23> simon_w: :D
398: [06:46:00] * willr_ has joined #silverstripe
399: [06:46:00] <ss23> That was quick
400: [06:46:00] * willr_ has joined #silverstripe
401: [06:46:00] * willr_ quit (Changing host)
402: [06:46:00] <simon_w> I do get emailed pretty much instantly :p
403: [06:47:00] <ss23> I don't like this form stuff in Silverstripe. It's in a weird place between "Write a lot of it yourself" and "We do most of it already"
404: [06:47:00] <ss23> lol
405: [06:47:00] <willr_> ss23 that's what she said???.
406: [06:48:00] <willr_> you only need to write a lot of it if you want to customise things
407: [06:49:00] <willr_> Nothing can read your mind :P
408: [06:49:00] <simon_w> I had to write my own getopt() implementation. You can write a little bit of form stuff :p
409: [06:49:00] <ss23> lol
410: [06:50:00] <ss23> But what's the point in passing in $Form if you get all the values out of $data?
411: [06:50:00] <ss23> So uh, like, http://doc.silverstripe.org/framework/en/trunk/topics/form-validation uses $data['FieldName']
412: [06:50:00] <simon_w> (also, $form->Fields()->fieldByName('blah')->value is sanitised by the form field, $data is straight $_POST (or was last time I looked))
413: [06:50:00] <willr_> You may also need to know about the form that was submitted
414: [06:50:00] <ss23> ah k
415: [06:50:00] <simon_w> $form->saveInto(), baby!
416: [06:51:00] <simon_w> Whereas, in the validator, $data is the sanitised-by-form-field values
417: [06:54:00] <ss23> Looks like it's AND by default?
418: [06:54:00] <ss23> Logic like "where foo < bar or x = y", possible with filter?
419: [06:54:00] <simon_w> yeah
420: [06:54:00] <simon_w> In 3.1, yes
421: [06:54:00] <ss23> ->where in 3.0?
422: [06:55:00] <simon_w> Especially in ModelAdmin
423: [06:55:00] <ss23> sweeeet
424: [06:55:00] <EasyCo> What's the approach for setting a field as required within getCMSFields()?
425: [06:55:00] <simon_w> EasyCo, can't
426: [06:55:00] <simon_w> Validators in the CMS are funky to get working
427: [06:56:00] <simon_w> EasyCo, or, if HTML5 browsers only, $field->setAttribute('required', true)
428: [06:56:00] <EasyCo> Is there another approach then?
429: [06:57:00] <ss23> Whats the where-> way of escaping?
430: [06:57:00] <ss23> (escaping values, that is)
431: [06:57:00] <simon_w> Convert::raw2sql($value)
432: [06:58:00] * ss23 adds taht to the docs
433: [06:58:00] <ss23> ty
434: [06:58:00] * Error404NotFound quit (Ping timeout: 245 seconds)
435: [06:59:00] <ss23> Have fun, simon_w
436: [06:59:00] <ss23> lol
437: [06:59:00] <simon_w> (Try not get hit by a bus time!)
438: [06:59:00] <simon_w> Home time!
439: [06:59:00] <simon_w> http://doc.silverstripe.org/framework/en/topics/security#manual-escaping
440: [06:59:00] * Err404NotFound has joined #silverstripe
441: [06:59:00] <EasyCo> Ok so I guess my next question would be, in onBeforeWrite if you do some logic testing and you decide that it's no good, how do you stop the process and raise an error?
442: [07:00:00] <EasyCo> Oh, alright, thanks for ur help today.
443: [07:01:00] * Err404NotFound has joined #silverstripe
444: [07:01:00] * Err404NotFound quit (Max SendQ exceeded)
445: [07:03:00] * EasyCo quit (Quit: EasyCo)
446: [07:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6177219
447: [07:04:00] * travis-ci has joined #silverstripe
448: [07:04:00] <travis-ci> [travis-ci] silverstripe/sapphire#1951 (3.0 - d5b9ce7 : Simon Welsh): The build was fixed.
449: [07:04:00] * travis-ci has left #silverstripe
450: [07:04:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/39a4aabcdc8b...d5b9ce71c3e6
451: [07:07:00] * chillu has joined #silverstripe
452: [07:09:00] * AntiSol quit (Quit: Leaving)
453: [07:11:00] <ss23> I injected too much insulin :<
454: [07:11:00] <ss23> ss23 lyfe
455: [07:13:00] * Motoservo quit (Quit: Motoservo)
456: [07:14:00] * liam_ is now known as Guest85998
457: [07:14:00] * liam_ has joined #silverstripe
458: [07:16:00] * SticksM quit (Read error: Connection reset by peer)
459: [07:18:00] * Motoservo has joined #silverstripe
460: [07:52:00] <simon_w|air> ss23, Sam wants to know how you feel about the 18th. Get on the twitters!
461: [07:54:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6178181
462: [07:54:00] * travis-ci has left #silverstripe
463: [07:54:00] * travis-ci has joined #silverstripe
464: [07:54:00] <travis-ci> [travis-ci] silverstripe/sapphire#1952 (3.1 - ba7dfcf : Ingo Schommer): The build passed.
465: [07:54:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/e6d8280296b7...ba7dfcfd54a7
466: [07:56:00] * travis-ci has left #silverstripe
467: [07:56:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6178194
468: [07:56:00] * travis-ci has joined #silverstripe
469: [07:56:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#332 (3.1 - 4087c14 : Ingo Schommer): The build passed.
470: [07:56:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/d7435cde719e...4087c14d1bc9
471: [08:00:00] * zfmf has joined #silverstripe
472: [08:08:00] * Guest85998 quit (Quit: Guest85998)
473: [08:09:00] * LoveDuckie has joined #silverstripe
474: [08:12:00] <ss23> simon_w|air: I'll be catching a ride with irogue so whenever is fine with him
475: [08:14:00] * EasyCo has joined #silverstripe
476: [08:15:00] * EasyCo quit (Read error: Connection reset by peer)
477: [08:15:00] * kinglozzer has joined #silverstripe
478: [08:17:00] * EasyCo has joined #silverstripe
479: [08:22:00] * qlex has joined #silverstripe
480: [08:24:00] * qlex says hi
481: [08:28:00] * waveydave has joined #silverstripe
482: [08:29:00] <qlex> ?
483: [08:29:00] <qlex> a little offtopic maybe, but has anyone installed phpunit on linux environment in order to run i18nTextCollectorTask
484: [08:31:00] * SightUnseen has left #silverstripe
485: [08:31:00] * SightUnseen has joined #silverstripe
486: [08:39:00] <simon_w|air> all done
487: [08:39:00] <simon_w|air> pear config-set auto_discover 1
488: [08:39:00] <simon_w|air> pear install pear.phpunit.de/PHPUnit
489: [08:41:00] <simon_w|air> maybe with an apt-get install php-pear first
490: [08:43:00] <qlex> strange, as i have php 5.3.8 but its saying for example:
491: [08:43:00] <qlex> thanx simon. had to install php-pear first and run into tonns of error depenendcies
492: [08:43:00] <qlex> Error: Missing Dependency: php = 5.1.6-39.el5_8 is needed by package php-devel-5.1.6-39.el5_8.i386 (base)
493: [08:43:00] <qlex> like it would be trying to install pear or phpunit that's using an older php version
494: [08:44:00] * EasyCo quit (Quit: EasyCo)
495: [08:54:00] * ivoba has joined #silverstripe
496: [08:54:00] <ivoba> chillu: can we have a chat on https://github.com/silverstripe/sapphire/pull/1314
497: [08:55:00] <ivoba> Line 152 encode the value to utf8
498: [08:55:00] <ivoba> https://github.com/silverstripe/sapphire/blob/3.0/model/fieldtypes/Date.php
499: [08:55:00] <chillu> Yep
500: [08:56:00] <ivoba> this causes M??rz , at least i can reprodices this here
501: [08:56:00] <chillu> We should really be using Zend_Date for this instead of strftime(), since we base so much other i18n on it already
502: [08:57:00] <ivoba> i guess this would mean a bit more refactoring
503: [08:57:00] <chillu> Was sagt echo setlocale(LC_ALL, 0); bei dir?
504: [08:57:00] <ivoba> setlocale(LC_ALL, 'de_DE.utf8','de_DE');
505: [08:58:00] <chillu> Lol, reading german PHP docs, switching to DE automatically ;) Let's keep it EN here in IRC though
506: [08:58:00] <chillu> echo setlocale(LC_TIME, 0); ?
507: [08:58:00] <ivoba> ok :)
508: [08:59:00] <ivoba> de_DE.utf8
509: [08:59:00] * liam_ has joined #silverstripe
510: [09:00:00] <chillu> So if you're using utf8, and presumably have it set in ContentNegotiator as well, then doesn't the Date class with you change behave exactly the same way as before?
511: [09:00:00] <kinglozzer> Hmm, in 3.1 when editing a DataObject attached to a page, after clicking to return to the page it doesn't save which tab you were on previously. Anyone know if this is a regression or am I imagining that 3.0 did it?
512: [09:00:00] * liam_ is now known as Guest41897
513: [09:00:00] <ivoba> couldnt we just leave out the utf8_encode, since it relies on utf8 already?
514: [09:02:00] <ivoba> yes thats was my intention
515: [09:02:00] <chillu> yeah, I actually misread your change - I thought you *added* the utf8_encode(), but in fact you just limited its usage. I think we should remove it, and leave correct charset handling to PHP internally, yes
516: [09:03:00] <ivoba> without ContentNegotiator and stuff, just removing utf8_encode
517: [09:03:00] <ivoba> ok i my make a PR then
518: [09:04:00] * gordon_ quit (Remote host closed the connection)
519: [09:05:00] <chillu> https://github.com/silverstripe/sapphire/commit/e26090a840a2241b14ddf4f664f60232a2dd36e2 :)
520: [09:06:00] <ivoba> super! danke :)
521: [09:16:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6179672
522: [09:16:00] * travis-ci has joined #silverstripe
523: [09:16:00] <travis-ci> [travis-ci] silverstripe/sapphire#1953 (3.0 - e26090a : Ingo Schommer): The build passed.
524: [09:16:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d5b9ce71c3e6...e26090a840a2
525: [09:16:00] * gelignite has joined #silverstripe
526: [09:16:00] * travis-ci has left #silverstripe
527: [09:23:00] * svandragt has joined #silverstripe
528: [09:25:00] <svandragt> good day all. Have a problem with the AjaxUniqueTextField, because it checks the value is unique my users cannot edit records because it won't save the updated record :D anyone else had this issue?
529: [09:27:00] <svandragt> I guess extend the AjaxUniqueTextfield and override the validate function to take into account the record's ID?
530: [09:27:00] <qlex> but still that gives those dependencies errors
531: [09:27:00] <qlex> maybe i need to change repo
532: [09:27:00] <qlex> simon_w|air: im on CentOS so used yum install php-pear instead of apt-get
533: [09:28:00] <simon_w|air> qlex, yes, you'll need to use a different repo if you want anything about PHP 5.1
534: [09:35:00] * lx-berlin_ has joined #silverstripe
535: [09:40:00] * Guest41897 quit (Quit: Guest41897)
536: [09:49:00] * Silverstriper has joined #silverstripe
537: [09:55:00] * svandragt quit (Read error: Connection reset by peer)
538: [09:56:00] <Silverstriper> goodmorning, I'm looking everywhere but can't find information on this: is it possible to change the action of a Silverstripe form (with hidden fields) to an external URL directly?
539: [09:57:00] <Silverstriper> (btw currently I'm working in Silverstripe 2.4.5
540: [09:57:00] <ss23> I should know this! I was just working with forms...
541: [09:57:00] <simon_w|air> Silverstriper, ->setFormAction
542: [09:58:00] * liam_ has joined #silverstripe
543: [09:59:00] * liam_ is now known as Guest65004
544: [10:06:00] <lx-berlin_> hi all, i just noticed that even when i click "save + publish" the page keeps its "Modified" badge. Also there is a button "cancel draft changes". What does this mean ? Why doesnt get the modified status removed when i click save and publish ?
545: [10:07:00] <ss23> lx-berlin_: Is it having an error on publish? Do the changes stick? Is it just a UI issue, or is there actaully a backend issue with saving?
546: [10:09:00] * svandragt has joined #silverstripe
547: [10:09:00] <lx-berlin_> ss23: no error, but "Published 'Kontakt' Successfully". Changes in the wysiwyg get saved. But the badge "Modified" stays there
548: [10:12:00] <lx-berlin_> i think i will pull the latest version from 3.0 branch the next days
549: [10:12:00] <ss23> No idea, sorry, lx-berlin_
550: [10:12:00] <ivoba> how are dashes handled in routing, f.e. /email-edit , how must i name the action?
551: [10:13:00] <lx-berlin_> ss23: no problem. thanks anyway
552: [10:15:00] <simon_w|air> ivoba, should be email_edit
553: [10:16:00] <ivoba> yes, thx
554: [10:23:00] * lx-berlin_ is now known as lx-berlin
555: [10:33:00] * travis-ci has left #silverstripe
556: [10:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/ba7dfcfd54a7...17362f947416
557: [10:33:00] * travis-ci has joined #silverstripe
558: [10:33:00] * ARNHOE has joined #silverstripe
559: [10:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6181264
560: [10:33:00] <travis-ci> [travis-ci] silverstripe/sapphire#1954 (3.1 - 17362f9 : Ingo Schommer): The build passed.
561: [10:35:00] * Zauberfisch^idle has joined #silverstripe
562: [10:43:00] * priithansen has joined #silverstripe
563: [10:52:00] * Guest65004 has left #silverstripe
564: [10:57:00] * zfmf quit (Read error: Connection reset by peer)
565: [10:58:00] * ARNHOE quit (Read error: Connection reset by peer)
566: [10:58:00] * ARNHOE has joined #silverstripe
567: [10:58:00] * zfmf has joined #silverstripe
568: [11:03:00] * guci0 quit (Ping timeout: 245 seconds)
569: [11:12:00] * Zauberfisch has joined #silverstripe
570: [11:16:00] * ARNHOE quit (Read error: Connection reset by peer)
571: [11:16:00] * ARNHOE_ has joined #silverstripe
572: [11:16:00] * willr_ quit (Quit: willr_)
573: [11:25:00] * samthejarvis has joined #silverstripe
574: [11:32:00] <qlex> can i come back to my yesterdays question about hardcoded in english element in css of form Action ?
575: [11:33:00] <qlex> content: "* Indicates a required field";
576: [11:33:00] <qlex> in the ss3.0.5 stock css there's a value for .Actions:after which has the following:
577: [11:33:00] <ARNHOE_> Is it normal that when I change my summaryfields I need to flush now in 3,1 in order to have it change?
578: [11:34:00] <qlex> i cannot seem to l10n to polish and it displays in english on a frontend !
579: [11:34:00] <chillu> Yes, that's bad, please get it out of CSS
580: [11:34:00] <ss23> chillu: ^^ Can you help qlex with translation? Hard coded values in CSS. Sounds like an archetectural flaw?
581: [11:34:00] <qlex> so whenver there's a form created with an action button (like send or reset etc) there always displayes that "* Indicates a required field"
582: [11:35:00] <qlex> PMed you chillu
583: [11:35:00] * osterlaus has joined #silverstripe
584: [11:35:00] <chillu> its not in 3.1 - file reference please?
585: [11:35:00] * zfmf quit (Ping timeout: 245 seconds)
586: [11:36:00] <qlex> that's the location of that hardcoded string
587: [11:36:00] <qlex> i dont have my developer with me, but i gave you a link of where it appears
588: [11:36:00] <qlex> themes/simple/css/form.css?m=1361322170
589: [11:37:00] <qlex> so sorry, its simple theme, but it constitutes part of SS package
590: [11:39:00] <chillu> Or rather disable that CSS and use custom templates/form field labels/etc for it
591: [11:39:00] * Error404NotFound has joined #silverstripe
592: [11:39:00] <chillu> OK, well just change that CSS - themes are always just starting points
593: [11:39:00] <ss23> Isn't the default theme meant to support i18n though? :O
594: [11:40:00] * Err404NotFound quit (Ping timeout: 276 seconds)
595: [11:41:00] <qlex> ss23: yes, that's what i think, since simple theme constitute standard element of ss package
596: [11:41:00] <ss23> lol
597: [11:41:00] <chillu> There you go, it "supports i18n" now: https://github.com/silverstripe-themes/silverstripe-simple/commit/af748fa6f958a21b9f401983943b55f3e274d9f7
598: [11:41:00] <qlex> so im eager to correct this
599: [11:41:00] <qlex> when you d/l silverstripe, this is the default theme silverstripe comes with
600: [11:41:00] <qlex> chillu: how can i use the custom templates/form field. you mean create my own from scratch or there is a default behaviour ?
601: [11:42:00] <chillu> Happy to accept a pull request to re-add it to the template itself with _t() calls
602: [11:45:00] * C10ne has joined #silverstripe
603: [11:46:00] <C10ne> Hi all, a quick question: I'm using CountryDropdownField in cms, how do I display full country name in template?
604: [11:47:00] <ss23> MogoDB, webscale - https://gist.github.com/aphyr/5333960
605: [11:51:00] <ARNHOE_> C10ne: I got a solution for ya
606: [11:51:00] <ARNHOE_> one moment
607: [11:52:00] <qlex> we're trying to run the i18ncollector task to find all remaining/missing translations
608: [11:52:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/17362f947416...310bc8d09c8d
609: [11:52:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6182880
610: [11:52:00] <travis-ci> [travis-ci] silverstripe/sapphire#1956 (3.1 - 310bc8d : Ingo Schommer): The build passed.
611: [11:52:00] * travis-ci has joined #silverstripe
612: [11:52:00] * travis-ci has left #silverstripe
613: [11:52:00] <qlex> chillu:thanx
614: [11:53:00] * UndefinedOffset has joined #silverstripe
615: [11:55:00] <ss23> http://i.imgur.com/5ufgs7n.jpg (my keyboard IRL)
616: [11:58:00] <ARNHOE_> C10ne: : http://sspaste.com/paste/show/5164026622982 I took this form the silverstripe forums
617: [12:01:00] * ivoba quit (Quit: Leaving)
618: [12:01:00] <C10ne> Thanks ARNHOE_, unfortunately I get no output
619: [12:01:00] <ARNHOE_> you should change $this->Nationaliteit to your country db holder
620: [12:02:00] <ARNHOE_> and call $CountryNice in your template
621: [12:07:00] <C10ne> Tried like that, but there's something other not working, I have to test some more stuff
622: [12:09:00] <kinglozzer> C10ne: Just an idea, it might be $this->owner->FieldName instead of $this->FieldName you need to use
623: [12:12:00] <ARNHOE_> it is working for me without the owner, but you could try
624: [12:19:00] <ARNHOE_> Zauberfisch: You remember helping me with the previous and next on a dataobject? I am currently trying to put a if on it, because currently my page isn't loading because I just have one dataobject.
625: [12:20:00] <Zauberfisch> the whole website is not loading because of that? :O
626: [12:20:00] <ARNHOE_> Here is the code again, http://sspaste.com/paste/show/5164077796c1d
627: [12:21:00] <ARNHOE_> now that I think about it
628: [12:21:00] <ARNHOE_> It could be because I am in dev mode
629: [12:21:00] <ARNHOE_> Yeah, its returning [User Error] Uncaught LogicException: filter can't be called on an UnsavedRelationList.
630: [12:22:00] <Zauberfisch> ah, ARNHOE_ I think I know what the problem is
631: [12:22:00] <Zauberfisch> I think its an case where $this or $this->RefereePage() is not saved yet
632: [12:23:00] <C10ne> ARNHOE_, I posted you the code I use for prev/next page, it can be applied to dataobjects
633: [12:24:00] <ARNHOE_> Yeah, I used something similiar like that. But Zauberfisch what is your view on that?
634: [12:25:00] <C10ne> Managed to display the countries, thanks for your help. Had to move the code from Page.php to another page because of the scope acts a bit strange with includes.
635: [12:26:00] <Zauberfisch> ARNHOE_ try my comment
636: [12:26:00] <Zauberfisch> http://sspaste.com/paste/show/5164077796c1d
637: [12:27:00] <ARNHOE_> fixed
638: [12:27:00] <ARNHOE_> thanks, Zauberfisch
639: [12:28:00] <ARNHOE_> C10ne: thanks for your code, but Ill have to skip this one and good to see you got the country code working
640: [12:46:00] <C10ne> You're welcome.
641: [12:53:00] * C10ne quit (Quit: Page closed)
642: [12:57:00] * travis-ci has joined #silverstripe
643: [12:57:00] * travis-ci has left #silverstripe
644: [12:57:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6184227
645: [12:57:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/4087c14d1bc9...a43fac3ecfc8
646: [12:57:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#333 (3.1 - a43fac3 : Ingo Schommer): The build passed.
647: [13:04:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/310bc8d09c8d...9456b8043c34
648: [13:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6184236
649: [13:04:00] * travis-ci has left #silverstripe
650: [13:04:00] * travis-ci has joined #silverstripe
651: [13:04:00] <travis-ci> [travis-ci] silverstripe/sapphire#1957 (3.1 - 9456b80 : Ingo Schommer): The build has errored.
652: [13:08:00] <svandragt> this is taken me 4 attempts and 2 hours now
653: [13:08:00] <svandragt> OK so I am trying to contribute a pull request, using the "contributing code" documentation. So I switch to 3.1 and create a local branch off it; complete my development and commit it.( 1 file change) Now I do a git fetch upstream followed by git rebase -i upstream/master and a git push origin <branchname> all ok. Bit when I try and do a pull request on github and set the base branch to 3.1 it says 197 commits and 35 files changes ?!?!
654: [13:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1958 (3.1 - 14b997e : Ingo Schommer): The build passed.
655: [13:11:00] * ARNHOE_ quit (Remote host closed the connection)
656: [13:11:00] * travis-ci has joined #silverstripe
657: [13:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/9456b8043c34...14b997eea3c2
658: [13:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6184521
659: [13:11:00] * travis-ci has left #silverstripe
660: [13:29:00] <kinglozzer> svangradt: If you created a branch off 3.1, I think you should do git rebase upstream/3.1 instead of upstream/master
661: [13:30:00] <kinglozzer> svandragt*
662: [13:31:00] <svandragt> kinglozzer: I will give that a go although I think that might have been one of my other 3 tries, thanks :)
663: [13:39:00] * Shrike_Finland quit (Ping timeout: 245 seconds)
664: [13:42:00] * lx-berlin has left #silverstripe
665: [13:46:00] * travis-ci has left #silverstripe
666: [13:46:00] * travis-ci has joined #silverstripe
667: [13:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#1957 (3.1 - 9456b80 : Ingo Schommer): The build has errored.
668: [13:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6184236
669: [13:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/310bc8d09c8d...9456b8043c34
670: [13:57:00] <svandragt> kinglozzer: you're a star
671: [13:58:00] * samthejarvis quit (Ping timeout: 245 seconds)
672: [13:58:00] <kinglozzer> Haha thanks, working then?
673: [14:01:00] <svandragt> kinglozzer: yep: https://github.com/silverstripe/sapphire/issues/1399
674: [14:02:00] <svandragt> Where I went wrong is in my understand of the "contributing code" instructions. They are based on branching off master in a 3.0.xdev project instead branching off 3.1 in a 3.1.xdev project
675: [14:04:00] <kinglozzer> Ah cool :)
676: [14:07:00] <kinglozzer> chillu: Can this be marked as critical/blocker or whichever tag is appropriate: https://github.com/silverstripe/sapphire/issues/1696. It's quite an important issue IMO, I just don't know enough about RequestHandler to fix it
677: [14:08:00] <chillu> This has been like that since the dawn of time, roughly :) Yep, it should be fixed, but its not a blocker
678: [14:10:00] <kinglozzer> It's been like it since 3.1.x at least, 3.0 is fine. Yeah I didn't think it would be a blocker, just didn't know which tag it would be (if any)
679: [14:12:00] <chillu> Oh hm, I was thinking of something different then
680: [14:17:00] <ss23> Index Order.UniqueID: changed to unique (UniqueID) (from unique ("UniqueID"))
681: [14:18:00] <ss23> (It doesn't matter, just curious)
682: [14:18:00] <ss23> I get that on every /dev/build. Known issue, or am I adding that unquie index wrong or something?
683: [14:18:00] <kinglozzer> chillu: I may have fixed it, but it will need checking by someone with a better understanding request handling. This commit is responsible I think https://github.com/silverstripe/sapphire/commit/4b54383d68d3e034fd50efff576617c8957f3f97
684: [14:21:00] * PigeonFriend has joined #silverstripe
685: [14:22:00] * priithansen quit (Quit: priithansen)
686: [14:26:00] <Zauberfisch> php version 4.4
687: [14:26:00] <Zauberfisch> hoorray, client requested use of his own server
688: [14:27:00] <svandragt> that was released in 2005
689: [14:27:00] <svandragt> until 2008
690: [14:29:00] <svandragt> Considering API changes etc in 3.1, will 3.0 stil get releases afterwards? Looked at http://www.silverstripe.org/roadmap/ but that's mentioning next release 3.0.3
691: [14:30:00] <Zauberfisch> fuck my live
692: [14:30:00] <ss23> Zauberfisch: Can't you just say no?
693: [14:30:00] <Zauberfisch> ss23 yeah
694: [14:30:00] <ss23> rofl, Zauberfisch
695: [14:31:00] <ss23> ;)
696: [14:31:00] <ss23> lol, yeah
697: [14:31:00] <ss23> Last place I worked at, we ran PHP 4 in production, which you may think is bad. But it gets worse -- we were forced to develop using PHP 5.
698: [14:31:00] <Zauberfisch> just funny people actually have that still in production
699: [14:31:00] <ss23> I don't think any distros provide PHP 4 and are up to date. You could always say yes if they pay a massive surcharge, then get me to own the box over and over, we'll split the cash
700: [14:31:00] <Zauberfisch> well, we are going to
701: [14:32:00] <ss23> (again)
702: [14:32:00] <ss23> Oh to be that ignorant
703: [14:32:00] <ss23> I used to think that ISPs always did things right :<
704: [14:32:00] <Zauberfisch> the host is actually a prettty big isp in austria
705: [14:32:00] <ss23> The amount of time wasted for stuff that worked in dev and not production....
706: [14:33:00] <ss23> Hopefully QA turns up nothign, and I'll have my paycheck in 24 hours :D
707: [14:33:00] * qlex has left #silverstripe
708: [14:33:00] <ss23> Okay, one more tweak to this template, then I can send off an email and finally get it into staging I think
709: [14:33:00] <Zauberfisch> (an austrian isp anyway)
710: [14:34:00] <Zauberfisch> I have 4 projects that are all long over due and I just can't finish them off, there is always something
711: [14:34:00] <ss23> Feels good getting a website done, specially when it's been dragging on like this one
712: [14:34:00] <Zauberfisch> I know that feeling
713: [14:35:00] <Zauberfisch> but hopefully we will manage to close them all this week
714: [14:35:00] <ss23> yeah
715: [14:41:00] * Silverstriper quit (Ping timeout: 245 seconds)
716: [14:42:00] <ss23> oh yeeaeaaah
717: [14:42:00] <ss23> ss23@win:/var/www/silverstripe/SilverStripe-cms-v3.0.5-deals/SilverStripe-cms-v3.0.5/mysite/code$
718: [14:42:00] <ss23> ss23@win:/var/www/silverstripe/SilverStripe-cms-v3.0.5-deals/SilverStripe-cms-v3.0.5/mysite/code$ grep TODO *
719: [14:46:00] <kinglozzer> chillu: Submitted a pull request for the RequestHandler issue, will need reviewing though.
720: [14:51:00] <Zauberfisch> wow, ss23
721: [14:51:00] <Zauberfisch> awesome!
722: [14:52:00] <chillu> kinglozzer: That does the trick, thanks!
723: [14:54:00] * osterlaus quit (Quit: Leaving.)
724: [14:58:00] <travis-ci> [travis-ci] silverstripe/sapphire#1961 (3.1 - 5fbf2e9 : Ingo Schommer): The build has errored.
725: [14:58:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/14b997eea3c2...5fbf2e9303b2
726: [14:58:00] * travis-ci has joined #silverstripe
727: [14:58:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6187761
728: [14:58:00] * travis-ci has left #silverstripe
729: [15:00:00] * kreeves has joined #silverstripe
730: [15:03:00] * osterlaus has joined #silverstripe
731: [15:03:00] <kreeves> hey all. super noob question but google is not sending me anywhere useful. i'm getting a 500 error on /admin/pages after a brand new ss install that passed all prereqs before installation. apache 2.2.22, php 5.4.6, Ubuntu
732: [15:04:00] <osterlaus> kreeves, have a look at your server log
733: [15:07:00] * Motoservo quit (Remote host closed the connection)
734: [15:09:00] <kinglozzer> Can everyone else create error pages? Both me and my colleague can't create 403 pages, get a file with filesize of 0 bytes
735: [15:10:00] * catcher has joined #silverstripe
736: [15:12:00] <kinglozzer> I don't /think/ it's a permissions issue - the file can be created just fine, just nothing gets added
737: [15:17:00] <UndefinedOffset> anyone have any thoughts on a postgre order by in 3.1 just setup a travis build and it failed https://travis-ci.org/UndefinedOffset/SortableGridField/jobs/6188762, stange part it it only failed in 3.1 the same test worked for 3.0
738: [15:17:00] <UndefinedOffset> "Error was SELECT DISTINCT, ORDER BY expressions must appear in select list" according to the travis job
739: [15:19:00] * Dynamic_Nic has joined #silverstripe
740: [15:20:00] <UndefinedOffset> chillu any thoughts? seems like there maybe a bug in the 3.1 orm
741: [15:22:00] * Dynamic_Nic quit (Client Quit)
742: [15:23:00] * Dynamic_Nic has joined #silverstripe
743: [15:27:00] <kinglozzer> Hmm. My bug seems to be an apache problem of some sort. Other error pages work fine, just 403 won't work.
744: [15:27:00] <kreeves> osterlaus: I took a look at the access logs and it's confirmed that I am getting 500 errors??? anything in particular i should be looking for?
745: [15:28:00] <kreeves> if i navigate to /admin it forwards me to /admin/pages and that's where the 500 error occurs.
746: [15:28:00] * Zauberfisch quit (Remote host closed the connection)
747: [15:30:00] <osterlaus> and usually no error coming from within silverstripe
748: [15:30:00] <osterlaus> is the cache dir writable? is .htaccess configured correctly?
749: [15:30:00] <osterlaus> kreeves: usually you should find an error message in the logs. there should be something like error.log, as 500 is a server error
750: [15:34:00] <svandragt> 3 pull requests in a day my work is done :)
751: [15:36:00] * travis-ci has joined #silverstripe
752: [15:36:00] * travis-ci has left #silverstripe
753: [15:36:00] <travis-ci> [travis-ci] silverstripe/sapphire#1963 (3.1 - 659a793 : Ingo Schommer): The build passed.
754: [15:36:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5fbf2e9303b2...659a793cc8f5
755: [15:36:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6188877
756: [15:38:00] <kreeves> osterlaus: cache dir is writable and .htaccess was configured by the ss install itself.
757: [15:39:00] <catcher> kreeves, are you in dev mode? php set to display errors?
758: [15:39:00] * priithansen has joined #silverstripe
759: [15:40:00] * hubertusanton quit (Quit: hubertusanton)
760: [15:41:00] <kreeves> catcher: my apologies as it's been a busy week and i started this end of the day last friday??? i had actually tried to install user forms end of last week and that appears to be the problem. no i don't have it set to display errors??? but my error.log is showing this error.
761: [15:42:00] <catcher> kreeves, can you paste the error trace somewhere?
762: [15:44:00] <kinglozzer> Eugh. My ErrorDocument 403 is always ignored. Just get a white screen. Other error docs work fine :/
763: [15:52:00] <kreeves> catcher: this is from the error.log. I *think* I enabled developer mode in SS but i still get a white page when the 500 error occurs. http://pastebin.com/93bJVQ0k
764: [15:54:00] <catcher> kreeves, first make sure you're in dev mode - _config.php -> Director::set_environment_type('dev'); then run a /dev/build and a ?flush=all
765: [15:54:00] <UndefinedOffset> kreeves: you need to change your page.php's $db property to private
766: [15:54:00] <osterlaus> simple case: the field $db is not declared to be public in the given file
767: [15:55:00] <UndefinedOffset> 3.1 scopes all statics as private, see http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0 upgrading section
768: [15:55:00] <catcher> kreeves, are you running SS 3.1?
769: [15:55:00] <osterlaus> undefinedoffset, who talks about 3.1? ;)
770: [15:55:00] <UndefinedOffset> kreeves to be exact http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0#statics-in-custom-page-classes-need-to-be-private
771: [15:56:00] <osterlaus> the error mentions the field should be *public*
772: [15:56:00] <UndefinedOffset> osterlaus lol, ya but thats php complaining because on page its defined as public but on userdefinedform its private. catcher thats possible as well, probably more likely
773: [15:56:00] <catcher> Yeah, I'm guessing he downloaded userforms 3.1 w/ SS 3.0
774: [15:57:00] <UndefinedOffset> kreeves so if your using 3.0 ignore me :)
775: [16:00:00] <kreeves> I've got 3.0.5
776: [16:00:00] <kreeves> and user forms of???.. let me look
777: [16:02:00] <kreeves> i'm fairly sure i selected "latest stable release" which says it works with 3.0
778: [16:03:00] <UndefinedOffset> kreeves ya looks like some one half migrated userforms, https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L1024
779: [16:03:00] <UndefinedOffset> kreeves try using the 1.0 tag it looks ok
780: [16:03:00] <kreeves> UndefinedOffset: it says build: failing
781: [16:04:00] <UndefinedOffset> it should work fine in 3.0
782: [16:04:00] <UndefinedOffset> kreeves yep because if you look at the build for the 1.0 tag its targeting 3.1
783: [16:05:00] <UndefinedOffset> its also failing on master :)
784: [16:05:00] <kreeves> UndefinedOffset: ahhh.. good point good point
785: [16:05:00] <kreeves> UndefinedOffset: so pardon my ignorance, but is this a simple drop in or did running /dev/build with this bad copy of user forms leave my database in a bad state that needs some kind of repair before moving forward
786: [16:06:00] <UndefinedOffset> hmm, likely it wouldn't even have worked at all
787: [16:06:00] <UndefinedOffset> i would think, dev/build would have hit the same issue though its hard to say
788: [16:06:00] <kreeves> i'll give it a shot :] even if i have to blow everything away, i don't have anything on here atm
789: [16:06:00] <UndefinedOffset> :)
790: [16:06:00] <kreeves> Orrrr, is that too difficult of a question to answer because it's a case by case basis on account of the module in question
791: [16:06:00] <UndefinedOffset> and the build tag doesn't distinguish between tags or branches
792: [16:07:00] <kreeves> dev/build worked to a point and then appeared to stop...
793: [16:07:00] <kreeves> with that other version of user forms. I'll give this other one a shot here in a few and report back.
794: [16:08:00] <catcher> kreeves, your worst case is probably a couple unused fields or tables, and even that is unlikely.
795: [16:14:00] * osterlaus quit (Quit: Leaving.)
796: [16:28:00] * webguest_ has joined #silverstripe
797: [16:28:00] <webguest_> my website moved, DNS is changed, i see the new site, but my site is a mesh. I also upgraded the core to SS 2.4.10
798: [16:29:00] <webguest_> My Htaccess looks like http://paste2.org/CZ1G1PDE
799: [16:29:00] <webguest_> all url are rewritten wrongly... with www.url.com/index.php
800: [16:30:00] <webguest_> is there a module missing on the server, or is my htaccess wrong, or is there something else?
801: [16:30:00] <UndefinedOffset> webguest_ sounds like mod_rewrite isn't enabled on the server, see the server requirements http://doc.silverstripe.org/framework/en/2.4/installation/server-requirements
802: [16:31:00] <webguest_> How do i check, with phpinfo?
803: [16:32:00] <UndefinedOffset> phpinfo won't show apache config, if you remove line 24 and 33 in your htaccess (per the paste) and get a 500 error then mod_rewrite is off on the new host
804: [16:33:00] * kinglozzer quit (Remote host closed the connection)
805: [16:34:00] <UndefinedOffset> hmm
806: [16:34:00] <webguest_> No errors
807: [16:35:00] <webguest_> well there closed it's evening in holland
808: [16:35:00] <webguest_> ;
809: [16:35:00] <webguest_> ;)
810: [16:35:00] <UndefinedOffset> you could check with your host as well see if it is enabled on the server
811: [16:36:00] <UndefinedOffset> lol
812: [16:39:00] <FrozenFire> Originally they asked for an "announcements" feed
813: [16:39:00] <FrozenFire> Then they tacked on the requirement of an "Urgent" flag on announcements, so that certain stories could take precedences, regardless of date
814: [16:39:00] * FrozenFire sighs at this client request
815: [16:40:00] <FrozenFire> Which means rewriting PaginatedList to let me hack that in.
816: [16:40:00] <FrozenFire> Now they're tacking on an "ultimate urgency" functionality, where urgent announcements will be the first items in every pagination page
817: [16:43:00] <webguest_> UndefinedOffset when i view the source, i see the url of the layout, typography and form.css
818: [16:44:00] <webguest_> http://www.url.nl/index.php/themes/blackcandy/css/layout.css?m=1364564494
819: [16:44:00] <webguest_> when i click on it, i get a 404
820: [16:45:00] <webguest_> it this because of the DNS change? does it need extra time before it finds the css?
821: [16:47:00] <UndefinedOffset> try removing the index.php from the url see if that helps, dns change shouldn't affect the paths to files so long as the domain is the same
822: [16:49:00] <catcher> FrozenFire, sounds like one of my days.
823: [16:50:00] <catcher> reverse chron. Except when I specify otherwise. And drag & drop on those.
824: [16:50:00] <FrozenFire> Now apparently only one announcement can be urgent
825: [16:50:00] <FrozenFire> Which does simplify it a *little*
826: [16:50:00] <FrozenFire> Heh
827: [16:50:00] <FrozenFire> Yep
828: [16:51:00] <FrozenFire> But now they want the pagination to be hacked
829: [16:51:00] <FrozenFire> That's normally all well and good.
830: [16:51:00] <FrozenFire> Par for the course.
831: [16:52:00] * waveydave has left #silverstripe
832: [16:53:00] <catcher> hm, can't just grab the top items with a separate method & paginate the rest normally?
833: [16:54:00] <FrozenFire> Well, yeah, I could, but I have a hackier way.
834: [16:54:00] <FrozenFire> Nope
835: [16:54:00] <FrozenFire> :P
836: [16:55:00] <FrozenFire> So I'm just going to serialize it to an array, then if the first item is urgent, splice that item at page length intervals
837: [16:55:00] <FrozenFire> I don't really want to bugger around with changing the AJAX pagination and whatnot
838: [16:56:00] <FrozenFire> Indeed
839: [16:56:00] <catcher> ha
840: [16:56:00] <FrozenFire> But they can fuck themselves.
841: [16:56:00] <catcher> that'll be tons of fun when they change their minds again!
842: [16:59:00] * webguest_ quit (Ping timeout: 245 seconds)
843: [17:02:00] <FrozenFire> Mmmm... infinite loop
844: [17:04:00] * popeshoe quit (Quit: Leaving)
845: [17:04:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
846: [17:05:00] * Error404NotFound has joined #silverstripe
847: [17:06:00] * Perplexed has joined #silverstripe
848: [17:06:00] * webguest has joined #silverstripe
849: [17:07:00] <catcher> Perplexed, depends on the question
850: [17:07:00] <Perplexed> Hi is there someone here that can answer a quick question about silverstripe?
851: [17:08:00] <Perplexed> I haver created the template page ArticleHolder and Article
852: [17:08:00] <Perplexed> well I was evaluating silverstripe and following the tutorial
853: [17:09:00] <Perplexed> and set $allowedChildren to Article in ArticleHolder
854: [17:10:00] <Perplexed> and can be root to false in Article
855: [17:10:00] * Shrike_Finland has joined #silverstripe
856: [17:11:00] <Perplexed> is that a normal behaviour in silverstripe?
857: [17:11:00] <Perplexed> but when I use create new page in silverstripe 3.05 I got a warning the say "Article page can not be root"
858: [17:11:00] <Perplexed> even if I don't have article page selected
859: [17:12:00] * joelpittet quit (Remote host closed the connection)
860: [17:13:00] <catcher> Perplexed, did you select an ArticleHolder before trying to create the Article page?
861: [17:13:00] <Perplexed> no
862: [17:14:00] <catcher> But if you are trying to create an article page, it will need to go under an article holder.
863: [17:14:00] <catcher> if you don't have article page as the chosen type, it shouldn't do that.
864: [17:15:00] <Perplexed> also that the are not supposed to be root
865: [17:15:00] <Perplexed> I think so also, but silverstirpe 3.0 keep showing all the tamplates
866: [17:17:00] <Perplexed> I don't know if that append to other people
867: [17:17:00] <webguest> UndefinedOffset, where do you set: AllowOverride ?
868: [17:17:00] <webguest> and what is vhost?
869: [17:18:00] <FrozenFire> Check that you have mod_rewrite enabled first.
870: [17:19:00] <FrozenFire> Though obviously not through sudo
871: [17:19:00] <webguest> dont know how to check mod_rewrite, did remove the lines in the htaccess: if modules.mod_rewrite
872: [17:19:00] <webguest> and got not error,
873: [17:19:00] <webguest> so i guess its on
874: [17:19:00] <Perplexed> have someone problem with allowed_childern in silverstripe 3.0
875: [17:19:00] <FrozenFire> This can often be done through `sudo a2enmod rewrite`
876: [17:19:00] <webguest> im on shared hosting
877: [17:19:00] <FrozenFire> Well, you'll still need to see if mod_rewrite is enabled.
878: [17:20:00] <webguest> Linux Apache
879: [17:20:00] <FrozenFire> webguest, Well, the other think is that your .htaccess might be ignored.
880: [17:20:00] <FrozenFire> thing**
881: [17:20:00] <FrozenFire> What host are you on?
882: [17:20:00] <FrozenFire> And is it using Apache?
883: [17:20:00] <FrozenFire> Yes, but what *host* are you on?
884: [17:20:00] <FrozenFire> Dreamhost? GoDaddy?
885: [17:21:00] <webguest> www.HostNet.nl
886: [17:21:00] <webguest> i dont know godaddy or dreamhost
887: [17:22:00] <Perplexed> is someone there that is using sivlerstripe 3.0
888: [17:26:00] <webguest> ill ask them tomorrow, thx
889: [17:26:00] <FrozenFire> webguest, Not entirely sure what your issue might be. You'll need to check with your host that both mod_rewrite and AllowOverride are enabled.
890: [17:27:00] <FrozenFire> Just have to address some things of my own beforehand.
891: [17:27:00] <FrozenFire> Perplexed, Many are, but your explanation of the problem is a bit confusing. I realize you're new to SS, so it's hard for you to give a good explanation. Give me a bit, if you can, and I'll see if I can help.
892: [17:29:00] <Perplexed> Thank you Frozen, I'll write about that on the forum
893: [17:39:00] <webguest> FrozenFire, UndefinedOffset: found it, i had to sync the htaccess with the control panel
894: [17:39:00] <webguest> so it was ignored at the start
895: [17:45:00] * Perplexed quit (Quit: Page closed)
896: [17:45:00] * webguest quit (Ping timeout: 245 seconds)
897: [18:09:00] * Nivery has joined #silverstripe
898: [18:13:00] * azureKnight has joined #silverstripe
899: [18:13:00] <azureKnight> Hey guys.
900: [18:14:00] <kreeves> well after removing and installing the tagged 1.0 user forms in 3.0, I'm getting 500 errors but in a different spot...
901: [18:15:00] <FrozenFire> azureKnight, http://www.youtube.com/watch?v=dDR__S3jHBE#t=17s
902: [18:15:00] <kreeves> when I go to create a "User Defined Form", I get a notice on line 670 of SSViewer.php??? but the apache logs show that I think it has to do with the fact that the request to edit the page is returning a 500 error
903: [18:15:00] <azureKnight> FrozenFire: lol.
904: [18:16:00] <azureKnight> FrozenFire: have you written a type of auto-value fill using onbeforewrite?
905: [18:16:00] <FrozenFire> Just make a getter
906: [18:16:00] <FrozenFire> Shouldn't
907: [18:17:00] <azureKnight> I'm trying to make a Int field +1 in the default every time they add one.
908: [18:17:00] <azureKnight> Interesting.
909: [18:17:00] <azureKnight> Hadn't thought of that.
910: [18:17:00] <FrozenFire> public function getSomeField() { return $this->getField("SomeField")?:"My Default Value"; }
911: [18:17:00] <azureKnight> A getter?
912: [18:18:00] <azureKnight> Cajun style.
913: [18:18:00] <FrozenFire> If you want a sortable GridField, check https://github.com/UndefinedOffset/SortableGridField
914: [18:18:00] <azureKnight> Sorting.
915: [18:18:00] * Shrike_Finland quit (Quit: Leaving.)
916: [18:18:00] <FrozenFire> Or are you doing sorting?
917: [18:18:00] <FrozenFire> Isn't that just ID?
918: [18:18:00] <FrozenFire> Wah
919: [18:19:00] <azureKnight> I gotcha.
920: [18:19:00] <FrozenFire> ModelAdmin uses GridField
921: [18:19:00] <FrozenFire> Yup.
922: [18:19:00] <azureKnight> See, I'm doing it in the modeladmin.
923: [18:19:00] <azureKnight> Yeah, ID would be simplistic.
924: [18:19:00] <azureKnight> So, would I just add the need to my _config.php?
925: [18:19:00] <azureKnight> ?
926: [18:19:00] <azureKnight> Oh.
927: [18:19:00] <FrozenFire> Nope
928: [18:19:00] <azureKnight> Wait.
929: [18:20:00] <FrozenFire> Adding components to a ModelAdmin can be done by overriding ModelAdmin::EditForm
930: [18:20:00] <azureKnight> http://25.media.tumblr.com/tumblr_ljxy5h7UUO1qc67tzo1_500.gif
931: [18:21:00] <FrozenFire> E.g. public function EditForm($request) { $form = parent::EditForm($request); switch($this->modelClass) { case "MyDataObject": $gfConfig = $form->dataFieldByName($this->modelClass)->getConfig(); $gfConfig->addComponent(...); break; } return $form; }
932: [18:21:00] <azureKnight> And I can just put that in my Class extending the ModelAdmin?
933: [18:22:00] <azureKnight> Nice.
934: [18:22:00] <azureKnight> I see it.
935: [18:22:00] <azureKnight> Thakns.
936: [18:22:00] <azureKnight> Thanks*
937: [18:26:00] <azureKnight> I'd much rather use that instead of trying to do a weird auto-inc kind of function.
938: [18:26:00] <FrozenFire> Though, you shouldn't handle auto-increment from code either.
939: [18:26:00] <FrozenFire> Indeed.
940: [18:28:00] <FrozenFire> There can be.
941: [18:28:00] <FrozenFire> Though it wouldn't make sense for sorting
942: [18:28:00] <azureKnight> Yeah.
943: [18:28:00] <azureKnight> And there can't be two auto-incs on one, correct?
944: [18:29:00] <FrozenFire> So the sorting factor is creation
945: [18:29:00] <FrozenFire> A creation timestamp, and a sorting integer
946: [18:29:00] <FrozenFire> Sorting should be done by two fields.
947: [18:29:00] <FrozenFire> The sorting integer should always start as 0
948: [18:29:00] <FrozenFire> Then you set the sorting integer to a value, and it becomes prioritized
949: [18:29:00] <azureKnight> Ah. Right.
950: [18:30:00] <FrozenFire> If you need a specific ordering, then you set the sorting integer on each
951: [18:30:00] <FrozenFire> It does get complicated, but that's just the solution.
952: [18:34:00] <azureKnight> Hmm. Alright. I think I get what you're saying.
953: [18:36:00] <FrozenFire> Fortunately, GridFieldSortableRows handles that for you.
954: [18:38:00] <azureKnight> Would AjShorts orderablerows do the same thing?
955: [18:40:00] <azureKnight> I'm using his GridFieldExtensions module
956: [18:42:00] <azureKnight> Seems like I almost got it. :)
957: [18:44:00] <azureKnight> Got it! Thanks a bunch.
958: [18:53:00] * UndefinedOffset quit (Quit: Leaving.)
959: [19:00:00] * ARNHOE_ has joined #silverstripe
960: [19:03:00] * UndefinedOffset has joined #silverstripe
961: [19:47:00] <Nivery> anyone gotten the fulltextsearch module working with silverstripe 3.1? just trying to get it to run a dummy query (basically straight out of the docs) and getting bad request errors
962: [19:47:00] * Motoservo has joined #silverstripe
963: [19:52:00] <Nivery> the parameter passed to the sendRawPost method by Apache_Solr_Service looks weirdly formatted to me. solr/myindex/select,fq=[query] -- what is fq?
964: [19:53:00] <Nivery> the error is complaining about versionedstage, fwiw
965: [19:53:00] <Nivery> the permissions on schema.xml are fine
966: [19:53:00] <Nivery> i have tried with and without versioned objects and gotten the same error
967: [19:53:00] <Nivery> if I try querying localhost:8983/solr/MyIndex/select?q=[query], that works fine
968: [19:54:00] <Nivery> sorry for the data dump, just don't know what's going on :/
969: [19:55:00] <FrozenFire> Finding that it does a lot of Drupal-specific stuff
970: [19:55:00] <FrozenFire> Any tips for converting Drupal design stuff into SS templates? Client needs for me to implement a given page verbatim, which is originally generated by Drupal, using SS (and adding some functionality).
971: [19:59:00] * maknz has joined #silverstripe
972: [20:14:00] * simon_w quit (Quit: This computer has gone to sleep)
973: [20:24:00] * DigNZ quit (Remote host closed the connection)
974: [20:24:00] * DigNZ has joined #silverstripe
975: [20:24:00] * DigNZ has joined #silverstripe
976: [20:25:00] * simon_w quit (Client Quit)
977: [20:25:00] * ARNHOE_ quit (Remote host closed the connection)
978: [20:25:00] * simon_w has joined #silverstripe
979: [20:28:00] * simon_w has joined #silverstripe
980: [20:30:00] * Nivery has left #silverstripe
981: [20:32:00] <FrozenFire> In latest stable
982: [20:32:00] <FrozenFire> Fatal error: Call to undefined method Permission::requireTable() in framework/model/DatabaseAdmin.php on line 214
983: [20:33:00] <FrozenFire> :P
984: [20:33:00] <FrozenFire> And it was working, like, yesterday.
985: [20:33:00] <FrozenFire> It's 3.0.5
986: [20:33:00] <FrozenFire> I really am not sure how
987: [20:33:00] <simon_w> Yeah, and it works for everyone else
988: [20:33:00] <simon_w> You broke it!
989: [20:34:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0.5/model/DatabaseAdmin.php#L214
990: [20:34:00] <simon_w> See? You broke it!
991: [20:34:00] <simon_w> You and your breaking things :p
992: [20:35:00] <FrozenFire> Yeah, I get this.
993: [20:35:00] <simon_w> That's how dev/build works
994: [20:35:00] <simon_w> Because it's a DataObject subclass
995: [20:35:00] <FrozenFire> So why it it breaking?
996: [20:35:00] <FrozenFire> And Permission *is* a DataObject
997: [20:35:00] <FrozenFire> Somehow it's trying to instantiate Permission and call requireTable() on it
998: [20:36:00] <FrozenFire> Ah. It's autoloading a vendor lib
999: [20:36:00] <simon_w> Did you make a class called Permission that isn't a DataObject?
1000: [20:37:00] <FrozenFire> Oh, I see.
1001: [20:37:00] <FrozenFire> Somehow the wrong branch was checked out on a lib of mine
1002: [20:37:00] <FrozenFire> It's being a silly goose.
1003: [20:37:00] <FrozenFire> ;P
1004: [20:38:00] * UndefinedOffset quit (Quit: Leaving.)
1005: [20:38:00] * nickmolhoek quit (Remote host closed the connection)
1006: [20:38:00] * nickmolhoek has joined #silverstripe
1007: [20:38:00] <FrozenFire> Though a bit odd on account of the fact that it *shouldn't* be autoloading it...
1008: [20:38:00] <FrozenFire> Yep.
1009: [20:38:00] <simon_w> Told you you broke it :p
1010: [20:39:00] * nickmolhoek has joined #silverstripe
1011: [20:39:00] <FrozenFire> If I have a module with <module>/thirdparty, will it autoload files from there?
1012: [20:39:00] <FrozenFire> Is _manifest_exclude still needed?
1013: [20:39:00] <simon_w> Yes and yes
1014: [20:39:00] * Pyromanik has joined #silverstripe
1015: [20:39:00] <FrozenFire> Bastard of a thing
1016: [20:39:00] <FrozenFire> :P
1017: [20:40:00] <simon_w> And then ajshort's making the composer autoloader happened before the SilverStripe one!
1018: [20:40:00] <simon_w> So, hopefully its PSR-0 does a file_exists first
1019: [20:43:00] <Pyromanik> simon_w, maybe so.
1020: [20:43:00] <FrozenFire> Lol
1021: [20:43:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.1/forms/Form.php#L167
1022: [20:43:00] <Pyromanik> HALP
1023: [20:43:00] <Pyromanik> simon_w, halp
1024: [20:43:00] <simon_w> Pyromanik, DOING IT WRONG!
1025: [20:44:00] <Pyromanik> Question is actually more around "What do" rather than "y no work"
1026: [20:44:00] <Pyromanik> so like
1027: [20:44:00] <Pyromanik> simon_w, yes]
1028: [20:44:00] <Pyromanik> Doesn't seem normal though :<
1029: [20:44:00] <simon_w> And then didn't work? Because you're trying to submit to Security/Blah?
1030: [20:44:00] <Pyromanik> and a form popped up.
1031: [20:44:00] <Pyromanik> I put $RegisterForm into Security_login.ss
1032: [20:44:00] <Pyromanik> registration form
1033: [20:44:00] * Motoservo quit (Quit: Motoservo)
1034: [20:45:00] <Pyromanik> I didn't define a form
1035: [20:45:00] <Pyromanik> b) is decorating Security the best way to tackle this?
1036: [20:45:00] <Pyromanik> but also
1037: [20:45:00] <Pyromanik> so I'm confused about a) where the hell is it coming from
1038: [20:46:00] <simon_w> And no, the best way is to point the form to say home/RegisterForm
1039: [20:46:00] * Motoservo has joined #silverstripe
1040: [20:46:00] <simon_w> So $RegisterForm worked before you made a RegisterForm method on Page_Controller?
1041: [20:47:00] <Pyromanik> simon_w, so Security extends PageController?
1042: [20:47:00] <simon_w> No, Security::login creates a Page_Controller
1043: [20:47:00] <Pyromanik> o.0
1044: [20:48:00] <Pyromanik> I do have one defined on a subclass of it though.
1045: [20:48:00] * Pyromanik solo slow claps
1046: [20:48:00] <Pyromanik> wd
1047: [20:48:00] <Pyromanik> o.0
1048: [20:48:00] <FrozenFire> Something not Security.
1049: [20:48:00] <Pyromanik> FrozenFire, with?
1050: [20:48:00] <FrozenFire> :P
1051: [20:48:00] <FrozenFire> What a clusterfuck
1052: [20:48:00] <Pyromanik> ahhh
1053: [20:48:00] <Pyromanik> also no, I didn't define it on Page_Controller.
1054: [20:48:00] * FrozenFire wishes Security were replaced
1055: [20:49:00] <FrozenFire> Have a Security page if you want, but let it be replaceable
1056: [20:49:00] <FrozenFire> Move all of the core stuff out of it
1057: [20:49:00] <Pyromanik> 'replaceable'?
1058: [20:49:00] <Pyromanik> it's not a page
1059: [20:49:00] <Pyromanik> it's a controller
1060: [20:49:00] <FrozenFire> Exactly.
1061: [20:49:00] <FrozenFire> It's a pseudo-page
1062: [20:49:00] <FrozenFire> Which singletons "Page_Controller"
1063: [20:49:00] <Pyromanik> right
1064: [20:49:00] <FrozenFire> And then injects some shit and renders it
1065: [20:49:00] <FrozenFire> Which is the epitome of unmaintainable and entrenched.
1066: [20:49:00] <Pyromanik> I see so you're saying support class rather than controller that acts as a support class?
1067: [20:50:00] <FrozenFire> I often need to replace a bunch of it
1068: [20:50:00] <simon_w> Ewww, pages
1069: [20:50:00] <FrozenFire> For BC
1070: [20:50:00] <FrozenFire> Have a page in CMS which does what Security does
1071: [20:50:00] <FrozenFire> Essentially, yes.
1072: [20:50:00] <FrozenFire> But let people define their own login/registration/etc page.
1073: [20:51:00] <Pyromanik> now thinking to remove my page and extend Security with the form, and have text on the SiteConfig for the page content.
1074: [20:51:00] <Pyromanik> and how I've gotten extremely confused.
1075: [20:51:00] <Pyromanik> yeah admittedly that's what I've tried to do
1076: [20:51:00] <FrozenFire> And if they want to handle authentication elsewise, without a specific route for it, then they can do that.
1077: [20:52:00] <Pyromanik> which will singleton pagecontroller
1078: [20:52:00] <FrozenFire> Yeah, I usually end up creating a separate page for registration entirely.
1079: [20:52:00] <FrozenFire> I try to minimize interaction with Security
1080: [20:52:00] <FrozenFire> Because it's a clusterfuck
1081: [20:52:00] <Pyromanik> the other way I'm thinking is to wrap Security/login
1082: [20:52:00] <Pyromanik> with MyPage/login
1083: [20:52:00] <FrozenFire> Nope
1084: [20:52:00] <FrozenFire> Don't even try
1085: [20:52:00] <Pyromanik> which then singletons security
1086: [20:52:00] <FrozenFire> It will break.
1087: [20:52:00] <Pyromanik> which will... break.
1088: [20:52:00] <Pyromanik> recursion?
1089: [20:53:00] <Pyromanik> it's called Security for a reason!
1090: [20:53:00] * Pyromanik pictures burly club bouncer
1091: [20:53:00] <FrozenFire> Unless someone has basically rewritten Security, it will break.
1092: [20:53:00] <FrozenFire> I went through hours and hours of this in 2.4
1093: [20:53:00] <FrozenFire> And basically learnt my lesson
1094: [20:53:00] <Pyromanik> yeah but 2.4
1095: [20:53:00] <FrozenFire> "Don't fuck with Security!"
1096: [20:53:00] <FrozenFire> Security is effectively identical in 3.x as 2.4
1097: [20:54:00] <FrozenFire> Because you usually end up forking framework so you can edit Security
1098: [20:54:00] <Pyromanik> FrozenFire, but Security supports that, although the code looks a slight rotten
1099: [20:54:00] <FrozenFire> Or you extend the Security class and replace it through Object
1100: [20:54:00] <FrozenFire> It's a lolgudluk situation
1101: [20:54:00] <FrozenFire> E.g. getting MemberLoginForm or whatever
1102: [20:54:00] <simon_w> Hah, we mess with Security a lot :p
1103: [20:54:00] <FrozenFire> One of the biggest messes I often get into is trying to get individual authenticators
1104: [20:54:00] <Pyromanik> right
1105: [20:54:00] <Pyromanik> so
1106: [20:54:00] <Pyromanik> best way to achieve register form
1107: [20:54:00] <Pyromanik> ?
1108: [20:55:00] <FrozenFire> I think I maybe patched that, but it's still a mess
1109: [20:55:00] <Pyromanik> so like the most of SS right?
1110: [20:55:00] <FrozenFire> You copy and paste half the class.
1111: [20:55:00] <Pyromanik> lol
1112: [20:55:00] <FrozenFire> :P
1113: [20:55:00] <Pyromanik> useCustomClass?
1114: [20:55:00] <FrozenFire> Security supports that in *theory*, but it has a private variable somewhere that fucks it all up
1115: [20:55:00] <Pyromanik> lol
1116: [20:57:00] <Pyromanik> at the moment have a RegisterPage
1117: [20:57:00] <Pyromanik> so anyway
1118: [20:57:00] <Pyromanik> back to original goal
1119: [20:57:00] <Pyromanik> best way to achieve a register form?
1120: [20:57:00] <Pyromanik> yeah
1121: [20:57:00] <FrozenFire> That'.
1122: [20:57:00] <FrozenFire> Yep
1123: [20:57:00] <Pyromanik> with RegisterForm
1124: [20:57:00] <FrozenFire> Create a separate page.
1125: [20:57:00] <Pyromanik> works fine
1126: [20:58:00] <Pyromanik> $LoginForm in the template
1127: [20:58:00] <Pyromanik> except it's a dual purpose page
1128: [20:58:00] <FrozenFire> Nope
1129: [20:58:00] <FrozenFire> Chuck Testa
1130: [20:58:00] <Pyromanik> so when that fails it returns to Security/login, which means $RegisterForm (although it renders) stops working.
1131: [20:58:00] <FrozenFire> Yup
1132: [20:58:00] <Pyromanik> quite
1133: [20:58:00] <FrozenFire> Chuck Testa.
1134: [20:59:00] <Pyromanik> I thought it was alive
1135: [20:59:00] <Pyromanik> but it wasn't.
1136: [20:59:00] <Pyromanik> I want a fuck'n honey badger form.
1137: [20:59:00] <simon_w> Pyromanik, $form->setFormAction($nonSecurityPage->Link('RegisterForm'))
1138: [21:00:00] <Pyromanik> simon_w, my honey badger <3
1139: [21:00:00] <FrozenFire> Down the rabbit hole you go
1140: [21:01:00] <Pyromanik> FrozenFire, so why won't that work?
1141: [21:03:00] <FrozenFire> No idea. I'd be surprised if you don't find out why yourself, though
1142: [21:03:00] <FrozenFire> You start out thinking "Okay, I'll just do this to get around that. Should be enough"
1143: [21:03:00] <FrozenFire> Nope.
1144: [21:03:00] <FrozenFire> Security is a giant best intentions trap.
1145: [21:04:00] <simon_w> Yeah yeah, you can do it wrong
1146: [21:04:00] <simon_w> Problem solved!
1147: [21:04:00] <simon_w> Just don't do it wrong
1148: [21:04:00] <FrozenFire> One thing adds another and so on and so forth.
1149: [21:05:00] <Pyromanik> :D
1150: [21:06:00] <Pyromanik> ah
1151: [21:06:00] <Pyromanik> how to get correct link when has no $this->data?
1152: [21:06:00] <Pyromanik> no $data
1153: [21:06:00] <Pyromanik> that's why it won't work.
1154: [21:07:00] <Pyromanik> simon_w, heh, yeah.
1155: [21:07:00] <Pyromanik> I mean sure /RegisterPage_Controller should still work fine
1156: [21:07:00] <Pyromanik> but
1157: [21:07:00] <Pyromanik> nasty.
1158: [21:07:00] <simon_w> Pyromanik, RegisterPage::get()->First()?
1159: [21:07:00] <Pyromanik> and when it fails, none of the page extras ($Content) to support
1160: [21:08:00] <Pyromanik> then enforce canCreate iff numRegPages == 0
1161: [21:08:00] <simon_w> Should probably do that anyway
1162: [21:08:00] <Pyromanik> probably
1163: [21:09:00] <Pyromanik> multiple inheritance ILY
1164: [21:09:00] <Pyromanik> thanks guys.
1165: [21:09:00] <Pyromanik> Right, sounds legit.
1166: [21:11:00] <Pyromanik> urgh, now I have honey badger video stuck in my head
1167: [21:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/e26090a840a2...a68fb1f09623
1168: [21:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6198224
1169: [21:11:00] * travis-ci has left #silverstripe
1170: [21:11:00] * travis-ci has joined #silverstripe
1171: [21:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1965 (3.0 - a68fb1f : Ingo Schommer): The build has errored.
1172: [21:12:00] <Pyromanik> http://www.youtube.com/watch?v=4r7wHMg5Yjg
1173: [21:12:00] <Pyromanik> Time to watch!
1174: [21:16:00] <azureKnight> Lol...
1175: [21:20:00] * Dynamic_Nic quit (Remote host closed the connection)
1176: [21:22:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6198485
1177: [21:22:00] * travis-ci has left #silverstripe
1178: [21:22:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/659a793cc8f5...97b1f8616fbc
1179: [21:22:00] <travis-ci> [travis-ci] silverstripe/sapphire#1966 (3.1 - 97b1f86 : Sean Harvey): The build passed.
1180: [21:22:00] * travis-ci has joined #silverstripe
1181: [21:43:00] <catcher> Is it feasible to use a remote assets/ location?
1182: [21:45:00] * willr_ has joined #silverstripe
1183: [22:00:00] <willr_> Bah trying to find SilverStripe developers in Wellington. Everyones busy!
1184: [22:04:00] <catcher> remote devs!
1185: [22:12:00] <willr_> Yeah we haven't had any luck with them and managers afraid of doing that now
1186: [22:15:00] * kreeves has left #silverstripe
1187: [22:18:00] <FrozenFire> DropdownField required with an empty default, handled in RequiredFields... how to?
1188: [22:19:00] <willr_> FrozenFire should work, just add the drop down field to your RequiredField
1189: [22:21:00] <willr_> You'll need $drop->setHasEmptyDefault(true); $drop->setEmptyString(".."); in 3.0
1190: [22:22:00] <Pyromanik> iirc setEmptyString automatically sets hasEmpty to true.
1191: [22:22:00] <Pyromanik> FrozenFire, or did you mean that you want the '' to be a valid choice?
1192: [22:22:00] <FrozenFire> I have the DropdownFields in CompositeField
1193: [22:22:00] <FrozenFire> Oh wait, I know why it wasn't working
1194: [22:23:00] <willr_> Pyromanik got capacity in the next 2-3 for some basic SilverStripe website implementations?
1195: [22:23:00] <Pyromanik> wait no
1196: [22:23:00] <willr_> Pyromanik then don't make it required :P
1197: [22:23:00] <FrozenFire> And the names are buggy
1198: [22:23:00] <Pyromanik> because taht's the same as the field not being required, you can't not put an option in a dropdown
1199: [22:23:00] <Pyromanik> willr_, yeh
1200: [22:23:00] <Pyromanik> FrozenFire, that they are.
1201: [22:23:00] <Pyromanik> Composite.Dropdown probably
1202: [22:23:00] <FrozenFire> Nah, I named them like DOB[Month] DOB[Day] DOB[Year]
1203: [22:23:00] <FrozenFire> So I just probably need to fix that
1204: [22:23:00] <Pyromanik> RequiredFields should pick it up
1205: [22:23:00] <Pyromanik> FrozenFire, ...
1206: [22:24:00] <FrozenFire> As in, add them properly to RequiredFields
1207: [22:24:00] <Pyromanik> but
1208: [22:24:00] <Pyromanik> oh yeah, dropdowns
1209: [22:26:00] <Pyromanik> willr_, yeh, give the boss a call.
1210: [22:27:00] <simon_w> That sounds ominous
1211: [22:37:00] * Liquide has joined #silverstripe
1212: [22:37:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1213: [22:38:00] * jerga has joined #silverstripe
1214: [22:42:00] * jerga quit (Read error: Connection reset by peer)
1215: [22:47:00] * jerga has joined #silverstripe
1216: [22:55:00] * Kolin quit (Read error: Connection reset by peer)
1217: [22:57:00] * catcher quit (Quit: Leaving)
1218: [23:12:00] * jerga quit (Quit: Leaving.)
1219: [23:13:00] * jerga has joined #silverstripe
1220: [23:29:00] * azureKnight quit (Quit: azureKnight)
1221: [23:32:00] * jerga has left #silverstripe
1222: [23:35:00] * Cam_ has joined #silverstripe
1223: [23:35:00] * Cam_ quit (Client Quit)
1224: [23:45:00] <Pyromanik> Pun intended!
1225: [23:45:00] <willr_> *slow clap*
1226: [23:45:00] <Pyromanik> that moment
1227: [23:45:00] <Pyromanik> "Things are coming up in the wrong order"
1228: [23:45:00] * Pyromanik fixes issue and replies "Sorted it"
1229: [23:45:00] <Pyromanik> :D
1230: [23:52:00] * EasyCo has joined #silverstripe
1231: [23:59:00] * azureKnight has joined #silverstripe
1232: [23:59:00] * SightUnseen has left #silverstripe
1233: [23:59:00] * azureKnight quit (Client Quit)
1234: [23:59:00] * SightUnseen has joined #silverstripe

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