#silverstripe IRC Log

IRC log for 16 May 2013

All timestamps are in UTC.

1: [00:03:00] * tankr quit (Quit: Leaving.)
2: [00:11:00] * Jeremy1 has joined #silverstripe
3: [00:12:00] * SticksM has joined #silverstripe
4: [00:17:00] <spronk> so
5: [00:18:00] <Colin[pi]> not yet
6: [00:18:00] <spronk> who's listened to Daft Punk R.A.M.?
7: [00:21:00] <simon_w> Who's not going to?
8: [00:22:00] <spronk> you're too young to appreciate how epically awesome daft punk once were
9: [00:22:00] <Colin[pi]> I liked Discovery
10: [00:22:00] <Colin[pi]> simon_w?
11: [00:22:00] <simon_w> Yup!
12: [00:22:00] <spronk> :(
13: [00:23:00] * Colin[pi] shouts "damn kids get off my lawn"
14: [00:24:00] <simon_w> See, that sort of response usually means the band is way past its prime
15: [00:24:00] <spronk> :D
16: [00:24:00] <spronk> i dno
17: [00:24:00] <spronk> Tron soundtrack was pretty epic
18: [00:24:00] <Colin[pi]> I quite liked that movie actually
19: [00:24:00] <Colin[pi]> though the CGI guy was very deep in the uncanny valley
20: [00:24:00] <spronk> gotta say, R.A.M. on its own is a statement and a half, not quite what I was expecting, but impressive in its own way...
21: [00:25:00] <spronk> LOL
22: [00:25:00] <spronk> however. it's gonna be remixed like a motherfucker. and it will be goooodo
23: [00:25:00] <Colin[pi]> meanwhile, simon_w goes back to listen to his Nickelback
24: [00:26:00] <PB_Tas> hi guys, can anyone help me with a cmsworkflow error?
25: [00:26:00] * spronk high-fives Colin[pi]
26: [00:26:00] <Colin[pi]> yes
27: [00:26:00] * PB_Tas has joined #silverstripe
28: [00:27:00] <Pyromanik> spronk: I got the impression that it is quite different from their 'usual' stuff
29: [00:27:00] <PB_Tas> <Colin[pi]> I'm getting a 500 internal error when attempting to action a publication request from an email - also (with full admin rights) I cannot view the 'saved' page in question via the CMS. Any ideas?
30: [00:27:00] <Pyromanik> from the snippits I've heard I quite like the direction though
31: [00:28:00] <simon_w> 20 seconds into the album, I'm bored. Yup, they're good :p
32: [00:28:00] <spronk> it's *uber* smooth
33: [00:28:00] <Colin[pi]> PB_Tas, anything in the logs?
34: [00:28:00] <spronk> certainly nothing like Discovery
35: [00:28:00] * spronk likes to forget human after all existed...
36: [00:29:00] <PB_Tas> <Colin[pi]> Sorry, I've jumped on here while our admin guy has shot out - I'll be back with log details shortly.
37: [00:30:00] <Colin[pi]> any 500 errors, that's the first thing I do, check logs because there's bound to be something there
38: [00:30:00] <spronk> and.. get lucky... well, that's just something special
39: [00:31:00] <Colin[pi]> hmm should I go and see the new star trek film?
40: [00:37:00] <spronk> Yes.
41: [00:37:00] <Colin[pi]> ok!
42: [00:37:00] <Colin[pi]> hehe
43: [00:37:00] <Colin[pi]> considering going this weekend
44: [00:37:00] <spronk> disclaimer: i haven't seen it
45: [00:38:00] <Colin[pi]> heh
46: [00:39:00] <Colin[pi]> hope my gf can stay awake
47: [00:42:00] * simon_w quit (Ping timeout: 252 seconds)
48: [00:43:00] * simon_w has joined #silverstripe
49: [00:43:00] <PB_Tas> <Colin[pi]> hmmmm, it seems I can no longer access the particular page now at all. I'd like to just delete it but I get the dreaded 'white box' error with OK and not much else.
50: [00:43:00] <Colin[pi]> have you tried a /dev/build ?
51: [00:44:00] * Bollig|DesignCty has joined #silverstripe
52: [00:44:00] <PB_Tas> I'm tempted to, but a little worried it will throw a worse error
53: [00:46:00] <Colin[pi]> I only ask because when I've had similar white boxes, it's sometimes because a dev/build needs to be run
54: [00:46:00] <PB_Tas> Ok - I have a duplicate of the page in question which I can publish and access
55: [00:46:00] <PB_Tas> It's just this one particular page that's causing trouble
56: [00:47:00] <Colin[pi]> mmm so what's different about this particular instance?
57: [00:48:00] <PB_Tas> Well, I had a page that was edited and then passed through workflow for a publication request, once I'd attempted to action that request, the page was no longer accessable.
58: [00:49:00] <Colin[pi]> and no errors being logged anywhere?
59: [00:50:00] <PB_Tas> I'm still waiting to receive the logs
60: [00:53:00] <PB_Tas> The page (in the CMS) currently throws the 500 error, and cannot be accessed in the CMS, although is still published on the live site.
61: [00:54:00] <ss23> I had a dream I had Google Fibre.
62: [00:54:00] <PB_Tas> I'm just wondering if running a dev/build will bring the whole thing crashing down :(
63: [00:55:00] <Colin[pi]> wait until you see the logs
64: [00:56:00] * simon_w quit (Ping timeout: 252 seconds)
65: [00:56:00] * simon__w has joined #silverstripe
66: [01:00:00] * willr_ has joined #silverstripe
67: [01:03:00] <PB_Tas> <Colin[pi]> it looks like error is occuring on line 61 of base.js
68: [01:09:00] <PB_Tas> <Colin[p]> I have found the error - can I forward it to you through here or elsewhere?
69: [01:09:00] * priithansen quit (Quit: priithansen)
70: [01:10:00] <PB_Tas> 'Class 'PopupDateTimeField' not found in WorkflowRequest.php on line 388.
71: [01:10:00] <willr_> PB_Tas got the legacydatetime module? Think that field has been moved out to that
72: [01:12:00] <PB_Tas> <@willr_> No, apparently not
73: [01:13:00] <PB_Tas> The site is on 2.4.5
74: [01:13:00] <willr_> Think it may still be needed.
75: [01:14:00] * tankr has joined #silverstripe
76: [01:17:00] <Colin[pi]> ah ha, figured something was missing
77: [01:20:00] * Marvanni quit ()
78: [01:21:00] <PB_Tas> <Colin[pi]> Yeah, I just checked out other dev sites and they all have the module (but are on newer SS versions). Thanks guys, I'll report back once I see how it goes.
79: [01:23:00] * zippy_ has joined #silverstripe
80: [01:36:00] * zippy_ was promoted to operator by ChanServ.
81: [01:36:00] <zippy_> ;-)
82: [01:36:00] * simon_w|air has joined #silverstripe
83: [01:41:00] <Pyromanik> what does it mean?
84: [01:41:00] <Pyromanik> [Thu May 16 13:39:36 2013] [error] [client <ip>] Premature end of script headers: main.php, referer: http://<site>/admin/pages/edit/EditForm/field/Images/bulkimageupload
85: [01:44:00] <zippy_> Morning
86: [01:44:00] <simon_w|air> Pyromanik, that it doesn't want to tell you the real error message
87: [01:44:00] <zippy_> afternoon even
88: [01:44:00] <Pyromanik> simon_w|air: yeh :<
89: [01:44:00] <zippy_> ;-)
90: [01:44:00] <Pyromanik> Good morning zippy_
91: [01:44:00] <simon_w|air> zippy_, yeah, not going to happen :p
92: [01:46:00] <simon_w|air> Pyromanik, that could also be it. PHP taking too long to respond?
93: [01:46:00] <Pyromanik> simon_w|air: unless it's to do with the warning directly above it
94: [01:46:00] <Pyromanik> [Thu May 16 13:39:36 2013] [warn] [client <ip>] mod_fcgid: read data timeout in 45 seconds, referer: http://<site>/admin/pages/edit/EditForm/field/Images/bulkimageupload
95: [01:46:00] <simon_w|air> PB_Tas, you need that module for any 2.4 version
96: [01:47:00] <Pyromanik> 09:27 < zippy_> Morning
97: [01:47:00] <Pyromanik> I'm just slow replying.
98: [01:47:00] * SightUnseen has joined #silverstripe
99: [01:47:00] * SightUnseen has left #silverstripe
100: [01:56:00] <simon_w|air> Of course, just after I get home Apple releases an update that may help fix simon__w
101: [01:57:00] <spronk> jesus fucking christ google's libphonenumber is complex
102: [01:58:00] * PB_Tas quit (Quit: Page closed)
103: [02:06:00] * joelpittet quit (Remote host closed the connection)
104: [02:09:00] <Pyromanik> spronk: since when was google ever non complex?
105: [02:11:00] <simon_w|air> Ooh, I could rewrite ss-log in Go as my learning-the-language project
106: [02:12:00] * Pyromanik trololololollls
107: [02:12:00] <Pyromanik> do it in dart
108: [02:14:00] <simon_w|air> Though I guess I'm supposed to be working instead of getting distracted by fun things
109: [02:15:00] <Pyromanik> know that feels
110: [02:17:00] * DigNZ has joined #silverstripe
111: [02:18:00] * LoveDuckie quit (Quit: HydraIRC -> http://www.hydrairc.com <- Would you like to know more?)
112: [02:23:00] <zippy_> on a production machine
113: [02:23:00] <zippy_> How can you tell if the mollom key is invalid?
114: [02:25:00] <zippy_> the admin report works, so that seems to prove it's ok
115: [02:30:00] * travis-ci has left #silverstripe
116: [02:30:00] * travis-ci has joined #silverstripe
117: [02:30:00] <travis-ci> [travis-ci] silverstripe/sapphire#2269 (3.1 - 0c6f32e : Sean Harvey): The build passed.
118: [02:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/3878806ca3fb...0c6f32e752e1
119: [02:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7207361
120: [02:36:00] <Pyromanik> zippy_: check with your mollom account?
121: [02:37:00] <zippy_> we got so many mollom accounts
122: [02:53:00] * Jeremy1 quit (Ping timeout: 245 seconds)
123: [03:11:00] * howardgr_ has joined #silverstripe
124: [03:13:00] * howardgrigg quit (Ping timeout: 245 seconds)
125: [03:17:00] * Jeremy1 has joined #silverstripe
126: [03:20:00] * nhorstmeier has joined #silverstripe
127: [03:20:00] <Colin[pi]> is it generally a bad idea to stick objects in the SS session?
128: [03:20:00] <simon_w|air> Yes
129: [03:20:00] <Colin[pi]> k.. so, for a simple cart object, the object could be a singleton that stores an array of IDs => qty in the session?
130: [03:20:00] <Colin[pi]> does that make more sense?
131: [03:21:00] <simon_w|air> Why not just an array?
132: [03:21:00] <simon_w|air> That way you don't run into weird session-related object things
133: [03:21:00] * nhorstmeier quit (Remote host closed the connection)
134: [03:22:00] <Colin[pi]> yeah but I need code that works on the array, so a cart object makes sense, right?
135: [03:22:00] <simon_w|air> I guess
136: [03:22:00] <Colin[pi]> cart->add(product,qty)... cart stores teh product IDs/quantity in the session
137: [03:23:00] <Colin[pi]> at least that's how I've done it before in non-SS frameworks
138: [03:23:00] <Colin[pi]> so the session essentially replaces an instance variable of the cart object
139: [03:23:00] <Colin[pi]> cart is a singleton btw
140: [03:26:00] <tankr> Colin[pi]: you could try an existing shopping cart :-) https://github.com/frankmullenger/silverstripe-swipestripe
141: [03:26:00] * zippy_ quit (Quit: zippy_)
142: [03:28:00] * cloph_away1 has joined #silverstripe
143: [03:29:00] * cloph_away quit (Ping timeout: 276 seconds)
144: [03:30:00] <Pyromanik> either or?
145: [03:30:00] <Pyromanik> simon_w|air: global $database vs global $databaseConfig ?
146: [03:30:00] <willr_> your _ss_envi file should popular the config
147: [03:30:00] <Pyromanik> that's handy
148: [03:30:00] <Pyromanik> thanks willr_
149: [03:30:00] <willr_> $database is your db name, config has everything
150: [03:31:00] <Colin[pi]> tankr: I would but I'm kinda doing it deliberately this way to increase my SS-fu
151: [03:31:00] <Pyromanik> was copying old school _config to put in db name
152: [03:31:00] <Pyromanik> willr_: yeh, it does except db name.
153: [03:32:00] <Colin[pi]> also I'm after something very simple as it's not a complete e-commerce site, just choose products, add to cart, and send email (no checkout as such)
154: [03:33:00] * Jeremy1 quit (Ping timeout: 245 seconds)
155: [03:34:00] <tankr> Colin[pi]: fair enough!
156: [03:34:00] <Colin[pi]> but I really do want to give swipestripe a try for my next proper e-comm site :)
157: [03:35:00] <Pyromanik> willr_: wrong! :< SilverStripe Framework requires a $databaseConfig defined.
158: [03:35:00] <Pyromanik> ""
159: [03:36:00] <willr_> have you got a require_once('conf/ConfigureFromEnv.php'); ?
160: [03:36:00] * Pyromanik sigh
161: [03:36:00] <Pyromanik> yep
162: [03:37:00] <Pyromanik> confused as this is the same as local, excepting the lack of choosedbname in ss env
163: [03:37:00] <willr_> and that is being included?
164: [03:37:00] <Pyromanik> and the line if($_SERVER['HTTP_HOST'] != 'localhost') $database = 'blah';
165: [03:37:00] <Pyromanik> willr_: probably not :<
166: [03:38:00] * tankr quit (Quit: Leaving.)
167: [03:38:00] <Pyromanik> is in SS root
168: [03:39:00] <Pyromanik> and spent correctly, and 644
169: [03:39:00] <Pyromanik> quite.
170: [03:39:00] <willr_> oh the irony.
171: [03:39:00] <Pyromanik> spelt*
172: [03:41:00] * Jeremy1 has joined #silverstripe
173: [03:43:00] * sewid has joined #silverstripe
174: [03:46:00] <simon_w|air> http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-2094
175: [03:46:00] <simon_w|air> Another day, another root escalation bug in Linux
176: [03:47:00] <Pyromanik> thanks willr_
177: [03:47:00] * Jeremy1 quit (Ping timeout: 245 seconds)
178: [03:47:00] <Pyromanik> oops, defined $database the wrong side of configure from env.
179: [03:49:00] * Jeremy1 has joined #silverstripe
180: [03:54:00] <Pyromanik> all doc.ss.org search results link to www.doc.ss.org
181: [03:55:00] <simon_w|air> Pyromanik, fix it!
182: [03:55:00] <Pyromanik> simon_w|air: nope
183: [04:00:00] <simon_w|air> I have a feeling it's a _ss_environment fix. willr_, fix it!
184: [04:01:00] * simon___w has joined #silverstripe
185: [04:02:00] <Pyromanik> ??
186: [04:03:00] <unsignedint> Is there a way (in ss 2.4) to check if a form has errors, without explicitly calling validate()? I dont want to call validate() directly because the form shouldnt be validated until it is submitted (which calls validate() automatically I believe)
187: [04:04:00] <Pyromanik> simon_w|air: ah.
188: [04:04:00] <Pyromanik> so, you want to check if a field has an error?
189: [04:04:00] <simon_w|air> Pyromanik, I think it's to do with Lucene grabbing HTTP_HOST, which is set by _ss_environment.php
190: [04:05:00] <unsignedint> Pyromanik: if any field has an error BUT I dont want to force validate them because validation should have already run at this point
191: [04:05:00] <Pyromanik> unsignedint: js validation.
192: [04:05:00] <unsignedint> So I dont want the form to show as having errors when its first loaded
193: [04:05:00] * simon__w quit (Ping timeout: 276 seconds)
194: [04:05:00] <Pyromanik> fully js side.
195: [04:06:00] <unsignedint> essentially it would be nice if I could call $form->getErrorMessages() and have it return a list of messages if there were errors
196: [04:06:00] <Pyromanik> hmm, no way for ss_env to override $database if choose folder exists
197: [04:06:00] <unsignedint> but without explicitly calling validate() first
198: [04:07:00] <Pyromanik> stink
199: [04:08:00] <Colin[pi]> hmm how can I set a session message for a form via another controller action method?
200: [04:09:00] <simon_w|air> Woo, Translatable and RootURLController gone. Versioned is next!
201: [04:09:00] <Colin[pi]> yeah but this is a page controller, not the form
202: [04:09:00] <simon_w|air> unsignedint, have a look at Form->setupFormErrors()
203: [04:09:00] <simon_w|air> Colin[pi], $form->setMessage()?
204: [04:10:00] <simon_w|air> So pass it the form?
205: [04:10:00] <Colin[pi]> :D
206: [04:10:00] <Colin[pi]> or I might be having a derp moment
207: [04:20:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/0c6f32e752e1...c442a49e4001
208: [04:20:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/7208813
209: [04:20:00] * travis-ci has left #silverstripe
210: [04:20:00] <travis-ci> [travis-ci] silverstripe/sapphire#2270 (3.1 - c442a49 : Sam Minnee): The build passed.
211: [04:20:00] * travis-ci has joined #silverstripe
212: [04:24:00] <Colin[pi]> i found this: Form::messageForForm('CartForm_CartForm', "product removed", "good" );
213: [04:24:00] <Pyromanik> Session::set('Form.FormName.message', 'message');
214: [04:24:00] <Pyromanik> Colin[pi]: or do it manually if you know the form name
215: [04:24:00] <Pyromanik> iirc
216: [04:26:00] <Colin[pi]> hmm my cart is a singleton, maybe the cart itself should be a controller
217: [04:27:00] <Colin[pi]> because I have two objects atm
218: [04:36:00] * Shrike_Finland quit (Quit: Leaving.)
219: [04:52:00] <simon_w|air> Yay! That bit works :)
220: [04:52:00] * ss-log-test has joined #silverstripe
221: [04:53:00] <ss-log-test> I
222: [04:53:00] <Colin[pi]> haha
223: [04:53:00] * ss-log-test quit (Client Quit)
224: [04:53:00] <Colin[pi]> I *die
225: [04:53:00] <simon_w|air> Ha, fail
226: [04:58:00] <Pyromanik> because 17% of the internet runs on idiots.
227: [04:58:00] <Colin[pi]> oh god why
228: [04:58:00] <Pyromanik> I dunno steve, it looks pretty f'n complicated to me.
229: [04:58:00] <Pyromanik> http://wp.smashingmagazine.com/2013/05/15/migrate-existing-website-to-wordpress/
230: [04:59:00] <Pyromanik> (first line: "Now powering over 17% of the Web, WordPress is ")
231: [05:00:00] <Pyromanik> Build a menu! <header><?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'menu' ) ); ?><header>
232: [05:00:00] <Pyromanik> yep, that seems pretty intuitive to me.
233: [05:00:00] <Colin[pi]> god what a piece of shit
234: [05:01:00] <simon_w|air> Pyromanik, you missed a step between getting home and writing
235: [05:01:00] <Pyromanik> I think I'm going to go home, write a huge pisstaking retort article for SS and submit it to smashing mag.
236: [05:01:00] <willr_> Pyro, such a troll
237: [05:01:00] <Colin[pi]> please do
238: [05:02:00] <willr_> We run a couple dozen WP sites and they aren't horrible. Ease of installing modules is great
239: [05:02:00] <Pyromanik> yeah, what unsignedint said
240: [05:02:00] <simon_w|air> Pyromanik, drunk? hammered?
241: [05:02:00] <Pyromanik> simon_w|air: which is?
242: [05:02:00] <Pyromanik> willr_: would they?
243: [05:02:00] <simon_w|air> Pyromanik, getting absolutely pissed
244: [05:02:00] <Pyromanik> simon_w|air: I don't... what?
245: [05:02:00] <unsignedint> willr_: actually I was quite impressed with SS's admin, but yes the documentation is shitty
246: [05:02:00] <Pyromanik> willr_: anyone promoting wordpress as a CMS needs to be told they're doing it wrong.
247: [05:02:00] <willr_> They'd just complain about SS's shitty admin and documentation
248: [05:03:00] <Colin[pi]> it's not perfect but nothing is
249: [05:03:00] <Pyromanik> fair comment, I could vidcap it like paul irish's review of jquery
250: [05:03:00] <Colin[pi]> yeah SS's admin is far better than some I've seen
251: [05:03:00] <Pyromanik> SS's admin is far better than *
252: [05:03:00] <Pyromanik> simon_w|air: why would I do that?
253: [05:03:00] <simon_w|air> Pyromanik, for the lols
254: [05:03:00] <Pyromanik> I'm saving!
255: [05:04:00] <Pyromanik> for retards making retarded modules to coax a system that isn't supposed to do that into doing that, wp is king.
256: [05:04:00] <Pyromanik> for a basic site migration, SS dom's all
257: [05:04:00] <Colin[pi]> looking through that article though, from a coding perspective, I forgot what a piece of crap WP is
258: [05:05:00] * Pyromanik does not comput
259: [05:05:00] <Pyromanik> home!
260: [05:05:00] * Pyromanik quit (Quit: leaving)
261: [05:05:00] <unsignedint> If it wasnt for SS's admin I wouldnt bother using SS at all, since the clients need somewhere where they can update content. But the rest of the SS framework is extremely hard to use compared to something like Laravel 4
262: [05:05:00] * nickmolhoek quit (Quit: nickmolhoek)
263: [05:05:00] <unsignedint> (imo)
264: [05:05:00] <Pyromanik> you what
265: [05:05:00] <Pyromanik> framework is hard to use?
266: [05:05:00] <Pyromanik> e
267: [05:06:00] <Colin[pi]> but it's just my opinion :)
268: [05:06:00] <unsignedint> and the templating system is just terrible compared to eg Twig or Smarty
269: [05:06:00] * Colin[pi] shudders thinking about Smarty
270: [05:06:00] <unsignedint> whats wrong with Smarty?
271: [05:06:00] <unsignedint> its very functional
272: [05:06:00] <Colin[pi]> can't stand it, never have liked it
273: [05:06:00] <unsignedint> fair enough
274: [05:07:00] <Colin[pi]> SS's template stuff is very basic but I prefer it that way
275: [05:08:00] <unsignedint> Its a little too basic, I miss things like modifiers and a decent way to generate urls
276: [05:08:00] <Colin[pi]> yeah but it doesn't pretend to be more than it is
277: [05:09:00] <unsignedint> and it does have some good points, like its template fallback mechanism
278: [05:09:00] <Colin[pi]> i hate when systems make themselves out to be AWESOMEST IN THE WORLD and are crap
279: [05:09:00] <Colin[pi]> *cough*wordpress*cough*
280: [05:09:00] <Colin[pi]> ;)
281: [05:09:00] <unsignedint> haha yeah
282: [05:09:00] <Colin[pi]> could be joomla....
283: [05:09:00] <Colin[pi]> ok it's not the worst, but still
284: [05:09:00] <Colin[pi]> :o
285: [05:09:00] <unsignedint> thats true
286: [05:10:00] <Colin[pi]> literal lol hehe
287: [05:10:00] <Colin[pi]> that was almost my exact response to a client who wanted me to make a site in joomla
288: [05:10:00] <unsignedint> yeah fuck joomla
289: [05:11:00] <unsignedint> have fun!
290: [05:11:00] <unsignedint> i had to maintain a joomla site once. glad I quit that job
291: [05:11:00] <unsignedint> anyways
292: [05:11:00] <unsignedint> time to leave work
293: [05:11:00] <Colin[pi]> k cyas :)
294: [05:11:00] <Colin[pi]> i said it would be prohibitively expensive as I'd need a physically separate server in a separate facility to keep joomla's security holes VERY VERY far from my other sites :)
295: [05:12:00] * DigNZ quit (Quit: DigNZ)
296: [05:19:00] <Colin[pi]> anyone recommend an SSL cert provider?
297: [05:19:00] <simon_w|air> We use RapidSSL
298: [05:20:00] <Colin[pi]> seemed like almost too cheap :\
299: [05:20:00] <Colin[pi]> funny I was just looking at them
300: [05:21:00] <simon_w|air> You know SSL certs are a smokescreen right?
301: [05:22:00] <simon_w|air> yup
302: [05:22:00] <Colin[pi]> that appears to be a rapidssl on pocket rent?
303: [05:22:00] <Colin[pi]> yes
304: [05:22:00] <Colin[pi]> its a rort lol
305: [05:22:00] <simon_w|air> So, don't worry about it appearing cheap
306: [05:22:00] <Colin[pi]> ;D
307: [05:22:00] <Colin[pi]> ohh sexy parallax vertical scrolling
308: [05:22:00] <Colin[pi]> coolio
309: [05:24:00] <Colin[pi]> is that via rapidssl.com simon_w ?
310: [05:25:00] <Colin[pi]> oic
311: [05:25:00] <simon_w|air> meant they did installation too
312: [05:25:00] <simon_w|air> Nah, we got ours through rimuhosting
313: [05:29:00] * Motoservo_ has joined #silverstripe
314: [05:29:00] <Colin[pi]> hmm I might get it through namecheap, they've been good to me
315: [05:30:00] * Motoservo quit (Ping timeout: 256 seconds)
316: [05:30:00] * Motoservo_ is now known as Motoservo
317: [05:32:00] <Colin[pi]> and those hosts can be enabled/disabled via admin
318: [05:32:00] * GoTest has joined #silverstripe
319: [05:32:00] <Colin[pi]> simon_w, sorry to ask one more question... say I have a SS site which is accessible via multiple vhosts on the same domain
320: [05:33:00] <simon_w|air> Kinda the only place you can
321: [05:33:00] <simon_w|air> yeah
322: [05:33:00] <Colin[pi]> what would the best place to check that status, in the page controller?
323: [05:33:00] <Colin[pi]> i.e. if this host is disabled, shut. down. everything.
324: [05:33:00] <Colin[pi]> otherwise, proceed
325: [05:33:00] <Colin[pi]> on init() ?
326: [05:34:00] <Colin[pi]> thanks
327: [05:34:00] <Colin[pi]> k that's where I'm doing it currently, just wanted to see if that made sense :)
328: [05:35:00] * Nightjar has joined #silverstripe
329: [05:38:00] * GoTest quit (Quit: bye bye)
330: [05:39:00] <Nightjar> who the hell in their right mind likes smarty?
331: [05:39:00] <Colin[pi]> hehehe
332: [05:40:00] <Nightjar> even wordpress doesn't use it.
333: [05:40:00] <Colin[pi]> yeah it's not my cup of tea
334: [05:40:00] <simon_w|air> The same people that like wordpress
335: [05:40:00] <Colin[pi]> oh that's just mean
336: [05:40:00] <simon_w|air> Oh, wordpress' template system is worse
337: [05:42:00] <Colin[pi]> :o cool
338: [05:42:00] <ss23> So talked to Rainer at SS, he seems nice :O
339: [05:43:00] <ss23> I like c5 for templating :D
340: [05:43:00] <ss23> Nightjar: No one!
341: [05:43:00] <ss23> Still
342: [05:43:00] <ss23> Silverstripe also has a templating system which is IMO retarded
343: [05:44:00] <Colin[pi]> simple = good
344: [05:44:00] <Nightjar> I must get around to trying this twig out.
345: [05:44:00] <Nightjar> People say SS's templates are terribad, but I found them to be the biggest drawcard it offered when I was starting out.
346: [05:44:00] * AaronCDR has joined #silverstripe
347: [05:45:00] <simon_w|air> Silly people
348: [05:45:00] <simon_w|air> Nightjar, the people that say that want to write PHP in their templates
349: [05:45:00] <Nightjar> err, code logic, not || && logic.
350: [05:45:00] <Colin[pi]> just render the data and GTFO
351: [05:45:00] <Bollig|DesignCty> hey sorry to interrupt, is there a way to see if, say, there is a specific field in the field set in the CMS?
352: [05:45:00] <Nightjar> I like the look of moustache tbh
353: [05:45:00] <Nightjar> or other kinds of logical operations.
354: [05:45:00] <Colin[pi]> some templates are horribly overcomplicated and they shouldn't be
355: [05:46:00] * Bollig|DesignCty tried that Colin[pi], doesn't seem to get anything… I'm trying to use it in getCMSFields()
356: [05:46:00] <Nightjar> Bollig|DesignCty: a field in a field :O
357: [05:46:00] <Colin[pi]> Bollig|DesignCty $fieldset->fieldByName()
358: [05:46:00] <Nightjar> oh, FieldSet
359: [05:47:00] <Colin[pi]> wait, field in a field? a composite field?
360: [05:47:00] <Nightjar> sometimes you need fieldByName('Full.Tab.Path.Field')
361: [05:47:00] <Nightjar> Bollig|DesignCty: a little more explaination perhaps?
362: [05:48:00] <Bollig|DesignCty> ah, that's the one, thanks Nightjar :)
363: [05:50:00] * sewid quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
364: [05:51:00] * Nightjar looks at the tiwg homepage and sees nothing but $Var.RAW, <% if Obj %>$Obj.Var<% else %>Default<% end_if %>
365: [05:52:00] <Nightjar> why is this so much better than SS's templates?
366: [05:53:00] <Nightjar> the only thing I see that's cool that SS doesn't have is the combination of loop with else for a fallback
367: [05:54:00] <Nightjar> SS even compiles to regular PHP and caches too.
368: [05:55:00] <Jeremy1> Hey everyone, Im very new to silverstripe. I am building a report and am stuck. Does anyone know how to left join two models in the report function sourceRecords? (need an SS_List)
369: [05:55:00] <Nightjar> and is a lexer parser
370: [05:57:00] <Nightjar> generally they're related
371: [05:57:00] <Nightjar> Jeremy1: what do the models look like?
372: [05:58:00] <Jeremy1> modelA has_many modelB
373: [05:58:00] <Nightjar> returns an ss_list
374: [05:58:00] <Nightjar> so you do $modelAinstance->RelationName()
375: [05:58:00] <Nightjar> so modelA has_many "RelationName" => "modelB"
376: [05:58:00] <Nightjar> in which case you go $object1->RelationName()
377: [05:58:00] <Nightjar> and it's done.
378: [05:58:00] <Nightjar> right
379: [05:59:00] <Nightjar> Jeremy1: what?
380: [05:59:00] <Nightjar> no
381: [05:59:00] <Nightjar> the ss_list will be of all modelB's related to that particular modelA
382: [05:59:00] * Nightjar wants to make a modelT joke
383: [05:59:00] <Jeremy1> `modelB`.`modelA_ID` = `modelA`.`ID`
384: [06:00:00] <Nightjar> paste some code perhaps, we'll be able to help you better. (use sspaste.com or pastie.org or something)
385: [06:00:00] <Nightjar> use the ORM
386: [06:04:00] <Jeremy1> sorry can not past code (confidential). If I have defined a has_one relationship in ModelB to ModelA how can I get a left joined list of both
387: [06:05:00] <simon_w|air> Jeremy1, a DataList only returns on type of object and just the fields for that object
388: [06:06:00] * willr_ quit (Quit: willr_)
389: [06:06:00] <Jeremy1> Ah yes that seems to be my wall. Can I get_many from the opposite dir?
390: [06:07:00] <simon_w|air> ModelB::get()->filter('ModelA.ID', $modelAs->column('ID'))
391: [06:13:00] * SightUnseen has joined #silverstripe
392: [06:15:00] <Jeremy1> Query would be
393: [06:15:00] <Jeremy1> SELECT * FROM `ModelA` LEFT JOIN `ModelB` ON `ModelB`.`ModelAID` = `ModelB`.`ID` WHERE 1 (However I want to do this properly)
394: [06:15:00] <Jeremy1> And I have ModelB has_one ModelA.
395: [06:17:00] <simon_w|air> That'll just return every ModelA, nothing else
396: [06:18:00] * SightUnseen quit (Ping timeout: 245 seconds)
397: [06:19:00] <Nightjar> and with the orm, the equivalent result of that query parsed into a list woul be ModelA::get()
398: [06:19:00] <Nightjar> people still use backticks?
399: [06:20:00] <Jeremy1> Client wants a report with data from the other model :)
400: [06:20:00] <Nightjar> because the left join onwards is irrelevant
401: [06:21:00] <Nightjar> Jeremy1: I think you need to explain a little better.
402: [06:22:00] <Nightjar> urgh, twig... wtf assignments and function calls direct in template.
403: [06:22:00] <Jeremy1> sorry, thanks for the help so far guys. I have irc installed in thunderbird so you may see me around a bit
404: [06:24:00] <Nightjar> modelA has many B, modelB has many A
405: [06:24:00] <Nightjar> err, has_one A
406: [06:24:00] <Nightjar> Jeremy1: to get a report with more info in it from modelB, you should have a has_many on the A to match the has_one on the B
407: [06:25:00] <Jeremy1> ill make a quick example I think
408: [06:25:00] <Nightjar> ModelA::get() will get you a list of all A's
409: [06:25:00] <Nightjar> when you iterate it you can $a->RelatedBs() to get all the B's related to that one A
410: [06:26:00] * chillu has joined #silverstripe
411: [06:26:00] <Nightjar> yeah, paste code ;)
412: [06:26:00] <Nightjar> so you can output data from both.
413: [06:28:00] <Jeremy1> class ModelB extends DataObject {
414: [06:28:00] <Jeremy1> static $has_one = array('aaa' => 'ModelA',);
415: [06:28:00] <Jeremy1> }
416: [06:28:00] <Jeremy1> static $db = array('notes' => 'Varchar',);
417: [06:28:00] <Jeremy1> static $db = array('Title' => 'Varchar',);
418: [06:28:00] <Jeremy1> class ModelA extends DataObject {
419: [06:28:00] <Jeremy1> }
420: [06:29:00] <Jeremy1> how do I get all data from both models ie ModelB left joined ModelA
421: [06:30:00] <Jeremy1> I need it in a report
422: [06:30:00] <simon_w|air> foreach(ModelB::get() as $b) { $b->notes; $b->aaa()->Title; }
423: [06:31:00] <Nightjar> no, ->Title is just accessing the $db definition
424: [06:31:00] <Jeremy1> o wait maybe not
425: [06:31:00] <Jeremy1> oic I could add a function to ModelA and add that to summary
426: [06:32:00] <Jeremy1> cya all
427: [06:32:00] <Jeremy1> I have to run to catch the bus, Ill have a look at home. Thanks for the help guys
428: [06:32:00] <Jeremy1> ah
429: [06:32:00] <Nightjar> you get a model b, you also have a reference to it's related model A in that same object
430: [06:33:00] <Nightjar> lol
431: [06:33:00] * Jeremy1 has joined #silverstripe
432: [06:33:00] <Nightjar> you don't get all data on one line, joined together. You get an object with all B info, and a link to all A info for that B
433: [06:33:00] * Jeremy1 quit (Client Quit)
434: [06:33:00] * Jeremy1 quit (Quit: Jeremy1)
435: [06:33:00] <Jeremy1> yeah, thanks
436: [06:33:00] <Nightjar> you need to stop thinking about raw SQL and start thinking with objects ;)
437: [06:33:00] <Nightjar> you don't get all data on one line, joined together. You get an object with all B info, and a link to all A info for that B
438: [06:34:00] <Nightjar> going out on a limb I'm going to say modx developer.
439: [06:35:00] <Nightjar> I'm also going to say, after having read the twig website, that people who dislike SS's templates and like Twig simply do not understand separation of concerns properly.
440: [06:36:00] <Nightjar> or know what a controller method will do for them.
441: [06:45:00] * zfmf1 has joined #silverstripe
442: [06:52:00] <simon_w|air> AaronCDR, $fields->addFieldToTab('Root.Main', new OptionSetField('Name', 'Title', $values));
443: [06:52:00] <AaronCDR> Hey, would anybody be able to help me with adding an optionsetfield to a pagetype in the CMS? Can't figure it out for the life of me.
444: [06:54:00] <Nightjar> what are you saving?
445: [06:54:00] <Nightjar> depends
446: [06:54:00] <Nightjar> well
447: [06:54:00] <AaronCDR> Thanks, I've gotten that far, what would I do for the $db/$has_one (whichever is relevant) though?
448: [06:55:00] <AaronCDR> Just a simple text value. Would it simply be 'text' in that case?
449: [06:56:00] <Nightjar> could be
450: [06:56:00] <Nightjar> or Enum if it's a pre-defined set of values
451: [06:57:00] <Nightjar> yeh
452: [06:57:00] <simon_w|air> Well, Varchar over Text
453: [06:57:00] <Nightjar> true
454: [06:58:00] <Nightjar> if you're saving relation id's then it should be has_one and the values should be a map of the options
455: [07:02:00] * Bollig|DesignCty quit (Remote host closed the connection)
456: [07:04:00] * Bollig|DesignCty has joined #silverstripe
457: [07:06:00] * SightUnseen has joined #silverstripe
458: [07:07:00] * SightUnseen has left #silverstripe
459: [07:08:00] <AaronCDR> Currently attempting with Enum, what I currently have is this 'Country' => 'Enum('New Zealand,United States,Germany','New Zealand')' in the $db array, which doesn't work when I call to it like this "$this->dbObject('Country')->enumValues().
460: [07:10:00] * Zauberfisch has joined #silverstripe
461: [07:12:00] * priithansen has joined #silverstripe
462: [07:13:00] <AaronCDR> Would I be far off with that? Feeling like a twit at the moment. :S
463: [07:15:00] * g4b0 has joined #silverstripe
464: [07:15:00] * SticksM quit (Read error: Connection reset by peer)
465: [07:23:00] * SightUnseen1 has joined #silverstripe
466: [07:28:00] * SightUnseen1 quit (Ping timeout: 240 seconds)
467: [07:31:00] <AaronCDR> Ah, got it. Must have been an issue with using ' instead of " around the Enum.
468: [07:32:00] <ss23> Busses booked for hackfest now o/
469: [07:32:00] <ss23> Planes done, busses done, accomidation done!
470: [07:35:00] * Liquide quit ()
471: [07:35:00] <simon_w|air> Just need food now :p
472: [07:36:00] <ss23> simon_w|air aka foodgiver_for_hackfest
473: [07:36:00] <ss23> :D
474: [07:36:00] <ss23> simon_w|air: I thought we discussed this!
475: [07:40:00] <simon_w|air> No :p
476: [07:40:00] <simon_w|air> We have.
477: [07:42:00] <Zauberfisch> ss23 what's the problem? in my experiences instant noodles are pretty easy to come buy, they are also cheap and small so easy to transport :P
478: [07:44:00] <simon_w|air> Huh, simon___w didn't auth. That's going to be helpful when I go to bed.
479: [07:45:00] <simon_w|air> On to more work on a new and improved ss-log!
480: [07:49:00] <Nightjar> in Dart?
481: [07:50:00] <simon_w|air> Go
482: [07:53:00] * GoTest has joined #silverstripe
483: [07:54:00] <simon_w|air> I should really not be running this from the thing inside sublime. Need stdout before it exits.
484: [07:54:00] * GoTest quit (Remote host closed the connection)
485: [07:55:00] * GoTest has joined #silverstripe
486: [07:55:00] <simon_w|air> Blah blah blah
487: [07:55:00] * simon_w|air blah blahs some more
488: [07:55:00] <simon_w|air> Hmm, not catching actions
489: [07:56:00] <ss23> simon_w|air: So what you're saying is, you might buy me food?
490: [07:56:00] <simon_w|air> ss23, nope
491: [07:56:00] * GoTest quit (Client Quit)
492: [07:58:00] * GoTest has joined #silverstripe
493: [07:58:00] * simon_w|air does some actions
494: [07:58:00] <simon_w|air> Yay, there we go
495: [07:58:00] * simon_w|air has left #silverstripe
496: [07:58:00] * simon_w|air has joined #silverstripe
497: [07:59:00] * GoTest quit (Remote host closed the connection)
498: [07:59:00] <simon_w|air> Bah, why am I testing these now? I just need to stick them in a database
499: [07:59:00] <simon_w|air> (That's right, I'm going to be adding in search)
500: [08:02:00] <ss23> So there's... a chance?
501: [08:03:00] * GoTest has joined #silverstripe
502: [08:05:00] * kinglozzer has joined #silverstripe
503: [08:05:00] * GoTest quit (Client Quit)
504: [08:05:00] <simon_w|air> It's full of perfectly safe, un-flammable helium!
505: [08:05:00] <simon_w|air> Huh, I should be seeing what sort of timestamp I get from these too
506: [08:06:00] <simon_w|air> Time: 0001-01-01 00:00:00 +0000 UTC Text: Target: Public: false Cmd: REGISTER Nick:
507: [08:06:00] * GoTest has joined #silverstripe
508: [08:06:00] <simon_w|air> Well, that's a little off
509: [08:07:00] * jeremy_ is now known as Guest22104
510: [08:07:00] * jeremy_ has joined #silverstripe
511: [08:08:00] * Guest22104 quit (Client Quit)
512: [08:08:00] <simon_w|air> So, logs. Do people care about topic/nick changes, join/parts, the bot's connection?
513: [08:09:00] <Jeremy1_> and im back after missing the bus
514: [08:09:00] * jufman has joined #silverstripe
515: [08:09:00] <Jeremy1_> Time to solve this thing
516: [08:09:00] * Jeremy1_ has joined #silverstripe
517: [08:11:00] <simon_w|air> should do it
518: [08:11:00] <simon_w|air> Jeremy1_, sourceRecords() { return ModelA::get(); } columns() { return array('Data' => 'Data', 'A.Title' => "A's Title"); }
519: [08:12:00] * GoTest quit (Remote host closed the connection)
520: [08:13:00] <simon_w|air> Okay, new ss-log's only going to log PRIVMSG/ACTION to #silverstripe
521: [08:14:00] <Jeremy1_> thanks ill try it out now just getting a test SS install
522: [08:16:00] * willr_ quit (Changing host)
523: [08:16:00] * willr_ has joined #silverstripe
524: [08:16:00] * willr_ has joined #silverstripe
525: [08:16:00] * AaronCDR quit (Quit: Page closed)
526: [08:21:00] * travis-ci has left #silverstripe
527: [08:21:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/38c025f8baf5...2567cda0b405
528: [08:21:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7212026
529: [08:21:00] * travis-ci has joined #silverstripe
530: [08:21:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#373 (3.1 - 2567cda : Will Rossiter): The build passed.
531: [08:22:00] <elgrodo> I can get the MapMarker objects in from a CSV file, but there is no relationship with a MapMarkerSet, I'd like them all to be grouped together
532: [08:22:00] <elgrodo> I assume usng the CSVBulkLoader is the right approach
533: [08:22:00] <elgrodo> How does one go about creating an importer that will also maintain a relationship. What I want to do is import MapMarkers as part of a MapMarkerSet
534: [08:23:00] <Bollig|DesignCty> elgrodo: sorry, what's a mapmarker?
535: [08:23:00] <Bollig|DesignCty> ah, custom dataobject?
536: [08:23:00] <elgrodo> likes of a pin in google maps
537: [08:24:00] <elgrodo> I can create points manually and that is working fine
538: [08:24:00] <elgrodo> but would be nice to say import all the underground stations in Bangkok using a CSV file and group them together
539: [08:24:00] <elgrodo> why custom?
540: [08:24:00] * SightUnseen1 has joined #silverstripe
541: [08:25:00] <elgrodo> correct, custom object
542: [08:25:00] <Bollig|DesignCty> yeah, sorry, I'm not following. I'm not very familiar with 3.x, hover surely mapmaker isn't a built-in object?
543: [08:26:00] <elgrodo> https://github.com/gordonbanderson/Mappable/blob/dev30/code/MapMarker.php
544: [08:27:00] <elgrodo> Oh, example here http://doc.silverstripe.org/framework/en/howto/csv-import
545: [08:28:00] * SightUnseen1 quit (Ping timeout: 256 seconds)
546: [08:32:00] * willmorgan has joined #silverstripe
547: [08:32:00] * Ian_Harris quit (Quit: Leaving)
548: [08:35:00] * popeshoe has joined #silverstripe
549: [08:57:00] <priithansen> hm DataList->column('x') leaves out duplicates but ArrayList->columns('x') keeps them. Wondering if that is deliberate
550: [08:57:00] <priithansen> column in both cases not columns*
551: [08:58:00] <simon_w|air> priithansen, one does a SELECT DISTINCT, the other can't
552: [08:59:00] <simon_w|air> if you're not sure what you have, $col = array_unique($list->column('x'))
553: [09:00:00] <priithansen> Sounds reasonable just that the functions descriptions are identical and It's easy to replace datalist with arraylist and get weird results at least for me
554: [09:01:00] <priithansen> I'm making new ArrayList(DataList->toArray()) so that functions could use the same data without making the actual sql request multiple times does that sound reasonable?
555: [09:03:00] <kinglozzer> Unit testing: if my ModelAdminClass->getList() method includes Folder::find_or_make(), is there any way I can mock that to use a folder that isn't inside 'assets'? Or does it show that I should refactor that bit of code?
556: [09:05:00] <Nightjar> I think, depending on the list type.
557: [09:05:00] <Nightjar> priithansen: it caches
558: [09:07:00] <priithansen> Had the same feeling but tested a little with ?showqueries and seemed like the queries where made multiple times
559: [09:15:00] <Nightjar> hence the caveat ;)
560: [09:16:00] <simon_w|air> Woo, database writing is working :)
561: [09:16:00] * GoTest quit (Client Quit)
562: [09:16:00] <Nightjar> relation lists cache, not sure about normal get calls.
563: [09:16:00] * GoTest has joined #silverstripe
564: [09:18:00] * zfmf1 quit (Ping timeout: 245 seconds)
565: [09:19:00] <kinglozzer> Folder::find_or_make() should return an existing folder if it already exists, right? It's creating one and appending -2 :/
566: [09:21:00] <willmorgan> sounds pretty broken to me!
567: [09:22:00] * Gerry2 has joined #silverstripe
568: [09:22:00] <kinglozzer> It's only happening while I'm unit testing, so quite possible/probably something I've done :P
569: [09:22:00] <Gerry2> Hello
570: [09:22:00] <Jeremy1_> hi
571: [09:23:00] <Gerry2> Hi Jeremy1_, not sure if you can answer my query regarding latest CMS being buggy?
572: [09:23:00] <Jeremy1_> Oh most likely not Im not to SS
573: [09:23:00] * jufman quit (Ping timeout: 250 seconds)
574: [09:23:00] <Gerry2> Ok thanks. Any SS core developers logged in today?
575: [09:24:00] <Gerry2> Maybe too late now. I just log back tomorrow. Good bye for now.
576: [09:25:00] <Jeremy1_> what was your issue?
577: [09:25:00] <Gerry2> Oh just Git pulled framework and cms. CMS keeps on crashing with static has to be private. Change hundreds but it now has conflict in two validations.
578: [09:25:00] <Gerry2> Thank you Jeremy1_
579: [09:25:00] <Jeremy1_> try during 9-5
580: [09:26:00] <Jeremy1_> what I know is the latest version has alot of chages to do with private $db in dataobjects
581: [09:26:00] <Gerry2> I am stuck, with conflicting validations.
582: [09:26:00] <Jeremy1_> have you got a stable build?
583: [09:26:00] <Jeremy1_> (so I have been told)
584: [09:26:00] <Gerry2> Some variables has one validation wants it private, another wants it public.
585: [09:27:00] <Jeremy1_> because git might not be stable
586: [09:27:00] <willmorgan> Gerry2, maybe I can help
587: [09:28:00] <Gerry2> Will Thanks.
588: [09:28:00] <willmorgan> what experience have you got with silverstripe before 3.1?
589: [09:28:00] <Gerry2> Several are conflicting like $menu_title
590: [09:28:00] <willmorgan> ha! right, well, there are a few changes you will need to make
591: [09:28:00] * aragonne quit (Quit: aragonne)
592: [09:28:00] <Gerry2> Yes, I have not updated for 3 months.
593: [09:28:00] <willmorgan> or you haven't updated your 3.1 framework and cms folders in a while?
594: [09:28:00] <Gerry2> Yes,
595: [09:28:00] <willmorgan> I take it you're upgrading to 3.1?
596: [09:29:00] <Gerry2> I am now stuck.
597: [09:29:00] <Gerry2> then after running another validation says it is used as public
598: [09:29:00] <Gerry2> One validation suggest make private
599: [09:29:00] <willmorgan> (just so I know how much I have to explain)
600: [09:29:00] <willmorgan> Gerry2 it's good to start reading the changelog: http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
601: [09:29:00] <Gerry2> Have been reading depreciated notes and decided to manually fix as I pick issues.
602: [09:30:00] <Gerry2> Yes, I have read the change log.
603: [09:30:00] <Gerry2> Yes, I have flush=all
604: [09:30:00] <willmorgan> also, have you done a /dev/build?flush=all recently?
605: [09:30:00] <willmorgan> $db, $has_one etc are now ALL to be made private
606: [09:30:00] <willmorgan> but that doesn't mean that your own static variables need to be made private
607: [09:31:00] <Gerry2> CMSPageController $menu_title seems conflicting. Give 2 minutes. I will flush again.
608: [09:31:00] <willmorgan> also, what are your remote URLs? they should be locked to the 3.1 branch, not master
609: [09:32:00] <Gerry2> Maybe my git should be 3.1 branch
610: [09:32:00] <willmorgan> yeah
611: [09:32:00] <Gerry2> Aha, I am locked into master.
612: [09:32:00] <Gerry2> Nope same problem
613: [09:33:00] <willmorgan> cool, gl!
614: [09:33:00] <Gerry2> Thanks for you help. I will try to pull that branch. Will keep you updated. Bye for now.
615: [09:33:00] <Gerry2> Thanks again.
616: [09:34:00] * Zauberfisch quit (Remote host closed the connection)
617: [09:34:00] * SightUnseen1 has joined #silverstripe
618: [09:36:00] * Zauberfisch has joined #silverstripe
619: [09:38:00] * SightUnseen1 quit (Ping timeout: 256 seconds)
620: [09:40:00] * osterlaus has joined #silverstripe
621: [09:48:00] <kinglozzer> Folder::find_or_make() is definitely creating a folder and appending -2 :(
622: [09:52:00] <kinglozzer> It only happens during unit testing though. Calling them immediately after each other works fine, but if I have: testSomething() { findormake('afolder'); $myclass->doStuff(); } and doStuff() also calls findormake('afolder'), '-2' is appended :/
623: [09:57:00] * gumble has joined #silverstripe
624: [10:11:00] <kinglozzer> I'm guessing that for some reason they aren't added to the same database, as find_or_make() uses DataObject::get() to check if the folder exists
625: [10:15:00] <simon_w|air> Yes, the test database isn't the same as the production one
626: [10:16:00] <kinglozzer> Oh well, problem solved then :)
627: [10:16:00] <kinglozzer> Strange, in my little example above, if I move the call to doStuff() first, it works fine
628: [10:30:00] * Jeremy_ is now known as Guest99370
629: [10:30:00] * Jeremy_ has joined #silverstripe
630: [10:31:00] * GoTest has joined #silverstripe
631: [10:32:00] <simon_w|air> Woo, just need to build the web interface version of GoTest then it can replace ss-log :)
632: [10:34:00] * SightUnseen has joined #silverstripe
633: [10:35:00] <simon_w|air> The possibilities!
634: [10:35:00] * Guest99370 quit (Ping timeout: 250 seconds)
635: [10:35:00] <simon_w|air> Ooh, it'll be really easy to add !seen functionality to it too
636: [10:39:00] * SightUnseen quit (Ping timeout: 256 seconds)
637: [10:40:00] * GoTest quit (Remote host closed the connection)
638: [10:41:00] * GoTest has joined #silverstripe
639: [10:42:00] <simon_w|air> and is storing things in a database
640: [10:42:00] <Zauberfisch> yay, simon_w|air rewriting the bot?
641: [10:42:00] <Zauberfisch> nice
642: [10:42:00] <simon_w|air> It's in Go
643: [10:42:00] <Zauberfisch> simon_w|air care to share details?
644: [10:42:00] <simon_w|air> Yup!
645: [10:42:00] <Zauberfisch> go as in the language from google?
646: [10:42:00] <simon_w|air> yeah
647: [10:42:00] <Zauberfisch> fancy
648: [10:43:00] <simon_w|air> (just have to make sure that main() waits)
649: [10:43:00] <simon_w|air> also, the code is so much nicer than the java logbot
650: [10:43:00] <simon_w|air> Go's great so far. I don't have to think and I can use threads :)
651: [10:43:00] <Zauberfisch> how is go?
652: [10:44:00] * ivoba has joined #silverstripe
653: [10:44:00] * Jeremy1_ quit (Quit: Page closed)
654: [10:45:00] <ss23> I'm hungry
655: [10:45:00] <simon_w|air> http://pastebin.com/R4RXiDc4
656: [10:45:00] <simon_w|air> that's the code running GoTest
657: [10:45:00] <ss23> :<
658: [10:46:00] <ss23> Hmm
659: [10:46:00] <ss23> I could do that
660: [10:46:00] <Nightjar> always blow on the pie
661: [10:46:00] <simon_w|air> BP!
662: [10:46:00] <ss23> ;_;
663: [10:46:00] <ss23> There's no good food around
664: [10:46:00] <simon_w|air> So eat?
665: [10:46:00] * Gerry2 quit (Quit: Nettalk6 - www.ntalk.de)
666: [10:47:00] <ss23> Nightjar: +++
667: [10:47:00] <ss23> Always blow on the pie
668: [10:47:00] <ss23> it's been in there for 10, 12 hours
669: [10:47:00] <ss23> That things thermonuclear
670: [10:48:00] <simon_w|air> Zauberfisch, I'm going to run them both for a while, then switch the site over to using GoTest's database, stop the current ss-log then work on importing all the current logs
671: [10:49:00] <Nightjar> well, anchors that don't suck.
672: [10:49:00] <Nightjar> anchors this time plz simon_w|air
673: [10:50:00] <simon_w|air> Nightjar, click on the number, the anchors are all unique :p (even with restarts screwing up the numbers)
674: [10:50:00] <Nightjar> yes but time
675: [10:51:00] <Nightjar> I remember wanting something from it in the past, I just can't remember what that is now.
676: [10:51:00] <Nightjar> and encapsulate so it's easier to scrape, or something.
677: [10:51:00] <willmorgan> ooh, the default branch on github is 3.1
678: [10:52:00] <simon_w|air> No idea
679: [10:52:00] <Zauberfisch> I would be really interested to see the code
680: [10:52:00] <Zauberfisch> want to take a look at go anyway
681: [10:52:00] <Zauberfisch> simon_w|air are you going to opensource it?
682: [10:52:00] <Zauberfisch> nice simon_w|air
683: [10:52:00] <simon_w|air> http://pastebin.com/R4RXiDc4
684: [10:53:00] <Nightjar> JS dates so shit :<
685: [10:54:00] <Nightjar> oic, have to UTC everything
686: [10:55:00] * cloph_away1 is now known as cloph
687: [10:56:00] <simon_w|air> Zauberfisch, for comparison, http://pastebin.com/73SbYJ0g is ss-log
688: [10:57:00] * osterlaus quit (Quit: Leaving.)
689: [10:59:00] * willr_ quit (Quit: willr_)
690: [11:00:00] * simon_w|air quit (Quit: This computer has gone to sleep)
691: [11:00:00] * simon_w|air sleeps
692: [11:02:00] * rkupper has joined #silverstripe
693: [11:26:00] * Nightjar has left #silverstripe
694: [11:41:00] <kinglozzer> The time has come for a new theme: Sublime Text 2 theme recommendations anyone? Currently using tomorrow-night
695: [11:44:00] * SightUnseen has joined #silverstripe
696: [11:49:00] * SightUnseen quit (Ping timeout: 264 seconds)
697: [12:01:42] * UncleCheese has joined #silverstripe
698: [12:01:50] * UncleCheese quit (Client Quit)
699: [12:02:01] * UndefinedOffset has joined #silverstripe
700: [12:09:41] * jrthomer quit (Remote host closed the connection)
701: [12:10:09] * jrthomer has joined #silverstripe
702: [12:10:55] * Mattybalaam has joined #silverstripe
703: [12:21:35] * Shrike_Finland has joined #silverstripe
704: [12:39:02] <Colin[pi]> the horror: http://90sisland.com/
705: [12:45:01] * SightUnseen has joined #silverstripe
706: [12:45:46] * UncleCheese has joined #silverstripe
707: [12:48:28] <kinglozzer> Colin[pi]: Wow
708: [12:48:58] * rkupper quit (Ping timeout: 250 seconds)
709: [12:49:04] * SightUnseen quit (Ping timeout: 240 seconds)
710: [12:49:10] <kinglozzer> That has to be a wind-up!
711: [12:50:15] <Colin[pi]> hehe yeah a guy made "the worst possible website" to promote his new book
712: [12:50:16] <Colin[pi]> http://www.reddit.com/r/web_design/comments/1eei20/my_best_friend_designed_the_worst_possible/
713: [12:50:51] <ss23> wait
714: [12:50:52] <ss23> like
715: [12:50:55] <ss23> Is that a parody?
716: [12:50:58] <ss23> Is the book on bad web design?
717: [12:51:38] <ss23> no fucking way, that's a parody, Colin[pi]
718: [12:51:46] <ss23> It uses <meta property="og:title"
719: [12:51:53] <ss23> okay
720: [12:51:54] <ss23> phew
721: [12:52:04] <Colin[pi]> lol it's to promote a book about the '90's dude
722: [12:52:21] <ss23> yeahj
723: [12:52:23] <ss23> WELL I WASN'T SURE
724: [12:52:27] <ss23> Colin[pi]: Poes law, okay...
725: [12:52:29] <Colin[pi]> hehehe
726: [13:02:23] * mento has joined #silverstripe
727: [13:04:17] <kinglozzer> chillu: At the moment I'm using this: http://pastie.org/7915876 to define export fields directly on the model. Would this be a welcome addition to the core? Or is there already a way to define export fields on the model (I want different fields to summary fields)
728: [13:08:00] <chillu> kinglozzer: I think that's pushing it a bit, we already have too many get*Fields() methods on the model. As you demonstrate, there's a clean and easy way to achieve this without core mods
729: [13:09:09] <kinglozzer> chillu: Ah okay cool. I'll include it in a write up I intend to do for the SS blog after this project is finished :)
730: [13:15:08] * webguest has joined #silverstripe
731: [13:15:21] <webguest> 2.4.10 question, how do i use _t value's into jquery in the controller? http://paste2.org/G8m5fswI
732: [13:15:35] <webguest> see line 62
733: [13:16:19] <Colin[pi]> webguest: put it in a php variable above the customScript and insert that way
734: [13:17:14] <webguest> ill try, sec
735: [13:19:26] <webguest> thx it works!
736: [13:19:27] <webguest> great
737: [13:19:35] <Colin[pi]> no worries :)
738: [13:20:10] * Mattybalaam quit (Ping timeout: 250 seconds)
739: [13:22:27] <kinglozzer> Is there any way I can tell if a site is 2.x or 3.x from the front-end?
740: [13:27:14] <mento> kinglozzer: not sure, but you try to run /dev/build/ - you'll be redirected to the loginpage, but during the redirect you might see the layout of the environment builder :P
741: [13:28:05] <kinglozzer> mento: Awesome, thanks. It's a 2.x one :P client is asking for a quote for amends and I was curious which version
742: [13:28:30] * Shrike_Finland quit (Quit: Leaving.)
743: [13:30:46] * PigeonFriend has joined #silverstripe
744: [13:31:28] <mento> kinglozzer: it's probably not the way to go, but it works though =P
745: [13:32:01] <kinglozzer> Yeah I don't need to know the minor version, just major so works fine for what I needed, thanks
746: [13:38:56] * r3v3rb has joined #silverstripe
747: [13:39:14] <r3v3rb> hi all
748: [13:39:27] <r3v3rb> does gridfield allow me to limit items ?
749: [13:39:46] <Zauberfisch> r3v3rb yes
750: [13:40:03] <Zauberfisch> or well, it depends, limit in terms of limit the number of displayed items: yes
751: [13:40:06] <r3v3rb> and can this be applied easily for clients to manage
752: [13:40:14] <Zauberfisch> limit in terms of validate a max number of items: no
753: [13:40:29] * osterlaus has joined #silverstripe
754: [13:40:36] <Zauberfisch> then only thing I can image what you can do is:
755: [13:40:52] <r3v3rb> let me explain :D my client has news and events both of which are page types because each holds different data, but on the home page they now want a combined list view
756: [13:41:06] <Zauberfisch> if ($this->relationName()->count() >= 10) $gridField->getConfig()->removeComponentByType('GridFieldAddNewButton');
757: [13:41:14] <r3v3rb> so I was going to create a gridfield where they choose upto four items
758: [13:41:46] * osterlaus has left #silverstripe
759: [13:41:47] <r3v3rb> secondly, can I use a gridfield for them to choose pages from the sitetree to display ?
760: [13:41:52] <Zauberfisch> I guess you could count the items and then remove the add button
761: [13:42:04] <r3v3rb> Zauberfisch: yes that would be sufficient
762: [13:42:29] <Zauberfisch> but if you want to let them choose with checkboxes you can forget the add button trick
763: [13:42:34] <r3v3rb> and I could use the two pagetypes as data for the gridfield?
764: [13:43:04] <Zauberfisch> kind of, yes
765: [13:43:08] <Zauberfisch> you could give the gridfield a list
766: [13:43:12] <r3v3rb> well it needs to be sortable so I prefer them only choosing four then sorting them whichever way they prefer
767: [13:43:26] <Zauberfisch> $list = Page::get()->filter('ClassName', array('PageType1', 'PageType2');
768: [13:43:38] <Zauberfisch> sortable as well now?
769: [13:43:43] <Zauberfisch> this is getting rather tricky
770: [13:43:50] <Zauberfisch> I recommend doing the following:
771: [13:43:51] <r3v3rb> :P
772: [13:43:59] <r3v3rb> see why i ask now
773: [13:44:01] <Zauberfisch> - create a many_many relation
774: [13:44:08] <Zauberfisch> - use sortable in the many_many relation
775: [13:44:24] <Zauberfisch> - use "add existing item" component to select the pages
776: [13:44:46] <Zauberfisch> (I think this add exisitng item thingy is part of ajshort's gridfield extensons repo
777: [13:45:50] <r3v3rb> do you have a link for ajshorts extension?
778: [13:46:37] <Zauberfisch> r3v3rb but don't quote me in this recomendations I just made, I have never done that, so I am not sure how good it will work
779: [13:46:47] <r3v3rb> :D
780: [13:46:53] <Zauberfisch> https://github.com/ajshort/silverstripe-gridfieldextensions
781: [13:47:05] <Zauberfisch> if you use composer just use "require ajshort/silverstripe-gridfieldextensions"
782: [13:47:08] <r3v3rb> well I have to figure a simple solution by next wednesday :) so time to play
783: [13:47:27] <r3v3rb> composer on dev station here but not production server
784: [13:52:16] * Motoservo quit (Ping timeout: 245 seconds)
785: [13:53:38] * Motoservo has joined #silverstripe
786: [13:55:22] * SightUnseen has joined #silverstripe
787: [13:55:51] * samthejarvis has joined #silverstripe
788: [13:56:38] <samthejarvis> hi all, anyone know how to overwrite the base route ( domain.com/ ) with the YAML based director rules?
789: [13:56:52] <samthejarvis> so I want / to go to "Test_Controller"
790: [13:57:45] <samthejarvis> oh, hang on, seem to have done it with just '': 'Test_Controller"
791: [13:59:42] <Zauberfisch> yes, but be careful with that, I did a similar thing in 2.4, and I had a couple of problems to solve
792: [13:59:51] * SightUnseen quit (Ping timeout: 256 seconds)
793: [13:59:56] <Zauberfisch> maybe it works better in 3.0 now
794: [14:09:37] * ivoba quit (Quit: Leaving)
795: [14:13:14] * Zauberfisch quit (Remote host closed the connection)
796: [14:13:41] <samthejarvis> ah, I suspected there'd be something to watch out for as it's a fairly sweeping rule
797: [14:16:19] * Colin[pi] quit ()
798: [14:26:54] * samthejarvis quit (Ping timeout: 250 seconds)
799: [14:34:27] * kinglozzer quit (Remote host closed the connection)
800: [14:36:49] * kinglozzer has joined #silverstripe
801: [14:37:50] * rkupper has joined #silverstripe
802: [14:41:23] <webguest> ss 2.4.10 - can you give requireCustomScript to a Form class?
803: [14:46:56] <willmorgan> webguest: you want a form to require some stuff when included?
804: [14:47:08] <webguest> it works :)
805: [14:47:13] <webguest> yes
806: [14:47:16] <webguest> i have a form class
807: [14:47:23] <willmorgan> you can call Requirements wherever you want, really
808: [14:47:24] <webguest> and put requirements::customscript
809: [14:47:27] <webguest> thx
810: [14:47:36] <willmorgan> for the forms you should probably put the call inside the __construct function
811: [14:48:05] <willmorgan> and if it's specific to a field, you can do the same, but just for that formfield
812: [14:55:30] * SightUnseen has joined #silverstripe
813: [14:58:15] * catcher has joined #silverstripe
814: [14:58:47] * jrthomer quit (Remote host closed the connection)
815: [14:59:26] * jrthomer has joined #silverstripe
816: [14:59:48] * SightUnseen quit (Ping timeout: 252 seconds)
817: [15:12:39] * winterdj has joined #silverstripe
818: [15:14:13] <winterdj> hi all. I have a git repo setup for a project I'd like to work on with silverstripe. It includes puppet config, composer, vagrant etc. Ideally, I'd like the silverstripe stuff to go in the docroot, which is in the public/ directory. Are there any docs on using an alternative folder for the silverstripe files?
819: [15:19:32] * mento quit (Quit: Page closed)
820: [15:22:34] <willmorgan> winterdj: it helps if you send us a screenshot of your folder config
821: [15:23:53] <winterdj> willmorgan: https://dl.dropboxusercontent.com/u/11342885/silverstripe.png
822: [15:24:04] <winterdj> nginx will be serving from the public directory
823: [15:24:27] <willmorgan> gotcha
824: [15:24:46] <willmorgan> theoretically you should be able to put framework/ and cms/ modules inside the public folder too (if you choose)
825: [15:24:47] <winterdj> though composer is managed from the project root
826: [15:25:26] <willmorgan> the way that it works using apache .htaccess is basically by taking all requests and pointing them to a file inside framework that then handles routing
827: [15:25:51] <willmorgan> also, if you use a _ss_environment.php file to configure your setup (outside of public, of course), then you can set file_to_url_mapping, which should alleviate any other problems that might occur
828: [15:26:10] <willmorgan> i'm about to head out of the office for 15 minutes to stretch the legs but hope that helps
829: [15:26:20] <winterdj> cheers, will absorb all of that and play around
830: [15:28:40] * winterdj quit (Quit: Goodbye.)
831: [15:30:46] * osterlaus has joined #silverstripe
832: [15:34:08] * r3v3rb quit (Quit: r3v3rb)
833: [15:37:32] * webguest quit (Ping timeout: 250 seconds)
834: [15:44:37] * webguest has joined #silverstripe
835: [15:45:20] <webguest> i have a few variables that i want to use on any page http://paste2.org/mPBtOUdB - where do i need to place them use them on all php classes? i need to put them into php requirements::customscript ... jquery so there is no other way
836: [15:57:39] <catcher> webguest, you could grab them asynchronously via a controller action.
837: [15:57:52] <webguest> how?
838: [15:58:19] <catcher> jquery ajax request to a custom controller that returns the json_encoded result based on a param
839: [15:59:05] <webguest> hmm, can't i just place them into page.php init function ?
840: [15:59:19] <webguest> and use them on all clases?\
841: [16:01:26] <catcher> no need to increase your server memory footprint & send all messages to all clients, regardless if they'll use them.
842: [16:01:35] * g4b0 quit (Quit: Sto andando via)
843: [16:03:56] * kinglozzer quit (Remote host closed the connection)
844: [16:04:16] <webguest> i have no idea how to do the thing your suggesting
845: [16:05:53] * FireMe has joined #silverstripe
846: [16:05:57] * SightUnseen has joined #silverstripe
847: [16:07:52] * sewid has joined #silverstripe
848: [16:08:18] <catcher> webguest, When you need a message, call jquery.get() with the url of a controller action you've written. Pass it a parameter, and have your controller return the appropriate message. http://api.jquery.com/jQuery.get/
849: [16:08:48] <webguest> :O that might work
850: [16:09:59] <catcher> best to avoid global js vars when possible.
851: [16:10:20] * SightUnseen quit (Ping timeout: 252 seconds)
852: [16:17:15] <FireMe> if i had a table with "initial places" 10 for example and had another field with "current places" and then a different table and add up the number of rows with this id? then subtract it from initial places then update the current places with that number is this the best way to do this?
853: [16:17:40] <willmorgan> all in the same table, FireMe?
854: [16:18:04] <FireMe> the id are in another table
855: [16:18:43] <willmorgan> yeah, but all places sit in the same table. right?
856: [16:18:52] <FireMe> initial places / current places are in timeslot table and id is in bookings table
857: [16:19:11] <FireMe> yes
858: [16:19:16] <willmorgan> how are places related to bookings?
859: [16:19:29] <FireMe> by slotID
860: [16:20:21] <willmorgan> so:
861: [16:20:31] <willmorgan> Bookings >=< Timeslots >= Places?
862: [16:21:13] <FireMe> yes
863: [16:21:15] <willmorgan> it must be said that you would explain this better if you posted some code or a schema diagram
864: [16:21:41] <willmorgan> Bookings many_many Timeslots; Places has_many Timeslots. right?
865: [16:22:54] <FireMe> bookings is many timeslots, and places is just a field in timeslots places is just a number
866: [16:23:29] <willmorgan> oh so places remaining
867: [16:23:31] <FireMe> places like spaces
868: [16:23:39] <willmorgan> oh... right
869: [16:24:13] <willmorgan> so is your scenario where you have an event which have many timeslots(?), and that timeslot can be held at a particular place?
870: [16:24:19] <willmorgan> i'm trying to understand your business logic
871: [16:25:25] <FireMe> timeslots as in 2:00pm till 3pm and places as in there are 10 remaining on course
872: [16:25:35] <willmorgan> oh right
873: [16:26:50] <willmorgan> sounds like you want to take the value of Timeslot.Places and then calculate the total number of Bookings with that Timeslot
874: [16:27:13] <willmorgan> is Timeslot a dataobject, FireMe?
875: [16:27:20] <FireMe> yes
876: [16:27:23] <willmorgan> cool
877: [16:27:47] <willmorgan> so you probably want to make a new method on Timeslot called getAvailablePlaces
878: [16:27:55] <willmorgan> make it return an integer
879: [16:28:02] * webguest quit (Quit: Page closed)
880: [16:28:23] <willmorgan> something like: $this->Places - $this->Bookings()->count();
881: [16:28:40] <FireMe> yer
882: [16:28:49] <willmorgan> and yeah, you're done
883: [16:30:00] <willmorgan> $this->Bookings() is shorthand for Booking::get()->filter('TimeslotID', $this->ID)
884: [16:30:17] <willmorgan> and then the ->count() bit tells the DataList to run a COUNT query
885: [16:30:27] <willmorgan> at least that's how I remember. just making it up as I go here really :)
886: [16:31:45] <FireMe> ok, im entirely new to this so, might get used to it in the end, probably easy when you know how
887: [16:32:03] <willmorgan> it's best not to spoonfeed people i find
888: [16:32:18] <willmorgan> so give writing that function a go, and if you get stuck, put it on sspaste and hopefully someone can help
889: [16:32:37] <FireMe> ok thanks alot
890: [16:32:45] <willmorgan> np, enjoy!
891: [16:37:03] <FireMe> i will give it ago after dinner, :-)
892: [16:52:04] * rkupper quit (Ping timeout: 250 seconds)
893: [16:53:41] * DesignerX has joined #silverstripe
894: [16:58:48] <FireMe> ok i guess im way out with this getting syntax error, unexpected '}' http://sspaste.com/paste/show/51950ff6039e8
895: [17:00:07] * osterlaus quit (Quit: Leaving.)
896: [17:04:56] <catcher> FireMe, the problem is elsewhere
897: [17:05:19] <FireMe> ok will look
898: [17:05:47] <catcher> Quite likely an extra '}' after that function or class :)
899: [17:06:05] * SightUnseen has joined #silverstripe
900: [17:10:55] * SightUnseen quit (Ping timeout: 276 seconds)
901: [17:12:40] <FireMe> i cant notice anything i have add the full code on the second post http://sspaste.com/paste/show/51950ff6039e8
902: [17:14:32] <priithansen> should be $this->Places if I'm not mistaken
903: [17:15:16] <priithansen> without the ()
904: [17:15:51] <DesignerX> hi,
905: [17:15:53] <willmorgan> i've posted another comment on that paste, FireMe
906: [17:16:09] <FireMe> ok
907: [17:16:35] <DesignerX> FireMe: I had a look at yout code, It seems all good "syntax" wise , but change line 57 to be $this->Places without the ()
908: [17:17:26] <DesignerX> unless you need a has_many relation to "Places" then you need to ass that under $has_many array
909: [17:18:03] <DesignerX> ass=add , one key too far
910: [17:22:23] <FireMe> places is just and int that is set on when a timeslot is created
911: [17:25:00] * willmorgan quit (Ping timeout: 249 seconds)
912: [17:29:02] <FireMe> one question with this code return $this->Places - $this->Bookings()->count(); how does it know to select timeslotID field in bookings
913: [17:31:39] <catcher> FireMe, it's counting rows, not fields
914: [17:32:34] <catcher> it's just counting the # of bookings in the table
915: [17:32:45] <catcher> well, in the relationship
916: [17:32:50] <FireMe> but is it rows of that field id or is it all in the table
917: [17:33:40] <catcher> just the # of bookings in the relationship.
918: [17:35:21] <FireMe> which is the timeslotID field i guess
919: [17:37:02] <catcher> Does each booking have multiple timeslots?
920: [17:37:45] <FireMe> no
921: [17:38:31] <catcher> So then you don't care about timeslotID, you just need to know how many bookings exist in the relationship.
922: [17:38:45] <catcher> which is accomplished with $this->Bookings()->count()
923: [17:39:04] <FireMe> yes
924: [17:44:36] * webguest has joined #silverstripe
925: [17:45:32] <webguest> how do i make a jquery variable that is available in all other jquery scripts?
926: [17:46:39] * UncleCheese quit (Quit: UncleCheese)
927: [17:46:44] <FireMe> could i use this public function Availability() { if ($getAvailablePlaces < 1) { return "Unavailable"; } else { return "Available"; } } by re-using the getAvailablePlaces function?
928: [17:53:08] * UncleCheese has joined #silverstripe
929: [17:53:38] <FireMe> hows nz unclecheese?
930: [17:53:43] <UncleCheese> hey!
931: [17:53:48] <UncleCheese> fly on July 2
932: [17:54:03] <FireMe> oh not over there yet then
933: [17:54:07] <UncleCheese> got our visa applications sent out yesterday
934: [17:54:11] <UncleCheese> insane amount of work
935: [17:55:03] <FireMe> i have some family members that live there, and went there for xmass for a few months the other year
936: [17:56:42] <UncleCheese> really?
937: [17:56:48] <UncleCheese> where are you from?
938: [17:56:55] <FireMe> UK
939: [17:56:57] <UncleCheese> oh wow
940: [17:56:59] <UncleCheese> quite a flight
941: [17:57:08] <UncleCheese> via hong kong?
942: [17:57:34] <FireMe> 3 days solid with a few 10 hrs waiting in airports for next flight lol
943: [17:57:52] * chillu quit (Quit: chillu)
944: [17:58:12] <UncleCheese> good god
945: [17:58:24] * chillu has joined #silverstripe
946: [17:58:44] <UncleCheese> so what did you think of NZ? North or South Island?
947: [17:59:27] <FireMe> England -> Dubai -> Singapore -> Australia -> NZ
948: [18:01:28] * UncleCheese quit (Quit: UncleCheese)
949: [18:01:49] <catcher> webguest, that's rarely necessary
950: [18:03:16] <webguest> hmm true
951: [18:05:24] <FireMe> can you do a if statement in a template?
952: [18:07:10] <catcher> FireMe, sure
953: [18:07:28] <catcher> <% if %>
954: [18:07:52] <catcher> <% if $boolean %> stuff <% else %> other stuff <% end_if %>
955: [18:09:28] <FireMe> would <% if getAvaliablePlaces > 0 %>Stuff <% else %> other stuff <% end_if %> work?
956: [18:09:40] <FireMe> $get
957: [18:12:30] <catcher> sure would
958: [18:16:22] * SightUnseen has joined #silverstripe
959: [18:17:41] <FireMe> when i add it to my template i get error function must be a string? but is a completely different function name
960: [18:17:51] * gelignite has joined #silverstripe
961: [18:19:48] * UncleCheese has joined #silverstripe
962: [18:20:23] * UncleCheese quit (Client Quit)
963: [18:20:34] * SightUnseen quit (Ping timeout: 240 seconds)
964: [18:21:11] * joelpittet has joined #silverstripe
965: [18:22:54] * UncleCheese has joined #silverstripe
966: [18:23:33] <UncleCheese> that seems like two more stops than necessary
967: [18:23:43] <UncleCheese> Air NZ goes Dubai -> AKL
968: [18:24:00] <UncleCheese> anyway, did you like it there?
969: [18:24:05] <FireMe> yer
970: [18:24:19] <UncleCheese> what part?
971: [18:24:34] <FireMe> had a barbecue for Christmas dinner lol
972: [18:24:38] <FireMe> north
973: [18:25:05] <UncleCheese> ``yeah, i can't wait for xmas on the beach
974: [18:25:06] <gumble> where should I locate the standard landing page of my website? it doesn't make sence to create it as a theme because it has no content that the user could change, it's just a static site
975: [18:25:09] <FireMe> aim to go back and do the south island too
976: [18:25:17] <gumble> and now other page will use that layout
977: [18:26:49] * UncleCheese quit (Client Quit)
978: [18:41:29] <FireMe> lol changed it to !=0 and that seems to work >0 didnt seem to work, is it because of the ">"
979: [18:45:00] * r3v3rb has joined #silverstripe
980: [18:45:04] * willmorgan has joined #silverstripe
981: [18:46:44] * sewid quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
982: [18:53:56] * MattyBalaam has joined #silverstripe
983: [18:57:09] <webguest> i would like
984: [18:59:33] <FireMe> is it possible to use my getAvailablePlaces function on on my BookingForm function on which is on event.php to add a dropdown field to select number of places required, may have to then change my getAvailablePlaces function then thow
985: [19:01:02] <willmorgan> FireMe: you don't need to change that function
986: [19:02:06] <catcher> webguest, re: your private IM, I'd recommend grabbing the entire set asynchronously from a controller.
987: [19:02:34] <FireMe> yer but if one booking has more than 1 place then it would still only count the row as one?
988: [19:03:11] <MattyBalaam> Hi, I’m trying to fix a bug upgrading my site to Silvertripe 3.1. I get a pop-up saying "Notice at line 174 of /Users/mattybalaam/Sites/matty3/framework/dev/Deprecation.php", but there is nothing in php_error.log. Any idea how I can track this down/
989: [19:03:54] <MattyBalaam> This happens on the tree-view at /admin/pages/ and it doesn’t show the tree either. It will show the flat list
990: [19:04:56] <r3v3rb> MattyBalaam: check the firebug NET panels maybe? or put the site into debug=1 ?
991: [19:05:06] <r3v3rb> I'm guessing btw
992: [19:05:25] <r3v3rb> maybe check you aren't running an old version of PHP?
993: [19:06:14] <webguest> catcher: but can i do in jquery ... $.extend($.validator.messages, { required: Jquermessages('required')
994: [19:06:17] <webguest> or how should that work
995: [19:07:10] <catcher> looks like the 2nd param is just a json object, so you can build an array in your controller & json_encode it before returning.
996: [19:07:42] <MattyBalaam> I’m running MAMP, with PHP 5.4.4 and XCache. I haven’t got firebug installed but neither Chrome or Firefox developer tools tell me anything in the inspector.
997: [19:07:55] <webguest> do you have a simple example?
998: [19:08:46] <FireMe> if i was to get getAvaliablePlaces and i came back with 6, how would i get it to create a dropdown with 1,2,3,4,5,6
999: [19:10:11] <gumble> where should I locate a static page which can't be changed by the cms user?
1000: [19:10:18] <gumble> maybe only meta tags
1001: [19:10:43] <catcher> Controller: return json_encode(array('required => _t('Validate.REQUIRED','This field is required');)); JQuery: $msgs = jquery.get(your_controller); $.extend($.validator.messages, $msgs);
1002: [19:10:55] <r3v3rb> MattyBalaam: drop in firebug on firefox and see if it gives any hints...
1003: [19:11:09] <catcher> you'll need to add all of your messages to the array, etc.
1004: [19:11:19] <FireMe> maybe just remove $content from the cms
1005: [19:11:29] <FireMe> for that page type
1006: [19:11:57] <MattyBalaam> Ah, I’ve just dropped the whole database and ran a dev/build. Seems there are a few stray public statics I hadn’t changed.
1007: [19:12:09] <r3v3rb> ;) always a reason
1008: [19:15:38] <FireMe> i think this would work -> public function getCMSFields() { $fields = parent::getCMSFields(); $fields->removeFieldFromTab("Root.Main","Content"); return $fields; }
1009: [19:21:14] * r3v3rb quit (Quit: r3v3rb)
1010: [19:26:34] <webguest> catcher like this? http://paste2.org/MwKUgzML
1011: [19:27:56] <catcher> webguest, that's the basic idea.
1012: [19:28:32] <catcher> There will undoubtedly be things to work out, i.e. you won't need the braces in the extend call.
1013: [19:28:35] <FireMe> tried making my own function is there anything wrong with this? http://sspaste.com/paste/show/5195332b4fea6
1014: [19:28:38] <webguest> hmm, im getting a "Uncaught SyntaxError: Unexpected token }"
1015: [19:29:47] <catcher> webguest, chrome debug tools will help you see the net response from the controller, etc.
1016: [19:30:01] <catcher> You can also query the controller directly in a browser to make sure you get back what you expect.
1017: [19:30:03] <webguest> ok thx
1018: [19:39:54] <MattyBalaam> Any config.yml experts here?
1019: [19:41:59] <FireMe> can't get it to work so there has to be something wrong
1020: [19:44:00] * MindFusion has joined #silverstripe
1021: [19:45:25] * LoveDuckie has joined #silverstripe
1022: [19:46:38] <FireMe> ok got my dropdown list with 1 in it where's the rest? lol
1023: [19:48:26] * MindFusion quit (Ping timeout: 250 seconds)
1024: [19:52:12] <FireMe> ok this is the code but its just returning one in drop-down http://sspaste.com/paste/show/519538be2a13e
1025: [19:52:31] * SightUnseen has joined #silverstripe
1026: [19:53:29] <simon___w> yay, GoTest survived the night
1027: [19:53:41] * Kapdap_ quit (Quit: leaving)
1028: [19:53:57] <simon___w> FireMe, why aren't you using DropdownField?
1029: [19:54:09] <simon___w> (also, because you're only returning one)
1030: [19:54:20] * SightUnseen has left #silverstripe
1031: [19:54:45] * simon___w is now known as simon_w
1032: [19:54:49] <FireMe> so the foreach does not work
1033: [19:55:25] <simon_w> Think about what that return statement does
1034: [19:56:05] <gumble> if I have a new theme, do I have create a controller for it?
1035: [19:57:13] * Kapdap has joined #silverstripe
1036: [19:57:17] <simon_w> gumble, not for themes
1037: [19:57:35] <gumble> where do I select the theme for a page?
1038: [19:57:53] <simon_w> Theme is set site-wide
1039: [19:57:55] <gumble> page type just lets me choose from the controllers
1040: [19:58:17] <gumble> but I have a landing page which doesn't look like my normal theme
1041: [19:58:36] <simon_w> So, you have a new template?
1042: [19:58:45] <simon_w> Then yes, you need another model/controller for it
1043: [19:59:17] <gumble> whats the difference between template/theme?
1044: [19:59:58] <simon_w> A theme is a set of templates, css, javascript, image, etc
1045: [20:00:05] <simon_w> A template is a single layout file
1046: [20:00:08] <gumble> yes I created a new template in a new folder under /themes and ran /dev/build and now somehow silverstripe already has changed the whole site to the new theme
1047: [20:00:28] <gumble> ah ok
1048: [20:00:32] <gumble> then I created a new theme
1049: [20:00:58] <gumble> and why does silverstripe already use it after me running /dev/build without changing any settings in the cms?
1050: [20:01:14] <simon_w> It shouldn't
1051: [20:01:16] <gumble> I thought it would just give me the option to chose from and not already be activated
1052: [20:01:46] <simon_w> Unless you also changed your SSViewer::set_theme() line in your _config.php
1053: [20:01:50] <gumble> is it wrong if my one theme is called umm and the other umm_landing_page? could that cause the problem?
1054: [20:02:04] <gumble> I think I would remember that
1055: [20:02:09] <simon_w> Yes, that'd do it.
1056: [20:02:41] <gumble> so change the umm_landing_page to a different name without umm at the start?
1057: [20:02:54] <simon_w> Without underscores in it
1058: [20:03:05] <gumble> ah damn
1059: [20:03:17] <gumble> underscores sets default or just should be used?
1060: [20:03:32] <gumble> should not*
1061: [20:03:46] <simon_w> underscores denote module-related extensions to a theme
1062: [20:03:54] <FireMe> ok tried this but guess there is a syntax error http://sspaste.com/paste/show/51953b8d3b61c
1063: [20:04:11] <simon_w> so umm_blog should just be blog-related stuff for the umm theme
1064: [20:04:55] <gumble> simon_w, ok. Thanks for the help
1065: [20:05:06] <simon_w> FireMe, return new DropdownField('Select', 'Select', array_combine($range, $range))
1066: [20:08:33] <willmorgan> :o
1067: [20:08:39] * UncleCheese has joined #silverstripe
1068: [20:08:44] <willmorgan> simon_w: use ArrayLib::valueKey($range)
1069: [20:09:25] <simon_w> willmorgan, why? It just wraps array_combine, with no other benefit
1070: [20:09:48] <willmorgan> valueKey is a frickin' cool name
1071: [20:09:51] <willmorgan> everyone loves bloat
1072: [20:10:01] <UndefinedOffset> -_-
1073: [20:11:24] <FireMe> i am getting 1,0 in my dropdown
1074: [20:11:57] <simon_w> So $placesremaining is 0
1075: [20:12:17] <FireMe> no
1076: [20:13:12] <simon_w> Given that's how range() works, yes
1077: [20:13:27] <FireMe> the one im on its 8, so should create the range 1,2,3,4,5,6,7,8
1078: [20:13:47] <gumble> simon_w, you don't have an idea why the adding the folder and running /dev/build now let to all my pages being empty even after removing the new theme folder and running build again?
1079: [20:13:54] * DigNZ has joined #silverstripe
1080: [20:13:56] * DigNZ quit (Remote host closed the connection)
1081: [20:14:10] * DigNZ has joined #silverstripe
1082: [20:15:13] <FireMe> or is that not how range works?
1083: [20:16:01] <simon_w> FireMe, having range(1, $x, 1) return [1, 0] means $x is 0
1084: [20:16:09] * UndefinedOffset quit (Quit: Leaving.)
1085: [20:16:48] <simon_w> gumble, try flushing the page
1086: [20:17:13] <FireMe> i have this for testing $this->Places - $this->Bookings()->count(); avaliable places which show 8
1087: [20:17:33] <gumble> simon_w, yap. that was it, thanks
1088: [20:18:00] <FireMe> oh its a typo
1089: [20:18:37] <FireMe> $placesremainging was placesremaining lol
1090: [20:19:27] <FireMe> other way around you know what i mean lol
1091: [20:22:14] * webguest quit (Ping timeout: 250 seconds)
1092: [20:36:25] * robert_ has joined #silverstripe
1093: [20:36:25] * robert_ quit (Changing host)
1094: [20:36:25] * robert_ has joined #silverstripe
1095: [20:40:48] <gumble> how do I now set a controller to use a different theme then the standard one? I read through the controller and theme page and only thing I found was how to render with a different template
1096: [20:41:09] * nickmolhoek has joined #silverstripe
1097: [20:41:11] * nickmolhoek quit (Remote host closed the connection)
1098: [20:41:25] * nickmolhoek has joined #silverstripe
1099: [20:42:27] * jrthomer quit (Remote host closed the connection)
1100: [20:44:36] * jrthomer has joined #silverstripe
1101: [20:45:52] * nickmolhoek quit (Ping timeout: 256 seconds)
1102: [20:47:38] * sewid has joined #silverstripe
1103: [20:47:52] <unsignedint> gumble: thats what a theme is, a set of templates and the associated css
1104: [20:48:11] * nickmolhoek has joined #silverstripe
1105: [20:48:11] * nickmolhoek quit (Remote host closed the connection)
1106: [20:48:12] <unsignedint> gumble: you could start by copying the default theme, renaming the folder, setting the new theme as default and then modifying the css
1107: [20:48:31] * nickmolhoek has joined #silverstripe
1108: [20:49:03] * simon_w quit (Ping timeout: 252 seconds)
1109: [20:49:26] * sewid quit (Client Quit)
1110: [20:50:21] * Jeremy1 has joined #silverstripe
1111: [20:50:45] * priithansen quit (*.net *.split)
1112: [20:51:46] <catcher> Is there any insider info on how close 3.1 is to being the stable release?
1113: [20:51:51] * Pyromanik has joined #silverstripe
1114: [20:51:55] <Pyromanik> so like
1115: [20:51:57] <Pyromanik> traceroute
1116: [20:52:04] <Pyromanik> what do when every hop comes back * * *
1117: [20:52:15] <catcher> I had the same issue 2 days ago. worthless.
1118: [20:52:31] <catcher> Pyromanik, someone's firewall doesn't like you.
1119: [20:52:32] <onre> try -I or -T
1120: [20:52:51] <onre> those use different kind of probes (namely ICMP and TCP SYN) that might get better through firewalls
1121: [20:53:42] <Pyromanik> lol, 30 hops of * * *
1122: [20:53:45] <Pyromanik> try -T
1123: [20:53:48] <Pyromanik> done in 2 hops.
1124: [20:54:08] <catcher> -T and -I are 12 hops, 10 of which are asterisks
1125: [20:54:14] <catcher> in my case, that is
1126: [20:54:25] <Pyromanik> I got success
1127: [20:54:35] <catcher> can I borrow your firewall?
1128: [20:54:39] <Pyromanik> but had to su before
1129: [20:54:44] <Pyromanik> catcher: :<
1130: [20:54:59] <catcher> yeah, -T and -I are too fancy for non-su
1131: [20:55:40] <Pyromanik> rofl
1132: [20:55:45] <Pyromanik> try in windows
1133: [20:55:51] <Pyromanik> tracert <ip>
1134: [20:56:39] <Pyromanik> "Tracing route to <server FQDN> [<ip>] over a maximum of 30 hops:" *ctrl+c, because that's all I wanted to know in the first place*
1135: [21:04:16] * MattyBalaam quit (Ping timeout: 250 seconds)
1136: [21:04:24] * priithansen has joined #silverstripe
1137: [21:05:07] <catcher> is there a decent slugging module for SS?
1138: [21:05:50] <FireMe> how come im getting a server error when i add this to my bookingform function $fieldset = TimeSlot::getAvailablePlacesDropDown();
1139: [21:06:11] <catcher> or a slick way to do it?
1140: [21:07:10] * simon_w has joined #silverstripe
1141: [21:10:12] <PigeonFriend> catcher: What do you mean?
1142: [21:11:52] * Stomach has joined #silverstripe
1143: [21:16:13] <catcher> Now that I think about it, I'm handling the requests, I can just retrieve the items by a custom url segment field.
1144: [21:16:20] * joelpittet quit (Remote host closed the connection)
1145: [21:21:12] * SightUnseen has joined #silverstripe
1146: [21:21:32] <Pyromanik> catcher: just copy the sitetree slugger.
1147: [21:21:41] * SightUnseen has left #silverstripe
1148: [21:21:58] <Pyromanik> FireMe: what version of SS are you using?
1149: [21:22:13] <FireMe> 3.1.0
1150: [21:22:24] <Pyromanik> fieldsets aren't a thing anymore.
1151: [21:22:37] <Pyromanik> if TimeSlot module is returning a fieldset, that's your problem.
1152: [21:22:37] <FireMe> oh yer fieldlist
1153: [21:23:01] <Pyromanik> yes but that there is just a variable name, it's fine. The TimeSlot doofer there is what you need to worry about.
1154: [21:23:12] <Pyromanik> pretty sure SS doesn't ahve a TimeSlot class
1155: [21:23:25] <Pyromanik> so you need to have the module installed
1156: [21:23:32] <Pyromanik> and you need it to be 3.1 compliant.
1157: [21:23:45] <FireMe> timeslot is my class
1158: [21:24:00] <Pyromanik> right, so ensure it returns a list
1159: [21:24:07] <Pyromanik> and ensure it's 3.1 safe
1160: [21:24:10] <Pyromanik> turn dev mode on
1161: [21:24:13] <Pyromanik> see what the error is
1162: [21:24:27] <FireMe> how do i do that?
1163: [21:25:29] <Pyromanik> read the docs?
1164: [21:25:40] <Pyromanik> specifically the 3.1 changelog
1165: [21:26:46] <Pyromanik> I guess
1166: [21:26:48] * Stomach has left #silverstripe
1167: [21:26:50] <Pyromanik> haven't looked into 3.1 yet
1168: [21:26:54] * Stomach has joined #silverstripe
1169: [21:27:44] <Pyromanik> Stomach: !
1170: [21:27:53] <Stomach> hello
1171: [21:28:03] <Pyromanik> what is heyday-tools?
1172: [21:28:45] <simon_w> chillu, looks like we can finally rename the sapphire repo. https://github.com/blog/1508-repository-redirects-are-here
1173: [21:28:52] <Stomach> a very old library of useful stuff for ~ss2.2-2.3
1174: [21:28:53] <Pyromanik> nooooooo
1175: [21:29:01] <Pyromanik> Stomach: I see, cool
1176: [21:29:02] <Stomach> where did you find that :S
1177: [21:29:07] <Pyromanik> Stomach: izon
1178: [21:29:29] <Stomach> ah yep
1179: [21:30:11] <Stomach> that isn't even in source control, so its all pretty obsolete now :D
1180: [21:30:17] <Pyromanik> hehe
1181: [21:31:25] <FireMe> Non-static method TimeSlot::getAvailablePlacesDropDown() should not be called statically, assuming $this from incompatible context
1182: [21:31:59] <simon_w> FireMe, so stop calling it statically?
1183: [21:32:43] <FireMe> i dont believe i am
1184: [21:32:45] * willr_ has joined #silverstripe
1185: [21:32:57] <PigeonFriend> FireMe: Do you know PHP?
1186: [21:33:22] <FireMe> no, not well
1187: [21:33:42] <PigeonFriend> ok, so doing ClassName::method() is a way for calling a function statically
1188: [21:33:50] <PigeonFriend> $this is not available to that method
1189: [21:34:00] <PigeonFriend> so, either make it static
1190: [21:34:15] <PigeonFriend> public static function getAvailablePlacesDropDown()
1191: [21:34:17] <Pyromanik> or get an instance
1192: [21:34:22] <PigeonFriend> or you'll need to create an instance
1193: [21:34:33] <PigeonFriend> singleton('TimeSlot')->getAvailablePlacesDropDown()
1194: [21:34:36] <Pyromanik> $blah = new TimeSlot
1195: [21:34:46] <Pyromanik> or that
1196: [21:35:56] <PigeonFriend> note, if you do either of those, the object won't have any data (so no context) so if your function relies on values from the DB, you'll need to fetch the object you need from the DB
1197: [21:36:09] <PigeonFriend> TimeSlot::get()->byID($id)->getAvailablePlacesDropDown()
1198: [21:36:29] * simon_w quit (Ping timeout: 246 seconds)
1199: [21:37:04] * gelignite quit (Quit: http://bit.ly/nkczDT)
1200: [21:37:08] <FireMe> it is from the database
1201: [21:37:30] <PigeonFriend> ok, so you need to get the instance from the DB then
1202: [21:37:33] <PigeonFriend> do you know how to do that?
1203: [21:37:51] <FireMe> no
1204: [21:38:36] <PigeonFriend> FireMe: have you read the tutorials? is this your first SS site? First site?
1205: [21:39:07] <FireMe> yes its basic stuff isnt it
1206: [21:39:41] <PigeonFriend> yes to what?
1207: [21:39:47] * simon_w has joined #silverstripe
1208: [21:39:56] <PigeonFriend> I'm happy to help, i just need to know what i can assume you know v what you don't
1209: [21:41:04] <FireMe> this is my getAvailablePlacesDropDown function which is in my timeslot data object http://sspaste.com/paste/show/5195522759014
1210: [21:41:47] <PigeonFriend> where is it being called from?
1211: [21:41:56] <FireMe> and i am trying to add it to my bookingform function on event_controller
1212: [21:42:30] <PigeonFriend> and how does the controller know what timeslot the user is trying to book?
1213: [21:42:48] <Pyromanik> champion PigeonFriend :)
1214: [21:43:16] <FireMe> i think thats the problem
1215: [21:43:52] <PigeonFriend> ok, well, somehow, you're going to have to know what timeslot the user is trying to book, right? so send an ID in the URL
1216: [21:44:08] <FireMe> i have
1217: [21:44:13] <PigeonFriend> ok
1218: [21:44:17] <PigeonFriend> how is it sent in the url
1219: [21:44:23] <FireMe> the url is event/book/1
1220: [21:44:26] <PigeonFriend> brill
1221: [21:44:27] <PigeonFriend> ok
1222: [21:45:06] <PigeonFriend> in the controller: TimeSlot::get()->byID($this->request->param('id'))->getAvailablePlacesDropDown()
1223: [21:45:09] <PigeonFriend> done
1224: [21:45:22] <Pyromanik> id may need to be caps.
1225: [21:45:28] * Pyromanik unsure
1226: [21:45:38] <PigeonFriend> Pyromanik stop pissing on my parade
1227: [21:45:49] * PigeonFriend Pyromanik is right though
1228: [21:46:33] <FireMe> do i add that to my bookingform function?
1229: [21:46:46] <PigeonFriend> you add it where you need to get that dropdown, so i guess so
1230: [21:47:02] <PigeonFriend> you put it in place of TimeSlot::getAvailablePlacesDropdown()
1231: [21:47:10] <FireMe> ok will give it a try
1232: [21:47:29] <PigeonFriend> don't try, do, it'll work, 100% guaranteed
1233: [21:47:37] <PigeonFriend> I know what im doing with this PHP stuff
1234: [21:47:47] <PigeonFriend> apart from the case of 'ID' that is
1235: [21:47:48] <Pyromanik> haha champion
1236: [21:49:12] <willmorgan> oh hey it's PigeonFriend
1237: [21:49:44] <PigeonFriend> Pro tip, SS core has the most useless function, but you can use it in your getAvailable...() function: ArrayLib::valuekey($range);
1238: [21:49:57] <willmorgan> and simon_w will hate you for using it, so you must always use that function
1239: [21:50:12] * PigeonFriend damn, not willmorgan - wonders if he would like to pretend to be a web developer and get me to do his job for him too
1240: [21:50:20] <FireMe> ok Uncaught Exception: Object->__call(): the method 'push' does not exist on 'DropdownField'
1241: [21:50:38] <PigeonFriend> damn straight it doesnt
1242: [21:50:41] <Pyromanik> PigeonFriend: never come across that one
1243: [21:51:01] * priithansen quit (Quit: priithansen)
1244: [21:51:03] <catcher> If you were the method that validates requested URLSegments before passing it to the DB, where would you be?
1245: [21:51:12] <PigeonFriend> Pyromanik: I can guarantee i probably know the functions of SS better than anyone else in this IRC room ... bar a couple of people. willmorgan can vouch for that
1246: [21:51:19] <willmorgan> catcher: SiteTree:write
1247: [21:51:28] <willmorgan> or more specifically onBeforeWrite
1248: [21:51:49] <willmorgan> i think PigeonFriend is drunk, he's never this arrogant on IRC unless alcohol is involved
1249: [21:51:49] <PigeonFriend> catcher: validates them before writing? then you'd be a URLSegmentGenerator
1250: [21:51:51] <PigeonFriend> i think
1251: [21:51:58] <catcher> willmorgan, doesn't that method imply a certain amount of trust? Or is that primtime ready?
1252: [21:52:07] <Pyromanik> PigeonFriend: spent a lot of time digging have we?
1253: [21:52:16] <PigeonFriend> Pyromanik: yep
1254: [21:52:29] <catcher> I'll clarify - I'm going to look up custom DOs based on a custom URLSegment field, I want to validate/sanitize that URL seg first.
1255: [21:52:38] * robert_ has left #silverstripe
1256: [21:52:47] <Pyromanik> willmorgan: nothing wrong with a few brews in the evening on the IRC's
1257: [21:53:00] <Pyromanik> catcher: onbeforewrite
1258: [21:53:01] <PigeonFriend> Convert::raw2sql($urlseg);
1259: [21:53:13] <Pyromanik> links to a few other funcs to ensure sanity first
1260: [21:53:16] <catcher> cool
1261: [21:53:18] <catcher> ty
1262: [21:53:22] <PigeonFriend> wtf guys, am i high or are you being special. he's asking how to sanatise!!!
1263: [21:53:39] <willmorgan> but yes i can vouch for PigeonFriend, i work with him ;)
1264: [21:53:40] <Pyromanik> PigeonFriend: he also asked to validate
1265: [21:53:42] <PigeonFriend> onBW is not going to do that
1266: [21:53:54] <Pyromanik> and onbw can do that.
1267: [21:53:56] <PigeonFriend> yer, he's throwing you off with that kind of ambiguous language
1268: [21:53:57] <Pyromanik> if you make it.
1269: [21:54:02] <FireMe> i also have this on my bookingform function $fieldset->push(new TextField('TimeSlotID','TimeSlotID',$this->request->param('ID')));
1270: [21:54:03] <Pyromanik> oic
1271: [21:54:12] <Pyromanik> well good thing you're here to save us all! :D
1272: [21:54:18] <PigeonFriend> FireMe: just please.. look at what you're doing
1273: [21:54:23] <Pyromanik> PigeonFriend: a champion for the people
1274: [21:54:29] <PigeonFriend> $fieldset = fuction that returns a dropdownfield
1275: [21:54:38] <PigeonFriend> you then are pushing into it like it's a FieldList
1276: [21:55:26] <FireMe> ok?
1277: [21:55:32] <PigeonFriend> cool
1278: [21:55:52] <PigeonFriend> PS: has anyone heard of this module: https://github.com/BetterBrief/silverstripe-opauth - it looks pretty sick
1279: [21:56:16] * PigeonFriend just kidding, willmorgan wrote it
1280: [21:57:11] <PigeonFriend> FireMe: if you're struggling, gist the controller func and i'll fix it for you
1281: [21:57:24] <willmorgan> i think it's pretty close to release now
1282: [21:57:26] <PigeonFriend> just after i finish this game of fifa
1283: [21:57:32] <willmorgan> as i've been working on a site using and it's not broken yet
1284: [21:57:33] <FireMe> so am i doing sumthing wrong in here
1285: [21:57:36] <FireMe> http://sspaste.com/paste/show/51955623886c8
1286: [21:58:06] <willmorgan> i don't know - are you getting an error?
1287: [21:58:13] <PigeonFriend> FireMe
1288: [21:58:14] <PigeonFriend> yes
1289: [21:58:17] <PigeonFriend> very wrong
1290: [21:58:23] <Pyromanik> why is it that London likes the SS and the PHPs but the rest of the UK seems to loves the .ASPX waaaay too much
1291: [21:58:24] <PigeonFriend> your re-assigning a variable multiple times
1292: [21:58:44] <willmorgan> hmm
1293: [21:58:46] <willmorgan> let me patch this for you
1294: [21:58:55] <PigeonFriend> Pyromanik: coz all our money goes on rent, hookers and partying, so we cant afford the licences for windows products
1295: [21:59:21] <willmorgan> FireMe: refresh and see my change
1296: [21:59:29] <FireMe> ok
1297: [21:59:39] * cjt has joined #silverstripe
1298: [21:59:43] <cjt> morin folks
1299: [21:59:46] * cloph is now known as cloph_away
1300: [21:59:49] * PigeonFriend willmorgan you're me hero
1301: [21:59:54] <Pyromanik> good morning cjt
1302: [22:00:20] <willmorgan> Pyromanik: it's because Brighton uses WordPress, the west country uses some proprietary terrible CMS nobody's ever heard of, and anything past Watford is ASPX or Drupal
1303: [22:00:33] <willmorgan> i think i need to make a map with framework logos superimposed on the british counties
1304: [22:00:59] <willmorgan> with a sign over Manchester saying "here be dragons"
1305: [22:02:22] <willmorgan> https://twitter.com/willmorgan/status/335153179559874562
1306: [22:02:25] <willmorgan> IT IS DONE
1307: [22:03:20] <PigeonFriend> willmorgan you have a reply
1308: [22:03:29] * samthejarvis has joined #silverstripe
1309: [22:03:35] <willmorgan> cool, so far I have a pretty simple map
1310: [22:03:39] <PigeonFriend> willmorgan: im moving our svn server to digitalocean
1311: [22:03:48] <PigeonFriend> we have 27GB in our SVN repos.. wtf?!
1312: [22:03:48] <willmorgan> can't you move it to github?
1313: [22:04:00] <PigeonFriend> not yet
1314: [22:04:06] <willmorgan> did a coworker decide to version his porn directory or something?
1315: [22:04:09] <PigeonFriend> and did you know rsync is ridic slow
1316: [22:04:41] <willmorgan> hey PigeonFriend i have a cool idea
1317: [22:04:45] <willmorgan> we both go to sleep, like right now
1318: [22:04:49] <willmorgan> and get up early, head in to the office
1319: [22:04:50] <PigeonFriend> FireMe: are you done? happy?
1320: [22:04:59] <willmorgan> and build a quick entry form using googlemapfield
1321: [22:05:01] <FireMe> yes
1322: [22:05:03] <PigeonFriend> willmorgan: it's too late for that crap
1323: [22:05:05] <FireMe> thanks
1324: [22:05:06] <willmorgan> that lets people pin where their location is
1325: [22:05:12] <willmorgan> and then write a comment on what CMS they use
1326: [22:05:33] <samthejarvis> frontend gridfields! anyone managed to get em working?
1327: [22:05:39] <PigeonFriend> willmorgan: coz im trying to get reall stuff done. K is out :( im looking after laura, she is so sweet
1328: [22:05:55] <PigeonFriend> willmorgan and K has hidden my chocolate
1329: [22:05:58] <PigeonFriend> im so upset
1330: [22:06:01] <PigeonFriend> resorting to booze
1331: [22:06:17] <willmorgan> :( sadface.com
1332: [22:07:15] <PigeonFriend> I am playing FIFA though, which i get like 0 chance to do normally
1333: [22:07:28] <willmorgan> https://github.com/willmorgan/whattheframework
1334: [22:07:40] <PigeonFriend> FireMe: I recommend you learn how to program, because most people on IRC aren't as nice as me
1335: [22:08:00] <PigeonFriend> willmorgan: the start of something beautiful
1336: [22:08:11] <FireMe> can't get my head around it but am, trying
1337: [22:08:13] <willmorgan> i'm gonna use composer for SS, i've decided
1338: [22:08:25] <samthejarvis> composer is a godsend!
1339: [22:08:27] <PigeonFriend> willmorgan: wut? you mad bro?
1340: [22:08:38] <PigeonFriend> SVN externals are a god-send
1341: [22:08:40] <willmorgan> and FireMe don't be discouraged by Pigeon, he's drunk and loves you all
1342: [22:08:50] <PigeonFriend> composer is just filling the most obvious hole in Git
1343: [22:09:04] <samthejarvis> yep :)
1344: [22:09:55] * PigeonFriend has no chocolate, is going to resort to nutella out the jar
1345: [22:10:09] <simon_w> composer supports subtrees?
1346: [22:10:27] * UncleCheese quit (Quit: UncleCheese)
1347: [22:10:29] <PigeonFriend> composer-schmoser
1348: [22:10:30] <willmorgan> simon_w: dunno, I'm about to find out
1349: [22:10:36] <willmorgan> I need to put opauth on to packagist anyway
1350: [22:10:38] <cjt> Where is one expected to find the config.yml?
1351: [22:10:40] * mrzero_ has joined #silverstripe
1352: [22:10:46] <willmorgan> cjt: mysite/_config
1353: [22:10:50] * mrzero quit (Remote host closed the connection)
1354: [22:10:51] * mrzero_ is now known as mrzero
1355: [22:10:53] <willmorgan> cjf: also inside framework/_config
1356: [22:10:54] <cjt> ah
1357: [22:10:59] <cjt> so its just the _config file
1358: [22:10:59] <simon_w> I'll give you a hint, it doesn't add subtree support to git :p
1359: [22:11:00] <willmorgan> and you can name the file whatever you want
1360: [22:11:00] <cjt> all good
1361: [22:11:07] <willmorgan> cjt: not necessarily
1362: [22:11:11] <cjt> no?
1363: [22:11:20] <simon_w> _config is a folder now
1364: [22:11:25] <willmorgan> _config.php != _config.yml
1365: [22:11:41] <simon_w> and git really doesn't play nice with that change
1366: [22:11:44] <cjt> just trying to enable widgets via my config.yml according to the docs...
1367: [22:13:06] <PigeonFriend> cjt: f*** that, use private statics
1368: [22:13:12] <PigeonFriend> resist the change to YAML
1369: [22:13:25] <PigeonFriend> until they change the config adapter to allow other mark-up language
1370: [22:13:28] <PigeonFriend> *languages
1371: [22:13:40] <simon_w> My my, someone's a bit touchy :p
1372: [22:13:40] <cjt> sweet as
1373: [22:14:07] <PigeonFriend> simon_w: i joke, i joke. I literally force everyon in the office to use yaml now
1374: [22:14:10] <PigeonFriend> but i do hate it
1375: [22:14:15] <PigeonFriend> willmorgan: what you think of yaml?
1376: [22:14:47] <simon_w> cjt, adding extensions to your page is easy with private static $extensions = array('WidgetPageExtension');
1377: [22:15:37] <catcher> I've given DataObject a DataExtension with a URLSeg field, yet I can't seem to filter on the field for objects that extend DO.
1378: [22:16:21] <willmorgan> PigeonFriend simon_w: it's less verbose than JSON in some ways
1379: [22:16:21] <PigeonFriend> catcher: you haven't literally decorated DataObject, have you?
1380: [22:16:43] <willmorgan> considering the times I'm using it, I'm only ever really doing hash maps, it's actually quite a nice way to describe config
1381: [22:16:46] <catcher> I have indeed, what used to be decorating anyway
1382: [22:16:50] <PigeonFriend> willmorgan: less verbose == harder to know what the hell is going on
1383: [22:17:00] <catcher> All my DOs need the field.
1384: [22:17:03] <PigeonFriend> catcher: doesnt that conflict with SiteTree?
1385: [22:17:04] <FireMe> gotta go laters, thanks for all your help guys
1386: [22:17:06] <catcher> Ah, yes
1387: [22:17:07] <catcher> duh
1388: [22:17:11] <willmorgan> no worries FireMe, catch you tomorrow maybe?
1389: [22:17:15] <catcher> I forgot SiteTree extended DO
1390: [22:17:17] <PigeonFriend> and i dont think you can even decorate DO
1391: [22:17:19] <FireMe> yes
1392: [22:17:22] <willmorgan> cool
1393: [22:17:26] <samthejarvis> Lots of things extend DO :D
1394: [22:17:30] <PigeonFriend> so create a base class and then extend all objects off that
1395: [22:18:15] <gumble> is there a default controller which is always called first when you are on the website root?
1396: [22:18:31] <simon_w> RootURLController
1397: [22:18:34] <gumble> where you could modify the index function to modify what is done when you call the website
1398: [22:18:44] <catcher> PigeonFriend, the site is already live, and my DOs already extend other things.
1399: [22:19:07] <gumble> thanks
1400: [22:19:51] <PigeonFriend> hmm
1401: [22:19:51] <PigeonFriend> ok
1402: [22:20:06] <PigeonFriend> then apply your decorator to lots of objects
1403: [22:20:18] <PigeonFriend> nasty, but sounds like you have no choice
1404: [22:20:42] <catcher> PigeonFriend, you mean add the field directly to the classes that need it?
1405: [22:21:07] <PigeonFriend> basically, but a decorator helps you stay DRY
1406: [22:21:12] <willmorgan> PigeonFriend: can you set up a better brief packagist account?
1407: [22:21:58] <catcher> PigeonFriend, so several Object::add_extensions in _config.php then?
1408: [22:22:10] * PB_Tas has joined #silverstripe
1409: [22:22:16] <Pyromanik> PigeonFriend: give my your opinion of SS's templating system.
1410: [22:22:21] <PigeonFriend> catcher: yes, or use YAML :)
1411: [22:22:28] <PigeonFriend> love it
1412: [22:22:39] <Pyromanik> PigeonFriend: and twig?
1413: [22:22:42] <PigeonFriend> Pyromanik: love it in 3.0 when hamish isnt breaking it
1414: [22:22:51] <Pyromanik> haha, fair comment
1415: [22:22:51] <PB_Tas> Hi guys, anyone keen to help me with an "Object::add_extension() - Can't find extension class for" error?
1416: [22:23:01] <willmorgan> PB_Tas: use a ?flush
1417: [22:23:01] <Pyromanik> PB_Tas: dev/build
1418: [22:23:05] <willmorgan> and that!
1419: [22:23:20] <Pyromanik> willmorgan: ?flush for templates, dev/build for manifest
1420: [22:23:22] <PigeonFriend> Pyromanik: i've never used twig, tbh
1421: [22:23:39] <Pyromanik> PigeonFriend: people keep telling me that it's so awesome and better than ss
1422: [22:23:47] <PigeonFriend> but it'd be nice if SS let you plug in template engines
1423: [22:23:52] <PigeonFriend> though i dont really want it to
1424: [22:23:54] * nickmolhoek quit (Ping timeout: 256 seconds)
1425: [22:23:54] <PB_Tas> OK - I've just had our guys pulled some fixes from git (I'm assuming you guys completed made these changes for us at the start of the month.
1426: [22:23:57] <kerosene> twig is beautiful
1427: [22:24:08] <PigeonFriend> willmorgan betterbrief packagist account created
1428: [22:24:09] <PB_Tas> so, just a dev/build?
1429: [22:24:55] <PigeonFriend> willmorgan: i cant submit opauth coz there is no composer.json in master
1430: [22:25:05] <Pyromanik> PigeonFriend: but I looked at twig last night and found SS templates and it most extremely similar
1431: [22:26:02] <Pyromanik> except that twig is like smarty
1432: [22:26:29] <Pyromanik> and you can use assignment and functions and other kinds of programming logic directly in the view layer
1433: [22:26:37] <PigeonFriend> I looked a twig a while ago when some guy came on this IRC and ranted about how it should be part of SS or whatever
1434: [22:26:45] <Pyromanik> which I found backwards with the separation of concerns
1435: [22:26:47] <PigeonFriend> Pyromanik: that isnt good :P
1436: [22:26:51] <Pyromanik> I know!
1437: [22:27:08] <PigeonFriend> what is good about SS is that front-end devs can use it
1438: [22:27:10] <Pyromanik> So I've now bundled anyone who raves about twig in the 'wordpress' category of folks to not talk to
1439: [22:27:15] <PigeonFriend> if you start doing that, they have to learn PHP
1440: [22:27:26] <PigeonFriend> Pyromanik lol, good
1441: [22:27:31] <willmorgan> PigeonFriend: i have made composer.json
1442: [22:27:38] <PigeonFriend> omg, dont get me started on how crap WP is
1443: [22:27:39] <willmorgan> and listed your role as "Code Scrutinizer"
1444: [22:27:43] <Pyromanik> PigeonFriend: at low levels twig is pretty much exactly like SS's templating language, except with {{Var}} instead of $Var
1445: [22:28:03] <Pyromanik> and {% for %} instead of <% loop %>
1446: [22:28:11] <willmorgan> Pyromanik: twig is much more integratable with things like underscore/backbone
1447: [22:28:17] <PigeonFriend> i think i prefer {{var}} because it means my jQuery conventions dont get parsed
1448: [22:28:22] <willmorgan> I once wrote a parser converter from SS templating to twig
1449: [22:28:22] <Pyromanik> oh, and their loop doesn't change scope, and can have an else on it.
1450: [22:28:24] <willmorgan> that didn't end well
1451: [22:28:27] <kerosene> Pyromanik: your criteria for 'people not to talk to' seems oddly limiting, considering you haven't used twig
1452: [22:28:29] <willmorgan> and PigeonFriend almost died
1453: [22:28:39] <samthejarvis> i find twig to be a heck of a lot more readable
1454: [22:28:49] <Pyromanik> PigeonFriend: {{Var}} without a var ends up as null.
1455: [22:28:58] <PigeonFriend> kerosene: Pyromanik doesn't like your kind, he won't talk to you around here
1456: [22:29:00] <willmorgan> PigeonFriend: did you submit the module yet?
1457: [22:29:05] <Pyromanik> $blah without a blah ends up as $blah in ss, no?
1458: [22:29:06] <kerosene> PigeonFriend: :)
1459: [22:29:11] <simon_w> Pyromanik, willmorgan, ?flush for templates and manifest, dev/build for database changes :p
1460: [22:29:12] <PigeonFriend> willmorgan: done
1461: [22:29:16] <willmorgan> nice
1462: [22:29:29] <PigeonFriend> simon_w: willmorgan knew that
1463: [22:29:46] <simon_w> chillu, nice!
1464: [22:29:48] <PigeonFriend> https://packagist.org/packages/betterbrief/silverstripe-opauth
1465: [22:29:54] <chillu> yay!
1466: [22:30:20] <willmorgan> boom
1467: [22:30:33] <simon_w> Fork information maintained too!
1468: [22:30:40] <PigeonFriend> chillu: the end of an er
1469: [22:30:41] <PigeonFriend> *era
1470: [22:30:47] <PigeonFriend> but the dawn of an age
1471: [22:31:06] <chillu> We've still got SapphireTest and a few artifacts like that, so the name is going to live on hehe
1472: [22:31:16] <Pyromanik> opauth is different from oauth?
1473: [22:31:17] <PigeonFriend> - Scar 1994
1474: [22:31:32] <willmorgan> Pyromanik: opauth is a library for multi adapter oauth login
1475: [22:31:40] <Pyromanik> oh wicked
1476: [22:31:42] <willmorgan> no idea why the author called it opauth, probably to fuck with people so they say it wrong irl
1477: [22:31:51] <willmorgan> but yeah
1478: [22:31:57] <Pyromanik> probably to differentiate from oauth
1479: [22:32:04] <Pyromanik> as it's implementation, not governance
1480: [22:32:06] <willmorgan> the SS module acts as an intermediary between opauth and silverstripe
1481: [22:32:17] <Pyromanik> and for php
1482: [22:32:21] <willmorgan> has a bunch of nice functionality in it. i like to say that so i feel better about myself, and mostly because i wrote it
1483: [22:32:36] <willmorgan> https://github.com/BetterBrief/silverstripe-opauth
1484: [22:32:39] <Pyromanik> so this is for doing oauth, not providing oauth?
1485: [22:32:45] <willmorgan> it's for doing oauth
1486: [22:32:49] <Pyromanik> yeh
1487: [22:32:59] <Pyromanik> isnt' there an oauth server that simon_w wrote?
1488: [22:33:03] <chillu> The travis builds reset, but I think we can live with that: https://travis-ci.org/silverstripe/silverstripe-framework
1489: [22:33:04] <simon_w> yes
1490: [22:33:12] * nickmolhoek has joined #silverstripe
1491: [22:33:12] * nickmolhoek quit (Remote host closed the connection)
1492: [22:33:41] <PigeonFriend> willmorgan: This package is not auto-updated. Go and set up the GitHub Service Hook for Packagist so that it gets updated whenever you push!
1493: [22:33:54] <willmorgan> okay
1494: [22:34:37] <simon_w> willmorgan, or make people wait!
1495: [22:34:44] <willmorgan> PigeonFriend: i need repo admin
1496: [22:34:52] <PigeonFriend> PigeonFriend: you are?
1497: [22:34:56] <willmorgan> o rly?
1498: [22:35:03] <PigeonFriend> i think so
1499: [22:35:05] * PB_Tas quit (Quit: Page closed)
1500: [22:35:07] <willmorgan> i'm not
1501: [22:35:11] <PigeonFriend> ok fine
1502: [22:35:15] <PigeonFriend> ill do it
1503: [22:35:16] <willmorgan> no
1504: [22:35:19] <willmorgan> you'll make me an admin
1505: [22:35:21] <willmorgan> :)
1506: [22:35:26] * nickmolhoek has joined #silverstripe
1507: [22:35:26] <Pyromanik> correct horse battery staple
1508: [22:35:26] <Pyromanik> :D
1509: [22:35:26] <Pyromanik> FFFFFFFFFFFFFFFFFFFFUUUUUU
1510: [22:35:26] <Pyromanik> last day of earlybird WDC is just before my paycheck to allow me to pay for it :<
1511: [22:36:18] <willmorgan> hang on. can i not write to .git/hooks and do it that way?
1512: [22:36:30] * nickmolhoek quit (Client Quit)
1513: [22:36:52] <simon_w> willmorgan, no. Those aren't pushed
1514: [22:37:11] <willmorgan> that's slightly less awesome
1515: [22:37:15] <PigeonFriend> willmorgan: opauth will be fine with 3.0
1516: [22:37:20] <willmorgan> o rly?
1517: [22:37:31] <PigeonFriend> i think so
1518: [22:37:44] <willmorgan> people still using 3.0 should be punished for not having the balls to upgrade to 3.1
1519: [22:37:52] <Pyromanik> :<
1520: [22:37:59] <simon_w> willmorgan, no,
1521: [22:38:15] <willmorgan> i literally started writing a site 7 months ago using the 3.1 branch, and boy am i feeling grateful that i did
1522: [22:38:35] <willmorgan> and that was a tongue in cheek comment
1523: [22:38:39] <willmorgan> i have a lot of those
1524: [22:39:04] <simon_w> You know tone and such don't get communicated by text?
1525: [22:39:35] * UncleCheese has joined #silverstripe
1526: [22:39:48] <willmorgan> so, when is IRC gonna get upgraded to something good like AIM?
1527: [22:39:49] <PigeonFriend> UncleCheese: how did you get on with restful server?
1528: [22:39:59] <PigeonFriend> or just one massive google hangout
1529: [22:40:20] <UncleCheese> umm
1530: [22:40:28] <UncleCheese> wasn't able to get it working
1531: [22:40:46] <UncleCheese> i can see that if i could set Accept headers in the request it would probably work
1532: [22:40:57] <UncleCheese> but i was just doing GET requests with my browser, so that's probably why
1533: [22:41:12] * travis-ci has joined #silverstripe
1534: [22:41:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1 (2.4 - 5796ed2 : Ingo Schommer): The build failed.
1535: [22:41:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/813749e909e6...5796ed225e0c
1536: [22:41:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7235735
1537: [22:41:12] * travis-ci has left #silverstripe
1538: [22:41:12] <PigeonFriend> UncleCheese: what did you need to accept? json?
1539: [22:41:19] <PigeonFriend> then just add .json to the end of the URL
1540: [22:41:19] <UncleCheese> json
1541: [22:41:23] <UncleCheese> yeah, it doesn't work
1542: [22:41:25] <UncleCheese> it 404s
1543: [22:41:28] <willmorgan> bad :/
1544: [22:41:30] <PigeonFriend> orly? it worked for me
1545: [22:41:31] <willmorgan> might be the new routing config
1546: [22:41:35] <PigeonFriend> what version of SS?
1547: [22:41:50] <simon_w> I told ajshort this'd happen
1548: [22:42:18] <willmorgan> okay PigeonFriend i'm gonna hit the hay, need to wake up to give the gf a lift to work tomorrow
1549: [22:42:28] <PigeonFriend> ok
1550: [22:42:34] <PigeonFriend> is ajshort the one that doesnt like me
1551: [22:42:37] <willmorgan> but tomorrow there will be more fun with writing a map of where people use frameworks
1552: [22:42:58] <PigeonFriend> yay
1553: [22:43:08] <Pyromanik> 10:39 < willmorgan> so, when is IRC gonna get upgraded to something good like AIM?
1554: [22:43:11] <Pyromanik> TROLL DETECTED
1555: [22:43:21] <Pyromanik> Take off every zig!
1556: [22:43:32] <willmorgan> also PigeonFriend do you want BB to take ownership or googlemapfield?
1557: [22:43:33] <willmorgan> *of
1558: [22:43:44] <PigeonFriend> willmorgan: yes plz
1559: [22:43:48] <willmorgan> (for packagist purposes)
1560: [22:43:50] <PigeonFriend> Pyromanik: you didnt like my google hangout joke
1561: [22:44:44] <gumble> is there a short which always links to the root of the silverstripe cms? e.g. if my page is at page.com/silverstripe/ then it should link to /silverstripe/
1562: [22:44:55] <willmorgan> ok, moved
1563: [22:44:58] <willmorgan> you better make me admin bitch
1564: [22:45:01] <willmorgan> nn all
1565: [22:45:14] * willmorgan quit (Quit: Leaving.)
1566: [22:46:25] <simon_w> gumble, $BaseHref?
1567: [22:46:28] <Pyromanik> PigeonFriend: I didn't see your google hangout joke
1568: [22:47:00] <PigeonFriend> i thought it was ffunnier
1569: [22:47:01] <Pyromanik> gumble: if you want absolute links to pages, you can use $AbsoluteLink instead of $Link
1570: [22:47:08] <Pyromanik> otherwise $BaseHref
1571: [22:47:26] <PigeonFriend> gumble: no one knows what you mean... re-articulate
1572: [22:47:40] <simon_w> PigeonFriend, no, just you :p
1573: [22:47:49] <PigeonFriend> RewriteBase /silverstripe/ in the .htaccess is the asnwer though
1574: [22:47:51] <Pyromanik> PigeonFriend: haha, the tables have turned!
1575: [22:47:56] * UncleCheese quit (Quit: UncleCheese)
1576: [22:48:40] <PigeonFriend> hey,i just gave the right answer
1577: [22:49:00] * travis-ci has joined #silverstripe
1578: [22:49:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2 (3.0 - 79cf1fa : Ingo Schommer): The build passed.
1579: [22:49:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b401d39aec8d...79cf1faf5385
1580: [22:49:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7235825
1581: [22:49:00] * travis-ci has left #silverstripe
1582: [22:49:26] <gumble> BaseHref was what I searched, thanks!
1583: [22:49:38] <PigeonFriend> damn
1584: [22:49:44] <Pyromanik> boom!
1585: [22:49:54] <PigeonFriend> but, i just scored from 30+ yards on FIFA, so you can't bring me down
1586: [22:50:27] <simon_w> PigeonFriend, eh, Brown scored with a volley from halfway
1587: [22:50:44] <PigeonFriend> so did Oscar
1588: [22:51:09] * Stomach has left #silverstripe
1589: [22:51:27] <Pyromanik> would someone f'n patch userforms to use jquery.min.js instead of jquery.fuckingmassiveandcausesconflicts.js
1590: [22:51:44] <simon_w> No. Bad Pyromanik!
1591: [22:52:02] <simon_w> First, combine_files :p
1592: [22:52:14] <PigeonFriend> simon_w: you're all full of 'no's todau
1593: [22:52:23] <simon_w> PigeonFriend, nup
1594: [22:52:32] <Pyromanik> rofl
1595: [22:52:33] <PigeonFriend> nuh-uh
1596: [22:52:34] <Pyromanik> zing
1597: [22:52:43] <Pyromanik> simon_w: what?
1598: [22:52:51] <Pyromanik> why use dev jquery instad?
1599: [22:53:24] <simon_w> Pyromanik, combine_files minifies the files, and you'd need to change everything to use the min version to stop two versions being stuck in
1600: [22:53:39] * catcher quit (Ping timeout: 256 seconds)
1601: [22:53:50] <PigeonFriend> anyway im off
1602: [22:53:56] <PigeonFriend> nicht all
1603: [22:54:25] <Pyromanik> simon_w: hmm
1604: [22:54:26] <Pyromanik> k
1605: [22:54:32] <PigeonFriend> oh, can someone patch the minifier so it re-writes the url() so thatthey dont break if they are relative
1606: [22:54:32] <PigeonFriend> thanks
1607: [22:54:35] <Pyromanik> makes more sense now
1608: [22:54:53] <gumble> Is there any way to link in a way like $PageName.Link?
1609: [22:55:42] * travis-ci has joined #silverstripe
1610: [22:55:42] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#374 (3.0 - d7c9377 : Ingo Schommer): The build passed.
1611: [22:55:42] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/04bb85a78da8...d7c937710a9b
1612: [22:55:42] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7235831
1613: [22:55:42] * travis-ci has left #silverstripe
1614: [22:56:30] <simon_w> gumble, $Page(url).Link, though hardcoding pages is usually not such a good idea
1615: [22:57:14] <gumble> simon_w, if it's the default landing page with no content or anything the cms user should change?
1616: [22:57:58] <simon_w> Well, SilverStripe always uses the page with URL home for the homepage
1617: [22:58:53] <gumble> I meant thats the reason why I am hardcoding the page
1618: [22:59:03] <gumble> and not using the usual menu thingy
1619: [23:00:31] * chillu quit (Quit: chillu)
1620: [23:03:05] <Pyromanik> gumble: $BaseHref won't do it?
1621: [23:03:28] <Pyromanik> mind you, if $Page(urlsegment).Link doesn't work it'll fall back to /
1622: [23:03:33] * travis-ci has joined #silverstripe
1623: [23:03:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#3 (3.0 - a35de54 : Ingo Schommer): The build passed.
1624: [23:03:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/79cf1faf5385...a35de54882c5
1625: [23:03:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7235891
1626: [23:03:33] * travis-ci has left #silverstripe
1627: [23:03:43] <Pyromanik> well, whatever the base_tag has
1628: [23:03:55] * jcwacky_ has joined #silverstripe
1629: [23:03:55] <gumble> Pyromanik, BaseHref works too but the other way would be nicer I thought
1630: [23:05:19] <gumble> I'm now doing it like <a href="{$BaseHref}Contact">, and it could be nicer :D
1631: [23:06:26] * jcwacky quit (Ping timeout: 245 seconds)
1632: [23:06:27] * jcwacky_ is now known as jcwacky
1633: [23:07:58] <simon_w> gumble, you've got <% base_tag %>, so you can just use <a href="Contact">
1634: [23:08:49] * travis-ci has joined #silverstripe
1635: [23:08:49] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#4 (3.1 - a87bbb2 : Ingo Schommer): The build passed.
1636: [23:08:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0c6f32e752e1...a87bbb29034f
1637: [23:08:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7236340
1638: [23:08:49] * travis-ci has left #silverstripe
1639: [23:08:56] <gumble> simon_w, I didn't even think of that, never used base_tag before, thats even nicer. thanks again
1640: [23:25:02] <cjt> If I want to override a blog .ss file, I'm best off creating a new .ss in my $project folder and SS will pick it up and use it over the default blog one yeah?
1641: [23:25:11] <cjt> assuming its named the same
1642: [23:26:32] <simon_w> cjt, well, you should put it in your theme, but yes
1643: [23:28:15] <cjt> tis what I was meaning
1644: [23:28:16] <cjt> cheers
1645: [23:41:49] <gumble> could it be that accidentally adding a entry with an underscore to the has_one table and then running /dev/build fucked up my whole website? removed it, rebuild it, flushed it and still server error at every page, even the admin page. and no theme is loaded, everything black/white
1646: [23:46:19] <cjt> If I've got two blog holders, how do I specifiy which one I want to get data from using using DataObject::get_one("BlogHolder");
1647: [23:46:40] <cjt> DataObject::get_one("BlogHolder", "ThisBLog"); ??
1648: [23:47:00] * nickmolhoek has joined #silverstripe
1649: [23:47:00] * nickmolhoek quit (Remote host closed the connection)
1650: [23:47:01] <gumble> can I somehow reset the system?
1651: [23:47:15] * nickmolhoek has joined #silverstripe

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