#silverstripe IRC Log

IRC log for 15 January 2015

All timestamps are in UTC.

1: [00:00:34] * willr has joined #silverstripe
2: [00:01:35] * travis-ci has joined #silverstripe
3: [00:01:35] <travis-ci> silverstripe/silverstripe-cms#1111 (3.1.9 - ee4639e : Damian Mooyman): The build passed.
4: [00:01:35] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.9
5: [00:01:35] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/47056689
6: [00:01:35] * travis-ci has left #silverstripe
7: [00:06:15] <irogue> [12:26] <antmas> anyone used paradigm PCs for bits?
8: [00:06:22] <irogue> they're okay, been around for ages
9: [00:06:31] <irogue> like... were one of the first online stores in nz
10: [00:06:42] <irogue> and have barely updated their site since :P
11: [00:08:47] <Stomach> yeah I've used them lots
12: [00:08:51] <Stomach> over the past like 12 years hahaha
13: [00:09:31] <Ryan-Toast> antmas: pcpartpicker you noob.
14: [00:11:51] <irogue> I mostly computerlounge or playtech on major stuff, pbtech for little shit I don't expect to ever have to try to return
15: [00:15:28] * antmas quit (Ping timeout: 246 seconds)
16: [00:16:27] <hailwood> I have a Business => many_many => Service, at this point I only want users to be able to select a list of services so I have removed the default gridfield and instead am using a ListboxField which is working great, the only issue I have is that when another field changes (CategoryID) then I want to remove all selected options from the the ListBoxField and replace the options with those from the new category. can someone please point me in the
17: [00:16:28] <hailwood> right direction
18: [00:17:25] <MichalKleiner> sounds like entwine needed
19: [00:17:29] <MichalKleiner> or page reload
20: [00:18:00] <Stomach> hailwood - either that or use the dependant fields module or whatever its called
21: [00:18:14] <Stomach> there is this one
22: [00:18:14] <Stomach> https://github.com/sheadawson/silverstripe-dependentdropdownfield
23: [00:18:50] <Stomach> https://github.com/unclecheese/silverstripe-display-logic
24: [00:18:51] <Stomach> or that one
25: [00:20:44] <MichalKleiner> mm, put those in my SS bookmarks, thanks Stomach ;-)
26: [00:21:06] <Stomach> I spend too much time trawling github :P
27: [00:23:30] <hailwood> Stomach, the silverstripe-depedentdropdownfield looks pretty close to what I need, If I was to copy the code (https://github.com/sheadawson/silverstripe-dependentdropdownfield/blob/master/code/DependentDropdownField.php) and instead make it extend ListBoxField rather than DropDownField does it look like it should all go smooth?
28: [00:23:47] <Stomach> hailwood - yeap
29: [00:24:01] <Stomach> listbox is just an extension of dropdown so should be gravy
30: [00:24:14] <hailwood> That was my thinking :)
31: [00:24:28] <Stomach> although the javascript is pretty specific to dropdowns
32: [00:24:52] <Stomach> so might be easy to roll with display logic
33: [00:25:15] <Stomach> ss23 - 3.1.9 is out
34: [00:25:17] <Stomach> change the topic!
35: [00:26:03] <hailwood> Stomach, the issue with displaylogic is that I have ~50 categories each with ~120 services, I don't really want to output them all to the page ;)
36: [00:26:08] * antmas has joined #silverstripe
37: [00:26:21] <Stomach> yeah fair enough :D
38: [00:27:50] <antmas> pcpartpicker is great
39: [00:28:08] <antmas> managed to get my parts mostly from all 1 shop
40: [00:28:20] <Stomach> hailwood - I would probably just write my own which does specifically what you want, it seems easier :P
41: [00:30:24] <zippy> Stomach: was a rc for 2 days?
42: [00:30:55] <Stomach> yeah bit short eh?
43: [00:31:43] <zippy> tbh, I never use a rc.
44: [00:31:47] <Stomach> neither
45: [00:32:09] <Stomach> because we push stuff out to production so quickly its just a disaster waiting to happen
46: [00:33:06] <zippy> ss23: whats the process of rc to production? Is it just '48 hours no isses' or is there a process?
47: [00:33:29] <zippy> brendon mccullum wearing odd shoes..
48: [00:35:18] * novaweb has joined #silverstripe
49: [00:38:05] * travis-ci has joined #silverstripe
50: [00:38:06] <travis-ci> silverstripe/silverstripe-framework#3884 (3.1 - 50d80e5 : Damian Mooyman): The build passed.
51: [00:38:06] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/220bdf342c64...50d80e5854cb
52: [00:38:06] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47061591
53: [00:38:06] * travis-ci has left #silverstripe
54: [00:38:33] <antmas> what about these guys? http://1stwave.co.nz/catalog/
55: [00:40:21] <zippy> antmas: if you pay via cc you're pretty safe..
56: [00:40:46] <antmas> zippy: true, good point
57: [00:41:42] <zippy> you can always order, then ring them after an hour to confirm they got the order and check when items will be shipped. Or even ring before hand to check they have the items in stock
58: [00:42:00] <antmas> zippy: I plan to do just that :)
59: [00:42:22] <antmas> between them and Paradigm is $43 for my list
60: [00:44:09] * aragonne has joined #silverstripe
61: [00:49:12] * Colin[pi] has joined #silverstripe
62: [00:50:29] <Colin[pi]> antmas: I got a clay bar kit
63: [00:50:35] <Colin[pi]> hot damn they're expensive
64: [00:54:07] <zippy> php 5.6 just sounds like a version so far in the future..
65: [00:54:38] * aragonne quit (Quit: aragonne)
66: [00:56:39] <zippy> jesus I get distracted
67: [00:59:22] <antmas> Colin[pi]: ? what did you pay for it?
68: [00:59:45] <antmas> normally, you can just buy a block of the clay for like, $20
69: [01:00:19] <Colin[pi]> antmas: get the kit with polish and cloths, $65
70: [01:00:22] <Colin[pi]> *got
71: [01:00:52] <antmas> Colin[pi]: oh right
72: [01:00:54] <Colin[pi]> that was the only thing they had, so gets me up and running anyway
73: [01:01:04] <antmas> yeah that sounds about right then
74: [01:01:50] <antmas> Colin[pi]: clay bar doesn't need much pressure applied at all btw, just friction
75: [01:02:02] <antmas> and don't drop it on the concrete :P
76: [01:02:04] <Colin[pi]> mm hmm, it says just finger pressure
77: [01:02:12] <Colin[pi]> and yeah I gathered that :)
78: [01:02:16] <antmas> :)
79: [01:02:51] <Colin[pi]> antmas: this one: http://www.autoglym.com.au/products/products/surface-detailing-clay-kit-1
80: [01:03:48] <antmas> Colin[pi]: perfect
81: [01:04:18] <antmas> I have to do all that late at night because no garage :(
82: [01:04:31] <Colin[pi]> I have a carport... will do early on the weekend
83: [01:05:13] <irogue> [13:38] <antmas> what about these guys? http://1stwave.co.nz/catalog/
84: [01:05:23] <irogue> appears to be one chinese guy operating out of his house
85: [01:05:58] <irogue> just means that if something dies and he's no longer around, warranty claim will be fun
86: [01:06:06] <antmas> irogue: lol
87: [01:06:09] <Colin[pi]> irogue: there's quite a lot of sites operating like that
88: [01:06:20] <irogue> yep
89: [01:06:24] <antmas> yeah I'm just going to winge at paradigm to match their price
90: [01:06:27] <irogue> i know, i used to be one of them :P
91: [01:06:33] <Colin[pi]> irogue: haha oic
92: [01:06:37] <antmas> I'll probably drop the cooler too as I don't really need it tbh
93: [01:07:23] <zippy> antmas: hows the home hunting going?
94: [01:08:06] <antmas> zippy: not bad, although we're waiting on kiwisaver stuff to get finalised and then we look to buy in probably 4-5 months time
95: [01:08:40] * elliot_ quit (Ping timeout: 246 seconds)
96: [01:10:46] * ghostcheese quit (Ping timeout: 246 seconds)
97: [01:18:24] * travis-ci has joined #silverstripe
98: [01:18:24] <travis-ci> silverstripe/silverstripe-framework#3885 (3 - cee7adc : Elvinas L): The build has errored.
99: [01:18:24] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/218ef0b599e9...cee7adc12c9a
100: [01:18:24] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47065568
101: [01:18:24] * travis-ci has left #silverstripe
102: [01:26:44] <Stomach> THE WEATHER IS TOO DAMN HOT
103: [01:27:37] <antmas> not that bad down here today
104: [01:27:47] <Stomach> i hates it
105: [01:27:50] <antmas> I'd honestly be happy with some damn rain though
106: [01:28:29] <Stomach> yeah me too
107: [01:28:41] <Stomach> go dance in it and smell the asphalt
108: [01:30:25] * aragonne has joined #silverstripe
109: [01:34:07] * UncleCheese has joined #silverstripe
110: [01:34:20] * UncleCheese quit (Client Quit)
111: [01:34:50] <zippy> Stomach: mmmm asphalt after a rain shower...
112: [01:34:57] <zippy> antmas: it is too hot..
113: [01:35:03] <zippy> I am going to have to find me some aircon
114: [01:35:58] <antmas> zippy: today is nothing dude
115: [01:36:33] <antmas> and no rain all this weekend either :|
116: [01:37:19] * ss23 changed the topic to 'Welcome to #silverstripe | Ask your questions! | IRC Logs: http://ss.org.nz/logs | Feature requests: http://ss.org.nz/features | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable releases: http://ss.org.nz/3.1.9 and http://ss.org.nz/3.0.11 | Release Archive: http://www.silverstripe.org/release-archive/'
117: [01:37:30] <ss23> help
118: [01:37:32] <ss23> simon_w isn't here
119: [01:37:36] <ss23> Lets pretend the link works
120: [01:37:41] <ss23> YAY NEW VERSION OF SILVERSTRIPE!
121: [01:37:58] <ss23> zippy: No clue about release to prod, I'm not on core remember
122: [01:37:59] <ss23> :O
123: [01:38:20] <Colin[pi]> just mash the keyboard.. what's the worst that could happen?
124: [01:38:37] <ss23> I just did that IRL
125: [01:38:42] <ss23> My team is like "omfg ur new keyboard is loud
126: [01:38:43] <ss23> "
127: [01:38:50] <antmas> Colin[pi]: I assume that's what they did when ss.org got re released :P
128: [01:39:01] <zippy> fooking clickity keyboards
129: [01:39:05] <Colin[pi]> OOOH GONNA NEED SOME CREAM FOR THAT BURB
130: [01:39:07] <Colin[pi]> *BURN ALSO
131: [01:39:14] <Colin[pi]> ;D
132: [01:39:16] <antmas> :D
133: [01:39:19] <zippy> mechanical keyboard hipsters
134: [01:39:25] <micmania1> zippy: this release was a security release. Not sure why there was a rc tbh
135: [01:39:28] <zippy> ss23: where should the link redirect to?
136: [01:39:41] <Colin[pi]> zippy: I can't go back, membrane keyboards feel like I'm typing on pudding now
137: [01:39:49] <ss23> Um
138: [01:39:52] <zippy> micmania1: the release notes also have some features and bunch of bug fixes...
139: [01:39:53] <antmas> lol pudding
140: [01:39:58] <ss23> The same place as the 3.0.11 but the other version
141: [01:40:42] <micmania1> zippy: wouldn’t have been my way of doing it :(
142: [01:40:54] <zippy> micmania1: http://beta.doc.silverstripe.org/en/changelogs/3.1.9/ that is more then just a single security fix, there is a few things going on there (which may / may not be small)
143: [01:41:28] <micmania1> yeah, it should have been release separate but wasn’t.
144: [01:41:35] <zippy> willr: !
145: [01:42:12] <willr> Hello
146: [01:42:25] <glenn-bautista> When do you think 3.1.9 will be released?
147: [01:42:32] <Stomach> glenn-bautista - its out
148: [01:42:44] <antmas> lol dat timing glenn-bautista
149: [01:42:44] <zippy> glenn-bautista: it's out
150: [01:42:49] <Stomach> and there is an non backwards compatible change for files so should be 3.2
151: [01:43:03] <glenn-bautista> stomach: I've just reloaded the changelogs on doc.silverstripe… it's not there
152: [01:43:12] <Stomach> glenn-bautista - http://beta.doc.silverstripe.org/en/changelogs/3.1.9/
153: [01:43:13] <willr> well the BC is security related so..
154: [01:43:24] <zippy> bc?
155: [01:43:24] <glenn-bautista> stomach: yeah, it's on beta.
156: [01:43:32] <zippy> ah
157: [01:43:35] <Stomach> breaking change
158: [01:43:39] <zippy> yeap
159: [01:43:56] <zippy> willr: with RC to production - is there a 'process'? is it just 48 and no reports or something else
160: [01:44:02] <zippy> *48 hours
161: [01:44:14] <glenn-bautista> I don't get it… so is beta.doc.silverstripe more canonical than doc.silverstripe?
162: [01:44:18] <Stomach> willr yeah it is, but it shouldnt matter
163: [01:44:26] <Stomach> glenn-bautista - yeah they are in the process of switching docs at the moment
164: [01:44:43] <zippy> Stomach: semver isn't until 3.2 or 4 or something... so..
165: [01:44:46] <glenn-bautista> ah, I see
166: [01:44:58] * PapaBearNZ has joined #silverstripe
167: [01:45:01] <Stomach> zippy - so... never ?
168: [01:45:03] <micmania1> Breaking changes are allowed in minor releases for security issues.
169: [01:45:14] <micmania1> patch versions even
170: [01:46:38] <Stomach> not if its semver
171: [01:46:47] <Stomach> but its not as zippy said so all good :)
172: [01:47:27] <zippy> I was reading the github / google doc the other day, and not sure if consensus was reached on when semver was starting... I know it's not now :)
173: [01:47:30] <antmas> LOl http://www.stuff.co.nz/technology/gadgets/65065712/how-to-smuggle-94-iphones-into-china
174: [01:51:31] <MichalKleiner> I'd say 3.2 would be best for semver start - basically asap. Does it have any drawbacks?
175: [01:52:23] <PapaBearNZ> Hi all. Having trouble with triggering a 403 on a page. Need to be able to trigger a 403 based on a CMS setting. If the CMS settings meet the criteria the page is displayed. If they dont the page returns a 403. Simplest case a checkbox to either display the page or trigger a 403. However I'm getting "[User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack" when I hit return $
176: [01:52:38] <PapaBearNZ> I get the same response regardless of whether I try a 403 or a 404.
177: [01:53:09] <micmania1> PapaBearNZ: code example?
178: [01:53:19] <PapaBearNZ> scratch that - the 404 results in an endless loop.
179: [01:53:45] <PapaBearNZ> if ($this->DisablePage) { return $this->httpError(404);}
180: [01:54:01] <PapaBearNZ> DisablePage is defined in the $db as Boolean.
181: [01:54:12] <micmania1> Where abouts are you running it?
182: [01:54:21] <PapaBearNZ> in the init of the controller.
183: [01:54:50] <Stomach> it needs to be before the init of the parent call I believe
184: [01:55:08] <zippy> PapaBearNZ: otherwise, it might make more sense to tie into the canView
185: [01:55:13] <PapaBearNZ> Stomach: really? Ok - I'll try that...
186: [01:55:26] <micmania1> That sounds right. The URL params haven’t been processed by that point which is why its not ‘at the top of the stack’
187: [01:55:51] <Stomach> PapaBearNZ - we do this: http://pastie.org/9832482
188: [01:55:53] <zippy> public function canView($member=null) { * your code here *; parent::canView($member); }
189: [01:56:04] <PapaBearNZ> Hmm - the canView sounds like a better spot.
190: [01:56:37] <zippy> might not work with the preview in the CMS... so you might want to do, if($this->DIsablePage && memeber isn't admin) { }
191: [01:57:17] <PapaBearNZ> zippy... noted.
192: [01:58:03] <zippy> be nice if in a page you could do something like. $this->canCMSPreview = false; or something to turn that off
193: [01:59:11] <PapaBearNZ> zippy - I wrote something that does exactly that function for this project.
194: [01:59:31] <zippy> submit a patch :)
195: [02:05:42] <PapaBearNZ> Stomach - that pastie - very useful! Do I need to create a new SSViewer? Or could I use the existing one? Also why are you using $this->owner->getResponse() Is your code part of a controller extension rather than in the actual controller?
196: [02:06:43] <PapaBearNZ> zippy - I will - once I fix a couple of stability issues.
197: [02:14:27] <zippy> good ol fiber eh!
198: [02:14:29] <Stomach> oh its an extension PapaBearNZ
199: [02:14:53] <zippy> 100mb connection... and sky go pops up - we have determined your internet connection is too weak
200: [02:15:04] <Stomach> PapaBearNZ - you could use the existing one definitely
201: [02:15:36] <antmas> zippy: that's not fibre's prollem, that's SkyGo being a clumb of hot poop
202: [02:21:06] <zippy> true
203: [02:21:24] <ss23> Those dammed kids at the Catalyst thing are running circles around elliot and just playing cookie clicker
204: [02:21:27] <ss23> I swear, when I get there on Friday
205: [02:23:37] <Stomach> hair whip!
206: [02:23:39] <Stomach> its hefty!
207: [02:23:41] <Stomach> take that!
208: [02:23:45] <Stomach> ya! ya! ya!
209: [02:23:48] <ss23> XD
210: [02:23:51] <zippy> lol
211: [02:24:05] <Stomach> its too hot
212: [02:24:11] <ss23> it's so fucking hot
213: [02:24:18] <ss23> I've spent like 1.25 hours walking around town today
214: [02:24:19] <ss23> I'm dying
215: [02:24:21] * antmas turns AC to his face
216: [02:24:27] <antmas> NOT THAT HOT
217: [02:24:38] <zippy> is hot
218: [02:25:11] <ss23> bv
219: [02:25:11] <ss23> ng
220: [02:25:12] <ss23> 'l'
221: [02:25:19] <ss23> help
222: [02:25:24] <ss23> a person was on my computer mashing my keyboard
223: [02:25:51] <Stomach> oh no!
224: [02:25:58] <Stomach> quick whip your hair back and forward
225: [02:27:00] <antmas> seriously
226: [02:27:03] <antmas> I vote corn rows
227: [02:27:16] <ss23> I VOTE U GET SOME TASTE IN MUSIC, SCRUB
228: [02:27:25] <antmas> booooo
229: [02:30:40] * ss23 puts on some babymetal
230: [02:30:52] <Ryan-Toast> GIVE ME CHOCOLATE
231: [02:30:57] <Ryan-Toast> dududududududud
232: [02:31:34] <antmas> :|
233: [02:31:41] <antmas> fucking babby metal
234: [02:31:50] <Ryan-Toast> that’s illegal.
235: [02:31:59] <ss23> So is smoking pot
236: [02:32:02] <antmas> you're illegal
237: [02:32:02] <ss23> DOESN'T STOP US
238: [02:32:17] <ss23> aw snap
239: [02:32:19] <ss23> that's racisst
240: [02:33:26] * antmas quit (Quit: Page closed)
241: [02:44:18] * mobiusnz quit (Quit: Leaving.)
242: [02:55:56] * Ryan-Toast quit (Quit: Ryan-Toast)
243: [02:57:17] * hailwood quit (Ping timeout: 265 seconds)
244: [02:57:40] <MichalKleiner> how does it work with CWP core recipe if 3.1.9 was released today.. does it get updated automatically or does the supplier have to update the recipe?
245: [02:58:18] <ss23> Supplier has to
246: [02:58:47] <MichalKleiner> thanks
247: [03:01:06] * mobiusnz has joined #silverstripe
248: [03:04:47] * Cramb has joined #silverstripe
249: [03:10:22] <zippy> wow.
250: [03:11:05] <MichalKleiner> it of course require the basic recipe to be updated :-D
251: [03:11:40] <zippy> Stomach: watching cricket?
252: [03:11:47] <Stomach> yeah
253: [03:12:02] <zippy> cricinfo or watching watching?
254: [03:12:09] <Stomach> nah cricinfo atm :(
255: [03:12:18] <zippy> lbw was pretty crazy
256: [03:12:23] <zippy> dan out now anyway
257: [03:13:39] <zippy> Mahela was saying a few swear words after that lbw, the video had it inline and going to hit (it was going to hit pretty obvious) but because he was 300cm away the keep the original decision...
258: [03:14:15] <Blacklite> ss23
259: [03:14:18] <ss23> Blacklite
260: [03:14:21] <Blacklite> i've been sweating every day since work started
261: [03:14:26] <ss23> lol
262: [03:14:28] <Blacklite> there is something about this weather
263: [03:14:36] <Stomach> ah mental
264: [03:14:54] <Cramb> Hi guys dumb question but any advice of how develop my understanding of silverstripe core in a meaningful way. I am comfortable with the tutorials/ ORM etc, however when trying to understand the classes with in the framework it all becomes far too abstract far too quickly
265: [03:15:20] <Stomach> Cramb - time my friend :)
266: [03:17:01] <adrexia> Cramb try some open source bug fixes
267: [03:17:26] <adrexia> you tend to have to touch a lot of it to solve bugs in core, and eventually some p[arts of it make more sense
268: [03:18:21] <zippy> Stomach: if you have sky sports, or know someone with sky sports setup sky go
269: [03:18:43] <Cramb> Cheers adrexia I will do. I am just sick of our lead developer replacing functionality I have created with php with an SS class wasnt aware of. Trying to put some more structure to my learning
270: [03:18:45] <Stomach> nah, I just use vipboxoc.co usually
271: [03:19:10] <adrexia> hahah yep
272: [03:19:27] <adrexia> that;s the other thing - when you have a task, research whether core will help
273: [03:19:55] <adrexia> it sort of feels lazy, but saves hours of work :D
274: [03:20:15] * vebb quit (Quit: veb-irc: &)
275: [03:22:34] <Cramb> I need to be more lazy!
276: [03:25:19] * joelpittet quit (Remote host closed the connection)
277: [03:25:59] <Stomach> lazy developers are the best
278: [03:26:54] <Stomach> "“I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it."
279: [03:27:42] <adrexia> yep :D
280: [03:27:59] * terryapodaca has joined #silverstripe
281: [03:28:05] <Blacklite> which could include finding a non-lazy person to do it for them
282: [03:28:50] <MichalKleiner> terryapodaca: last time someone mentioned pterodactyl and it stays in my head since then :-D
283: [03:28:54] <MichalKleiner> damnit :-D
284: [03:29:16] <terryapodaca> you just see me log in?
285: [03:29:18] <terryapodaca> lol...
286: [03:29:36] <terryapodaca> yeah, someone said that what...early yesterday?
287: [03:31:43] <Cramb> Where do I find current bugs that need addressing in SS core?
288: [03:32:24] <terryapodaca> github?
289: [03:32:34] <Stomach> yeah on github issues
290: [03:32:38] <zippy> Stomach: jezzzzusss..
291: [03:32:48] <terryapodaca> http://doc.silverstripe.org/framework/en/trunk/misc/contributing/issues
292: [03:33:05] <Stomach> zippy - we just fall apart when we have a good start all the time
293: [03:33:11] <Stomach> then the tail enders clean it up
294: [03:33:19] <Stomach> stupid batsmen suck hard
295: [03:33:33] <Stomach> and fucking run outs too
296: [03:33:34] <Stomach> wtf
297: [03:33:55] * Olliepop quit (Ping timeout: 246 seconds)
298: [03:34:03] <terryapodaca> ok fellas, I am drawing a blank on this...I need to create a two level responsive menu and it's a silverstripe site
299: [03:34:37] * aragonne quit (Quit: aragonne)
300: [03:34:41] <terryapodaca> Here's the normal menu, with the dropdown second level menu items
301: [03:34:50] <zippy> sure
302: [03:35:06] <terryapodaca> but the responsive part needs to turn into http://imgur.com/Y47JeP0
303: [03:35:25] <terryapodaca> oops, here's the first/normal menu: http://imgur.com/vITMugv
304: [03:36:12] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
305: [03:37:51] <MichalKleiner> terryapodaca: I'd say output the menu two times, ul/li for desktop and select/option for mobile and hide/show based on mediaqueries
306: [03:39:30] <MichalKleiner> although it will require custom loop or controller code probably
307: [03:39:38] <terryapodaca> hey, that's not a bad idea
308: [03:41:58] <MichalKleiner> or http://slicknav.com/
309: [03:42:36] <MichalKleiner> it looks a bit different to your requirements but works well with one markup
310: [03:43:08] <terryapodaca> i could simply replace the hamburger icon with an arrow icon
311: [03:43:12] <terryapodaca> i also found this one
312: [03:43:35] <terryapodaca> http://jasonweaver.name/lab/flexiblenavigation/
313: [03:43:44] <terryapodaca> and this one: http://www.flashuser.net/tutorial/responsive-flat-menu/#
314: [03:43:57] <terryapodaca> just need to figure out which one the client would like best
315: [03:44:25] <MichalKleiner> yep.. there are heaps, just pick one involving least work haha
316: [03:44:54] <MichalKleiner> but if you really need ul/li and select/option approach two menus in the page are legitimate as well
317: [03:47:22] <Stomach> does anyone know how to remove an extension from a class in a case where you dont want it
318: [03:47:54] <Stomach> i.e. i have a modeladmin and I want to remove VersionedModelAdmin from just that one instance of model admin
319: [03:50:25] * joelpittet has joined #silverstripe
320: [03:54:29] * mobiusnz quit (Quit: Leaving.)
321: [03:56:05] <Colin[pi]> found this behind my father's shed when I visited (warning, tech gore): http://i.imgur.com/b3Yn0NN.jpg
322: [04:00:36] <ss23> :O
323: [04:00:41] <ss23> Why keep it if you're just doing that to it!
324: [04:00:56] <Colin[pi]> ss23: he inherited it from his work when he retired
325: [04:01:01] <Colin[pi]> ss23: he also hated computers
326: [04:01:03] <ss23> lol
327: [04:01:27] <Colin[pi]> it's got a 5.25 floppy in it, so it's pretty damn old
328: [04:01:32] <terryapodaca> looks like the spiders are riding the Internet Super Highway
329: [04:01:48] <terryapodaca> or are at least trying
330: [04:01:56] <Colin[pi]> lol
331: [04:02:02] <Colin[pi]> THE WORLD WIDE WEB IS REAL
332: [04:02:32] <terryapodaca> I was going to go the Web route but decided not to
333: [04:02:34] <terryapodaca> :D
334: [04:03:45] <terryapodaca> although...for not liking computers, looks like he had plenty of extra PCI/AGP/etc expansions added to that machine
335: [04:04:26] <ss23> Looks like a weird formfactor mobo, because look how there's no panel where there normally is
336: [04:05:43] * joelpittet quit (Remote host closed the connection)
337: [04:06:21] <Colin[pi]> ss23: shit be old yo: http://i.imgur.com/Zalf8BC.jpg
338: [04:06:23] * PapaBearNZ quit (Quit: Page closed)
339: [04:06:55] <ss23> mmmm
340: [04:07:06] <ss23> So I wouldn't trust PCI/AGP expansions being super nerdy stuff
341: [04:07:07] <ss23> :O
342: [04:07:15] <ss23> Back in the day, having an FPU used to be an addon slot!
343: [04:07:32] <Colin[pi]> ss23: I'm thinking this was prolly a 486
344: [04:08:18] * Cramb has left #silverstripe
345: [04:12:32] * vebb has joined #silverstripe
346: [04:12:54] * vebb quit (Client Quit)
347: [04:15:58] * Kingy[a] is now known as Kingy
348: [04:16:07] <Kingy> morning ya'll
349: [04:16:32] <ss23> ...
350: [04:16:33] <ss23> IT AINT MORNING
351: [04:16:34] <ss23> :O
352: [04:16:57] * vebb has joined #silverstripe
353: [04:23:12] <terryapodaca> uuuughhh
354: [04:23:14] <terryapodaca> no it's not
355: [04:23:19] <terryapodaca> it's 10:30 pm my time
356: [04:23:22] * vebb quit (Quit: veb-irc: &)
357: [04:23:42] <terryapodaca> I'd rather pay someone $50 bucks to do this menu for me!!!!!!!!!!!!!!!!
358: [04:29:59] * vebb has joined #silverstripe
359: [04:45:29] * spekulatius quit (Quit: Leaving)
360: [04:46:47] * micmania1 has left #silverstripe
361: [04:49:42] * spekulatius has joined #silverstripe
362: [04:50:39] * spekulatius quit (Client Quit)
363: [04:56:26] * cloph has joined #silverstripe
364: [04:56:29] * cloph quit (Remote host closed the connection)
365: [04:56:49] * cloph_away quit (Ping timeout: 256 seconds)
366: [05:02:53] <Kingy> ss23: 8:02am
367: [05:02:57] <ss23> wtf
368: [05:02:59] <ss23> Where the hell are you?!
369: [05:03:05] <Kingy> I live in Bahrain now
370: [05:03:06] <ss23> YOU'RE MEANT TO BE IN WELLINGTON! :O
371: [05:03:08] <Kingy> where have you been
372: [05:03:12] <ss23> wtf
373: [05:03:15] <ss23> you're fucking shitting me
374: [05:03:20] <Kingy> lol no
375: [05:03:20] <ss23> :S
376: [05:03:22] <ss23> dude
377: [05:03:35] <ss23> what the fuck o.o
378: [05:03:45] <ss23> You have to be lying! :O
379: [05:03:47] <ss23> That's too weird.
380: [05:03:48] <Kingy> aha, gf got a job over here
381: [05:04:05] <Kingy> still working for NZX though
382: [05:04:08] <Kingy> for now at any rate
383: [05:04:28] <ss23> https://twitter.com/jagracie YOUR TWITTER STILL SAYS NZ :O
384: [05:04:36] <Kingy> rofl
385: [05:05:10] <ss23> https://nz.linkedin.com/in/jamiegracie SO DOES THIS
386: [05:05:11] <ss23> OMFG PLS
387: [05:05:53] <Kingy> twitter changes
388: [05:06:02] <ss23> lol
389: [05:06:35] <Kingy> http://i.imgur.com/JTXqpkz.jpg
390: [05:06:40] <Kingy> http://i.imgur.com/uAtCwIe.jpg
391: [05:06:52] <ss23> AND WHAT ABOUT YOU
392: [05:06:56] <ss23> I WANNA SEE YOU IN ONE OF THESE
393: [05:06:56] <ss23> :LO
394: [05:07:36] <ss23> And what the fuck is your gf doing there?
395: [05:07:46] <Kingy> teaching lol
396: [05:07:47] * mobiusnz has joined #silverstripe
397: [05:09:56] * willr quit (Quit: willr)
398: [05:13:37] * r_hector has joined #silverstripe
399: [05:25:10] <Colin[pi]> <@ss23> you're fucking shitting me
400: [05:25:11] <Colin[pi]> lol
401: [05:25:18] <Colin[pi]> ss23 outta da LOOP
402: [05:25:31] <ss23> IT SOUNDS LIKE BULLSHIT MAN
403: [05:25:37] <Colin[pi]> nu uh
404: [05:25:40] <Colin[pi]> it's legit
405: [05:25:48] <ss23> mmk
406: [05:25:53] <ss23> That's cool then Kingy :O
407: [05:26:04] <Colin[pi]> I cant wait for his summer pics when he turns into a puddle of goo
408: [05:26:06] <Kingy> haha
409: [05:26:17] <Kingy> Colin[pi]: Gf has 2 months off in summer
410: [05:26:22] <Kingy> we'll probably go home/aussie
411: [05:26:24] <Colin[pi]> 2 months... ?
412: [05:26:26] <Colin[pi]> jesus
413: [05:26:29] <Kingy> yeah
414: [05:26:33] <Kingy> and they get another month over xmas
415: [05:26:42] <Colin[pi]> can I have a job with them pls?
416: [05:26:42] <Kingy> + a few other weeks during the year
417: [05:26:43] <Colin[pi]> kthx
418: [05:26:54] <Kingy> like they're been back at school 2 weeks
419: [05:27:00] <Kingy> they get a week off at the beginning of feb
420: [05:27:08] <Kingy> "mid-term break"
421: [05:27:21] <Kingy> yep, must be hard to have a month off and then go back to school for 6 weeks
422: [05:27:27] <Kingy> lets give you another week off
423: [05:28:02] <Kingy> so yeah, if i can talk work into extending my contract for a few more months that'd be golden
424: [05:28:13] <Kingy> i'd go work in the NZ office for a few weeks
425: [05:28:25] <Kingy> go and meet with ss23
426: [05:28:27] <Kingy> show him my tan
427: [05:28:52] <ss23> XD
428: [05:29:55] <Colin[pi]> how I imagine kingy will look on his return: http://www.hotflick.net/flicks/2006_Click/006CLK_Rob_Schneider_003.jpg
429: [05:30:15] <ss23> http://static.panoramio.com/photos/large/54207319.jpg Kingy when he comes back
430: [05:30:21] <Kingy> i'm actually very keen to wear the clothing
431: [05:30:22] <Colin[pi]> LOL!
432: [05:30:23] <Kingy> looking comfy as
433: [05:31:02] <Colin[pi]> ss23: https://38.media.tumblr.com/ccafa95cc6c72292c6510a3d39837b49/tumblr_mzcqiuxdni1sj5h4oo1_500.gif
434: [05:31:18] <ss23> Some people are worth melting for!
435: [05:31:28] <Colin[pi]> XD
436: [05:39:30] <Colin[pi]> man fuck building giant complex forms :C
437: [05:39:36] <ss23> Fuck forms in general
438: [05:39:39] <Colin[pi]> aint nobody got time for dat
439: [05:40:03] <Colin[pi]> has a giant custom checklist, all linked in with DOs and shit
440: [05:40:16] <Colin[pi]> "oh actually, lets change some of those checkboxes to a dropdown"
441: [05:40:18] <Colin[pi]> FFFUUUU
442: [05:43:51] * vebb quit (Quit: veb-irc: &)
443: [05:44:39] <terryapodaca> is it really that hot there in Bahrain?
444: [05:44:51] <terryapodaca> I mean, can't be any worse than Texas in the middle of summer
445: [05:48:40] <Kingy> terryapodaca: I'll let you know
446: [05:48:56] <Kingy> but apparently it goes to somewhere between 40-50C with high humidity
447: [05:49:46] <terryapodaca> ouch...I guess that is hot. Highs here are 105f and under
448: [05:50:22] <terryapodaca> and breaking 100F is pretty rare, and if it happens it only lasts a few days then goes away
449: [05:50:42] <terryapodaca> it might come back once or twice but the humidity here is probably similar
450: [05:50:48] <terryapodaca> that part does suck bad
451: [05:54:21] * joelpittet has joined #silverstripe
452: [05:56:17] * Error404NotFound has joined #silverstripe
453: [05:56:26] * travis-ci has joined #silverstripe
454: [05:56:26] <travis-ci> silverstripe/silverstripe-cms#1112 (3 - 475b6d1 : Damian Mooyman): The build has errored.
455: [05:56:26] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/e9e95b9dbab5...475b6d18e50d
456: [05:56:26] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/47080596
457: [05:56:26] * travis-ci has left #silverstripe
458: [05:59:00] * joelpittet quit (Ping timeout: 246 seconds)
459: [06:01:01] * travis-ci has joined #silverstripe
460: [06:01:01] <travis-ci> silverstripe/silverstripe-framework#3886 (3 - 88fdc75 : Damian Mooyman): The build has errored.
461: [06:01:01] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/cee7adc12c9a...88fdc75456b6
462: [06:01:01] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47080605
463: [06:01:01] * travis-ci has left #silverstripe
464: [06:21:09] * harv_ has joined #silverstripe
465: [06:22:53] * nontgor quit (Ping timeout: 252 seconds)
466: [06:25:25] * harv_ quit (Ping timeout: 246 seconds)
467: [06:27:00] * mobiusnz quit (Quit: Leaving.)
468: [06:34:15] * _hschillig quit (Ping timeout: 264 seconds)
469: [06:35:30] * nontgor has joined #silverstripe
470: [06:35:51] * Shrike_Finland has joined #silverstripe
471: [06:37:19] * Shrike_Finland1 has joined #silverstripe
472: [06:37:19] * Shrike_Finland quit (Read error: Connection reset by peer)
473: [06:38:35] * Shrike_Finland has joined #silverstripe
474: [06:38:35] * Shrike_Finland1 quit (Read error: Connection reset by peer)
475: [06:40:12] * Shrike_Finland1 has joined #silverstripe
476: [06:40:12] * Shrike_Finland quit (Read error: Connection reset by peer)
477: [06:42:40] * Shrike_Finland has joined #silverstripe
478: [06:42:41] * Shrike_Finland1 quit (Read error: Connection reset by peer)
479: [06:55:00] * terryapodaca quit (Quit: Leaving.)
480: [06:58:28] * Stomach quit (Quit: bye)
481: [06:58:40] * r_hector quit (Quit: Leaving.)
482: [07:06:52] * Colin[pi] quit ()
483: [07:11:02] * vebb has joined #silverstripe
484: [07:13:05] * vebb quit (Client Quit)
485: [07:25:31] * vebb has joined #silverstripe
486: [07:25:32] * vebb quit (Changing host)
487: [07:25:32] * vebb has joined #silverstripe
488: [07:42:32] * glenn-bautista quit (Quit: Leaving.)
489: [07:43:25] * joelpittet has joined #silverstripe
490: [07:48:09] * joelpittet quit (Ping timeout: 245 seconds)
491: [07:59:00] * Shrike_Finland quit (Quit: Leaving.)
492: [08:06:26] * aragonne has joined #silverstripe
493: [08:06:57] * Kingy is now known as Kingy[a]
494: [08:07:27] * Kingy[a] is now known as Kingy
495: [08:23:29] * Shrike_Finland has joined #silverstripe
496: [08:24:53] * arnhoe has joined #silverstripe
497: [08:48:23] <elgabbu> gd morning guys
498: [08:50:17] <elgabbu> question ... i have a page class ProductReviewPage extends Page { ... and its associated controller (in the same php file) .... class ProductReviewPage_Controller extends Page_Controller {
499: [08:51:19] <elgabbu> is it possible to handle another action withing that controller .... say for instance I want to create the action track
500: [08:53:50] <elgabbu> ok i added ... 'product-reviews' : 'ProductReviewPage_Controller' in the director rules
501: [08:54:15] <elgabbu> and added a url_handler in the controller class ... private static $url_handlers = array( 'track' => 'track' );
502: [08:59:55] <elgabbu> mmm this broke the Holder page :/
503: [09:01:31] * kinglozzer has joined #silverstripe
504: [09:14:11] * micmania1 has joined #silverstripe
505: [09:32:19] * joelpittet has joined #silverstripe
506: [09:34:47] <micmania1> kinglozzer: I aint selling no data objects though :p
507: [09:35:43] <kinglozzer> micmania1: Haha, not _yet_ ;)
508: [09:36:19] <micmania1> not ever
509: [09:36:39] <micmania1> kinglozzer: i'm using a third party API. Product::get(); // doesn't touch DataObject or DataList :)
510: [09:37:01] * joelpittet quit (Ping timeout: 255 seconds)
511: [09:37:07] * spronk2 has joined #silverstripe
512: [09:37:28] <micmania1> When you start replicating framework behaviour, your realise just how much it does for you
513: [09:37:35] <kinglozzer> micmania1: oic, so your own SS_List?
514: [09:37:44] <micmania1> kinglozzer: yep
515: [09:38:02] <micmania1> Product::get() = API call.
516: [09:38:21] <micmania1> Product::get()->limit(0,1); Product::get()->first/last() will all still work though
517: [09:38:46] <micmania1> At the moment it doesn't require the CMS, but we'll see how that pans out.
518: [09:39:07] <kinglozzer> I've done something similar before, my implementation was pretty-much identical to DataList (except I stored limit/offset/filter as properties)
519: [09:39:32] * lerni_ has joined #silverstripe
520: [09:49:18] * Error404NotFound quit (Ping timeout: 246 seconds)
521: [09:50:10] * Error404NotFound has joined #silverstripe
522: [09:51:58] * ss31noob has joined #silverstripe
523: [09:52:39] <ss31noob> hi.. can anyone confirm as well that when you unpublish a page.. the LastEdited field isnt being updated in the database?
524: [09:54:01] <spronk2> http://hackaday.com/2015/01/14/keystroke-sniffer-hides-as-a-wall-wart-is-scary/
525: [09:54:10] <spronk2> hmm
526: [09:54:16] <spronk2> i wonder whether unpublishing is considered an edit action
527: [09:54:59] * Shrike_Finland quit (Quit: Leaving.)
528: [09:55:00] <micmania1> It shouldn't be.
529: [09:56:04] * devveb is now known as deadveb
530: [09:56:42] <spronk2> well
531: [09:56:45] <spronk2> there’s your answer, ss31noob
532: [09:57:29] * Shrike_Finland has joined #silverstripe
533: [10:01:29] <micmania1> fyi. UPDATE TO 3.1.9. :)
534: [10:02:49] * _hschillig has joined #silverstripe
535: [10:06:29] <kinglozzer> I have a pirate adventure golf website to build
536: [10:06:32] <kinglozzer> Awesome.
537: [10:06:49] <kinglozzer> Much better than the "usual"!
538: [10:06:54] * Error404NotFound quit (Ping timeout: 245 seconds)
539: [10:10:43] * Kingy is now known as Kingy[a]
540: [10:11:23] * Kingy[a] is now known as Kingy
541: [10:17:59] * ThePeach has joined #silverstripe
542: [10:20:56] * Pyshnk has joined #silverstripe
543: [10:26:48] <Pyshnk> urgh
544: [10:26:56] <Pyshnk> Just had first bacon sandwich of the year
545: [10:26:56] <Pyshnk> so good
546: [10:27:25] <Pyshnk> now I have coffee getting cold, because I don't want to wash away the aftertaste of glorious bacon, egg, mushroom, & tomato
547: [10:27:43] <spronk2> yum
548: [10:28:16] <Pyshnk> spronk2: my coffee is getting cold.
549: [10:28:23] <spronk2> meh
550: [10:28:24] <spronk2> throw it out
551: [10:28:26] <Pyshnk> I dunno why I got one, I dun liek coffee.
552: [10:28:27] <spronk2> get another bacon sandwich
553: [10:28:35] <Pyshnk> but I refuse to not drink it because I paid for it.
554: [10:28:43] <spronk2> drink it
555: [10:28:48] <spronk2> then get another bacon sandwich
556: [10:28:49] <Pyshnk> bacon sammichs are half hour walk in retarded winds
557: [10:28:51] <micmania1> Pyshnk: pah! You call that coffee?
558: [10:28:52] <spronk2> to wash it down
559: [10:28:55] <Pyshnk> It's gone all wellington up in here
560: [10:28:57] <spronk2> noooo
561: [10:29:20] <Pyshnk> micmania1: coffee is black and tastes like shit. No matter who makes it.
562: [10:29:45] * slievr has joined #silverstripe
563: [10:29:47] <Pyshnk> But a chillipepper's bacon sandwich on the other hand...
564: [10:29:52] <micmania1> Courtenay Place does good coffee ;)
565: [10:29:59] <Pyshnk> micmania1: you gett'n all up in that RFC?
566: [10:30:04] <Pyshnk> micmania1: yeh, I'll believe that.
567: [10:30:16] * aragonne quit (Quit: aragonne)
568: [10:30:21] <micmania1> Pyshnk: I was involved in its pre-descussion
569: [10:30:29] <Pyshnk> I come here and I hear morons that have no idea how to steam milk and all kinds of shit.
570: [10:30:30] <micmania1> and I reviewed it before relase
571: [10:30:37] <Pyshnk> micmania1: cool.
572: [10:30:45] <Pyshnk> so your efforts not going to waste :>
573: [10:31:05] <micmania1> Still think the solution is too complex, but can see why some things are being proposed.
574: [10:31:13] <micmania1> so glad to support it I guess.
575: [10:31:16] <spronk2> whats this rfc?
576: [10:31:26] <Pyshnk> https://github.com/silverstripe/silverstripe-framework/issues/3792
577: [10:31:27] <micmania1> Although I did say before the RFC was relased that it should be ss4.0 min
578: [10:31:38] <Pyshnk> oh, well yeah. Is it not? that's silly.
579: [10:31:46] <kinglozzer> micmania1: Yeah we were talking about that yesterday, it's gotta be
580: [10:31:48] <micmania1> Nope
581: [10:32:09] <kinglozzer> There's no disadvantage to releasing it as 4.0, doesn't really affect timescale too much
582: [10:32:22] <kinglozzer> It's just a number
583: [10:32:31] <Pyshnk> mmm. Also semver.
584: [10:32:33] <Pyshnk> gotta be gotta be.
585: [10:32:49] <Pyshnk> micmania1: yeh, it does seem complex.
586: [10:32:59] <Pyshnk> but... no idea how it could be less so.
587: [10:33:05] <Pyshnk> but then I didn't read it propers yet.
588: [10:33:06] <Pyshnk> either.
589: [10:33:49] <spronk2> i don’t really get why File needs to be turned into a DBField
590: [10:34:15] <Pyshnk> it doesn't?
591: [10:34:21] <spronk2> exactly
592: [10:34:24] <spronk2> but thats what is proposed
593: [10:34:26] <kinglozzer> spronk2: has_many many_many I guess
594: [10:34:33] <kinglozzer> Well
595: [10:34:35] <kinglozzer> Wait, no
596: [10:34:43] <kinglozzer> I dunno, but then I haven't read it either yet :P
597: [10:34:48] <Pyshnk> spronk2: oh, so it is.
598: [10:34:55] <Pyshnk> yeah I didn't get that far into it.
599: [10:35:04] * vebb quit (Quit: veb-irc: &)
600: [10:35:13] <Pyshnk> I don't particularly see how that works.
601: [10:35:48] <Pyshnk> "It would most likely be implemented as a packed or composite DBField"
602: [10:35:57] <Pyshnk> soemoen define 'packed/composite'
603: [10:36:15] <micmania1> Its so that you can DBField->getFileUrl()
604: [10:36:22] * wmk has joined #silverstripe
605: [10:36:24] <Pyshnk> yea but...
606: [10:36:25] <Pyshnk> idk.
607: [10:36:36] <Pyshnk> why does it need to be a column as opposed to a table, like it is now?
608: [10:36:58] <Pyshnk> alright, I'm turning into a twat D:
609: [10:37:09] <micmania1> Less joins I guess, although the table will still exist for File::get()
610: [10:37:10] <Pyshnk> I drank the coffee and it wasn't 100% terrible :<
611: [10:37:10] * wmk needs a dictionary plugin
612: [10:37:42] <Pyshnk> wmk: what for (specifically)?
613: [10:37:51] <spronk2> also
614: [10:37:54] <micmania1> I raised my concerns that when something goes wrong, it will be too hard to debug.
615: [10:37:57] <spronk2> why woud uploadfield be modified to use filereferencefield
616: [10:38:01] <wmk> well, leo had the translation for the thing you turned into
617: [10:38:11] <wmk> but a plugin in xchat was neat
618: [10:38:28] <Pyshnk> oic, you just mean in general?
619: [10:38:42] <micmania1> spronk2: because Filename wouldn't exist anymore
620: [10:38:42] <Pyshnk> (oic :: Oh I See)
621: [10:39:09] <spronk2> micmania1: just pass filename to an abstracted filesystem
622: [10:39:13] <Pyshnk> micmania1: so with this proposal, does it operate more like a standard filesystem?
623: [10:39:17] <spronk2> let the abstraction handle it
624: [10:39:32] <Pyshnk> in that there's a node to a file, and many _references_ to it (ie, hard links)
625: [10:39:33] <micmania1> nope, the opposite to a standard filesystem
626: [10:39:33] <Pyshnk> ?
627: [10:39:38] <spronk2> also
628: [10:39:41] <spronk2> sha1 of the content is a bad idea
629: [10:39:44] <Pyshnk> so if you upload the same file twice, you'd just... well not.
630: [10:39:57] <Pyshnk> and make a reference to an existing one?
631: [10:40:03] <micmania1> The database is now the source of truth. If it exists in the database, then w/e happens in the filesystem is irrelevant
632: [10:40:10] <Pyshnk> I think there needs to be a video to go with this explanation, lol :P
633: [10:40:14] <micmania1> It will attempt to get it
634: [10:40:28] <Pyshnk> micmania1: that's... well no it's not, but kinda what happens now.
635: [10:41:04] <micmania1> that's how it will be. The reason is because some filesystems don't offer feedback on whether a file has been written.
636: [10:41:11] <Pyshnk> so I was in chillipeppers having a yarn right, and they go 'where will you go when you leave england?'
637: [10:41:20] <micmania1> So you can put a file and you expect it to be there but you don't actually know
638: [10:41:35] <Pyshnk> and I go: "all over... " <pause> "all owa!"
639: [10:41:40] <Pyshnk> they burst out laughing
640: [10:41:43] <Pyshnk> was great
641: [10:41:54] <spronk2> micmania1: it’s irrelevant whether the FS supports write feedback
642: [10:42:15] <micmania1> spronk2: it is for deciding which one to believe
643: [10:42:18] <spronk2> even if it does, it can a) lie, and b) change immedaitely after
644: [10:42:26] <micmania1> db !== filesyetm
645: [10:42:37] <micmania1> filesystem*
646: [10:42:47] <Pyshnk> yeah dun wanna go storing files in db... but with the 'APL' you could make it such.
647: [10:43:00] <spronk2> tbh if you’re doing ms sql storing int he db for smaller files is a grand idea
648: [10:43:01] * slievr quit (Ping timeout: 246 seconds)
649: [10:43:02] <Pyshnk> reet, imma read this thing propers now.
650: [10:43:23] <Pyshnk> spronk2: nah, postgre, the one truth of the world.
651: [10:43:50] <spronk2> that sha1 thing - uploaded files could be huge
652: [10:43:54] <spronk2> sha1 on a huge file is big time
653: [10:44:21] <micmania1> You should raise it.
654: [10:45:15] <micmania1> I'm not sold on it tbh. I can see reasons why certain things have been decided, but its overly complex. I can't think of anything that's even similar.
655: [10:45:46] <spronk2> its very very complex
656: [10:45:57] <spronk2> but then
657: [10:46:02] <spronk2> it’s tackling more than just one problem
658: [10:46:17] <micmania1> yes, that's why it was chosen over my proposal
659: [10:46:31] <spronk2> a better approach would probably be to just tackle, for example, abstracting the filesystem
660: [10:46:46] <micmania1> Tell me about it!
661: [10:47:00] <spronk2> then iterate again to tackle, e.g. versioned files
662: [10:47:49] <spronk2> the whole… FileReferenceField serialising to a string, because then you can version it with existing code… is just a lolbighack
663: [10:48:01] <Pyshnk> micmania1: "but its overly complex." That's the SS way!
664: [10:48:09] <Pyshnk> Over engineer all the things!
665: [10:48:14] <Pyshnk> \o/ :D
666: [10:48:30] <micmania1> Another big issue for me is that if you lose your filesystem or db, you won't be able to marry them back up.
667: [10:48:45] <Pyshnk> yeah, you'd need to marry up hashes.
668: [10:49:02] <spronk2> except
669: [10:49:07] <micmania1> which is impossible, because the content of the hashes comes from the stuff stored in the db
670: [10:49:10] <spronk2> not all backends store a hash
671: [10:49:21] <spronk2> it does?
672: [10:49:42] <micmania1> Please take this as my public statement: This is a bad idea.
673: [10:49:53] <micmania1> Send help.
674: [10:49:55] <spronk2> micmania1: explain previous statement?
675: [10:50:06] <micmania1> Which one?
676: [10:50:15] <spronk2> micmania1:
677: [10:50:15] <spronk2> which is impossible, because the content of the hashes comes from the stuff stored in the db
678: [10:50:39] <micmania1> Oh, so a hash is basically created from a tuple (a structure of things).
679: [10:50:55] <micmania1> These things are collected at the time of upload and stored nowhere.
680: [10:50:59] <spronk2> oh, the hash is of the tuple? not the file itself?
681: [10:51:13] <micmania1> its of the uple
682: [10:51:14] <micmania1> tuple
683: [10:51:23] <spronk2> i don’t get it
684: [10:51:30] <spronk2> what purpose does that serve then?
685: [10:51:45] * benjhocking quit (Quit: Leaving.)
686: [10:51:59] <micmania1> It makes it unique. I think it may also include an md5 of the content. I'm not 100% sure
687: [10:52:16] <spronk2> so confuse
688: [10:52:25] * spronk2 reads more
689: [10:54:04] <micmania1> yeah, so the FileReferenceField is made up of a hash of the file, a variant, a filename and a parent object.
690: [10:54:23] * benjhocking has joined #silverstripe
691: [10:54:34] <spronk2> ugh
692: [10:54:37] <spronk2> what the fuck is “the base content"
693: [10:54:38] <micmania1> FileReferenceField is basically a text field so its essentially hashing the content of all those fields.
694: [10:54:50] <micmania1> or hash;variant;filename;parent
695: [10:55:25] <micmania1> Yay for speeding silverstripe up!
696: [10:55:29] <Pyshnk> yeah, terminology is a bit... vauge at times :<
697: [10:55:36] <Pyshnk> well, ambiguious.
698: [10:55:44] <spronk2> who the fuck wrote this
699: [10:55:45] <spronk2> jesus christ
700: [10:55:53] <spronk2> oh
701: [10:55:54] <Pyshnk> talk about filethisthing and filethatthingthatsoundslikethisthingbutservesadifferentpurpose
702: [10:55:57] <spronk2> makes sense now
703: [10:56:19] <Pyshnk> spronk2: Mateusz & Hamish, from what I understand.
704: [10:56:21] <micmania1> Don't blame the author. He was trying to figure it out based on a few conversations. its not his idea.
705: [10:56:32] <spronk2> hamish was involved
706: [10:56:33] <spronk2> :P
707: [10:56:41] <micmania1> Its Hamish's idea.
708: [10:56:43] <Pyshnk> Yep. You can tell by the structure.
709: [10:56:49] <elgabbu> hi guys ... i am trying to get a form to render in a widget so far I have done the following: http://sspaste.com/paste/show/54b79ca8f0157
710: [10:57:02] <Pyshnk> elgabbu: why a widget?
711: [10:57:09] * slievr has joined #silverstripe
712: [10:57:11] <micmania1> Mateusz done a good job on the RFC. The idea is too complex.
713: [10:57:29] <elgabbu> but I am getting an error saying: the method 'link' does not exist on 'RatingWidget'
714: [10:57:29] <Pyshnk> yes, Mateusz has done an outstanding job on the RFC
715: [10:57:53] <Pyshnk> elgabbu: Widgets don't have links. Only controllers do.
716: [10:57:58] <elgabbu> Pyshnk a widget because i intend to use this form on multiple pages
717: [10:58:12] <Pyshnk> elgabbu: yeh, I guess.
718: [10:58:41] <elgabbu> should I implement the Link method ?
719: [10:59:04] <Pyshnk> well youcould, but what would it link to?
720: [10:59:32] <elgabbu> not sure to a widgetController maybe that will process the form?
721: [10:59:36] <Pyshnk> I'd need to be more familiar with the widget module to help you with this, sorry.
722: [10:59:37] <Pyshnk> I'm not.
723: [10:59:59] <Pyshnk> but yeah, that'd be my guess. To the widgetHolder (whcih is the controller for widgets iirc) on that page
724: [11:00:06] <Pyshnk> so page/widgetholder/widget
725: [11:00:07] <Pyshnk> or something
726: [11:00:08] <micmania1> elgabbu: you need a widget controller
727: [11:00:08] <Pyshnk> idk.
728: [11:00:12] <micmania1> WidgetName_Controller
729: [11:00:43] <micmania1> And your form belongs there. And 'PageRatingForm' needs to be 'RatingForm' (the same as your function)
730: [11:01:00] <micmania1> and you need a method to handle your from action ('doRating')
731: [11:01:28] <micmania1> Then you will have the key to the kingdom.
732: [11:04:25] * Error404NotFound has joined #silverstripe
733: [11:04:34] * actioussan has joined #silverstripe
734: [11:04:39] * Error404NotFound quit (Changing host)
735: [11:04:39] * Error404NotFound has joined #silverstripe
736: [11:04:42] <spronk2> uughh
737: [11:04:44] <spronk2> this proposal
738: [11:04:46] <spronk2> is awful
739: [11:04:57] <spronk2> the FileReferenceField having a tie back to the parent object is ridiculous
740: [11:05:03] <Pyshnk> spronk2: lol. You mean the truth behind it, not the writeup right?
741: [11:05:15] <spronk2> eeeverything about it is screaming tha tit needs to be in its own encapsulation
742: [11:06:17] <slievr> hey guys I've got me a Datalist that I render with a template. like so- return Event::get()->renderWith('Event'); and I am wondering how I would loop this in the template.
743: [11:06:18] <ss23> Which proposal?
744: [11:06:29] <spronk2> ss23: https://github.com/silverstripe/silverstripe-framework/issues/3792
745: [11:06:37] <ss23> ah yep
746: [11:06:57] <actioussan> Hi everybody, how is it possible that <p> tags in tinymce are being found in a preg_replace function, but "<p>&nbsp;</p>" not??
747: [11:07:06] <Pyshnk> spronk2: yeah, encapsulate what changes.
748: [11:07:06] * spronk2 doesn’t know why he even cares
749: [11:07:12] <actioussan> I'm only trying to strip empty p tags from the content
750: [11:07:14] <Pyshnk> that's kinda what they're trying to get at with the APL bit.
751: [11:07:21] <Pyshnk> but... it's ... overly complex as micmania1 says.
752: [11:07:50] <Pyshnk> actioussan: no idea what you're asking.
753: [11:07:58] <spronk2> there are a whole bunch of changes that make no sense
754: [11:08:01] <spronk2> just abstract the FS
755: [11:08:03] <spronk2> and leave File
756: [11:08:05] <Pyshnk> slievr: $Me
757: [11:08:39] <slievr> Pyshnk: thanks I kept trying $This
758: [11:08:40] <Pyshnk> spronk2: that's bascially waht micmania1 has already done afaik.
759: [11:08:51] <spronk2> micmania1: where’s your stuff?
760: [11:08:57] <micmania1> spronk2: You could always fork the framework and call it SilverSpronk2
761: [11:09:00] <Pyshnk> micmania1: you should draw some UML to compare your branch with the rfc stuff.
762: [11:09:08] <Pyshnk> micmania1: on his framework fork
763: [11:09:10] <spronk2> ehh i’m pretty much done with SS :P
764: [11:09:21] <Pyshnk> https://github.com/micmania1/silverstripe-framework/tree/filesystem-abstraction
765: [11:09:28] <Pyshnk> spronk2: why?
766: [11:09:31] <spronk2> no new work on it
767: [11:09:36] <Pyshnk> just... not in that space anymore, or just...
768: [11:09:37] <Pyshnk> yeah, right.
769: [11:09:41] <Pyshnk> same with me atm I guess.
770: [11:09:44] <spronk2> that and
771: [11:09:47] <micmania1> comparison is: https://github.com/micmania1/silverstripe-framework/compare/silverstripe:master...filesystem-abstraction
772: [11:09:48] <Pyshnk> crud ignutter
773: [11:10:04] <spronk2> it annoys me enough to not want to take new work
774: [11:10:07] <Pyshnk> micmania1: yeah but like, uml man.
775: [11:10:12] <spronk2> basically doing extensions and maintenance only
776: [11:10:14] <Pyshnk> coz... idk, easier or something.
777: [11:10:18] <Pyshnk> gimme pictures! xD
778: [11:10:20] <actioussan> I have this function: $this->Content = preg_replace('<p>', '', $this->Content); and it does the job. But what I want is to delete p tags with an &nbsp; in them
779: [11:10:55] <micmania1> spronk2: https://github.com/silverstripe/silverstripe-framework/issues/3562
780: [11:11:03] <Pyshnk> actioussan: that's... bad.
781: [11:11:13] <actioussan> I know
782: [11:11:42] <micmania1> a wise man once said "A filesystem implementation should never interact with the database. This is the job of DataObject subclasses or other services."
783: [11:11:59] <spronk2> heh
784: [11:13:04] <Pyshnk> yeah, I like what you've done micmania1
785: [11:13:07] <micmania1> Reading my proposal makes me realise how insane the other one is
786: [11:13:10] <spronk2> yeeeeeaaaap
787: [11:13:15] <spronk2> this makes a lot of sense
788: [11:13:36] <Pyshnk> it's a simple 'oi store my file bro' and fsys goes 'k'.
789: [11:13:43] <Pyshnk> and then that's that.
790: [11:14:04] <spronk2> see
791: [11:14:15] <spronk2> i don’t actually mind, if the filesystem happens to be a database, that the filesystem interacts with that
792: [11:14:15] <Pyshnk> all File (dataobject) needs to know is which class/configuration to instantiate when inflating again.
793: [11:14:28] <spronk2> but that “database” needs to be separate from the parent
794: [11:14:49] <spronk2> yeah
795: [11:14:56] <Pyshnk> what does the added complexity of the RFC try to solve that your branch doesn't?
796: [11:15:01] <Pyshnk> micmania1: ^
797: [11:15:05] <spronk2> Pyshnk: versioning
798: [11:15:06] <spronk2> workflow
799: [11:15:10] <Pyshnk> oic
800: [11:15:22] <Pyshnk> vershaning
801: [11:15:59] <Pyshnk> Should it not be the job of another system to do versioning?
802: [11:17:22] <micmania1> It doesn't try to solve versioning. That's a future thing
803: [11:17:23] <spronk2> yeahhh
804: [11:17:26] <spronk2> oh?
805: [11:17:36] <spronk2> well there’s plenty of bullshit in the rfc that talks about versioning
806: [11:17:52] <micmania1> It tries to set it up so that it CAN solve versioning, but ut was agreed that its too much change for now
807: [11:18:07] <Pyshnk> spronk2: he's talking about his fork.
808: [11:18:11] <Pyshnk> err, branch.
809: [11:18:20] <micmania1> nah, i'm talking about the RFC
810: [11:18:23] <Pyshnk> oh
811: [11:18:26] <Pyshnk> wtf
812: [11:18:28] <Pyshnk> I see.
813: [11:18:30] <Pyshnk> well
814: [11:18:31] <Pyshnk> fuck
815: [11:18:32] <Pyshnk> what
816: [11:19:41] <micmania1> One of my comments before the RFC was realeased
817: [11:19:50] <micmania1> "When talking about versioned files, as this isn't strictly part of this RFC I think we should talk about this in terms of extension points rather than versioning specifically, although Versioned could be used as a good example."
818: [11:20:00] <spronk2> “We would like the ability to add a 'File' db field to an object, containing enough backend-dependent information to extract data about that file.”
819: [11:20:07] <spronk2> mooyman said ^^. Why???
820: [11:20:24] <Pyshnk> less queries? Idk
821: [11:20:32] <Pyshnk> spronk2: comment. That's what the RF part is for.
822: [11:20:37] <spronk2> i cbf
823: [11:20:38] <spronk2> its shit
824: [11:20:39] <Pyshnk> asking*
825: [11:20:44] <Pyshnk> lol
826: [11:20:46] <spronk2> i dont want to ahve to articulate why
827: [11:20:49] <Pyshnk> well give us reasons here.
828: [11:20:50] <spronk2> it should be obvious
829: [11:20:58] <Pyshnk> nah, i'm too derp
830: [11:21:09] <spronk2> the main part is
831: [11:21:12] <micmania1> spronk2: because that's what Hamish wanted...
832: [11:21:15] * joelpittet has joined #silverstripe
833: [11:21:15] <spronk2> just look at it for like 5 minutes
834: [11:21:24] <spronk2> can’t understand it.
835: [11:21:25] <spronk2> so
836: [11:21:26] <spronk2> too complex.
837: [11:21:40] <spronk2> needs breaking down into smaller bits
838: [11:21:45] <micmania1> A framework should not go into this much detail.
839: [11:21:47] <Pyshnk> yup. I can agree with that.
840: [11:22:07] <Pyshnk> I've skim read it about 5 times now and I am still unsure about 80% of what any of it means.
841: [11:22:07] <micmania1> yea, how is it meant to be brokwn into smaller bits if its fully dependant on the rest of the framework working in a certain way
842: [11:22:17] <Pyshnk> I should be able to get the gist in a skim read.
843: [11:22:30] <spronk2> Pyshnk: that was me 20 minutes ago
844: [11:22:51] <spronk2> now, 20 minutes later, i’m unsure about 75% of what any of it means.
845: [11:23:10] <Pyshnk> heh
846: [11:23:24] <micmania1> You should note that my proposal is listen under alternative and not rejected, so now's your chance to speak up.
847: [11:23:27] <Pyshnk> Ultimately I have this sinking feeling that despite it being an RFC, it'll go through anyway.
848: [11:23:31] <Pyshnk> without many changes.
849: [11:23:35] <Pyshnk> because of teh power behind it.
850: [11:23:35] <spronk2> yeah lol
851: [11:25:53] * joelpittet quit (Ping timeout: 240 seconds)
852: [11:36:27] * wmk quit (Read error: No route to host)
853: [11:36:27] * Werner_2_ has joined #silverstripe
854: [11:37:03] * lerni_ quit (Remote host closed the connection)
855: [11:37:18] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
856: [11:40:56] * Werner_2_ is now known as wmk
857: [11:46:44] <wmk> Pyshnk, croudfunding of the day: https://www.indiegogo.com/projects/the-mod-multivibrating-open-source-dildo
858: [11:47:09] <Pyshnk> LOL
859: [11:47:18] <Pyshnk> luckily for me the joke is in the link
860: [11:47:27] <Pyshnk> I probably won't visit that at work, hahaha
861: [11:47:30] <wmk> ;)
862: [11:48:16] <Zauberfisch> haha
863: [11:48:17] <Zauberfisch> Dilduino Platform
864: [11:48:22] <wmk> OSSex lib
865: [11:50:59] <wmk> did i miss the 3.1.9 release?
866: [11:53:22] <Zauberfisch> wmk: happened tonight I think
867: [11:55:26] <wmk> oh, even security release
868: [12:07:50] * lerni_ has joined #silverstripe
869: [12:10:59] * lerni__ has joined #silverstripe
870: [12:10:59] * lerni_ quit (Read error: Connection reset by peer)
871: [12:14:17] * willmorgan has joined #silverstripe
872: [12:14:39] <willmorgan> anyone tried to stop the creation of a page in the CMS if its parent has over X children?
873: [12:14:46] <willmorgan> if so, how?
874: [12:15:06] <willmorgan> I've tried condition allowedChildren() methods, canCreate (which doesn't work because the parentID is set after the check :-/)
875: [12:15:23] * lerni__ quit (Ping timeout: 240 seconds)
876: [12:16:23] * R\w\C has joined #silverstripe
877: [12:16:32] <R\w\C> hey guys anyone else having issues upgrading to 3.1.9?
878: [12:16:36] <willmorgan> maybe PigeonFriend or kinglozzer will know :)
879: [12:17:02] <R\w\C> i replace cms framework and vendor folder only is that the issue with upgrading?
880: [12:20:21] <kinglozzer> willmorgan: Hmm, dunno, onBeforeWrite() maybe? Gotta be able to stop people moving them too
881: [12:21:14] * lerni_ has joined #silverstripe
882: [12:21:39] * Eliseth quit (Ping timeout: 264 seconds)
883: [12:21:39] <Zauberfisch> willmorgan: the only way I can think of is hiding the pages from the tree view and using a gridfield to manage the children. then in the gridfield remove the add button if children > n
884: [12:22:12] <Zauberfisch> kinglozzer: but wouldn't that only be possible by throwing an exception?
885: [12:25:39] <kinglozzer> Yeah true
886: [12:28:34] <Pyshnk> willmorgan: canCreate()
887: [12:28:48] <Pyshnk> I put the onus on the child, not the parent.
888: [12:29:15] <Pyshnk> and similar for canEdit too I guess, otherwise people make pages and then move 40000billions of them to the same parent afterwards.
889: [12:30:56] <Pyshnk> R\w\C: not used SS since 3.1.5 iirc, so can't comment.
890: [12:31:05] <Pyshnk> but that is basically the upgrade process, yes.
891: [12:31:28] <Pyshnk> although it's important to read the changelogs to ensure there are no issues with the upgrade breaking modules/api calls from your own code.
892: [12:31:35] <Pyshnk> although being a point release there shouldn't be.
893: [12:31:39] <wmk> R\w\C, did you use composer?
894: [12:31:46] <R\w\C> wmk no
895: [12:31:51] <R\w\C> manual upgrade
896: [12:31:51] <wmk> you should ;)
897: [12:32:02] <R\w\C> my server does not support composer
898: [12:32:05] <Pyshnk> did you backup first? :D
899: [12:32:08] <R\w\C> shared hosting
900: [12:32:11] <R\w\C> yes Pyshnk
901: [12:32:17] <wmk> R\w\C, then use composer locally and update with ftp
902: [12:32:18] <R\w\C> i have reverted back to 3.1.8
903: [12:32:23] <R\w\C> wmk :(
904: [12:32:24] <Pyshnk> R\w\C: ever server supports composer. It does however depend on shell access of course :P
905: [12:32:42] <wmk> R\w\C, how do you deploy? any IDE using?
906: [12:32:51] <R\w\C> i zip and upload
907: [12:32:59] <wmk> how do you unzip?
908: [12:33:07] <R\w\C> control panel file manager
909: [12:33:11] <R\w\C> has unzip
910: [12:33:23] * wmk doesn't like that control panel stuff
911: [12:33:29] <R\w\C> :)
912: [12:33:32] <R\w\C> best i got
913: [12:33:34] <Pyshnk> yeh cpanel lets you unzip
914: [12:33:43] <R\w\C> anyway ill wait maybe there is a hotfix
915: [12:33:44] <wmk> however: you could use composer locally, zip and upload
916: [12:33:56] <Pyshnk> wmk: it's nasty but it beats the half hour it takes to upload individual files with ftp
917: [12:33:57] <wmk> R\w\C, you SHOULD use composer
918: [12:34:04] <R\w\C> iv tried composer i didnt really get it
919: [12:34:07] <Pyshnk> yes, composer is the future.
920: [12:34:17] <Pyshnk> so did I, neither did I, but I'd still be using it.
921: [12:34:17] <wmk> R\w\C, that's how we all started with composer
922: [12:34:24] <Pyshnk> if I was deving with ss
923: [12:34:29] <wmk> deving?
924: [12:34:31] <Pyshnk> gotta start somewhere
925: [12:34:35] <Pyshnk> dev-ing
926: [12:34:39] <Pyshnk> developing
927: [12:34:40] <wmk> ah
928: [12:34:41] <R\w\C> but iv upgraded from 3.1.4 -> 3.1.8 without any issues
929: [12:34:44] <Pyshnk> :P
930: [12:35:00] <R\w\C> by downloading the targz and just replacing cms framework and vendor folders
931: [12:35:09] <Pyshnk> R\w\C: yeah, I can't answer sorry. It was only just released, and lately there's been a few issues with point releases being a bit... flakey.
932: [12:35:12] <wmk> R\w\C, composer is ok if you never change any module code (you shouldnt need it)
933: [12:35:13] <Pyshnk> in terms of packaging.
934: [12:35:28] <wmk> you could even tell composer to use your own fork of a module if you need a hotfix
935: [12:40:40] <elgabbu> does a widget have any reference to the page it is being shown on?
936: [12:42:55] <wmk> Director::get_current_page() gives you the current page
937: [12:43:21] <Pyshnk> elgabbu: yes, through the widget holder it is assigned to.
938: [12:43:37] <Pyshnk> page has a wigetholder, widgetholder has widgets. From what I remember
939: [12:44:15] <R\w\C> ok thanks wmk & pyshnk :)
940: [12:47:52] <elgabbu> what about Director::get_current_page();
941: [12:47:54] <willmorgan> Zauberfisch: kinglozzer: yeah, so it seems like this is a massive hole in functionality
942: [12:48:08] <willmorgan> Pyshnk: read the original question and notice I tried that already
943: [12:48:41] <Pyshnk> willmorgan: validate()
944: [12:48:42] <willmorgan> if only we weren't maintaining a custom framework and channelling that effort into the CMS :(
945: [12:48:54] <willmorgan> Pyshnk: also tried that, it doesn't work either and actually causes an error (lol)
946: [12:49:05] <Pyshnk> :<
947: [12:49:07] <willmorgan> if your SiteTree model throws a validation error on creation you get a 500
948: [12:49:11] <Pyshnk> quite the pickle.
949: [12:49:13] <willmorgan> lollerskates mates
950: [12:49:34] <Pyshnk> I suggest putting it on bread, with a bit of pastrami, lettuce and mustard. Maybe a tomato.
951: [12:49:46] <Pyshnk> Lunch! \o/
952: [12:50:24] <Pyshnk> I thought ParentID... oh. Wait, did you say you're not using the CMS to create this page willmorgan ?
953: [12:51:14] * cupcake has joined #silverstripe
954: [12:51:52] <Pyshnk> ParentID is set in a hiddenfield on the create form isn't it?
955: [12:52:11] <cupcake> any idea of how to display a has one relationship in admin? with gridfield it doesnt work
956: [12:52:23] <wmk> Pyshnk, lettuce isn't compatible with urlslug
957: [12:52:43] <Pyshnk> This is true. Luckily I don't put slugs in my SSandwiches.
958: [12:53:00] * cloph_away has joined #silverstripe
959: [12:53:14] * cloph_away is now known as cloph
960: [12:54:15] <wmk> SSandwich... cool
961: [12:54:25] <wmk> we need them on the next conferenSS
962: [12:55:28] <Pyshnk> mm
963: [12:55:57] <wmk> but without slug of course, won't be vegan with
964: [12:56:27] <Pyshnk> depends on your definition of meat I guess, but since they're living creatures I guess they're covered.
965: [12:56:41] <Pyshnk> vegan as opposed to vegetarian.
966: [12:57:52] <Zauberfisch> btw, austria has just extended its railway system
967: [12:57:57] <wmk> ?
968: [12:58:05] <Pyshnk> oh?
969: [12:58:06] <Zauberfisch> there now is a direct train from airport vienna to wissensturm linz
970: [12:58:13] <Zauberfisch> just half a year to late for us D:
971: [12:58:13] <Pyshnk> oh wows
972: [12:58:16] <Pyshnk> haha
973: [12:58:18] <cupcake> any idea of how to display a has one relationship in admin? with gridfield it doesnt work
974: [12:58:22] <Pyshnk> Hey, I made it in the end :P
975: [12:58:26] <wmk> well, Zauberfisch, maybe half a year too early for us
976: [12:58:38] <Pyshnk> soon there will be a train from Hbf to Linz too.
977: [12:58:51] <wmk> cupcake, simon_w has a module
978: [12:59:07] <Zauberfisch> wmk: true, good for the 2 of us, if its in another town we need to fly to we can easily go the the vienna airport
979: [12:59:08] <cupcake> wmk, whats it called
980: [12:59:25] <Zauberfisch> Pyshnk: there is now as well
981: [12:59:41] <wmk> cupcake, do you want to edit the has_one's fields directly?
982: [12:59:58] <cupcake> yes and edit them
983: [13:00:04] <wmk> http://addons.silverstripe.org/add-ons/simonwelsh/hasoneedit
984: [13:00:12] <wmk> you need svn for installation.
985: [13:00:15] <cupcake> and list them
986: [13:00:16] <wmk> i once copied it to git
987: [13:00:30] <Pyshnk> cupcake: you don't list has_one, there's only one.
988: [13:01:24] <cupcake> but i want to show a list in a tabular form and the user selects one
989: [13:01:28] <cupcake> or adds a new one
990: [13:01:45] <wmk> oh
991: [13:01:53] <wmk> there is a has one pickerfield
992: [13:02:00] <cupcake> whats the best way to do it?
993: [13:02:11] <wmk> if you want to add an existing DO or create a new one
994: [13:03:08] <Pyshnk> yeh, has one picker. simon_w might have a module for that too.
995: [13:04:01] <Pyshnk> cupcake: http://addons.silverstripe.org/add-ons/simonwelsh/gridfieldrelationhandler
996: [13:04:02] <Pyshnk> wmk: ^
997: [13:04:09] <wmk> cupcake, http://github.com/sheadawson/silverstripe-quickaddnew
998: [13:04:20] <wmk> extends a dropdown
999: [13:04:38] * spronk2 quit (Quit: spronk2)
1000: [13:04:58] <wmk> used it for e.g. adding a country to a reseller DO
1001: [13:05:22] <wmk> https://github.com/briceburg/silverstripe-pickerfield might be worth a look
1002: [13:05:33] <wmk> it's really depending on what you really need, cupcake
1003: [13:06:09] <Pyshnk> wmk: there used to be a great moudle by ajsort, but gridfield made it mostly obsolete. simon_w's gridfieldrelationhandler does most of the rest of it.
1004: [13:06:18] <willmorgan> Pyshnk: I am using the CMS to create the pages
1005: [13:06:37] <willmorgan> it's fine, dude
1006: [13:06:40] <willmorgan> thanks for your time anyhow
1007: [13:06:45] * Pyshnk shrugs
1008: [13:06:48] <willmorgan> I'll bang my head against the wall for a bit and try to come up with a solution
1009: [13:06:50] <Pyshnk> sorry I couldn't help more
1010: [13:07:05] <Pyshnk> reimplement dataobject xD
1011: [13:07:15] <Pyshnk> and the cms
1012: [13:07:17] <Pyshnk> and silverstripe
1013: [13:07:21] <Pyshnk> :P
1014: [13:10:08] * joelpittet has joined #silverstripe
1015: [13:11:20] <Zauberfisch> Pyshnk: and its cheap as well. airport vienna => linz can go as low as 14 euro
1016: [13:11:38] <wmk> Zauberfisch, westbahn?
1017: [13:11:54] <Zauberfisch> wmk: oebb. but when booked 2 weeks in advance (sparschiene)
1018: [13:11:58] <wmk> ah
1019: [13:12:11] <wmk> that's fine
1020: [13:12:20] <Zauberfisch> yeah. thats pretty cheap
1021: [13:12:58] <wmk> from december also from salzburg
1022: [13:14:11] <Zauberfisch> airport salzburg you mean?
1023: [13:14:29] * Kingy is now known as Kingy[a]
1024: [13:14:57] * joelpittet quit (Ping timeout: 272 seconds)
1025: [13:15:10] <wmk> no, railjet from salzburg - linz -wien
1026: [13:15:25] * Kingy[a] is now known as Kingy
1027: [13:16:06] <Zauberfisch> ah. I see
1028: [13:16:22] <wmk> seems like Sparschine is not available for other connections. just the one with ICE
1029: [13:16:26] <wmk> which is a nice train ;)
1030: [13:18:22] * UndefinedOffset has joined #silverstripe
1031: [13:26:16] <Zauberfisch> indeed
1032: [13:26:21] <Zauberfisch> they also have wifi now
1033: [13:27:53] <Pyshnk> Both OBB and Westbahn were nice when I travelled on them.
1034: [13:31:43] * ss31noob quit (Ping timeout: 246 seconds)
1035: [13:33:16] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1036: [13:33:28] * cupcake quit (Ping timeout: 246 seconds)
1037: [13:50:16] <_hschillig> Can somebody help me out with the routing issue I'm having. willr gave me a suggestion yesterday, but it isn't working. This is what i have so far: http://pastebin.com/6WMN0HVD When I go to category/recipes, I want it to list all the recipes under that category. Now if I go under category/recipes/view/2, I want it to view the posting ID with 2 under the recipes category...
1038: [13:50:39] <_hschillig> Both pages are coming up with 'Page not found'
1039: [13:52:27] <wmk> _hschillig, you have category in both, your routes yml and $url_handlers
1040: [13:52:44] <wmk> try to remove it in $url_handlers
1041: [13:53:18] <wmk> and use "$Category!" => 'index' (notice the ! after the variable)
1042: [13:53:44] <wmk> and maybe try to reverse the order in $url_handlers, not sure if it's really needed
1043: [13:53:51] <Zauberfisch> there isn't really a bad train in austria. they all are pretty good. all inter city trains have power plugs. and mobile data in austria is so cheap that I don't even bother connecting to wifi if there is one
1044: [13:53:52] <wmk> _hschillig, hth
1045: [13:54:12] <PigeonFriend> wmk youy want the most specific first as it'll match the first one it can
1046: [13:54:38] <PigeonFriend> _hschillig: I think this is going to be tricky because you're using a Page_Controller without associating a model
1047: [13:55:15] <wmk> PigeonFriend, that shouldn't matter. Security does so also
1048: [13:55:28] <wmk> hm, no
1049: [13:55:29] <wmk> doesn't
1050: [13:56:01] <_hschillig> PigeonFriend, I do have a model. I just didn't paste it.. I have a BlogCategory model in the same file where the BlogCategory_Controller one resides.
1051: [13:56:32] <_hschillig> But now category/recipes is pointing to the view() method..? I removed 'category' from the url handlers and changed the one with $Category to $Category! => index...
1052: [13:57:01] <wmk> did you try to reverse the order?
1053: [13:57:02] <wmk> and flush=?
1054: [13:57:15] <PigeonFriend> _hschillig my point is you're routing requests to a Page_Controller without going via a SiteTree object, which I think will complicate things. because you need $URLSegment/$Action/....
1055: [13:57:22] <_hschillig> I changed the order and the index() one works fine, but the view one says Page not found.
1056: [13:57:27] <_hschillig> And yes I'm doing the flush
1057: [13:57:38] <PigeonFriend> and $URLSecment doesn't come through to the url_handlers
1058: [13:57:58] <_hschillig> I would prefer to not use the Page/SiteTree object.. I have a lot of code behind this structure and can't really throw it away.
1059: [13:58:25] * willmorgan1 has joined #silverstripe
1060: [13:58:31] <PigeonFriend> so your URL (in the browser) will need to be category/category/recipes
1061: [13:58:59] * willmorgan quit (Ping timeout: 244 seconds)
1062: [13:59:04] <PigeonFriend> _hschillig: that's fine, then don't extend Page_Controller and extend Controller instead
1063: [13:59:30] * Kingy is now known as Kingy[a]
1064: [13:59:43] <_hschillig> But then it gives me this: I can't handle sub-URLs of a BlogCategory_Controller object.
1065: [14:00:12] <_hschillig> When I try to view a post.. not a category. The category (index) one still works fine when I change it to Controller
1066: [14:00:58] * Kingy[a] is now known as Kingy
1067: [14:10:02] <PigeonFriend> tbh _hschillig, that code you posted is pretty confusing
1068: [14:10:16] <_hschillig> how so?..
1069: [14:10:20] <PigeonFriend> why is the view function looking for a param "otherID" when that param isn't defined in the routing
1070: [14:10:40] <PigeonFriend> why is Blog_Controller calling index as a static method
1071: [14:10:48] <_hschillig> That was my old code.. I'm just trying to at least to get it to hit the die() and then I'll worry about changing all that code..
1072: [14:11:05] <PigeonFriend> ok
1073: [14:11:15] <_hschillig> Because if the category is a recipe, it needs to output a different template... because my recipe views are different than any other category.
1074: [14:11:22] <PigeonFriend> from what I can tell, you'll hit it if you go: category/category/blah/blah/blah
1075: [14:11:34] <_hschillig> that looks silly though repeating category twice...
1076: [14:11:47] <PigeonFriend> indeed, but it's how you've defined your routes...
1077: [14:12:12] <_hschillig> i dont care how my routes are.. i just want it to have a category landing page and a post detail page.. but i dont want to have to repeat category..
1078: [14:12:22] <PigeonFriend> you're saying in the YML that requests to /category/ should go to the BlogCategory_Controller. then you're saying the url_handler there needs to take category/$Category
1079: [14:12:35] * willmorgan has joined #silverstripe
1080: [14:12:49] <_hschillig> I have a BlogPost_Controller too.. I rather have the view() hit that controller instead, but I dont know how to set that up in the routes.yml
1081: [14:12:54] <PigeonFriend> so that means /category -> to controller /category -> url handler -> /blah for $Category
1082: [14:12:55] <PigeonFriend> and so on
1083: [14:13:03] <_hschillig> I only want the category to hit the category controller.. but i couldnt figure out a way to do so
1084: [14:13:28] <PigeonFriend> because you're using Page_Controllers, you don't configure static routes
1085: [14:13:41] <PigeonFriend> you use SiteTree objects
1086: [14:13:53] * willmorgan1 quit (Ping timeout: 240 seconds)
1087: [14:15:49] <_hschillig> ah ok. i just changed the url structure to category/recipes and then post/recipes/post-slug-name/ID
1088: [14:15:54] <_hschillig> and made the post hit the BlogPost controller.
1089: [14:15:58] <_hschillig> Thanks for clearing that up (:
1090: [14:20:57] * Robke has joined #silverstripe
1091: [14:21:10] <Robke> hi guys :) what is the date format in NZ ? :)
1092: [14:21:29] * wmk headbangs
1093: [14:21:54] <Robke> its not nessecary :D
1094: [14:22:19] <Robke> because im confused :D we using like yyyy-mm-dd
1095: [14:22:34] <Robke> nz uses as i know mm dd yyyy
1096: [14:22:45] <Robke> but that is the separators? :D
1097: [14:26:39] <Pyshnk> Robke: nope, dd/mm/yy, same like UK
1098: [14:26:57] <Pyshnk> dd.mm.y, dd-mm-yy, all the same.
1099: [14:27:07] <Pyshnk> the only place in the world where you get mm/dd/yy is USA.
1100: [14:27:19] <Pyshnk> because they're such logical people :P
1101: [14:28:19] <Pyshnk> When SS installs I think it defaults to en_US though, not entirely sure.
1102: [14:28:31] <Robke> nice to hear :)
1103: [14:28:36] <Robke> thanks i found it on google ;D
1104: [14:28:51] <Robke> separators should be / /
1105: [14:28:52] <Robke> :)
1106: [14:29:03] <Pyshnk> well, it doesn't particularly matter, but generally yes.
1107: [14:29:56] <Pyshnk> Japan does it most logically I think, which is just like the rfc.
1108: [14:30:01] <Pyshnk> largest to smallest.
1109: [14:30:16] <Pyshnk> yy-mm-dd-hh-mm-ss etc
1110: [14:30:29] <Pyshnk> same with postage.
1111: [14:30:39] <Pyshnk> country first, house number last.
1112: [14:34:13] <Robke> yep
1113: [14:34:18] <Robke> thansk for help
1114: [14:34:23] <Robke> how is your new year guys? :d
1115: [14:34:26] <Robke> missed a little bit
1116: [14:35:42] * catcher has joined #silverstripe
1117: [14:37:22] <wmk> new year is great and full of work
1118: [14:39:37] * Shrike_Finland quit (Quit: Leaving.)
1119: [14:40:47] <kinglozzer> PigeonFriend: https://github.com/silverstripe/silverstripe-framework/pull/3636 must've been merged into master before 3 was branched off of it
1120: [14:41:51] <PigeonFriend> kinglozzer - ah, ok, so it was merged before we moved to semver, basically
1121: [14:42:03] <PigeonFriend> I'm of the understanding that 3.2 is going to be the last non-semver release... is that right?
1122: [14:42:38] <PigeonFriend> so at the moment semver is nice to have and we should be in the habbit of correctly assigning PRs to the right branches, but it's not a blocker
1123: [14:43:18] <kinglozzer> I have no idea... I've been treating PRs as if we've already adopted it fully
1124: [14:43:33] <kinglozzer> Guess so, seeing as 3.1.9 has a few commits tagged as features
1125: [14:44:20] <Pyshnk> Robke: good new year thanks :)
1126: [14:44:30] <kinglozzer> The other thing is that 3.1.9 breaks backwards compatibility, but to fix a critical security issue. Not sure what semver advises on that.
1127: [14:45:01] <Pyshnk> kinglozzer: probably 3.2 I think.
1128: [14:45:26] <kinglozzer> Probably, but 3.2 isn't anywhere near ready so I think we should ignore it on occasions like that
1129: [14:45:38] <Pyshnk> yeah but then 3.2 would just become 3.3
1130: [14:45:42] * Pyshnk shrugs
1131: [14:45:48] <Pyshnk> I don't see why people get so protective.
1132: [14:46:06] <catcher> I'm too lazy to read the well written doc today. Anyone want to explain what semantic versioning is exactly?
1133: [14:46:10] <Pyshnk> I mean hell, chrome increases major versions every other week without you even knowing it.
1134: [14:46:20] <kinglozzer> catcher: http://semver.org
1135: [14:46:23] <Pyshnk> catcher: major numbers are for major things.
1136: [14:46:29] <Pyshnk> minor numbers are for improvements
1137: [14:46:29] <catcher> kinglozzer, that's the one I'm too lazy to read today.
1138: [14:46:33] <Pyshnk> point releases are for patches.
1139: [14:46:41] <kinglozzer> catcher: The first 3 points summarise it pretty well
1140: [14:46:43] <Pyshnk> maj.min.patch
1141: [14:46:47] <Pyshnk> or something like that
1142: [14:46:54] <catcher> got it, thank you
1143: [14:48:05] <Pyshnk> Right, imma actually read this damn rfc now
1144: [14:48:06] <Pyshnk> :<
1145: [14:48:08] <catcher> So in 3.2.4, it's the 4th patch?
1146: [14:48:18] <Pyshnk> yeh, pretty much.
1147: [14:48:26] <catcher> cool
1148: [14:48:28] <Pyshnk> point release, not purely the number of patches.
1149: [14:48:45] <Pyshnk> pactches these days would be commits I guess.
1150: [14:48:49] * Pyshnk shrugs
1151: [14:48:56] <catcher> fair enough.
1152: [14:49:36] <Pyshnk> SS used to follow the pattern pretty well. but then it got a bit messy.
1153: [14:49:48] <Pyshnk> it's been decided to more strictly follow the guidelines
1154: [14:50:35] <kinglozzer> PigeonFriend: I *think* we have officially adopted semver now - there are only 3 commits in 3.1.9 tagged as features, one was accidentally merged into the wrong branch and I think the other two were a bit earlier so might've been pre-semver
1155: [14:50:36] <kinglozzer> Should probably double-check though :P
1156: [14:51:45] <PigeonFriend> kinglozzer: semver has no distinction between security fixes and/or other fixes. if an API breaks, it's a major release. if it's not an API change or there's a BC addition, then its minor
1157: [14:52:23] <PigeonFriend> I belive that 3.1.9 didn't add or remove any APIs, it just changed the behaviour of an API... so.. that probably should be a minor
1158: [14:53:53] <PigeonFriend> catcher: semver dictates that version numbers are: MAJOR.MINOR.PATCH. Major == breaking API change, Minor == BC API change or addition of new API, Patch == bug fix, no API change
1159: [14:54:35] <_hschillig> So does Silverstripe's fulltext search (http://doc.silverstripe.org/framework/en/tutorials/4-site-search) only search through the Page table in the database?
1160: [14:55:11] <PigeonFriend> kinglozzer: if you officially adopy semver, then you don't release features in patches. end of. if it got there by mistake, it gets reverted and not released as a patch
1161: [14:55:12] <catcher> _hschillig, to start with, yes, since it doesn't know what should be searched on custom objects.
1162: [14:55:23] <_hschillig> Ok thanks..
1163: [14:55:58] <kinglozzer> PigeonFriend: Yeah as Pyshnk pointed out, if 3.1.9 introduced backwards incompatible changes (I'm pretty sure it did) it could've been release as 3.2, then bump "current 3.2" up to 3.3. So perhaps we're not doing it on the 3.1.x releases
1164: [14:56:29] <wmk> wasn't semver from 3.2 on?
1165: [14:56:52] <wmk> though i fear we have SS7 in one year
1166: [14:58:56] * joelpittet has joined #silverstripe
1167: [14:59:43] * Kingy is now known as Kingy[a]
1168: [14:59:49] <PigeonFriend> Pyshnk: SS has never followed semver
1169: [15:00:07] * R\w\C has joined #silverstripe
1170: [15:00:19] <R\w\C> is there a quick way to DataObject::get in template without having to make action in controller?
1171: [15:00:35] <R\w\C> to get all data of a certain type
1172: [15:00:37] * Kingy[a] is now known as Kingy
1173: [15:00:57] <kinglozzer> PigeonFriend: http://beta.doc.silverstripe.org/en/contributing/release_process/ "Note: Until November 2014, the project didn't adhere to Semantic Versioning."
1174: [15:01:23] <kinglozzer> It only mentions a date, not a line of releases, so I guess we are now
1175: [15:01:30] <kinglozzer> So those features should've been reverted
1176: [15:01:48] <PigeonFriend> I think what we can determine is that no one knows what the hell is going on
1177: [15:02:00] <PigeonFriend> as November 2014 was not when we started semver because we have not started semver
1178: [15:03:44] * joelpittet quit (Ping timeout: 256 seconds)
1179: [15:05:17] <kinglozzer> R\w\C: <% loop List(MyDataObjectClass) %>
1180: [15:05:37] <kinglozzer> Or rather.. <% loop List('MyDataObjectClass') %>
1181: [15:07:34] <R\w\C> ok and if i wish to filter this list?
1182: [15:07:37] <R\w\C> is that possible in template
1183: [15:07:58] <R\w\C> List(results).filter(''featured,'true') ?
1184: [15:08:11] <kinglozzer> R\w\C: Yep
1185: [15:08:22] <kinglozzer> R\w\C: .Filter('Featured', 1)
1186: [15:08:25] <kinglozzer> If it's a boolean
1187: [15:08:48] * muskie9 has joined #silverstripe
1188: [15:08:52] <R\w\C> awesome!
1189: [15:08:56] * R\w\C kisses kinglozzer
1190: [15:09:02] <R\w\C> i have always done it in controller
1191: [15:09:07] <R\w\C> so never knew this was possible
1192: [15:09:53] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1193: [15:10:45] <kinglozzer> R\w\C: Generally speaking, it's better to do it in a controller. No one wants to open a template to find <% loop List(SomeObject).Filter('Featured', 1).Exclude('Size', 'small').Sort('SortOrder').Limit(3) %>
1194: [15:10:45] <kinglozzer> But for really simple stuff, go fo it
1195: [15:10:50] <kinglozzer> Oh
1196: [15:14:25] <catcher> kinglozzer, come on, front-end devs love that stuff.
1197: [15:15:21] <kinglozzer> catcher: most of the time I'm the front-end dev too! :P
1198: [15:15:33] <kinglozzer> And I don't love it D:
1199: [15:18:15] <catcher> You must not have heard about the new M V/C C paradigm.
1200: [15:19:29] <kinglozzer> catcher: Maybe that's what MV* means
1201: [15:19:40] <kinglozzer> V* = view + everything else
1202: [15:19:45] <kinglozzer> In one
1203: [15:19:47] <kinglozzer> :P
1204: [15:22:01] <Pyshnk> how to make vmware capture input at bootloader screen? :<
1205: [15:22:08] * lerni_ quit ()
1206: [15:22:18] <Pyshnk> [14:59] <PigeonFriend> Pyshnk: SS has never followed semver
1207: [15:22:26] <Pyshnk> Had a loose approximation when Ingo ran the show.
1208: [15:23:03] <Pyshnk> up until 2.4 basically
1209: [15:23:43] <elgabbu> guy i have create a dataextension to extend the SiteConfig class to add a new setting
1210: [15:23:53] <Pyshnk> don't do that.
1211: [15:23:59] <Pyshnk> well, you can, but it's not advisable.
1212: [15:24:10] <Pyshnk> oh wait, sorry.
1213: [15:24:10] <elgabbu> what's the better approach?
1214: [15:24:18] <Pyshnk> You said SiteConfig, I read SiteTree :<
1215: [15:24:22] <Pyshnk> That's fine.
1216: [15:24:23] <elgabbu> a ok :)
1217: [15:24:50] <elgabbu> alright so i am trying to set the default value so that immediately after dev build the field is populate with a value
1218: [15:25:03] <Pyshnk> never will.
1219: [15:25:05] <Pyshnk> ever.
1220: [15:25:10] <Pyshnk> that's not what default value is for.
1221: [15:25:28] <Pyshnk> It will populate a default when you _create_ a SiteConfig.
1222: [15:25:35] <elgabbu> oh
1223: [15:25:46] <Pyshnk> otherwise all your settings would be overwritten every time you ran dev/build, wouldn't they? ;)
1224: [15:26:02] <Pyshnk> You just have to manually update the record.
1225: [15:26:22] <elgabbu> you sure there is no way to specifiy a default value when the new field is created?
1226: [15:26:32] <Pyshnk> well it only ever gets created once.
1227: [15:26:35] <Pyshnk> just update it.
1228: [15:27:46] <Pyshnk> update SiteConfig set NewField values 'DefaultValue'
1229: [15:35:20] * Robke quit (Ping timeout: 246 seconds)
1230: [15:48:11] <slievr> does anyone know if there is a non template equivalent of <% loop $Menu(1) %>
1231: [15:48:34] <kinglozzer> slievr: foreach($this->getMenu(1) as $item) ?
1232: [15:49:14] <slievr> kinglozzer, YES! thank you
1233: [15:52:01] * Guits quit (Ping timeout: 272 seconds)
1234: [16:00:28] * slievr quit (Ping timeout: 246 seconds)
1235: [16:07:28] * Guits has joined #silverstripe
1236: [16:16:31] * stnvh quit (Quit: quit)
1237: [16:18:11] * joelpittet has joined #silverstripe
1238: [16:29:14] * arnhoe quit ()
1239: [16:31:36] * slievr has joined #silverstripe
1240: [17:01:16] * slievr quit (Quit: Page closed)
1241: [17:01:28] <willmorgan> oh wow
1242: [17:01:45] <willmorgan> just came back to looking at this children limiting ticket I'm working on atm
1243: [17:01:50] <willmorgan> "canAddChildren" is a thing
1244: [17:03:04] <kinglozzer> willmorgan: No way! Haha
1245: [17:04:16] <willmorgan> well, we'll see if it works...
1246: [17:04:22] <willmorgan> I'm just reading the random CMS controllers
1247: [17:04:25] <willmorgan> and seeing what's up
1248: [17:04:39] <willmorgan> OMG
1249: [17:04:51] <willmorgan> IT WORKS
1250: [17:04:56] <willmorgan> (albeit with a terrible error message)
1251: [17:05:05] <kinglozzer> Security::permissionFailue() ? :P
1252: [17:05:09] * kinglozzer is scanning controllers too
1253: [17:05:15] <willmorgan> holy fucking shit guys
1254: [17:05:20] <willmorgan> it follows through on the CMS JS
1255: [17:05:27] <willmorgan> so you can't drag it in via the site tree UI
1256: [17:05:39] <willmorgan> you have no idea how excited I am right now
1257: [17:05:52] <kinglozzer> willmorgan: How about the "Parent" dropdown in page settings? :P
1258: [17:06:09] <willmorgan> pfft, probably not
1259: [17:06:12] <willmorgan> I have validate for that
1260: [17:06:31] <willmorgan> let's see
1261: [17:06:36] <willmorgan> oh lol
1262: [17:06:43] <willmorgan> well actually, in this CMS, you can't edit the parent that way
1263: [17:07:03] <willmorgan> but I'll look now
1264: [17:07:05] <kinglozzer> Problem solved!
1265: [17:07:13] <willmorgan> s/solved/deferred
1266: [17:08:23] <willmorgan> weeee
1267: [17:08:23] <willmorgan> https://dl.dropbox.com/u/4215179/clips/2015-01/2015-01-15_17-08-18.png
1268: [17:10:20] * _hschillig has left #silverstripe
1269: [17:16:55] * wmk quit (Quit: nice to meet you ;))
1270: [17:19:09] * masnun has joined #silverstripe
1271: [17:20:51] * nontgor quit (Ping timeout: 256 seconds)
1272: [17:23:54] * R\w\C has joined #silverstripe
1273: [17:26:56] * nontgor has joined #silverstripe
1274: [17:29:11] * kinglozzer home
1275: [17:29:12] * kinglozzer quit ()
1276: [17:32:11] <Pyshnk> wheeeeeeee
1277: [17:32:13] * Pyshnk quit ()
1278: [17:52:29] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
1279: [18:06:12] * ThePeach quit (Quit: leaving)
1280: [18:10:16] * muskie9_ has joined #silverstripe
1281: [18:11:52] * muskie9_ quit (Client Quit)
1282: [18:13:18] * muskie9 quit (Ping timeout: 245 seconds)
1283: [18:13:48] * Kingy is now known as Kingy[a]
1284: [18:14:18] * Kingy[a] is now known as Kingy
1285: [18:36:18] <catcher> I'm seeing occasional 404s on assets referenced in templates with $ThemeDir, it's as though it sometimes acts as though it includes a leading slash.
1286: [18:36:56] <catcher> i.e. 404 on http://foo.com/controller/action/themes/myTheme/images/image.png
1287: [18:37:15] <catcher> When it should be referring to http://foo.com/themes/myTheme/images/image.png
1288: [18:37:37] <catcher> The reference is merely src="$ThemeDir/images/image.png"
1289: [18:42:19] * gelignite has joined #silverstripe
1290: [18:43:37] <catcher> Anyone else experience this?
1291: [18:49:29] <catcher> I guess the referrer is generally unset, maybe they're direct.
1292: [18:52:46] * Kingy is now known as Kingy[a]
1293: [19:12:12] * willmorgan quit (Quit: Leaving.)
1294: [19:15:54] * Stomach has joined #silverstripe
1295: [19:28:12] * mobiusnz has joined #silverstripe
1296: [19:35:02] * aragonne has joined #silverstripe
1297: [19:35:36] * Ryan-Toast has joined #silverstripe
1298: [19:35:57] * UncleCheese has joined #silverstripe
1299: [19:38:47] * mobiusnz quit (Quit: Leaving.)
1300: [19:39:51] * UncleCheese quit (Client Quit)
1301: [19:44:44] * muskie9 has joined #silverstripe
1302: [19:49:14] * scpi has joined #silverstripe
1303: [19:52:44] * aragonne quit (Quit: aragonne)
1304: [19:52:58] <scpi> I've run into a problem moving a site to a new host. Apache rewrites are on (I ran the installer just to make sure), but I can only get at the site via index.php
1305: [19:53:16] <scpi> just using http://example.com/ returns a server error
1306: [19:53:30] <scpi> http://example.com/index.php works.
1307: [19:54:02] <Ryan-Toast> scpi: sounds like an .htaccess issue.
1308: [19:54:06] <muskie9> scpi do you have the rewrite base in htaccess set properly
1309: [19:54:50] <scpi> it's the exact same one from my old host, I didn't see any obvious problem with it
1310: [19:55:23] <scpi> weird part is that it shows RewriteBase '/'
1311: [19:55:26] <Stomach> scpi - is mod_rewrite enabled
1312: [19:55:59] <scpi> But the html in the non-working server error page shows the base href as http://localhost:8888
1313: [19:56:18] <scpi> That's actually my development setup, but I can't find that value set in my code anywhere
1314: [19:56:26] <Stomach> thats the error page
1315: [19:56:33] <Stomach> you'd have to publish it
1316: [19:57:03] <scpi> The silverstripe installer shows rewrites as working
1317: [19:57:13] * mobiusnz has joined #silverstripe
1318: [19:57:18] * spekulatius has joined #silverstripe
1319: [19:57:28] * glenn-bautista has joined #silverstripe
1320: [19:57:55] <Stomach> an actual wordpress release: https://github.com/WordPress/WordPress/blob/4.1-branch/wp-admin/includes/upgrade.php#L1830
1321: [19:57:59] <Stomach> the fuck.
1322: [19:58:29] <Stomach> scpi - can you turn error display on and see what its throwing rather than getting the 500?
1323: [20:00:13] * mobiusnz quit (Client Quit)
1324: [20:01:32] <scpi> by putting it into dev mode?
1325: [20:03:17] <scpi> that was the first thing I tried. same result, no helpful messages.
1326: [20:04:54] * gelignite quit (Quit: http://bit.ly/nkczDT)
1327: [20:12:03] * veb has joined #silverstripe
1328: [20:12:37] <Ryan-Toast> How do you set devDependencies for package.json to be the lastest versions?
1329: [20:18:31] * _hschillig has joined #silverstripe
1330: [20:18:40] <Stomach> *
1331: [20:18:53] <Stomach> or ^x.x.x
1332: [20:19:04] <_hschillig> Hi I was wondering how to include inside of a custom form template. Whenever I do <% include FormField %> it doesn't include my FormField.ss file under my Includes directory.
1333: [20:19:12] <_hschillig> Do I have to do something when rendering the template in my controller?
1334: [20:19:31] <_hschillig> renderWith(array($this->class, 'Form')) that's how it showed to render templates in the form docs
1335: [20:19:33] <Stomach> _hschillig - you can do $Fields.dataFieldByName('MyField')
1336: [20:20:08] <_hschillig> I know but sometimes I need control over the exact html output of it..
1337: [20:20:33] <_hschillig> http://pastebin.com/gsuyJLsm
1338: [20:20:51] <Stomach> <% with $Fields.dataFieldByName('MyField') %><% include MyFormField %><% end_with %>
1339: [20:20:53] <Stomach> does that work?
1340: [20:20:57] <_hschillig> And sometimes checkboxes or radio ones will use a different include.
1341: [20:21:13] * mobiusnz has joined #silverstripe
1342: [20:21:27] <scpi> ...is there an error display option i
1343: [20:21:27] <scpi> '
1344: [20:21:34] <Stomach> scpi - in your php.ini
1345: [20:21:51] <_hschillig> I'm not getting any error. The markup just isn't showing that is in my include.
1346: [20:21:52] <scpi> ah!
1347: [20:21:56] <Stomach> <% with $Fields.dataFieldByName('MyField') %><% include MyFormField Field=$Me %><% end_with %>
1348: [20:22:01] <Ryan-Toast> Stomach: chur
1349: [20:22:08] <Stomach> something like that _hschillig ?
1350: [20:22:43] <Stomach> Ryan-Toast :)
1351: [20:22:53] <_hschillig> <% include FormField=$Me %> That throws a parse error: Uncaught SSTemplateParseException: Parse error in template on line 12. Error was: Unknown open block "with" encountered. Perhaps you missed the closing tag or have mis-spelled it?
1352: [20:23:04] <Ryan-Toast> Stomach: So this is fine? http://www.sspaste.com/paste/show/54b8217de4194
1353: [20:23:08] * jedateach has joined #silverstripe
1354: [20:23:28] <Stomach> _hschillig - you didn't copy my code exactly
1355: [20:23:29] <scpi> ok, so that did nothing.
1356: [20:23:44] <_hschillig> MyFormField? I dont' have an include that is titled that tho..
1357: [20:24:04] <Stomach> <% include FormField Field=$Me %>
1358: [20:24:17] * Colin[pi] has joined #silverstripe
1359: [20:24:18] <Stomach> then wrap your FormField.ss with a <% with $Field %>
1360: [20:24:22] <Stomach> I have no idea if this will work
1361: [20:24:52] <Colin[pi]> hai guys
1362: [20:24:52] <Stomach> Ryan-Toast - yeah that should be gravy
1363: [20:24:57] <Ryan-Toast> Stomach: aww yiss
1364: [20:25:14] <Ryan-Toast> Colin[pies]: hai
1365: [20:25:22] <Colin[pi]> mm pies
1366: [20:25:24] <Stomach> morena Colin[pi]
1367: [20:25:27] <_hschillig> Yeah that didnt work
1368: [20:25:33] <Colin[pi]> bom dia Stomach!
1369: [20:25:33] <_hschillig> Can you simply not include templates inside a form template?
1370: [20:25:37] * r_hector has joined #silverstripe
1371: [20:25:41] <_hschillig> since the form template is already inside the Includes directory?
1372: [20:25:48] <Stomach> one second _hschillig I will give it a go locally
1373: [20:27:02] * riddler7 has joined #silverstripe
1374: [20:27:25] <Stomach> <% include FormFieldTest Field=$Fields.dataFieldByName('Email') %>
1375: [20:27:38] <Stomach> without the wrapped <% with %> call
1376: [20:27:56] * wracu quit (Quit: Leaving)
1377: [20:27:58] <Stomach> and then inside formfieldtest.ss i have <% with $Field %>$Name asdas<% end_with %>
1378: [20:28:24] * Vanny has joined #silverstripe
1379: [20:30:40] <Vanny> Hi All. Still a Newbie, but I am doing a site that has an 18+ filter on the first page. How can I make all pages in the site make sure goes through the landing, but still get index by crwalers
1380: [20:30:49] <_hschillig> Weird still not including for me...
1381: [20:31:32] <_hschillig> is your form template in the includes directory?
1382: [20:31:39] <Stomach> nope in a layout folder
1383: [20:31:40] <_hschillig> i dont think an included file can include another file.. can it?
1384: [20:31:44] <Stomach> yeah it can
1385: [20:31:49] <_hschillig> Oh.. idk then.
1386: [20:32:01] <_hschillig> Looks like I'll just have to copy and paste that code for every field...
1387: [20:32:07] <_hschillig> it'll look ugly but i cant see why it wont work
1388: [20:32:12] <Stomach> it does work
1389: [20:32:15] <Stomach> just not for you
1390: [20:32:24] <_hschillig> that doesnt make any sense.
1391: [20:32:33] <Colin[pi]> Stomach: that's 99% of my day
1392: [20:32:34] <_hschillig> did you test it in the includes folder?
1393: [20:32:34] <Stomach> are you sure that the $Fields.dataFieldByName('') is returning an object
1394: [20:33:11] <_hschillig> Yes because when I copy what I have in the include file, it is perfect on screen, but when I move that code into that include file, it disappears.. it doesn't actually include that markup in that file at all.
1395: [20:33:20] <_hschillig> i tested it before i turned it into an include.
1396: [20:33:24] <_hschillig> and it works fine
1397: [20:34:27] <_hschillig> I just put HEY inside the include and it wont even print that. so its not including the file for some god given reason.
1398: [20:34:28] <Stomach> it works perfectly for me
1399: [20:35:38] <_hschillig> are you returning your Form with teh forTemplate() method?
1400: [20:35:48] <_hschillig> Maybe it has something to do with that.. maybe it doesnt do includes there.. idk
1401: [20:36:04] <Stomach> http://pastie.org/9834071
1402: [20:38:48] <_hschillig> Hmm I had to renmae my include file.. when it was called FormField.ss, it wouldnt include it. But I just changed it to FormFieldTest and it works fine
1403: [20:38:53] <glenn-bautista> Vanny: you could just do the 18+ thing all in javascript
1404: [20:39:19] * muskie9 quit (Read error: Connection reset by peer)
1405: [20:39:35] <Vanny> I was thinking of a session based variable. Or maybe I should cookie it, so once they do it once it is done
1406: [20:39:49] <Colin[pi]> glenn-bautista: what about something in the PageController init() ?
1407: [20:39:53] <Colin[pi]> check session variable
1408: [20:39:59] * muskie9 has joined #silverstripe
1409: [20:40:06] <Stomach> _hschillig - its probably due to that conflicting with the default formfield.ss name
1410: [20:40:13] <Stomach> which will get loaded in the manifest first
1411: [20:40:17] <Stomach> and isnt an include
1412: [20:42:13] <_hschillig> Yup.. thanks for your help
1413: [20:44:03] <glenn-bautista> Colin[pi]: yeah that's another way. We actually do it that way for one of our age checked sites
1414: [20:44:45] <Colin[pi]> Vanny: so in the init() you could check the session var, if it's not there, redirect to age check page
1415: [20:45:35] <Vanny> Yep working on that now, thanks Colin
1416: [20:45:43] <_hschillig> Is there a way to do an array with the textfield in silverstripe? Since I'll be having texts that can be added many times with different values, but it's for the same text field. Like times available. One box can say 5pm, they can add another one and put 6pm.. and those would be under "times[]", but as a text field. I know they have a set for checkboxes.
1417: [20:46:50] * joelpittet quit (Remote host closed the connection)
1418: [20:49:34] * antmas has joined #silverstripe
1419: [20:54:52] <Stomach> _hschillig - just implode and explode it ?
1420: [20:55:02] * novaweb quit (Quit: Leaving)
1421: [20:55:39] * micmania1 has joined #silverstripe
1422: [20:59:36] * joelpittet has joined #silverstripe
1423: [20:59:43] <scpi> so this is fun... I decided to start with a fresh install on this new host.
1424: [21:00:04] <scpi> Install via composer... Internal Server Error
1425: [21:00:39] <scpi> can't even get to index.php or install.php.
1426: [21:00:43] <scpi> loving this.
1427: [21:02:04] <Stomach> lol
1428: [21:02:07] <Stomach> your host sucks
1429: [21:02:08] <Stomach> :D
1430: [21:03:35] <scpi> The funny thing is I have silverstripe running for another client on this same host. So what the hell?
1431: [21:04:03] <scpi> A Small Orange is usually pretty ok for shared hosting
1432: [21:04:06] <catcher> scpi, windows or linux?
1433: [21:04:22] <scpi> linux
1434: [21:04:42] <catcher> htaccess perhaps
1435: [21:04:51] <adrexia> yeah, I was think htaccess
1436: [21:05:03] * gelignite has joined #silverstripe
1437: [21:05:12] <catcher> If you had said windows, I would've said your problem is windows.
1438: [21:05:24] <scpi> htaccess problem on a fresh install?
1439: [21:05:27] <antmas> parts ordered!
1440: [21:05:29] <antmas> :D
1441: [21:05:35] <Colin[pi]> antmas: new PC??
1442: [21:05:35] <antmas> also morning all
1443: [21:05:49] <catcher> scpi, sure, environments can vary a lot.
1444: [21:05:53] <catcher> vhosts / rewritebase, etc.
1445: [21:05:56] <antmas> Colin[pi]: yar
1446: [21:06:01] <Colin[pi]> antmas: sweet!
1447: [21:06:09] <Colin[pi]> dat feel when they arrive and you start building
1448: [21:06:22] * pippy quit (Ping timeout: 246 seconds)
1449: [21:06:24] <antmas> gtx970, 16ram, mobo, 4690k
1450: [21:06:37] <Colin[pi]> antmas: nice
1451: [21:08:14] <Colin[pi]> antmas: which mobo you decide on?
1452: [21:09:56] <antmas> lemme double check
1453: [21:10:37] <antmas> Colin[pi]: http://www.gigabyte.co.nz/products/product-page.aspx?pid=4966#ov
1454: [21:11:10] <Colin[pi]> antmas: o vnice
1455: [21:11:22] <Colin[pi]> that pc should kick arse
1456: [21:11:28] <antmas> I hope so
1457: [21:11:34] <antmas> fucking thing cost like $1200
1458: [21:11:34] * mahfuz quit (Quit: Page closed)
1459: [21:11:37] <Colin[pi]> lol
1460: [21:11:44] <Colin[pi]> my mobo is gigabyte too, good qual
1461: [21:11:48] <Colin[pi]> last for ages
1462: [21:11:56] * mahfuz has joined #silverstripe
1463: [21:12:03] <antmas> my current one is Asus I think
1464: [21:12:19] <antmas> wait no Gigabyte
1465: [21:12:35] <antmas> a gigabyte covered in corrosion from a water cooling leak
1466: [21:12:36] <antmas> :D
1467: [21:12:39] <antmas> #winning
1468: [21:12:43] <Colin[pi]> ouch
1469: [21:13:43] <Colin[pi]> this is why I don't do liquid cooling, my luck is not good enough
1470: [21:14:42] <antmas> yeah I'm avoiding it this time around
1471: [21:14:47] <antmas> didn't order a cooler either
1472: [21:15:05] <antmas> as my mate has the exact same setup, with a stock cooler and it never goes over 45
1473: [21:15:17] <Colin[pi]> lol you using the one you already have that's the size of a small moon?
1474: [21:15:33] <antmas> Colin[pi]: haha no, it doesn't have a 1150 mount :P
1475: [21:15:36] <Colin[pi]> lol
1476: [21:15:58] <antmas> stock coolers must have improved a lot since I last upgraded
1477: [21:16:11] <Colin[pi]> yeah I hope so, as the one on my i5 720 was a piece of shit
1478: [21:16:28] <Colin[pi]> 760 rather
1479: [21:16:48] <Colin[pi]> now with the noctua... never gets hots
1480: [21:16:52] <Colin[pi]> *hot
1481: [21:16:55] <Colin[pi]> cant type today ffs
1482: [21:19:52] <antmas> it would be amazing if the parts turned up tomorrow
1483: [21:19:58] <antmas> or even monday
1484: [21:25:33] <Colin[pi]> "A LAWYER for a Sydney woman held hostage during the deadly Lindt Cafe siege in Martin Place last month has offered to sell her ‘wonderful story’ for no less than ‘six figures’."
1485: [21:25:35] <Colin[pi]> stay classy
1486: [21:27:10] * Cws has joined #silverstripe
1487: [21:27:38] <Cws> Any way to strip HTML tags from content?
1488: [21:27:49] <Cws> Tried strip_tags, but doesn't seem to do anything
1489: [21:27:50] <catcher> php, strip_tags
1490: [21:27:53] <Cws> :(
1491: [21:28:03] <catcher> Cws, it definitely does something :)
1492: [21:28:11] * camfindlay has joined #silverstripe
1493: [21:28:14] <Colin[pi]> Cws: ur doin it wrong
1494: [21:28:15] <catcher> Cws, perhaps you're not saving the result, or you don't actually have tags in the string
1495: [21:29:24] <Cws> Yeah I've gotta be doing something wrong, text is stored as Text (SS class)
1496: [21:29:59] <Cws> both print($test) and print(strip_tags($test)) display the same thing, both with tags
1497: [21:30:16] <catcher> Cws, are you sure they're tags and not character codes?
1498: [21:30:50] <Cws> It's just not stripping <p> tags, although I don't think any other tags are present within the text
1499: [21:31:10] <catcher> Cws, try var_dump instead of print
1500: [21:33:40] * antmas quit (Quit: Page closed)
1501: [21:34:17] * Vanny quit (Quit: Page closed)
1502: [21:36:34] <Cws> Hardcoding the content to string then stripping seems to work
1503: [21:36:45] <Cws> But pulling it from content doesn't strip
1504: [21:37:03] <Stomach> they are probably encoded
1505: [21:37:04] <Cws> Tried converting from Text to string, still not working
1506: [21:37:20] <Stomach> try $text->RAW()
1507: [21:37:23] <Stomach> or whatever it is
1508: [21:37:59] <Cws> ayyyyyyy there we go
1509: [21:38:06] <Cws> Thanks Stomach :)
1510: [21:38:40] <Stomach> np :)
1511: [21:39:14] * _hschillig has left #silverstripe
1512: [21:41:34] <mobiusnz> is it possible to use a custom template to render backend fields for a dataobject?
1513: [21:42:20] <Stomach> yep
1514: [21:42:26] <Stomach> chuck them in mysite/templates
1515: [21:48:58] * 7F1ACEMNF has joined #silverstripe
1516: [21:48:59] <7F1ACEMNF> silverstripe/silverstripe-cms#1113 (master - 0c62270 : Damian Mooyman): The build has errored.
1517: [21:48:59] <7F1ACEMNF> Change view : https://github.com/silverstripe/silverstripe-cms/compare/6ace56418e82...0c62270144a7
1518: [21:48:59] <7F1ACEMNF> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/47172531
1519: [21:48:59] * 7F1ACEMNF has left #silverstripe
1520: [21:52:55] * Cws quit (Ping timeout: 246 seconds)
1521: [21:56:06] * micmania1 quit (Quit: micmania1)
1522: [22:01:03] <ss23> ibeardslee: When is the pizza? Lunch time? 12:30? :O
1523: [22:03:04] * UndefinedOffset quit (Quit: Leaving.)
1524: [22:03:56] <ibeardslee> 13:00
1525: [22:04:09] <ibeardslee> ss23: ^^
1526: [22:05:01] * travis-ci has joined #silverstripe
1527: [22:05:02] <travis-ci> silverstripe/silverstripe-framework#3889 (master - 58cb0af : Damian Mooyman): The build has errored.
1528: [22:05:02] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/a75766ee4971...58cb0af7532f
1529: [22:05:02] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/47172545
1530: [22:05:02] * travis-ci has left #silverstripe
1531: [22:05:32] <ss23> mmk :D
1532: [22:05:35] * ss23 adds to his list
1533: [22:08:37] * sheadawson has joined #silverstripe
1534: [22:09:33] * ghostcheese has joined #silverstripe
1535: [22:09:39] <ghostcheese> ss23 we urgently need your help!!!
1536: [22:09:39] <irogue> Aucklanders: Hackfest on 31st Jan - http://www.meetup.com/SilverStripe-Auckland/events/219799956/ and Meetup on 4th Feb - http://www.meetup.com/SilverStripe-Auckland/events/219791811/
1537: [22:09:51] <ghostcheese> what should we call our theme???
1538: [22:10:12] <ss23> ghostcheese: :O
1539: [22:10:14] <ss23> Um
1540: [22:10:21] <ss23> That's a touch decision DON'T PUT THIS ON ME
1541: [22:10:21] <ss23> :O
1542: [22:10:36] <ss23> ghostcheese: Also, make sure you put it on addons.silverstripe.com so other people can find it AND GET JAMES TO FINISH HIS DOCS PULL REQUEST
1543: [22:10:44] <ghostcheese> no but all we can come up with is Anti-Comic Sans or Space Monkeys
1544: [22:10:51] <ghostcheese> apparently he has
1545: [22:10:59] <irogue> ghostcheese: find someone with a Cards against Humanity set, grab three random white cards, and pick the funniest
1546: [22:11:04] <irogue> that is your theme name
1547: [22:11:04] * blahblah24 has joined #silverstripe
1548: [22:11:12] <ss23> XD
1549: [22:11:16] <ss23> Oh god
1550: [22:11:16] <ss23> no
1551: [22:11:20] <ghostcheese> hmmm not a bad idea irogue
1552: [22:11:23] <ghostcheese> :)
1553: [22:11:26] <ss23> YES IT IS
1554: [22:11:29] <ss23> :O
1555: [22:11:39] <irogue> ss23: you're welcome :D
1556: [22:11:44] <ghostcheese> okay okay calm down we don't have a set anyway
1557: [22:11:56] <irogue> i do, i'll grab 3 random cards for you
1558: [22:12:05] <ghostcheese> tell us what they say...
1559: [22:12:16] <ss23> ghostcheese: https://github.com/silverstripe/silverstripe-framework/pull/3790
1560: [22:12:22] <ss23> He made the pull request, it needs a change
1561: [22:12:30] <ss23> Get Elliot to talk him through doing an --amend to change the commit
1562: [22:12:35] * micmania1 has joined #silverstripe
1563: [22:13:19] <Ryan-Toast> We need to do the Hackfests on Friday or something.
1564: [22:13:28] <ghostcheese> so... about our theme name?
1565: [22:13:30] <Ryan-Toast> Saturday is my hangover/hair of the dog day
1566: [22:13:33] <sheadawson> Hey does anyone have any ideas on http://stackoverflow.com/questions/27957907/silverstripe-unpublish-dataobject-but-keep-its-many-many-relationship-records
1567: [22:13:38] * masnun quit (Quit: Signing out.)
1568: [22:13:38] * freecheese has joined #silverstripe
1569: [22:13:39] <irogue> ghostcheese: damn, they weren't all that funny cards
1570: [22:13:54] <irogue> "A gentle caress of the inner thigh", "A brain tumor", "Growing a pair"
1571: [22:13:55] <ghostcheese> okay that's a shame
1572: [22:14:01] <Ryan-Toast> ghostcheese: The indoor kite.
1573: [22:14:11] <Ryan-Toast> Hot shame
1574: [22:14:11] <irogue> though the first gives two good potential theme names i guess
1575: [22:14:16] <irogue> gentlecaress or innerthigh
1576: [22:14:21] <Stomach> call it 'stevie-is-awesome'
1577: [22:14:32] <irogue> I like gentlecaress
1578: [22:15:05] <ghostcheese> ian is cringing at your name suggestions
1579: [22:15:20] <Stomach> call it 'fuck-you-ian'
1580: [22:15:22] <ibeardslee> keep it clean people
1581: [22:15:22] <Ryan-Toast> holdthemoan?
1582: [22:15:29] <irogue> Ryan-Toast: theres this annoying thing called work on friday :P
1583: [22:15:36] <Stomach> irogue I hate that
1584: [22:15:42] * elliot_at_silver has joined #silverstripe
1585: [22:15:57] <Ryan-Toast> irogue: You can leverage it with your boss, and say it’s important community development work.
1586: [22:16:06] <Ryan-Toast> lead building etc
1587: [22:16:19] <Ryan-Toast> structures synergy.
1588: [22:16:23] * blahblah24 quit (Quit: Page closed)
1589: [22:16:25] <irogue> lol
1590: [22:16:25] <Ryan-Toast> structured**
1591: [22:16:51] <Stomach> "we're going to be drinking beer all day, okay? structured beer drinking alright?"
1592: [22:17:03] * blahblah24 has joined #silverstripe
1593: [22:17:04] <Ryan-Toast> Stomach: shhh, they don’t need to know that.
1594: [22:17:18] <irogue> Stomach: thanks for reminding me
1595: [22:17:35] <irogue> need to make sure someone in wellington buys us lots of beers that week
1596: [22:18:38] <Ryan-Toast> irogue: You don’t have a dedicated beer room?
1597: [22:18:50] <Ryan-Toast> What kind of shoddy operation are you people running?
1598: [22:19:13] <ss23> Ryan-Toast: No no, you misunderstand
1599: [22:19:17] <ss23> THE OFFICE IS THE DEDICATED BEER ROOM
1600: [22:19:26] <Colin[pi]> ^ lol
1601: [22:19:30] <ibeardslee> mmm beer
1602: [22:19:34] * Ryan-Toast waves arms in the air
1603: [22:19:39] <ss23> See, I have to wonder
1604: [22:19:48] <ss23> Is it really opensource if you can't drink beer after your stuff gets merged?
1605: [22:19:52] * elliot_at_silver quit (Ping timeout: 246 seconds)
1606: [22:20:01] <ibeardslee> you drink before merging right?
1607: [22:20:03] <irogue> all our shopping for auckland is done for us by the wellington office. and i swear they're trolling us lately
1608: [22:20:06] <ss23> Before, after, during
1609: [22:20:08] <Stomach> get sauced after open sourcing
1610: [22:20:17] <ibeardslee> then you can blame boo-boos on being drunk
1611: [22:20:25] <ss23> :D
1612: [22:20:40] <irogue> send shopping list with big bold ONLY BUY COKE ZERO. NOBODY IN THE OFFICE DRINKS NORMAL COKE AND WE HAVE A YEAR'S SUPPLY IN THE PANTRY
1613: [22:20:51] <irogue> courier arrives with shopping, 3 boxes of coke, no coke zero
1614: [22:21:03] <Colin[pi]> rage
1615: [22:21:09] <Stomach> can I have some coke?
1616: [22:21:18] <Stomach> I'll trade you a word press sticker for some coke
1617: [22:21:19] <ss23> irogue: Who ordered the coke...?
1618: [22:21:29] <irogue> ss23: eva i think
1619: [22:21:33] <ss23> lol
1620: [22:21:39] <Ryan-Toast> Stomach: let’s go to the snow!
1621: [22:21:40] <ss23> Meanwhile, down here, they went 2 weeks without ordering any coke at all.
1622: [22:21:53] <Ryan-Toast> Oh, Coca Cola. Right.
1623: [22:21:54] <Stomach> Ryan-Toast - yussss
1624: [22:21:57] <Stomach> Ryan-Toast - nooooo
1625: [22:22:09] <Ryan-Toast> WE’RE GETTING SO MUCH DONE, I’M SO MOTIVATED.
1626: [22:22:17] <irogue> Stomach: just go help yourself to coke
1627: [22:22:23] <ss23> hahaha Ryan-Toast
1628: [22:22:32] <ss23> Stomach: WE have a *lot* of them
1629: [22:23:07] <Stomach> of what?
1630: [22:23:08] <Stomach> coke?
1631: [22:23:31] <ss23> Yeah
1632: [22:23:31] <ss23> Cokes
1633: [22:23:32] <ss23> :D
1634: [22:23:46] * gelignite quit (Quit: http://bit.ly/nkczDT)
1635: [22:23:48] <Colin[pi]> I never drink full coke anymore
1636: [22:23:53] <Colin[pi]> or full anything actually
1637: [22:23:55] <Colin[pi]> except beer
1638: [22:24:25] <Stomach> I drank too many full beers last night
1639: [22:24:28] <Stomach> damn french people
1640: [22:25:21] <ss23> Full beers?
1641: [22:25:24] <ss23> Whats a fullbeer?
1642: [22:25:40] <Stomach> its a beer that noone has drank out of yet
1643: [22:25:49] * blahblah24 quit (Ping timeout: 246 seconds)
1644: [22:25:49] * freecheese quit (Ping timeout: 246 seconds)
1645: [22:26:20] <ss23> Uh
1646: [22:26:25] <ss23> Do other people drink... not full beers?
1647: [22:26:34] <ss23> Like, is that a thing? "Hi, here's a beer I've already drunk part of"
1648: [22:26:55] <ibeardslee> i find that my beers quickly become not full beers
1649: [22:27:12] <irogue> hahaha
1650: [22:27:13] * ghostcheese quit (Ping timeout: 246 seconds)
1651: [22:27:16] <catcher> I only drink full beers. Gotta make that first sip count.
1652: [22:27:24] <ibeardslee> and then I become full .. and then sometimes quickly not so full again
1653: [22:27:25] <Stomach> ibeardslee - its a terrible situation to be in :(
1654: [22:28:52] <ss23> I can just imagine catcher ordering 20 beers and taking one sip out of each
1655: [22:28:57] <ss23> Extra virgin beer sips
1656: [22:29:10] <Ryan-Toast> I have a box of wine for tonight #classy
1657: [22:29:12] <catcher> ss23, pinky out and everything.
1658: [22:30:25] <Colin[pi]> Ryan-Toast: just for yourself?
1659: [22:30:47] <Ryan-Toast> Colin[pi]: yeah. Every now and again we hit up some Chinese BYO
1660: [22:30:58] <Ryan-Toast> You have to finish your goon by the end of the meal.
1661: [22:31:07] <Colin[pi]> lol goon
1662: [22:31:14] <Ryan-Toast> Then off to someones flat to get ruined.
1663: [22:31:15] * Colin[pi] has uni flashbacks
1664: [22:31:55] <ss23> GOOOON OF FORTUNEEEEE
1665: [22:32:00] <Stomach> Ryan-Toast - edward gooneyhands
1666: [22:32:05] <Stomach> thats a bad idea
1667: [22:32:09] * guttmann has joined #silverstripe
1668: [22:32:49] <Colin[pi]> Ryan-Toast: we have a sculpture here in Canberra that is affectionally called "the giant goon bag": http://lh3.googleusercontent.com/-nrk7Pl0OAH0/Tu6Ym5rpY-I/AAAAAAAAqdA/gKaL6fRwvCI/s600/DSCF2304.JPG
1669: [22:32:53] * scpi quit (Quit: be excellent to each other)
1670: [22:33:00] <Ryan-Toast> We used to do a goon on a washing line, and you would spin it around and whomever it landed on (we would be in a cirlce around it) they had to take a drink.
1671: [22:33:10] <Ryan-Toast> Colin[pi]: +1
1672: [22:34:34] * sheadawson quit (Ping timeout: 246 seconds)
1673: [22:36:40] * aragonne has joined #silverstripe
1674: [22:37:10] * guttmann quit (Quit: Leaving)
1675: [22:39:04] * guttmann has joined #silverstripe
1676: [22:39:29] * pippy has joined #silverstripe
1677: [22:40:10] * antmas has joined #silverstripe
1678: [22:41:04] * blahblah24 has joined #silverstripe
1679: [22:42:05] * zippy has joined #silverstripe
1680: [22:42:10] <adrexia> So I have a codebase that seems to rely heaviliy on their already being a db setup with the right fields. There is a relation that uses an intermediary DB object to save a sub relation (eg Page has_one Object, Object has_many Children). The gridfield on page links directly to Children. I'm not sure how this worked when it was first built, but I'm getting "Uncaught LogicException: byID can't be called on an UnsavedRelationList"., I'm
1681: [22:42:11] <adrexia> pretty sure it's because we are trying to save Children against Object before Object exists. I would usually ditch Object and have a many_many straight to Children, but... is there anyway to fix this without changing the data structure?
1682: [22:42:24] * guttmann_ has joined #silverstripe
1683: [22:44:52] * guttmann_ quit (Client Quit)
1684: [22:45:13] * guttmann_ has joined #silverstripe
1685: [22:45:54] <Stomach> adrexia - just remove the gridfield is !$this->inDB()
1686: [22:46:15] <adrexia> from where?
1687: [22:46:37] * guttmann_ quit (Client Quit)
1688: [22:47:07] * madmatt_ has joined #silverstripe
1689: [22:47:35] <Stomach> in the getCMSFields - I assume its trying to save them when you havent saved the parent
1690: [22:47:44] <Stomach> so only allow them to be added when the parent has been saved
1691: [22:47:47] <Stomach> shit solution, but...
1692: [22:47:54] * discorpia has joined #silverstripe
1693: [22:48:24] * jedateach_ has joined #silverstripe
1694: [22:50:38] * Zauberfi1ch has joined #silverstripe
1695: [22:50:56] * [Fate_] has joined #silverstripe
1696: [22:51:24] * ajmitch_ has joined #silverstripe
1697: [22:51:49] * [Fate] quit (*.net *.split)
1698: [22:51:49] * discorpi1 quit (*.net *.split)
1699: [22:51:49] * ocmnt quit (*.net *.split)
1700: [22:51:49] * deadveb quit (*.net *.split)
1701: [22:51:50] * eagles0513875 quit (*.net *.split)
1702: [22:51:50] * Azure quit (*.net *.split)
1703: [22:51:50] * veb quit (*.net *.split)
1704: [22:51:50] * AshKyd quit (*.net *.split)
1705: [22:51:50] * muskie9 quit (*.net *.split)
1706: [22:51:51] * Kapdap quit (*.net *.split)
1707: [22:51:51] * ec8or__ quit (*.net *.split)
1708: [22:52:17] * [Fate_] is now known as [Fate]
1709: [22:52:19] <zippy> adrexia: ie, if(!$this->ID) { $fields->removeByName('the grid'); } you could even add a ReadOnlyField to say "Items can be added once saved'
1710: [22:52:21] * guttmann quit (*.net *.split)
1711: [22:52:21] * aragonne quit (*.net *.split)
1712: [22:52:22] * madmatt quit (*.net *.split)
1713: [22:52:39] * spekulatius quit (*.net *.split)
1714: [22:52:39] * catcher quit (*.net *.split)
1715: [22:52:39] * cloph quit (*.net *.split)
1716: [22:52:41] <adrexia> zippy - I can hide the entire gridfield
1717: [22:52:44] <zippy> yea
1718: [22:52:50] <antmas> freenode having another spazz?
1719: [22:52:56] <adrexia> but - how do I create the intitial has_one relation?
1720: [22:53:12] * aragonne has joined #silverstripe
1721: [22:53:13] * ocm13 has joined #silverstripe
1722: [22:53:13] * muskie9 has joined #silverstripe
1723: [22:53:13] * Kapdap has joined #silverstripe
1724: [22:53:13] * ec8or__ has joined #silverstripe
1725: [22:53:16] <adrexia> ie Page->Object
1726: [22:54:03] * babak quit (*.net *.split)
1727: [22:54:03] * SphereSilver quit (*.net *.split)
1728: [22:54:14] <zippy> you could always create it yourself (not sure on what it is doing, if there must be one or whatever) but you could on if(!$this->Object()) { create the object } and you could do this in a init or something
1729: [22:54:19] * cloph_away has joined #silverstripe
1730: [22:54:19] * deadveb_ has joined #silverstripe
1731: [22:54:19] * Azure has joined #silverstripe
1732: [22:54:28] * ghostcheese has joined #silverstripe
1733: [22:54:29] <adrexia> that's what I'm attempting, yu p;)
1734: [22:54:40] <ghostcheese> so update people: our theme is called SilverDragon
1735: [22:54:50] <zippy> but... can you drop the object or must it exist
1736: [22:57:08] * MichalKl_ has joined #silverstripe

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