#silverstripe IRC Log

IRC log for 2 March 2015

All timestamps are in UTC.

1: [00:00:25] <micmania1> Ship it! https://github.com/silverstripe/silverstripe-cms/pull/1172
2: [00:01:29] * fb3rasp__ has joined #silverstripe
3: [00:02:46] * veb has joined #silverstripe
4: [00:02:58] <spronk2> menutitle is dep'd for 4?
5: [00:03:49] <micmania1> spronk2: nah, see above convo ^^
6: [00:03:55] <Hailwood> spronk2, Well - the custom behaviour is - not so much the actual function.
7: [00:04:08] <spronk2> foncused
8: [00:05:52] * fb3rasp__ quit (Ping timeout: 240 seconds)
9: [00:06:23] <Hailwood> Foncused - that's a new one. It's summed up pretty well in the issue comment - at the moment if MenuTitle = Title then MenuTitle gets set to null - which is retarded.
10: [00:06:47] * Hailwood likes to overuse -
11: [00:09:54] <spronk2> yeah i got that
12: [00:09:55] <spronk2> but
13: [00:10:02] <spronk2> is micmania1 just taking the piss?
14: [00:10:03] <spronk2> :P
15: [00:10:09] <zauberfisch> Hailwood: the only practical way to solfe this right now is using arraylist I fear
16: [00:10:42] <micmania1> spronk2: no lol - it shouldn’t do that. its strange.
17: [00:10:56] <spronk2> yaya but the dep notice.. ?
18: [00:11:16] <zauberfisch> $list = (new ArrayList(Page::get()->toArray()))->sort('MenuTitle');
19: [00:11:21] <zauberfisch> something like this might work
20: [00:11:23] <spronk2> also is there anything else in the codebase that relies on the null?
21: [00:11:34] <zauberfisch> there probably is :S
22: [00:12:17] <zauberfisch> thinking about it, there might still be an argument to keep the behavoiur
23: [00:12:18] <micmania1> spronk2: oh, nah. Its just so that when 4.0 comes around there’ll be a deprecation notice so the function can be completely removed.
24: [00:12:29] <zauberfisch> because what if I want the menutitle to always be the same as the page title?
25: [00:12:45] <micmania1> zauberfisch: then use Title
26: [00:12:57] <zauberfisch> micmania1: from a users perspective
27: [00:13:09] <zauberfisch> perhaps he wants this behavoir on certain pages
28: [00:13:11] <zauberfisch> but me
29: [00:13:11] <micmania1> Then make MenuTitle the same as Title :)
30: [00:13:13] <zauberfisch> meh
31: [00:13:15] <zauberfisch> yeah
32: [00:13:20] <zauberfisch> the cms does that as well
33: [00:13:31] <micmania1> The JS already does that so it shouldn’t affect people by default,
34: [00:13:35] <zauberfisch> yep
35: [00:13:57] <zauberfisch> btw, added a reply on github
36: [00:17:37] <zauberfisch> micmania1: I see why you added it, but the problem is that setMenuTitle is called by the CMS automatically
37: [00:18:04] <micmania1> zauberfisch: yep, but it won’t trigger any errors in ss 3.
38: [00:18:16] <zauberfisch> when you do $page->Foo = 'Bar'; it will check if setFoo() exists, and call it if it does
39: [00:18:38] <zauberfisch> so as soon as someone runs 4, there will be errors all over the place
40: [00:18:45] <zauberfisch> no matter if you use setMenuTitle or not
41: [00:18:49] <micmania1> yep, but it will be removed in 4.0. If I don’t call the deprecation stuff, it will be forgotten about and won’t be removed in 4.
42: [00:19:41] <zauberfisch> so you mean we start throwing notices in 4.0 and we will remove it in 4.0?
43: [00:20:04] <zauberfisch> (= not possible, because if we remove it, it will not throw the notice)
44: [00:20:13] <zauberfisch> so its more a todo note?
45: [00:23:14] * spronk2 quit (Quit: I may need a longer sleep timer...)
46: [00:23:40] <Hailwood> zauberfisch, That's what I gather. - side note - Looking at the travisCI builds how are you meant to know what test actually failed...
47: [00:23:51] <Hailwood> Never mind..
48: [00:24:54] <micmania1> zauberfisch: yep, but this is a todo that screams at your face
49: [00:25:02] <micmania1> if its not done.
50: [00:25:51] <micmania1> so… there’s actually a test for the functionality.
51: [00:26:10] <zauberfisch> haha
52: [00:26:16] <zauberfisch> yeah, just thought the same thing
53: [00:27:09] <EasyCo> Hey guys, how do you access a relationship from within a DataExtension? For example I have a $has_many = array( 'Notes' => 'Note' ); defined in the DataExtension. but when I try to access the data from within updateCMSFields like so Notes::get() I get Class Notes not found.
54: [00:27:47] <zauberfisch> it always $this->owner
55: [00:27:48] <micmania1> EasyCo: $this->owner->Notes()
56: [00:27:58] <micmania1> EasyCo: also, notes isn’t the class. The class is Note
57: [00:28:02] <zauberfisch> so when you would usually use $this its $this->owner
58: [00:28:08] <zauberfisch> so what micmania1 said
59: [00:30:16] <EasyCo> Beautiful, knew it was a scoping issue. Thanks micmania1 and zauberfisch
60: [00:30:52] * spronk2 has joined #silverstripe
61: [00:34:51] <Hailwood> Looks like one of the previous devs ran into the same issue before and resorted to sorting the menu items in PHP - https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/code/CMSMenu.php#L165
62: [00:42:09] <micmania1> facepalm
63: [00:47:42] * spronk2 quit (Quit: I may need a longer sleep timer...)
64: [00:58:35] <camfindlay> Heads up - deploy of docs site and reindex going down in about 15 mins. Some redirection fixes in place.
65: [01:00:47] <zauberfisch> ohai
66: [01:01:08] <zauberfisch> camfindlay: please forgive me, but I didn't really get what that pdf you sent out earlier on the mailinglist was about
67: [01:01:21] <zauberfisch> though I have to admit, I didn't really read it, was to lazy :S
68: [01:02:20] * fb3rasp__ has joined #silverstripe
69: [01:05:06] <camfindlay> looking at reworking the IA of the userhelp site for CMS users
70: [01:05:25] <camfindlay> we had some UX teams go over the site and propose a new nev structure
71: [01:05:49] <camfindlay> that doc is giving the raw restructures proposed by 4 teams
72: [01:06:18] <camfindlay> so community can comment as no doubt a lot of you guys have clients you have to teach how to use the CMS
73: [01:07:24] * fb3rasp__ quit (Ping timeout: 272 seconds)
74: [01:14:58] <Stomach> camfindlay - teach?
75: [01:15:01] <Stomach> TELL
76: [01:15:02] <Stomach> :P
77: [01:16:15] <camfindlay> ;)
78: [01:16:41] <Ryan-Toast> camfindlay: I just setRightTitle() all the things.
79: [01:17:15] <Ryan-Toast> Stomach doesn’t use the sitetree, which is a pretty cool approach.
80: [01:17:34] <camfindlay> yeah - good video at https://vimeo.com/119727130 ;)
81: [01:18:47] <zauberfisch> yeah, we don't really teach clients either
82: [01:18:51] <zauberfisch> they just get it
83: [01:18:54] <zauberfisch> or they let us do it
84: [01:19:07] <Ryan-Toast> camfindlay: http://stevie-mayhew.github.io/sitetree-less-sites-talk/
85: [01:19:12] <zauberfisch> we offer people training, but it never takes longer than an hour
86: [01:20:14] <camfindlay> yeah, I have found in the past the initial training doesn’t take long and they still need a good reference for those things they forget about => good userhelp site would be that reference tool for clients.
87: [01:20:19] <Ryan-Toast> zauberfifisch: Yeah, if built right they cms should be pretty self-explanetory.
88: [01:22:01] <Stomach> I just make videos of shit when people ask questions
89: [01:22:07] <Stomach> send them a video
90: [01:22:09] <Stomach> problem solved
91: [01:30:42] <Stomach> camfindlay - https://groups.google.com/forum/#!topic/silverstripe-dev/kA6oo6Z-srQ
92: [01:31:05] <camfindlay> :D
93: [01:35:09] <ss-helper> Re: Decluttering the CMS interface - https://groups.google.com/d/msg/silverstripe-dev/kA6oo6Z-srQ/6gA4YsR3AEUJ
94: [01:35:09] <ss-helper> Decluttering the CMS interface - https://groups.google.com/d/msg/silverstripe-dev/kA6oo6Z-srQ/x5N6jrV9txkJ
95: [01:36:02] <Stomach> catch up ss-helper
96: [01:58:42] * veb quit (Quit: veb-irc: &)
97: [01:59:06] * veb has joined #silverstripe
98: [01:59:08] * veb quit (Client Quit)
99: [02:03:14] * fb3rasp__ has joined #silverstripe
100: [02:04:52] * antmas quit (Quit: Page closed)
101: [02:05:10] <ss-helper> Re: [silverstripe-dev] Re: Decluttering the CMS interface - https://groups.google.com/d/msg/silverstripe-dev/kA6oo6Z-srQ/CnSpmApwXDsJ
102: [02:06:06] <zauberfisch> and +1 for setRightTitle all the things
103: [02:06:12] <zauberfisch> that helps a huge deal
104: [02:07:22] * fb3rasp__ quit (Ping timeout: 240 seconds)
105: [02:07:48] <Stomach> yeah
106: [02:08:11] <Stomach> ->setRightTitle("Make sure to upload an <strong>image</strong> file, PDF files will not display on the page.")
107: [02:08:14] <Stomach> ^ real life code
108: [02:08:15] <Stomach> :(
109: [02:09:26] <UncleCheese> what's right title? had no idea
110: [02:14:12] * camfindlay quit (Quit: camfindlay)
111: [02:14:26] <Stomach> I think it used to be "setDescription"
112: [02:17:02] <adrexia> I think itsd still both
113: [02:17:33] * Phlunk3 quit (Remote host closed the connection)
114: [02:18:02] <adrexia> they were envisioned to have slightly different use cases, but usually interchangeable
115: [02:18:29] <UncleCheese> yeah, i always use setDescription
116: [02:18:50] <adrexia> it makes more ense since Right titles are no longer even right titles ;)
117: [02:20:03] <simon_w|air> Don't forget about setHelpText
118: [02:20:09] <adrexia> lol
119: [02:20:41] <simon_w|air> Also, toffee apple M&Ms are delicious
120: [02:20:55] <Stomach> simon_w|air - I had a skittles milkshake yesterday
121: [02:20:58] <Stomach> !!!
122: [02:20:59] <Stomach> SKITTLES
123: [02:21:01] <Stomach> in a milkshake
124: [02:21:03] <Stomach> fuck yes
125: [02:21:17] <simon_w|air> Stomach, Cold Rock does that with ice-cream
126: [02:21:25] <simon_w|air> Not sure if they do milkshakes
127: [02:21:51] <Stomach> this place as called "Grill & Shake" and they pretty much do chicken and milkshakes
128: [02:23:21] <Stomach> now thats a business I can get behind
129: [02:23:23] <Stomach> and inside of me
130: [02:28:04] * spronk2 has joined #silverstripe
131: [02:37:57] <EasyCo> Hey guys, anybody know of a Slug field module/extension for SS before I build one?
132: [02:38:59] <UncleCheese> EasyCo i have one
133: [02:39:34] <UncleCheese> EasyCo http://paste2.org/9Ez42v9p
134: [02:40:27] <UncleCheese> ugly as fuck because i ported it over from 2.4 and never rewrote it.. but it works.. it's running on .org :)
135: [02:41:01] <UncleCheese> comes with Sluggable::get_by_slug($class, $slug);
136: [02:41:41] <EasyCo> UncleCheese: So works fine in 3.1? Thanks alot! Just saved me an hour or so.
137: [02:42:06] <UncleCheese> yeah, i use it on all my sites.. not pretty, but i've never had any issues with it
138: [02:42:20] <UncleCheese> you can override slug_field in the config if you want to use something other than 'Title';
139: [02:42:39] <UncleCheese> does not accept computed properties as fields, though
140: [02:43:05] <EasyCo> No worries, that's a nice win. Cheers!
141: [02:52:28] <EasyCo> Can you use extensions on extensions?
142: [02:52:51] <UncleCheese> no
143: [02:53:53] <EasyCo> Right, so I basically have to take that extension and copy/paste it into my Member extension
144: [02:55:50] <EasyCo> Oh! but I can apply multiple extensions
145: [02:56:54] <EasyCo> Got it working. Thanks again.
146: [02:57:25] <EasyCo> Nice simple way of dealing with the uniqueness constraint :) +1 that shit.
147: [03:04:06] * fb3rasp__ has joined #silverstripe
148: [03:08:59] * fb3rasp__ quit (Ping timeout: 264 seconds)
149: [03:21:17] <zauberfisch> Stomach: why not ->setAllowedFileCategory('image')
150: [03:21:24] <zauberfisch> which will prevent them from uploading pdfs
151: [03:21:31] <Stomach> we do that too :)
152: [03:21:35] <zauberfisch> one less thing they can break
153: [03:21:38] <zauberfisch> I see
154: [03:33:01] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
155: [03:41:30] * veb has joined #silverstripe
156: [03:48:02] * jedateach quit (Ping timeout: 256 seconds)
157: [04:04:56] * fb3rasp__ has joined #silverstripe
158: [04:09:43] * fb3rasp__ quit (Ping timeout: 256 seconds)
159: [04:21:01] * veb quit (Quit: veb-irc: &)
160: [04:24:27] * Sticks quit (Quit: Leaving)
161: [04:24:39] * veb has joined #silverstripe
162: [04:27:46] * veb quit (Client Quit)
163: [04:32:10] * glenn-bautista quit (Quit: Leaving.)
164: [04:33:49] * Ryan-Toast quit (Quit: Ryan-Toast)
165: [04:36:33] * cloph_away has joined #silverstripe
166: [04:36:55] * cloph quit (Ping timeout: 256 seconds)
167: [04:52:42] * markcl has joined #silverstripe
168: [04:54:22] <markcl> Hi. I have a RoomsPage in the SiteTree under a HotelsPage. The first RoomsPage is taken by HotelsPage in the url (hotel-url)/rooms using a controller function. But it seems (hotel-url)/rooms-2
169: [04:54:30] <markcl> still works
170: [04:54:55] <markcl> How do I make it not work, or use /rooms, so that search engines won't crawl it
171: [05:01:08] * Stomach quit (Quit: zzz)
172: [05:01:40] * stecman quit (Quit: This computer has gone to sleep)
173: [05:06:02] * fb3rasp__ has joined #silverstripe
174: [05:10:37] * fb3rasp__ quit (Ping timeout: 264 seconds)
175: [05:53:10] * Stomach has joined #silverstripe
176: [06:06:57] * fb3rasp__ has joined #silverstripe
177: [06:11:08] * fb3rasp__ quit (Ping timeout: 246 seconds)
178: [06:13:44] * Stomach quit (Quit: zzz)
179: [06:17:35] * antmas has joined #silverstripe
180: [06:20:07] <antmas> can you do something like addExtraClass() to a fieldlist?
181: [06:25:36] <antmas> or rather, how do I use addExtraClass() to a field within a fieldlist?
182: [06:31:51] * r_hector has joined #silverstripe
183: [06:34:07] * elgabbu quit (Ping timeout: 246 seconds)
184: [06:34:33] <antmas> nvm, had a herp derp
185: [07:06:02] * markcl quit (Quit: Leaving.)
186: [07:28:23] * Eliseth has joined #silverstripe
187: [07:32:22] * travis-ci has joined #silverstripe
188: [07:32:23] <travis-ci> silverstripe/silverstripe-framework#4279 (3 - ddec797 : Will Rossiter): The build passed.
189: [07:32:23] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/548f297563df...ddec797c1c78
190: [07:32:23] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/52704205
191: [07:32:23] * travis-ci has left #silverstripe
192: [07:40:39] * Hailwood quit (Remote host closed the connection)
193: [07:48:37] * Hailwood has joined #silverstripe
194: [07:48:39] * Frans_Amsterdam has joined #silverstripe
195: [07:48:40] * Frans_Amsterdam quit (Client Quit)
196: [07:52:30] * Frans_Amsterdam has joined #silverstripe
197: [07:52:34] * Frans_Amsterdam quit (Client Quit)
198: [07:58:47] * wmk has joined #silverstripe
199: [08:00:22] * arnhoe has joined #silverstripe
200: [08:01:09] * jedateach has joined #silverstripe
201: [08:01:18] * jedateach has left #silverstripe
202: [08:03:22] * fb3rasp__ has joined #silverstripe
203: [08:07:33] * Shrike_Finland has joined #silverstripe
204: [08:26:14] * gavro_ has joined #silverstripe
205: [08:41:04] * gavro_ is now known as gavro
206: [08:41:33] * gavro is now known as Guest64584
207: [08:45:09] * Frans_Amsterdam has joined #silverstripe
208: [08:55:48] * cloph_away is now known as cloph
209: [08:57:01] * Shrike_Finland quit (Quit: Leaving.)
210: [08:59:14] <zauberfisch> wmk: new release of the vagrant box
211: [08:59:27] <wmk> zauberfisch, fine...
212: [08:59:36] <zauberfisch> though I haven't included the mysql stuff though
213: [08:59:45] <zauberfisch> not sure how and if I want to do that
214: [09:00:00] <wmk> oh, it was just a tweak in my.cnf
215: [09:00:05] <wmk> comment out two lines
216: [09:00:14] <wmk> so you can reach it from outside
217: [09:00:28] <zauberfisch> well, not sure that this makes it reachable from the outside
218: [09:00:29] <wmk> as it's just for dev purposes there should be non critical data on this
219: [09:00:35] <zauberfisch> because you need to forward a port aswell
220: [09:00:36] <wmk> it makes
221: [09:00:44] <zauberfisch> well, I guess I don't have to do that, and let the user do it
222: [09:00:47] <wmk> you can connect through ssh tunnel from phpstorm
223: [09:01:03] <zauberfisch> you should already be able to do that
224: [09:01:10] <wmk> zauberfisch, well, the main benefit of your box is: it's pre configured to start and run
225: [09:01:21] <wmk> comment it out manually on every box creaton is kinda boring
226: [09:01:43] <zauberfisch> I know what you mean
227: [09:02:25] <zauberfisch> wait, brb
228: [09:04:10] * kinglozzer has joined #silverstripe
229: [09:05:03] <wmk> hey kinglozzer
230: [09:05:14] <kinglozzer> morning wmk
231: [09:11:57] * r_hector quit (Quit: Leaving.)
232: [09:13:35] * Guest64584 is now known as gavro_
233: [09:15:06] <zauberfisch> sorry, had to reboot
234: [09:15:35] <zauberfisch> wmk: for me it works with ssh tunnle without any config modification
235: [09:15:36] <zauberfisch> http://easy.zauberfisch.at/vagrant/mysql-config.png
236: [09:16:40] <zauberfisch> because of the ssh tunnle, there is no need to bind sql to something else, because it will ssh into the server and use localhost there
237: [09:17:09] <zauberfisch> and the locking thing there, I have no idea what it does, but given that it contains "extern" in the name, I guess its not relevant when using localhost either
238: [09:25:41] <wmk> hmm.
239: [09:25:45] <wmk> possible
240: [09:26:03] <wmk> when it works it's ok, maybe i had some quirks in my mind when setting this up last week
241: [09:26:39] <wmk> maybe on windows it's a bit different...
242: [09:27:09] <zauberfisch> yeah, tested it on ubuntu
243: [09:27:16] <zauberfisch> might be different on windows
244: [09:27:19] <zauberfisch> but I hope not ;)
245: [09:27:25] <zauberfisch> mind giving it a try?
246: [09:27:33] <wmk> i do.
247: [09:27:38] <zauberfisch> (with the settings I used)
248: [09:27:42] <wmk> it was bind-adress and ....
249: [09:29:25] <zauberfisch> :O
250: [09:29:29] <zauberfisch> not sure what you mean
251: [09:29:45] <wmk> just searching for the second param i commented out...
252: [09:29:51] <wmk> in my.conf
253: [09:31:00] <wmk> ss-log, 10x for logging, found it!
254: [09:31:12] <wmk> !thanks ss-log
255: [09:33:08] <wmk> zauberfisch, that's exactly the settings i came up with
256: [09:33:33] <wmk> and it works with the standard settings (bind-adress and skip-extenal-locking enabled)
257: [09:33:55] <wmk> so it was getting it running in IDEA first (and tell windows firewall to allow it)
258: [09:34:03] <wmk> problem solved, thanks
259: [10:00:43] * UncleCheese has joined #silverstripe
260: [10:02:02] * danfo_ has joined #silverstripe
261: [10:02:53] <zauberfisch> wmk: so no need to modify the box?
262: [10:02:54] <zauberfisch> yay
263: [10:06:44] <wmk> doesn't seem so
264: [10:07:29] <wmk> but you could save the png for documentation ;)
265: [10:07:34] <wmk> maybe add to the vm
266: [10:08:28] <zauberfisch> btw, it now contains wkhtmltopdf
267: [10:08:43] <zauberfisch> but you probably need to give the vm more ram if you want to use it
268: [10:08:49] <zauberfisch> like 1G
269: [10:08:59] <zauberfisch> also, sake works again
270: [10:09:27] <wmk> cool
271: [10:09:36] <zauberfisch> vagrant ssh -c "cd www; sake dev/build flush=1"
272: [10:11:38] <ss-helper> Raise awarnerss about Silverstripe - http://www.silverstripe.org/community/forums/general-questions/show/101268
273: [10:11:39] <ss-helper> SS 3.1 nested Dataobject / Tab appearing - http://www.silverstripe.org/community/forums/general-questions/show/101267
274: [10:16:32] <wmk> zauberfisch, we need to collect all this stuff in a gist or so...?
275: [10:20:13] * danfo_ quit (Ping timeout: 255 seconds)
276: [10:21:06] * danfo_ has joined #silverstripe
277: [10:23:45] * tasuki has joined #silverstripe
278: [10:25:24] <tasuki> Hi all, I've got an extension for SubmittedFormField (or for SubmittedForm), with an "onAfterWrite" method. How do I get the data submitted in the form?
279: [10:27:16] <wmk> inside onafterwrite?
280: [10:27:35] <wmk> onafterwrite is in the dataobject, not in the form afaik
281: [10:27:43] <wmk> !paste tasuki
282: [10:27:44] <ss-helper> tasuki: 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.
283: [10:28:43] * PigeonFriend has joined #silverstripe
284: [10:34:08] <tasuki> Ok perhaps that wasn't clear, sorry. I just need to bind into the form submitting process, preferably somewhere at the end of it, and get the values the user submitted in the form. How to do that?
285: [10:34:32] <tasuki> (This seems like it should be a completely trivial thing, yet I wasn't able to find anything on the net)
286: [10:35:00] <wmk> tasuki, you created the form yourself?
287: [10:35:23] * Stomach has joined #silverstripe
288: [10:35:48] <wmk> there are some ways how forms can handle that, i now tend to subclass form and put the action in there.
289: [10:35:55] <wmk> tasuki, i assume it's a frontend form
290: [10:36:07] <tasuki> I suppose it's one of those SilverStripe forms, user data form or something it's called iirc?
291: [10:36:34] <tasuki> I want to bind into any and all the submitted forms actually...
292: [10:36:35] <wmk> could you paste some code?
293: [10:36:38] <wmk> !paste tasuki
294: [10:36:38] <ss-helper> tasuki: 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.
295: [10:36:51] <wmk> without it's hard to guess what you want to do
296: [10:37:41] <tasuki> https://gist.github.com/tasuk/85cabbb5cf6c87d08356
297: [10:37:51] <wmk> tasuki, basic form tutorial: http://doc.silverstripe.org/en/tutorials/forms/
298: [10:37:58] <zauberfisch> wmk: well, I will write a good readme when I put it up in a repo
299: [10:38:16] <wmk> zauberfisch, fine!
300: [10:38:55] <tasuki> Ideally, I want to listen for any form being submitted within the framework, then get access to all its data submitted by the user.
301: [10:39:21] <wmk> tasuki, well, i don't find the SubmittedFormField class in my lastest 3.1 installation
302: [10:39:30] <zauberfisch> http://cdn.meme.am/instances/500x/59770827.jpg
303: [10:40:27] <wmk> tasuki, i doubt there is a general "form submitted" point in the framework
304: [10:40:37] <wmk> a form sends it data to a defined controller / action
305: [10:40:49] <wmk> this can be by theory any controller
306: [10:41:48] <wmk> the second is: i still don't find the SubmittedFormField class which you want to extend. And the onAfterWrite hook is only called by DataObjects, after writing to DB
307: [10:42:42] * fb3rasp__ quit (Ping timeout: 250 seconds)
308: [10:43:57] * PigeonFriend quit ()
309: [10:44:34] * PigeonFriend has joined #silverstripe
310: [10:56:25] * travis-ci has joined #silverstripe
311: [10:56:26] <travis-ci> silverstripe/silverstripe-framework#4285 (3.1 - 50c4c38 : Daniel Hensby): The build passed.
312: [10:56:27] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/4e340ca7abad...50c4c387ae26
313: [10:56:27] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/52722103
314: [10:56:27] * travis-ci has left #silverstripe
315: [10:56:27] <tasuki> I'm not even sure what version of SilverStripe I'm on. An object extension for both SubmittedForm and SubmittedFormField binds into the process of submitting the form.
316: [10:56:27] * Stomach quit (Quit: zzz)
317: [10:56:43] <tasuki> The only question is, how do I get the form data? I can already get the form title!
318: [10:56:47] <ss-helper> Re: How can I upload multiple images at once? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101206#post400513
319: [10:57:22] <tasuki> This is how I get the form title: https://gist.github.com/tasuk/85cabbb5cf6c87d08356
320: [10:57:38] <tasuki> And please don't tell me one can't access the form data... it must be possible!
321: [10:59:15] <kinglozzer> tasuki: $field->Value()? Assuming $field is a FormField instance
322: [11:00:14] * Shrike_Finland has joined #silverstripe
323: [11:01:34] * Hailwood quit (Remote host closed the connection)
324: [11:05:09] <wmk> tasuki, do you have userforms module installed??
325: [11:05:57] <wmk> then it all makes more sense ;)
326: [11:09:36] <tasuki> yes wmk, I think it's the userforms module
327: [11:10:35] <tasuki> kinglozzer: those fields my gist loops over, that's just the form title... where to find the user submitted fields?
328: [11:12:40] <kinglozzer> tasuki: $field->Value
329: [11:14:58] <tasuki> that's just null
330: [11:15:24] <kinglozzer> tasuki: For every single field, or just the first one?
331: [11:16:42] <tasuki> could you please tell me the full path to the form fields from $this->owner in the extension?
332: [11:20:14] * Frans_Amsterdam quit (Read error: Connection reset by peer)
333: [11:20:29] <tasuki> there /is/ just one in the $this->owner->Parent()->Values(); collection!
334: [11:20:39] <kinglozzer> tasuki: You've already got it: $this->owner->Parent()->Values()
335: [11:20:45] <tasuki> and it contains the form title and nothing else
336: [11:21:20] * Shrike_Finland quit (Quit: Leaving.)
337: [11:21:20] <tasuki> I want the values submitted by the user, and they aren't there
338: [11:21:25] <kinglozzer> tasuki: Have you checked the database to make sure that there is actually more than one saved?
339: [11:21:38] <kinglozzer> Also, you can remove the empty ->filter()
340: [11:23:27] * fb3rasp__ has joined #silverstripe
341: [11:24:22] <tasuki> yes, more fields are saved
342: [11:24:44] <tasuki> perhaps this is the wrong way to bind in Object::add_extension('SubmittedFormField', 'ActOnFormsExtension'); ?
343: [11:25:25] * fb3rasp___ has joined #silverstripe
344: [11:25:41] <kinglozzer> tasuki: Well, onAfterWrite will run after _every_ field is saved (i.e. it will run once for each field). My guess is that you're looking at the data after it has saved only the first field - hence why no other fields exist yet
345: [11:26:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
346: [11:26:14] <tasuki> ah yes, that'd make sense!
347: [11:26:23] <tasuki> thanks kinglozzer :)
348: [11:28:44] * fb3rasp__ quit (Ping timeout: 256 seconds)
349: [11:30:19] <kinglozzer> tasuki: There's an extension point here: https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L1048
350: [11:31:03] <kinglozzer> So you could add an extension to SubmittedForm with the method updateAfterProcess(), then use foreach($this->owner->Values()) { ... }
351: [11:32:40] * fb3rasp___ quit (Ping timeout: 255 seconds)
352: [11:33:26] * Shrike_Finland has joined #silverstripe
353: [11:41:56] <ss-helper> Re: How can I upload multiple images at once? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101206#post400514
354: [11:59:27] <PigeonFriend> wtf?! 'new' == 0 is evaluating as true :/
355: [12:08:49] <kinglozzer> PigeonFriend: Eh?!
356: [12:10:00] <kinglozzer> Same for any string ^^ D:
357: [12:10:48] <kinglozzer> PigeonFriend: http://stackoverflow.com/questions/6843030/why-does-php-consider-0-to-be-equal-to-a-string
358: [12:12:03] <ss-helper> Re: Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160#post400515
359: [12:12:15] <PigeonFriend> (int)'e' == 0? and not 1?!
360: [12:12:21] <PigeonFriend> what is wrong with the world!!!
361: [12:12:37] <PigeonFriend> I thought that a non empty string was 1 :(
362: [12:12:57] <PigeonFriend> i suppose that would still have broken my logic, though
363: [12:14:23] <PigeonFriend> if ((int)'new' && (int)'new' == 0) is what I need, I guess
364: [12:16:12] * markcl has joined #silverstripe
365: [12:18:04] <kinglozzer> Yeah... it's bizarre!
366: [12:18:07] * markcl1 has joined #silverstripe
367: [12:18:07] * markcl1 quit (Client Quit)
368: [12:21:44] <PigeonFriend> oh well, that'll teach me to take shortcuts
369: [12:22:10] * markcl quit (Ping timeout: 252 seconds)
370: [12:29:26] <wmk> tasuki, got it running?
371: [12:52:06] * Shrike_Finland quit (Quit: Leaving.)
372: [12:55:19] <Eliseth> Is there an easy way to disable the Filter/Import bar in admin?
373: [12:56:06] <Eliseth> public $showImportForm = false; hides the import part from it, but I want it gone completely
374: [12:56:53] <kinglozzer> Eliseth: You can do it by creating a template that's named (I think) the same as your ModelAdmin class name
375: [12:58:02] <kinglozzer> Eliseth: In your mysite, create a template named MyModelAdmin_Tools.ss, leave it completely empty
376: [12:58:16] <kinglozzer> (or put a comment in there explaining that it's just to hide the bar)
377: [13:01:46] <Eliseth> That didn't do much... or does it have to be in a specific folder? (used /mysite/templates/admin/MyModelAdmin_Tools.ss)
378: [13:02:25] <wmk> Eliseth, put it in /mysite/templates/Includes
379: [13:02:50] <wmk> as the original is in /Includes/
380: [13:03:28] <Eliseth> Yup, that did the trink. Awesome, thanks
381: [13:03:33] <Eliseth> *trick even
382: [13:03:42] <wmk> thirsty?
383: [13:03:48] <Eliseth> ^^
384: [13:03:54] * wmk hands Eliseth a cup of coffee
385: [13:09:44] * ocmnt has joined #silverstripe
386: [13:10:55] * Pyfaiyumk has joined #silverstripe
387: [13:12:15] <ss-helper> Changing the way content editors work with silverstripe - http://www.silverstripe.org/community/forums/general-questions/show/101271
388: [13:23:14] * Shrike_Finland has joined #silverstripe
389: [13:25:12] <tasuki> kinglozzer: that worked, thanks a lot! (just had to upgrade userforms to get that extension hook :)
390: [13:25:25] <tasuki> wmk, thank you for your help, too!
391: [13:34:02] * UndefinedOffset has joined #silverstripe
392: [13:36:44] * elgabbu has joined #silverstripe
393: [13:37:30] <wmk> tasuki, you're welcome
394: [13:37:45] <wmk> took some time until i understood what you want to do
395: [13:37:59] <elgabbu> hi guys
396: [13:38:04] <wmk> hey elgabbu
397: [13:38:28] <elgabbu> wrote some code to recursively delete has_many data of a dataObject ... what do you think
398: [13:38:28] <elgabbu> http://sspaste.com/paste/show/54f467295817c
399: [13:38:43] <elgabbu> hi wmk
400: [13:39:49] <wmk> well...
401: [13:39:59] <wmk> it'll delete any has_many
402: [13:40:24] <wmk> so, if a partner had has_many Page, those pages would be also deleted
403: [13:40:58] <wmk> maybe filter for ClassName and only delete if $data instanceOf $ClassName
404: [13:41:32] <wmk> (and write some unit tests to see if it only deletes the stuff you want!)
405: [13:42:21] <ss-helper> generate a responsive ShortCode - http://www.silverstripe.org/community/forums/general-questions/show/101273
406: [13:42:56] * muskie9 has joined #silverstripe
407: [13:55:05] <elgabbu> the objective to delete every bit of data pertaining to the parent object being deleted ... such that no redundant data is left in the DB
408: [13:57:24] <ss-helper> Re: User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131#post400522
409: [13:58:14] <wmk> elgabbu, well, you'd have to check if this relation is still needed by another dataobject
410: [13:59:26] <wmk> why does "GoHomeLoginForm" remind me of Monty Python?
411: [14:01:13] <elgabbu> but a has_many relation ... wouldn't only the parent be 'using' it
412: [14:01:20] * Azure quit (Ping timeout: 272 seconds)
413: [14:02:46] <wmk> elgabbu, well... there can be other has_manies to this object, or the related object has some more relations e.g. to Member
414: [14:03:03] <wmk> so ProjectPage has_many Project, Project has_many Member
415: [14:03:20] <wmk> with your code you'll delete all Members that are related to a Project
416: [14:03:33] <wmk> depends on your datamodel
417: [14:04:21] <elgabbu> but that's fine as long as the data is related only to the original ProjectPage
418: [14:04:40] <wmk> so i'd filter for the allowed classname to delete...
419: [14:05:27] <elgabbu> but that wouldn't make it very generic would it :P
420: [14:06:37] <wmk> imho more generic
421: [14:12:28] <ss-helper> Re: Changing the way content editors work with silverstripe - http://www.silverstripe.org/community/forums/general-questions/show/101271#post400525
422: [14:12:28] <ss-helper> Re: User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131#post400524
423: [14:12:28] <ss-helper> Re: generate a responsive ShortCode - http://www.silverstripe.org/community/forums/general-questions/show/101273#post400523
424: [14:12:52] * scpi has joined #silverstripe
425: [14:25:43] * Shrike_Finland quit (Quit: Leaving.)
426: [14:27:30] <ss-helper> Re: Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160#post400526
427: [14:28:55] * phillprice has joined #silverstripe
428: [14:30:04] <phillprice> hi - anyone had success with composer install of subsites?I get an error about Anyone got success with installing subsites on 3.1x with composer? I'm getting a 3.2 requirement?
429: [14:30:16] * muskie9 is now known as muskie9_afk
430: [14:30:22] <Pyfaiyumk> nup, haven't tried
431: [14:30:25] * r3v3rb has joined #silverstripe
432: [14:30:34] <kinglozzer> phillprice: I'd guess you're using dev-master instead of the correct tag
433: [14:30:49] <r3v3rb> kinglozzer: silverstripe/omnipay
434: [14:30:52] <phillprice> the correct tag is the question
435: [14:30:54] * muskie9_afk is now known as muskie9
436: [14:31:08] <r3v3rb> ;)
437: [14:31:16] <kinglozzer> phillprice: "silverstripe/subsites": "~1.0.0"
438: [14:31:32] <kinglozzer> r3v3rb: How goes it?
439: [14:32:03] <kinglozzer> http://addons.silverstripe.org/add-ons/silverstripe/subsites lol @ the first two comments
440: [14:32:25] <r3v3rb> alright, but as the stripe intepretation required sending the form fields to the server for ‘token’ creation PCI compliance is still necessary - so I stuck with stripe.js and omnipay for the callbacks
441: [14:32:56] <kinglozzer> Ah, pesky compliance...
442: [14:33:14] <r3v3rb> aye, for a site thats only running for three months its pointless
443: [14:36:16] <phillprice> [InvalidArgumentException] Could not find package ~1.0.0 at any version for your minimum-stability (dev). Check the package spelling or your minimum-stability
444: [14:36:46] <wmk> phillprice, yeah, composer can be a pita sometimes
445: [14:37:10] <wmk> i have "silverstripe/subsites": "1.0.x", in my composer.json
446: [14:39:43] <phillprice> wmk: thanks - it picked up 1.0.x-dev
447: [14:40:28] <wmk> you could also do 1.0.x@stable afaik
448: [14:42:33] <ss-helper> Re: SS 3.1 nested Dataobject / Tab appearing - http://www.silverstripe.org/community/forums/general-questions/show/101267#post400527
449: [14:54:41] * Azure has joined #silverstripe
450: [14:56:40] <r3v3rb> kinglozzer: just bought 32000 shares in an attempt to stop my account bleeding! Going down in flames :)
451: [14:57:13] <wmk> anyone knows if there is a plugin for e.g. zenvalidation to compare dates in a form?
452: [15:01:08] * UndefinedOffset quit (Quit: Leaving.)
453: [15:02:00] <kinglozzer> r3v3rb: Are you back in the black now? :P
454: [15:02:12] <r3v3rb> kinglozzer: heh, thankfully yes :D
455: [15:02:57] <r3v3rb> my 1640 shares in APPL are doing well today bought at 128.85 currently trading at 130.18 :)
456: [15:08:44] <r3v3rb> kinglozzer: just been informed if the form variables are sent via SSL and no SQL storage of theo fields is undertaken PCI is not necessary :\
457: [15:08:59] <r3v3rb> bbiab, pick up time
458: [15:12:39] <ss-helper> Re: [SOLVED] Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160#post400529
459: [15:12:39] <ss-helper> Re: Is there a link form field? - http://www.silverstripe.org/community/forums/general-questions/show/17939?start=8#post400528
460: [15:14:43] <elgabbu> say classA is related many_many to classB
461: [15:15:24] <elgabbu> $items = $classA->classB();
462: [15:15:37] <elgabbu> foreach items as item
463: [15:15:45] <elgabbu> item->delete();
464: [15:16:15] <elgabbu> what would get deleted?
465: [15:16:32] <muskie9> elgabbu each classB object
466: [15:17:02] <muskie9> (that's related to classA object)
467: [15:19:02] <elgabbu> is there a way to only delete the record in the many-to-many table which contains the id, ClassAID, ClassBID ?
468: [15:19:19] <kinglozzer> elgabbu: $items->remove($item)
469: [15:19:23] <muskie9> ^
470: [15:20:30] * ocm13 has joined #silverstripe
471: [15:22:07] <elgabbu> let me give that a shot
472: [15:22:27] * ocmnt quit (Ping timeout: 244 seconds)
473: [15:24:51] <elgabbu> brilliant thanks muskie9 and kinglozzer :)
474: [15:25:33] <muskie9> cheers
475: [15:27:14] <elgabbu> http://sspaste.com/paste/show/54f480add9dcd .... this should delete all the many-to-many records of the $obj being passed in
476: [15:27:42] <ss-helper> Re: User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131#post400530
477: [15:29:48] * Shrike_Finland has joined #silverstripe
478: [15:30:14] * Egg_ has joined #silverstripe
479: [15:30:22] <Egg_> You all smell!
480: [15:30:37] <Egg_> I am a terrorist
481: [15:30:42] <Egg_> I am a single male looking for a fun time
482: [15:30:47] <Egg_> How are we all?
483: [15:30:52] <Egg_> I want to kill you
484: [15:30:56] <Egg_> *boob*
485: [15:30:57] <Egg_> Yolo
486: [15:30:59] <Egg_> Swag
487: [15:31:02] <Egg_> Die, bitches
488: [15:31:21] <Egg_> Die motherfucker, die motherfucker die!
489: [15:31:26] <Egg_> Is anyone even here
490: [15:31:29] <Egg_> You're all boring
491: [15:31:33] <Egg_> Kill yourselves
492: [15:31:38] <Egg_> I'm going to cut myself now
493: [15:31:40] <Egg_> Fuck you all!
494: [15:32:25] * phillprice quit (Ping timeout: 246 seconds)
495: [15:33:01] * Egg_ has left #silverstripe
496: [15:33:07] <wmk> *phew*
497: [15:33:25] <wmk> elgabbu, this paste will remove the many_many relations, yes, but not the unused objects afterwards
498: [15:33:30] <Pyfaiyumk> Probably a bot wmk
499: [15:34:01] <wmk> though you could search for DOs not in that many_many table
500: [15:34:01] <Pyfaiyumk> That or some really angry Scotsman (ip from edinburgh apparently)
501: [15:34:21] <wmk> Pyfaiyumk, i thought about a bot, or very fast typing
502: [15:34:33] * wmk wonders if he reads the logs how we react
503: [15:34:35] <Pyfaiyumk> either way, carefactor zero.
504: [15:34:40] <Pyfaiyumk> heh.
505: [15:34:42] <wmk> absolutely.
506: [15:35:21] <Pyfaiyumk> Care factor: http://upload.wikimedia.org/wikipedia/en/8/8e/Sub-Zero_%28Mortal_Kombat%29.png
507: [15:39:45] * Shrike_Finland1 has joined #silverstripe
508: [15:39:45] * Shrike_Finland quit (Read error: Connection reset by peer)
509: [15:42:45] <ss-helper> Re: [SOLVED] Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160?start=8#post400531
510: [15:44:42] <elgabbu> wmk what do you mean by unused objects?
511: [15:45:06] <wmk> it only deletes the many_many relation, but not the other object if it's not in a many_many anymore
512: [15:47:06] <elgabbu> yeah i see what you mean .... $obj being passed in will be deleted outside of this function ... on the other hand i cannot delete the other objects because they could be potentially used in other many-to-many relationships
513: [15:56:24] <wmk> yup
514: [15:56:44] <wmk> you'd have to check $Obj->ManyManyRelationName()->count() === 0
515: [15:57:05] <wmk> then it's not needed anymore
516: [15:57:15] <wmk> but maybe you want to reassign it later on, dunno
517: [15:57:47] <ss-helper> Re: [SOLVED] Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160?start=8#post400532
518: [16:11:21] * vanny has joined #silverstripe
519: [16:11:38] <vanny> morning all
520: [16:12:50] <ss-helper> Re: SS 3.1 nested Dataobject / Tab appearing - http://www.silverstripe.org/community/forums/general-questions/show/101267#post400533
521: [16:18:39] * UndefinedOffset has joined #silverstripe
522: [16:19:20] <Pyfaiyumk> ni
523: [16:19:22] <Pyfaiyumk> hi*
524: [16:20:30] * headtrip has joined #silverstripe
525: [16:22:06] <vanny> Im looking for a new reseller host in the US for my sites. Something cost effective as I am just starting this part and most of my clients are $5/mth hosting style people. Any recommendations.
526: [16:23:03] * Azure quit (Read error: Connection reset by peer)
527: [16:23:57] * Azure has joined #silverstripe
528: [16:27:08] <Pyfaiyumk> vanny: linode.
529: [16:29:38] * arnhoe quit ()
530: [16:31:21] * jenniferaslan has joined #silverstripe
531: [16:33:27] <vanny> ok, what is a good plan to start with I currently have 5 clients. I am on justhost.com plan now, but they are moving away
532: [16:36:52] <wmk> vanny, digitalocean?
533: [16:37:01] <wmk> you get a small vm for 5/month
534: [16:37:09] <Pyfaiyumk> linode about the same wmk
535: [16:37:13] <wmk> ok
536: [16:37:14] <Pyfaiyumk> not sure on specifics thoug
537: [16:37:36] <Pyfaiyumk> plus small vm is only about enough for 1 site isn't it?
538: [16:37:57] <wmk> depends
539: [16:38:02] * gavro__ has joined #silverstripe
540: [16:38:06] <wmk> ->staticpublisher
541: [16:38:23] <Pyfaiyumk> hehe, indeed.
542: [16:39:24] <wmk> and i doubt more customers are using the backend the same time
543: [16:39:33] <vanny> does linode handle all the email server side of things for clients. I have 4 to migrate right now. But my current host I have setup there email etc
544: [16:40:33] <Pyfaiyumk> I dunno. They give server. I don't see what else there is to it.
545: [16:40:50] <Pyfaiyumk> if you want something like plesk, maybe look elsewhere.
546: [16:41:47] <vanny> this part is all new to me, normally I just right the code. server setup has been someone elses problem
547: [16:42:00] * gavro_ quit (Ping timeout: 264 seconds)
548: [16:42:15] * gavro__ quit (Ping timeout: 246 seconds)
549: [16:43:50] <wmk> hehe... sounds familiar
550: [16:44:08] <wmk> thought the email thingie should be possible to handle.
551: [16:44:24] <wmk> dunno how complicated the blacklist thingie is
552: [16:44:33] <Pyfaiyumk> vanny: you probably want some kind of vps setup with a management tool then.
553: [16:44:40] <Pyfaiyumk> cpanel or plesk.
554: [16:44:50] <Pyfaiyumk> if you're using them now
555: [16:44:59] <Pyfaiyumk> if you're not... then you have to learn server management.
556: [16:45:05] <Pyfaiyumk> or get someone who knows it.
557: [16:48:32] * Pyfaiyumk quit ()
558: [16:50:34] <vanny> ok, I use the cpanel stuff now. So that looks like what I need
559: [17:02:16] <wmk> vanny, someone showed me froxxlor some time ago
560: [17:02:35] <wmk> http://www.froxlor.org/
561: [17:05:31] * vanny quit (Ping timeout: 246 seconds)
562: [17:15:57] * headtrip quit (Quit: (null))
563: [17:24:53] * wmk quit (Ping timeout: 252 seconds)
564: [17:32:59] * Shrike_Finland1 quit (Quit: Leaving.)
565: [17:36:25] * kinglozzer quit ()
566: [17:39:44] * cloph is now known as cloph_away
567: [17:40:21] * CodeTrap has joined #silverstripe
568: [17:42:33] * CodeTrap quit (Client Quit)
569: [17:47:52] * tasuki quit (Ping timeout: 246 seconds)
570: [17:54:29] * terryapodaca has joined #silverstripe
571: [17:54:36] * vanny has joined #silverstripe
572: [17:54:55] * travis-ci has joined #silverstripe
573: [17:54:56] <travis-ci> TindallRiley/silverstripe-framework#2 (2.4 - c0b4bd6 : Aram Balakjian): The build passed.
574: [17:54:57] <travis-ci> Change view : https://github.com/TindallRiley/silverstripe-framework/compare/18aaaa0a216b...c0b4bd6303d4
575: [17:54:57] <travis-ci> Build details : http://travis-ci.org/TindallRiley/silverstripe-framework/builds/52774648
576: [17:54:57] * travis-ci has left #silverstripe
577: [17:56:28] <terryapodaca> Hey guys...I have an old SS2.4.5 site that uses Userforms
578: [17:56:42] <terryapodaca> Is there no built in spam field?
579: [18:00:00] <muskie9> terryapodaca not that I recall... have to use spam protector module w/recaptcha or math spam module iirc
580: [18:05:23] * travis-ci has joined #silverstripe
581: [18:05:24] <travis-ci> TindallRiley/silverstripe-framework#3 (2.4 - 73659e8 : Aram Balakjian): The build passed.
582: [18:05:25] <travis-ci> Change view : https://github.com/TindallRiley/silverstripe-framework/compare/c0b4bd6303d4...73659e87978f
583: [18:05:25] <travis-ci> Build details : http://travis-ci.org/TindallRiley/silverstripe-framework/builds/52775135
584: [18:05:25] * travis-ci has left #silverstripe
585: [18:13:06] * Stomach has joined #silverstripe
586: [18:16:17] <terryapodaca> muskie9: do you know where I can find those modules (spam protector and math spam) for ss 2.4?
587: [18:16:36] <terryapodaca> I loooked on github and can't find them...they all say 3.0 +
588: [18:17:29] <muskie9> https://github.com/silverstripe/silverstripe-spamprotection/tree/0.4
589: [18:17:52] <muskie9> not sure on this one: https://github.com/silverstripe/silverstripe-mathspamprotection/tree/1.0
590: [18:18:20] <muskie9> the 0.4 branch for spam protector should work
591: [18:18:32] <terryapodaca> ahh...i see it
592: [18:18:33] <terryapodaca> thanks
593: [18:18:37] <muskie9> sure
594: [18:18:38] <terryapodaca> I can work with this now
595: [18:21:16] <muskie9> I've got a handful of 2.4.x sites I have to update from time to time and it's near impossible tracking down the legacy modules
596: [18:21:59] <terryapodaca> Yeah, I try to google them...and I next to never try to find branched versions on github...
597: [18:22:51] <terryapodaca> I liked the old way to find modules where they showed the latest versions for each major SS release. They need to try and revamp that.
598: [18:23:26] <muskie9> I think that's the hope for addons.silverstripe.org... but I know that's still a work in progress
599: [18:23:32] * Shrike_Finland has joined #silverstripe
600: [18:23:45] <muskie9> dependent on the module devs too since it runs off of packagist data
601: [18:28:30] * gelignite has joined #silverstripe
602: [18:35:47] * Stomach quit (Quit: zzz)
603: [18:40:08] * wmk has joined #silverstripe
604: [18:43:26] * CodeTrap has joined #silverstripe
605: [18:45:46] * muskie9 is now known as muskie9_afk
606: [18:49:41] <r3v3rb> whats the equivalent of $ThemeDir in a controller function?
607: [18:49:47] <r3v3rb> I’ve forgotten
608: [18:49:50] <r3v3rb> :)
609: [18:52:41] <wmk> is there one?
610: [18:52:51] <r3v3rb> lmao, should just try the obvious really $this->ThemeDir()!
611: [18:52:53] <r3v3rb> hahahaa
612: [18:53:00] <r3v3rb> wmk: there is
613: [18:53:28] <wmk> oh
614: [18:53:38] <wmk> well, it's quite late ;)
615: [18:54:29] <r3v3rb> my theory exactly
616: [18:54:31] <r3v3rb> :)
617: [18:54:47] <wmk> jup, ViewableData has a ThemeDir method
618: [18:58:22] <ss-helper> Re: FullText Filter not working on "Content" - http://www.silverstripe.org/community/forums/general-questions/show/90961#post400534
619: [18:59:29] <r3v3rb> wmk: who’s have thunk it!
620: [18:59:51] * JeremyRoundill has joined #silverstripe
621: [19:00:42] * JeremyRoundill has left #silverstripe
622: [19:00:53] <wmk> thunk? like thought?
623: [19:01:32] * muskie9_afk is now known as muskie9
624: [19:01:52] <r3v3rb> indeed
625: [19:02:28] <r3v3rb> time to push todays() changes to server… then night off
626: [19:02:47] * Chix has joined #silverstripe
627: [19:03:49] * Stomach has joined #silverstripe
628: [19:06:16] <ss-helper> Re: Custom admin url - https://groups.google.com/d/msg/silverstripe-dev/gGVRd0wS0U8/qtZfs3y7oOMJ
629: [19:13:57] <Shrike_Finland> Hi! Have anyone used micmania1 blogger module?
630: [19:14:19] <ss-helper> Silverstripe Advancedwrokflow with DataObject not showing button - http://stackoverflow.com/questions/28817528/silverstripe-advancedwrokflow-with-dataobject-not-showing-button
631: [19:14:21] <Shrike_Finland> Maybe micmania1 byself? :)
632: [19:15:24] <muskie9> Shrike_Finland haven't but think I heard it's going to be adopted as the new standard blog module
633: [19:16:09] <Shrike_Finland> It seems very interesting and thought I try it a bit. Which of the versions are most mature? 2.0?
634: [19:16:50] <muskie9> 1.0 is set to default branch... if you're going off of tags it's 1.0.8
635: [19:17:22] * r3v3rb quit (Quit: r3v3rb)
636: [19:17:30] <Chix> Shrike_Finland, I've used it, what do you need?
637: [19:17:42] <Chix> You could ask micmania1 too. :P
638: [19:17:54] <Chix> I hear he knows a little bit about it
639: [19:18:21] <Stomach> 1.08 is the latest stable
640: [19:18:27] <Shrike_Finland> Chix: that's what I thought :P
641: [19:18:48] <Stomach> is github throwing security errors for anyone else?
642: [19:19:09] <muskie9> Stomach not that I've seen today
643: [19:19:19] <Shrike_Finland> I'm just setting up a 3.1.10 install and put that in. It seems to need the lumberjack?
644: [19:20:01] <muskie9> Shrike_Finland https://github.com/micmania1/silverstripe-lumberjack
645: [19:20:10] <Shrike_Finland> great name :)
646: [19:25:53] * jedateach has joined #silverstripe
647: [19:26:13] * jedateach has left #silverstripe
648: [19:26:35] <Shrike_Finland> hmm. "There are two files containing the "GridFieldSiteTreeEditButton" class"
649: [19:26:48] <Shrike_Finland> blog/forms/gridfield/GridFieldSiteTreeEditButton.php
650: [19:30:47] * muskie9 is now known as muskie9_afk
651: [19:31:49] * muskie9_afk is now known as muskie9
652: [19:33:26] <Shrike_Finland> Seems, that 1.08 does not need lumberjack? Deleting it got the blog running.
653: [19:36:19] * Ryan-Toast has joined #silverstripe
654: [19:51:24] * Ryan-Toast quit (Quit: Ryan-Toast)
655: [19:52:27] * camfindlay has joined #silverstripe
656: [19:52:35] * Ryan-Toast has joined #silverstripe
657: [20:00:30] * stecman has joined #silverstripe
658: [20:04:06] <Cheddam> People in my office are STILL talking about the dress
659: [20:07:42] * antmas has joined #silverstripe
660: [20:07:54] <antmas> morning o/
661: [20:12:39] <camfindlay> morning antmas (^^)/
662: [20:12:53] * glenn-bautista has joined #silverstripe
663: [20:14:45] * veb has joined #silverstripe
664: [20:14:46] * veb quit (Client Quit)
665: [20:15:12] * veb has joined #silverstripe
666: [20:16:04] <antmas> camfindlay: o/
667: [20:17:02] * vebb has joined #silverstripe
668: [20:18:19] <Chix> \o
669: [20:19:39] * antmas waves all around the room o/
670: [20:19:43] <antmas> \o/
671: [20:19:46] <antmas> \o
672: [20:20:49] * veb quit (Ping timeout: 264 seconds)
673: [20:21:41] <antmas> :( so many sick people at work
674: [20:22:03] * Shrike_Finland quit (Quit: Leaving.)
675: [20:22:49] <wmk> Cheddam, ain't it grey=
676: [20:23:36] <Cheddam> wmk: pretty sure it's pink and tangerine actually
677: [20:24:04] * terryapodaca has left #silverstripe
678: [20:24:04] <wmk> even over here ppl talking about it
679: [20:24:29] * vanny quit (Quit: Page closed)
680: [20:25:58] <Chix> Yo! Where's the docs page for getting config variables in PHP?
681: [20:30:36] <Ryan-Toast> Can you get pages from another subsite?
682: [20:30:50] <Ryan-Toast> i.e loop through all subsites and get their pages?|
683: [20:30:58] <Chix> Should be able to.
684: [20:31:07] <Chix> They're SiteTrees, right?
685: [20:32:15] <Ryan-Toast> Yeah, pretty sure.
686: [20:32:22] * antmas quit (Ping timeout: 246 seconds)
687: [20:34:13] * kinglozzer has joined #silverstripe
688: [20:34:31] <Chix> Yeah dude
689: [20:34:40] <Chix> Looks like you should be able to Subsite::get() or whatever
690: [20:34:55] <Chix> Loop over those, then loop over the SiteTree objects which belong to that
691: [20:35:12] <Ryan-Toast> Chix: I’ll give that a go, cheers.
692: [20:36:41] <wmk> Ryan-Toast, there is Subsite::disable_subsite_filter()
693: [20:36:50] <kinglozzer> [09:25:58] <Chix> Yo! Where's the docs page for getting config variables in PHP?
694: [20:36:52] <wmk> then you can get all pages
695: [20:36:55] <kinglozzer> http://doc.silverstripe.org/en/developer_guides/configuration/configuration/ ^^
696: [20:37:04] <Ryan-Toast> wmk: can I use that to get specific pageTypes?
697: [20:37:07] <Chix> Cheers kinglozzer :)
698: [20:37:16] <wmk> Ryan-Toast, it disables subsite's augmentsql
699: [20:37:22] <wmk> so you can just filter for it
700: [20:37:37] <wmk> e.g. MyPage::get()->filter(...)
701: [20:37:47] <wmk> don't forget to enable it afterwards
702: [20:38:01] <Ryan-Toast> wmk: Ah, right. That sounds good :)
703: [20:38:08] <Ryan-Toast> wmk: Cheer.
704: [20:39:10] <wmk> Ryan-Toast, https://github.com/silverstripe/silverstripe-subsites/blob/1.0/code/model/Subsite.php#L221
705: [20:40:05] <wmk> there is no enable method, just pass false as an argument to the same function
706: [20:40:48] <Ryan-Toast> wmk: Aww yiss, that worked :D Cheers.
707: [20:40:48] * antmas has joined #silverstripe
708: [20:41:10] <wmk> sadly there are not autogenerated docs for these modules :(
709: [20:41:19] * zippy has joined #silverstripe
710: [20:41:28] <zippy> Stomach: got those stains out of your couch yet?
711: [20:41:30] <antmas> zippy: o/
712: [20:41:35] <zippy> antmas: o/
713: [20:41:41] <Stomach> zippy, waaaaat
714: [20:41:53] * camfindlay quit (Quit: camfindlay)
715: [20:41:55] <zippy> Stomach: Saturdays game... sheeeeeeeeettt
716: [20:42:02] <Stomach> hahahaha
717: [20:42:08] * wracu has joined #silverstripe
718: [20:42:11] <Stomach> it was definitely head in hands material
719: [20:42:13] <Ryan-Toast> wmk: I thought this was going to be a nfightmare, but you’ve saved my life.
720: [20:42:45] <wmk> Ryan-Toast, well... Subsites can be a major pita
721: [20:42:56] <Ryan-Toast> wmk: They can indeed.
722: [20:43:07] * wmk remembers his last gyros was also served with a pita
723: [20:43:15] <Ryan-Toast> wmk: Especially when someone hacks together a site like this and there are a million files everywhere.
724: [20:43:21] <antmas> zippy: I dropped my stubbie on my kb during that last 5 mins
725: [20:43:38] <wmk> Ryan-Toast, ?? did you take over a project?
726: [20:44:37] * camfindlay has joined #silverstripe
727: [20:44:47] <Ryan-Toast> wmk: Yeah, but not from SS
728: [20:45:05] <Ryan-Toast> They had it bulkt, then they had a Jr “maintain” it for a year.
729: [20:46:40] <adrexia> that's a bit harsh. Giving an junior a subsite's site to maintain. I hope they had support?
730: [20:47:12] <Ryan-Toast> Doesn’t look like it.
731: [20:47:15] <kinglozzer> adrexia: Maybe it's an initiation?
732: [20:47:18] <adrexia> :-/
733: [20:47:22] <antmas> lol
734: [20:47:30] <adrexia> I think it's plain abusive :P
735: [20:47:42] <antmas> I was given 4 jword and 1 magento site as my 'initation'
736: [20:47:50] <antmas> sites*
737: [20:48:10] <antmas> I think that's what broke me and made me think twice about my life choices
738: [20:48:58] <adrexia> I do think you are supposed to look after juniors and make them not regret tehir life choices :P
739: [20:49:43] <antmas> adrexia: +1
740: [20:51:05] <Ryan-Toast> antmas: I had a few X-Cart sites.
741: [20:51:10] <Ryan-Toast> I still have nightmares about it.
742: [20:51:35] * antmas looks up xcart
743: [20:52:04] <antmas> oh god that thing
744: [20:52:50] <antmas> Ryan-Toast: did you end up selling your cbr?
745: [20:53:17] <kinglozzer> Looks like I had it easy... a procedural custom built CMS and SilverStripe 3.0+ :P
746: [20:53:33] * muskie9 is now known as muskie9_afk
747: [20:54:11] <wmk> kinglozzer, procedural like spaghetti code?
748: [20:55:05] <kinglozzer> wmk: Yeah, pretty much. It was a case of “guess which file the function’s in”... it could be in model/, helpers/, config/...
749: [20:55:37] <kinglozzer> Though I managed to fumble my way around!
750: [20:55:44] <wmk> oh, without a good editor / IDE it's ....
751: [20:56:04] <wmk> better no more horror stories before bed time
752: [20:56:24] * muskie9_afk is now known as muskie9
753: [20:56:41] <zippy> kinglozzer: your up https://github.com/silverstripe/silverstripe-framework/pull/3934 :)
754: [20:57:53] <antmas> zippy: nice work :)
755: [20:58:05] <zippy> zippy: wasn't me, is simon_w|air 's
756: [20:58:21] <zippy> lol what a dozer..
757: [20:58:23] <zippy> antmas: ^
758: [20:58:36] <antmas> oh
759: [20:58:38] <antmas> hahahah
760: [20:58:42] <antmas> dat credit doe
761: [20:59:04] * kinglozzer hides
762: [20:59:18] <zippy> kinglozzer: not need to hide yet, there is a bigger change coming ;-)
763: [20:59:37] <kinglozzer> I was gonna suggest waiting for Hamish’s input, as he was the person who originally queried memory usage
764: [20:59:55] <kinglozzer> zippy: What’s that? :D
765: [20:59:56] <antmas> zippy: I meant for the testing at least
766: [20:59:58] <antmas> motivation
767: [21:00:06] <zippy> kinglozzer: he was after tests, there is now tests
768: [21:00:34] * camfindlay quit (Ping timeout: 255 seconds)
769: [21:01:54] <zippy> lol chrome...
770: [21:02:07] <zippy> "Yourbrowser does not currently recognize any of the video formats available"
771: [21:02:26] <antmas> google hangout up?
772: [21:02:29] <zippy> Silverstripe core google event is up https://plus.google.com/events/ce712pt122h2j1d4mm7hipk12a0
773: [21:02:30] <zippy> yeap
774: [21:02:55] * antmas watching
775: [21:05:02] * Colin[pi] has joined #silverstripe
776: [21:06:02] <Colin[pi]> moin moin o/
777: [21:07:50] * camfindlay has joined #silverstripe
778: [21:09:48] <micmania1> I think i’m going to change my 2.0 branch of blog module to the do-not-use branch :/
779: [21:12:22] <zippy> kinglozzer: push for 4.0 to 5.4
780: [21:13:55] <antmas> Colin[pi]: WHERE WERE YOU YESTERDAY
781: [21:13:57] <antmas> ?
782: [21:13:58] <antmas> hmmm
783: [21:14:04] <antmas> O.O
784: [21:15:38] <Stomach> camfindlay NO COMMENT
785: [21:16:01] * chillu_23 has joined #silverstripe
786: [21:16:20] <Colin[pi]> antmas: THE BEACH DMANIT
787: [21:16:32] <Colin[pi]> antmas: and then driving home :P
788: [21:16:54] * antmas approves
789: [21:17:21] <Colin[pi]> decided to stay on Sun night as well as it was kinda a long drive just for two nights ;P
790: [21:18:08] * UndefinedOffset quit (Quit: Leaving.)
791: [21:18:48] <zippy> simon_w|air: your up :)
792: [21:28:03] <Ryan-Toast> antmas: I don’t leave for another 6 months.
793: [21:28:09] <Ryan-Toast> antmas: so no :P
794: [21:28:12] * CodeTrap quit (Ping timeout: 245 seconds)
795: [21:28:20] <antmas> Ryan-Toast: ah, thought it was sooner
796: [21:31:14] * novaweb has joined #silverstripe
797: [21:31:50] <simon_w|air> zippy, my up?
798: [21:32:22] <zippy> simon_w|air: they were discussing that PR on the google hang out. Sounds like going to set a memory limit on travis, and then merge it so it gets some extra testing
799: [21:33:55] * UncleCheese has joined #silverstripe
800: [21:34:04] <simon_w|air> zippy, took their time
801: [21:34:14] <zippy> simon_w|air: it's a slow process
802: [21:36:54] <kinglozzer> PHPDoc link: https://github.com/silverstripe/silverstripe-framework/issues/3875
803: [21:37:07] <kinglozzer> ( & https://github.com/silverstripe/silverstripe-framework/pull/3698)
804: [21:39:03] <antmas> who's who on this hangout?
805: [21:39:09] <antmas> I can see sminee and cam
806: [21:39:12] <antmas> and chillu
807: [21:39:32] <Stomach> willr > willmorgan > chillu > cam > sam > lozzer > dhensby
808: [21:39:42] <simon_w|air> kinglozzer, PHPDoc is long dead
809: [21:39:48] * veb has joined #silverstripe
810: [21:39:58] <antmas> Stomach: :)
811: [21:40:10] <kinglozzer> simon_w|air: Got an alternative suggestion I can bring up?
812: [21:41:03] <simon_w|air> kinglozzer, phpDocumentor. Being the project that superseded PHPDoc
813: [21:41:11] <simon_w|air> Even grabbed its domain name
814: [21:43:22] * vebb quit (Ping timeout: 240 seconds)
815: [21:46:37] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
816: [21:48:08] * vebb has joined #silverstripe
817: [21:50:57] <antmas> omg no spaces pls
818: [21:50:59] <antmas> tabs ftw
819: [21:51:11] <micmania1> spaces suck arse
820: [21:51:19] <Stomach> spaces!
821: [21:51:39] <antmas> re Colin[pi] http://evadeflow.com/wp-content/uploads/2011/03/TabsSpacesBoth.png
822: [21:51:40] <micmania1> saynotospaces!
823: [21:52:01] * veb quit (Ping timeout: 244 seconds)
824: [21:56:36] <Stomach> you get used to spaces :P
825: [21:57:04] <micmania1> I used to use them. I don’t see the point. Just means you have to press delete more often in crappy editors
826: [21:57:33] <Colin[pi]> shows over folks
827: [21:57:39] <antmas> what is the argument FOR spaces?
828: [21:58:05] <simon_w|air> Conformity
829: [21:58:49] <antmas> but why spaces?
830: [21:58:53] <antmas> you can conform to tabs
831: [21:59:53] <simon_w|air> Because other frameworks that SS is trying to copy already use spaces
832: [22:00:04] * kinglozzer quit (Remote host closed the connection)
833: [22:00:13] * chillu_23 quit (Quit: chillu_23)
834: [22:00:23] * kinglozzer has joined #silverstripe
835: [22:01:31] <Stomach> micmania1 - get a non crappy editor :P
836: [22:02:15] <micmania1> Stomach: that doesn’t help when a previous dev has set 1 tab = 2 spaces and you have it set differently.
837: [22:02:35] <Stomach> thats why you have a standard for it :P
838: [22:02:36] <kinglozzer> .editorconfig
839: [22:02:45] <kinglozzer> ;)
840: [22:02:45] <micmania1> Stomach: yeah, they’re called tabs :p
841: [22:02:59] <micmania1> 1 tab = 1 tab
842: [22:03:07] <Stomach> 1 tab = 4 spaces
843: [22:03:09] <Stomach> :D
844: [22:03:16] <micmania1> unless its set to 2 spaces
845: [22:03:32] <micmania1> Why have variables when you can have constants
846: [22:03:37] * antmas fights the power
847: [22:03:41] * antmas uses tabs
848: [22:04:09] <Ryan-Toast> How can you get the link of a subsite by it’s ID?
849: [22:04:30] <micmania1> Ryan-Toast: Subsite::get()->byId($id); ?
850: [22:04:37] <micmania1> Then link? or w/e
851: [22:05:48] <Ryan-Toast> micmania1: It doesn’t tlike that :(
852: [22:07:01] <wmk> well, if you have the Subsite Object you can run ->domain() to get the primary domain of this subsite
853: [22:07:42] <wmk> see SiteTreeSubsites alternateAbsoluteLink()
854: [22:07:46] <Ryan-Toast> wmk: interesting that the base Subsite seems to be returning a non-object with Subsite::currentSubsite()
855: [22:08:03] * camfindlay quit (Quit: camfindlay)
856: [22:08:08] <wmk> really? what SubsiteID does the base Subsite have?
857: [22:08:17] <Ryan-Toast> 0
858: [22:08:18] * ss-helper quit (Remote host closed the connection)
859: [22:08:22] <wmk> ouch
860: [22:08:32] <Ryan-Toast> Sigh.
861: [22:08:41] <micmania1> 0 means you’re on the main site
862: [22:08:56] <wmk> then i only have subsites, no main site in my setup
863: [22:09:05] <Ryan-Toast> Yarp, but it’s still a “sub-site” is it not?
864: [22:09:27] <wmk> Ryan-Toast, if there is no Subsite for it defined in DB... hmm
865: [22:09:50] <wmk> look at SiteTree table, there is SubsiteID defined for each page
866: [22:10:19] <Ryan-Toast> wmk: may just hack something instead.
867: [22:10:29] <wmk> hmm. there is a isMainSite() method...
868: [22:15:56] <micmania1> Ryan-Toast: nope, its not a subsite
869: [22:16:02] * scpi quit (Quit: scpi)
870: [22:16:04] <micmania1> It can be. But I think by default its not.
871: [22:17:21] <EasyCo> Morning getns
872: [22:17:24] <EasyCo> *gents
873: [22:17:46] <Ryan-Toast> micmania1: Hmm, is there a way to tell what subsite a page is in?
874: [22:18:19] <micmania1> calling $this->Subsite() on the page should work
875: [22:18:29] <micmania1> and return null if its the main site
876: [22:18:32] <Ryan-Toast> micmania1: Cool, I’ll try that.
877: [22:18:53] * vebb quit (Quit: veb-irc: quit)
878: [22:19:10] * camfindlay has joined #silverstripe
879: [22:19:20] <antmas> EasyCo: o/
880: [22:19:58] <EasyCo> \o
881: [22:20:13] * wmk quit (Ping timeout: 264 seconds)
882: [22:20:18] * camfindlay quit (Client Quit)
883: [22:22:25] <kinglozzer> g'night all
884: [22:22:36] * kinglozzer quit ()
885: [22:26:37] * camfindlay has joined #silverstripe
886: [22:29:55] * camfindlay quit (Client Quit)
887: [22:31:42] * camfindlay has joined #silverstripe
888: [22:31:52] <Chix> Can I put an anchor in CMSFields in place of a FormField?
889: [22:36:16] <micmania1> Chix: LiteralField
890: [22:37:00] <Chix> micmania1, Cheers
891: [22:43:21] <Ryan-Toast> micmania1: That worked Now I just need to query the mainsite URL somehow.
892: [22:43:36] <micmania1> Director::baseURL()?
893: [22:44:42] <Ryan-Toast> micmania1: Nah, that returns the subsite link
894: [22:53:37] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
895: [22:57:29] * camfindlay quit (Quit: camfindlay)
896: [23:01:06] <Ryan-Toast> micmania1: fuck it, chucking a “domain name” field in the Siteconfig to set it.
897: [23:04:52] <micmania1> Ryan-Toast: so what does Director::baseURL actually return when not on a subsite?
898: [23:05:00] <Ryan-Toast> micmania1: null
899: [23:05:17] <Ryan-Toast> I mean on a non subsite it returns the url, but on a subsite it’s null
900: [23:05:29] <Ryan-Toast> absoluteBaseURL works for some reason though
901: [23:05:33] <micmania1> How about absoluteBaseURL?
902: [23:05:40] <micmania1> yeah, that
903: [23:05:40] <Ryan-Toast> ^
904: [23:05:49] <Ryan-Toast> still returns the subsite url though.
905: [23:06:07] <micmania1> even when not on a subsite?
906: [23:06:37] <Ryan-Toast> micmania1: absoluteBaseURL always works, but it’s reletive to the subsite/main site
907: [23:06:47] <Ryan-Toast> baseURL doesn’t work on subsites.
908: [23:06:56] <Ryan-Toast> well Director::baseURL
909: [23:10:23] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
910: [23:11:44] <UncleCheese> how does git commit --amend work?
911: [23:11:53] <UncleCheese> i want to merge my last commit into the current one
912: [23:12:01] <UncleCheese> git commit --ammend -m "new stuff"
913: [23:12:34] <UncleCheese> don't mind me, i just don't know how to spell "amend," apparently
914: [23:16:16] <Stomach> haha UncleCheese
915: [23:16:26] <Stomach> then git push origin stupid-bug-hates-me --force
916: [23:16:27] <Stomach> :D
917: [23:17:54] * camfindlay has joined #silverstripe
918: [23:20:48] <simon_w|air> I miss trailing commas :(
919: [23:28:07] <Colin[pi]> I'm sure they miss you too, simon_w|air ;__;
920: [23:28:19] <simon_w|air> Everyone misses simon_w|air!
921: [23:32:32] <Colin[pi]> *sound of crickets*
922: [23:32:33] <Colin[pi]> ;P
923: [23:33:16] <adrexia> <antmas> omg no spaces pls
924: [23:33:18] <adrexia> this ^
925: [23:33:54] <simon_w|air> Whose suggestion was it?
926: [23:34:03] <adrexia> I work on projects that use spaces. I sometiems convert to tabs so I can actually see what the blocks are, and convert back again
927: [23:34:24] <adrexia> not sure - I am listening to the rest of the hangout in the background - but missed how it started
928: [23:35:35] <adrexia> spaces also seem to result in more mixed whitespace - particularly if the rule is 2 spaces. People just can't see them, so you get 3 in some places or 1 in otehrs
929: [23:36:36] <Colin[pi]> adrexia: and hence you end up with a clusterfuck of indentation
930: [23:36:41] <adrexia> yep
931: [23:37:08] <Colin[pi]> I mean at least with tabs and a good editor, you can change the indentation width
932: [23:37:30] <adrexia> also because other php projects do something seems like a good reason not to, imo. :P
933: [23:38:16] <adrexia> I think perhaps with some editors spaces are easier?
934: [23:38:41] <Colin[pi]> adrexia: mm
935: [23:38:58] <Colin[pi]> but I think tabs offer greater flexibility
936: [23:39:21] <Colin[pi]> and really if your editor is having a spaz over choice of indentation, you need a better editor
937: [23:39:39] <adrexia> I agree. plus the code is nicer to look at. and in my experience with projects that use spaces, they tend to create a mess
938: [23:40:03] <antmas> were tabs not created for the sole purupose of indentation? and spaces are just er... spaces between words?
939: [23:40:08] <adrexia> But if it has to be spaces - I vote for 4 spcaes
940: [23:40:15] <adrexia> antmas - yes
941: [23:40:23] <adrexia> but I think Vim prefers spaces?
942: [23:40:32] <simon_w|air> Vim works fine with tabs
943: [23:40:37] <adrexia> also - size of file is smaller with tabs ;)
944: [23:40:46] <adrexia> 1 char vs 4
945: [23:41:03] <adrexia> or, heavens forbid, 2
946: [23:41:03] * mahfuz has joined #silverstripe
947: [23:41:05] <antmas> my understanding was that 99% of editors don't mind tabs
948: [23:41:17] <antmas> and MORE *don't like* spaces
949: [23:41:21] <Colin[pi]> antmas: these days, pretty much yeah
950: [23:41:31] <adrexia> Spaces are old school
951: [23:41:40] <adrexia> php needs to move with the times ;0
952: [23:41:41] <adrexia> ;)
953: [23:41:45] <Colin[pi]> also, tabs to indent start of line, and then spaces to indent WITHIN the line, i.e. like lining up variables
954: [23:41:54] <adrexia> tghough, to be fair, js standards also say spaces
955: [23:41:56] <Colin[pi]> seems to be the golden urle
956: [23:41:57] <Colin[pi]> *rule
957: [23:42:07] <adrexia> yep
958: [23:42:11] <novaweb> *shower
959: [23:42:20] <Colin[pi]> novaweb: :P
960: [23:42:21] <adrexia> lol
961: [23:43:00] <antmas> Colin[pi]: the want is getting real http://jalopnik.com/the-2016-honda-civic-type-r-is-310-hp-worth-of-turbo-vt-1688953678
962: [23:43:20] <Colin[pi]> antmas: hnnnnngggh
963: [23:43:29] <Colin[pi]> would love even just a test drive
964: [23:43:50] <antmas> I took the 2015 wrx sti for a test
965: [23:44:04] <antmas> if they're free, do it :D
966: [23:44:07] <Colin[pi]> wait wait... 2016 now?
967: [23:44:08] <Stomach> lol @ Ryan-Toast and his love of beer :D
968: [23:44:19] <Ryan-Toast> Stomach: :P
969: [23:44:41] <antmas> Colin[pi]: that's what they call it, but it will be out this year no doubt
970: [23:45:12] <Colin[pi]> antmas: also they must have some pretty special handling tricks because that amount of power in an FWD is downright frightening
971: [23:45:39] <antmas> Colin[pi]: kinda why Ford is doing AWD http://jalopnik.com/2016-ford-focus-rs-this-is-your-320-hp-awd-monster-ha-1683323602
972: [23:45:46] <Colin[pi]> turn off stability assist and pants will be shat I bet
973: [23:45:58] <adrexia> heh. I want to vote down suggestions on user voice
974: [23:46:00] <adrexia> :P
975: [23:46:14] <Colin[pi]> adrexia: anarchist!
976: [23:46:22] <adrexia> http://silverstripe.uservoice.com/forums/251266-new-features/suggestions/6478017-themes-should-be-more-powerful
977: [23:46:34] <adrexia> having worked with code bases that do this I think its a horrible idea
978: [23:46:34] <Colin[pi]> antmas: mm awd would be less pants browning
979: [23:46:43] <adrexia> it makes it really difficult to debugf
980: [23:47:09] <antmas> adrexia: everything about that I don't like
981: [23:47:16] <Colin[pi]> iConcur
982: [23:47:18] <adrexia> define codelss pagetypes seems vaguely ok-ish
983: [23:47:27] <adrexia> but theme inheritance...eww
984: [23:47:38] <Colin[pi]> yeah that's um... I don't like it
985: [23:47:52] <antmas> why would you ever need to inhereit from another theme?
986: [23:47:59] <antmas> inherit*
987: [23:48:03] <adrexia> people use it to define a base theme
988: [23:48:05] <Colin[pi]> antmas: well first of all, SS actually needs *themes*
989: [23:48:08] <adrexia> its common in drupal land
990: [23:48:38] <antmas> the idea of more than one 'theme' in a project just seems so wrong to me
991: [23:48:43] * Hailwood has joined #silverstripe
992: [23:48:46] <adrexia> but you can do the same thing with templates by putting them in mysite or a module somewhere
993: [23:48:49] <Colin[pi]> seems to me SS lately is trying to be a lot of other things except SS
994: [23:49:09] <Ryan-Toast> Stomach: they don’t even ask for Id, you just tick the “I am 18” box.
995: [23:49:10] <adrexia> I wonder
996: [23:49:25] <Stomach> Ryan-Toast - fuuun :D
997: [23:49:41] <Ryan-Toast> Stomach: not that it matters, but I wish they had that when I was 16.
998: [23:49:58] <adrexia> antmas - there is a use case for it
999: [23:50:23] <adrexia> but drupal-land also horribly abuses the inheritance feature of drupal
1000: [23:50:36] <adrexia> you can have different themes applied to different parts of the site
1001: [23:50:45] <antmas> Ryan-Toast: Stomach WHAT IS THIS
1002: [23:50:48] <adrexia> like - on a page by page basis
1003: [23:50:53] * antmas saw beer and scrambled
1004: [23:50:59] <Colin[pi]> adrexia: comes back to the complexity vs convenience issue really
1005: [23:51:17] <Colin[pi]> adrexia: I kinda like how SS themes/templates are simple as
1006: [23:51:23] <Ryan-Toast> antmas: Countdown delivery.
1007: [23:51:27] <adrexia> I think it something needs to be sahred, you copy it somewhere it can be shared :)
1008: [23:51:29] <antmas> adrexia: yeah I can see the use case, but maintenance issues should always outweight that
1009: [23:51:32] <adrexia> Colin[pi], me too
1010: [23:51:41] <antmas> Ryan-Toast: ah yes, have done that
1011: [23:51:48] <antmas> Ryan-Toast: they asked for ID at the door
1012: [23:51:51] <adrexia> complex enough to do what I want, but straight forward and not spagetti like
1013: [23:51:57] <Colin[pi]> mm
1014: [23:52:10] <adrexia> antmas I agree
1015: [23:52:17] <Ryan-Toast> antmas: actually?
1016: [23:52:30] <antmas> Ryan-Toast: mmm, this was about 4 months ago, ish?
1017: [23:53:41] <antmas> Ryan-Toast: what's the issue with that though? or is it just lol that they don't ask at online checkout?
1018: [23:54:09] * spekulatius quit (Quit: Leaving)
1019: [23:54:32] * spekulatius has joined #silverstripe
1020: [23:54:48] <Ryan-Toast> antmas: nothing wrong with it :)
1021: [23:55:08] <antmas> what's the charge for delivery?
1022: [23:55:19] <Ryan-Toast> antmas: it scales.
1023: [23:55:54] <Ryan-Toast> Up to $99.99 $15.75
1024: [23:55:55] <Ryan-Toast> $100.00 to $199.99 $13.75
1025: [23:55:56] <Ryan-Toast> $200.00 to $249.99 $11.75
1026: [23:55:57] <Ryan-Toast> $250.00 and over $8.75
1027: [23:56:19] <antmas> ah yip, I think I got like $250 and remember it being pretty cheap like that
1028: [23:56:32] <Ryan-Toast> Why do I even leave the house?
1029: [23:57:17] <antmas> countdown should use drones for smaller deliveries and make em free :P
1030: [23:57:39] <antmas> surely they could carry a 2kg rigger :D
1031: [23:59:01] <antmas> heh, amazon's drones can carry 2.5 kg :D

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