#silverstripe IRC Log

IRC log for 4 March 2015

All timestamps are in UTC.

1: [00:06:57] * coph_away quit (Ping timeout: 246 seconds)
2: [00:09:23] * jedateach has joined #silverstripe
3: [00:10:24] * mobiusnz quit (Quit: Leaving.)
4: [00:13:59] * mobiusnz has joined #silverstripe
5: [00:16:09] <Hailwood> Anyone know how you can (in yml) ensure that an extension is added last (even after those added by an external package)
6: [00:16:19] * Azure quit (Ping timeout: 255 seconds)
7: [00:17:48] <Stomach> can you do 'After: '*/*'; ?
8: [00:18:00] <Stomach> I mean BEFORE
9: [00:18:07] * Azure has joined #silverstripe
10: [00:18:14] <Stomach> no, after
11: [00:18:17] <Stomach> which is it
12: [00:18:19] <Stomach> stupid brain
13: [00:19:06] <Hailwood> After would make sense... trying now
14: [00:20:24] <Hailwood> Also, this seems hyper backwards - but if I want *most* pages to have some extra fields, but not things like the blog, blogpost, someotherclass, is the general idea to apply them to Page and then on create an extension that removes those fields and apply that to the ones that I want removed? (i.e. add to all then remove from some?)
15: [00:20:35] <Stomach> yes
16: [00:20:40] <Stomach> or add them to only the ones you want
17: [00:21:25] <Hailwood> Stomach, But if I want them on the standard inner pages? I guess I would tell Page to not show in the cms and then create a "StandardPage" pagetype?
18: [00:22:01] <Stomach> or simply create the standard page, apply extension to that, then extend standard page everywhere you want them
19: [00:22:08] <Stomach> or just put those properties onto standard page
20: [00:22:51] <Hailwood> Stomach, Yeah, but since things like the blog extend Page then that's where the idea above of removing them from the others comes in.
21: [00:23:00] <Stomach> but why not just have
22: [00:23:12] <Stomach> SomePage extends StandardPage
23: [00:23:18] <Stomach> StandardPage extends Page
24: [00:23:30] <Stomach> and just put the functionality you want on the "SomePage"'s in StandardPage
25: [00:24:54] <Hailwood> Ok, next question - ?flush=all = what is the flush token that is added to then end after the page redirects for?
26: [00:26:58] <Ryan-Toast> Hailwood: protect against DDoS shit
27: [00:27:32] <Hailwood> Ryan-Toast, So if I have just done a flush, and now I want to flush again is it best to remove the flush token, or just f5 it?
28: [00:27:40] <Ryan-Toast> Hailwood: just f5 it.
29: [00:28:12] * Azure quit (Read error: Connection timed out)
30: [00:28:57] * Azure has joined #silverstripe
31: [00:29:41] <Hailwood> Sweet, was hoping that was the answer
32: [00:29:43] * muskie9 is now known as muskie9_afk
33: [00:37:01] <zippy> Hailwood: flush from the command line is faster
34: [00:38:14] <EasyCo> Talking about flushes... Where are the temp files stored?
35: [00:38:29] <zippy> 1 of two places
36: [00:38:32] <EasyCo> I've got a production server showing old module configs
37: [00:38:49] <zippy> either in the system temp folder (like /tmp/) with a folder named the path name
38: [00:38:57] <zippy> or, in a silverstripe-cache folder in the document root
39: [00:40:03] <EasyCo> tx
40: [00:43:23] <Ryan-Toast> zippy: but then you have to stop your grunt task :P
41: [00:43:38] <zippy> Ryan-Toast: uhu?
42: [00:43:45] <Ryan-Toast> zippy: flushing from the command line
43: [00:43:58] <zippy> Ryan-Toast: get it to run the command
44: [00:46:04] <EasyCo> What's your environment set to by default? Dev?
45: [00:46:23] <Hailwood> if my page overloads getCMSFields and starts with $fields = parent::getCMSFields(); should I also stick if(self::$runCMSFieldsExtensions) { $this->extend('updateCMSFields', $fields); } at the end of my overloaded function?
46: [00:46:41] * cloph_away has joined #silverstripe
47: [00:49:10] * antmas quit (Ping timeout: 246 seconds)
48: [00:49:11] <EasyCo> I meant to ask: in the absence of telling Silverstripe what environment it's in, what is its default?
49: [00:49:40] <Chix> Live
50: [00:52:13] * Tanger has joined #silverstripe
51: [00:53:08] * jedateach quit (Quit: jedateach)
52: [00:53:34] <EasyCo> I didn't think you could dev/build unless you were logged in when live?
53: [00:53:54] <Stomach> Hailwood - nope, that will be run in the parent call
54: [00:54:28] <Stomach> if you want to add things before the parent call use $this->beforeUpdateCMSFields(function ($fields)
55: [00:55:58] * antmas has joined #silverstripe
56: [00:56:31] <Hailwood> Stomach, Ok, so if I have added a couple of fields in getCMSFields(), and I want to in an extension remove one of those fields how should I go about that?
57: [00:56:51] <Stomach> you would add those to the above call
58: [00:56:58] <Stomach> then in your extension remove them
59: [01:03:52] * willr has joined #silverstripe
60: [01:04:48] <EasyCo> Ahhhhh! It was the opcode cache that was fucking with my juju
61: [01:10:19] <Stomach> opcode cache bad
62: [01:11:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
63: [01:11:31] <simon_w|air> Just use inotify
64: [01:15:01] <zippy> EasyCo: mmmm I've never trusted that opcode cache.... are you using php 5.5?
65: [01:15:18] <ss-helper> Silverstripe DataObject - drag and drop ordering - http://stackoverflow.com/questions/28844929/silverstripe-dataobject-drag-and-drop-ordering
66: [01:15:25] * jedateach has joined #silverstripe
67: [01:16:18] <EasyCo> zippy: Nah, PHP 5.4.13. I actually really like APC, it makes a pretty big difference. As for the scale of difference on SS I can't comment but that server is also running Magento and the speed difference is insane.
68: [01:17:01] <simon_w|air> SS does a lot of things that makes opcode caches less efficient
69: [01:17:13] <simon_w|air> Like use eval
70: [01:17:41] <EasyCo> eval <3
71: [01:18:27] <Colin[pi]> eval($_GET['command']); ftw
72: [01:18:39] <simon_w|air> Pizza time! <3
73: [01:20:13] * antmas evals simon_w|air
74: [01:20:23] <antmas> HAYAAA! o/
75: [01:20:39] <simon_w|air> antmas now has a root kit
76: [01:20:50] <Colin[pi]> antmas: http://i.imgur.com/nCZoEXs.gif
77: [01:21:04] <antmas> Colin[pi]: XD
78: [01:21:06] <antmas> <3
79: [01:21:12] <Colin[pi]> never gets old :D
80: [01:21:37] <antmas> web content guy jist requested access to a site I'm working on, sent that in reply
81: [01:21:43] <antmas> just*
82: [01:22:17] <Colin[pi]> hehe
83: [01:23:15] <antmas> omg icloud
84: [01:23:21] <antmas> my password is NOT wrong
85: [01:23:25] <antmas> YOU'RE WRONG
86: [01:24:15] <Colin[pi]> no shits given by icloud
87: [01:27:54] * greenman_ has joined #silverstripe
88: [01:31:08] <ss-helper> Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282
89: [01:31:29] * jedateach has left #silverstripe
90: [01:32:29] * greenman_ quit (Ping timeout: 250 seconds)
91: [01:34:35] * UncleCheese has joined #silverstripe
92: [01:35:10] <antmas> this 4s still has the original plastic film over the screen
93: [01:45:54] <Colin[pi]> antmas: :o
94: [01:46:12] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400548
95: [01:46:12] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400547
96: [01:46:12] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400546
97: [01:46:12] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400545
98: [01:46:18] <zippy> oh ddue..
99: [01:46:23] <zippy> you really need to fix that
100: [01:47:20] <antmas> zippy: -_-
101: [01:47:29] <antmas> fixitfixitfixitfixitfixitfixitfixitfixitfixit
102: [01:49:12] <Chix> Submit a PR.
103: [01:49:30] <Chix> The P bit being literal, ofc
104: [01:56:50] <Tanger> Morning guys
105: [01:56:56] <antmas> Tanger: o/
106: [01:57:20] <Colin[pi]> hey Tanger
107: [01:57:35] <Tanger> What's going down in the land of SS?
108: [01:58:44] <Colin[pi]> Tanger: hopefully not my server! AHAHAHA.... ahem
109: [01:59:09] * Ryan-Toast quit (Quit: Ryan-Toast)
110: [01:59:51] <Tanger> Colin[pi]: Oh, I see what you did there! You crafty rigamarole!
111: [01:59:57] <Colin[pi]> ^.^
112: [02:00:01] <antmas> lol
113: [02:00:17] <antmas> What's going on in the land of sharepoint?
114: [02:00:20] <antmas> anyone?
115: [02:00:22] <antmas> guis?
116: [02:00:27] <Colin[pi]> antmas: *sound of crickets*
117: [02:00:32] * antmas is here all week
118: [02:02:33] <Tanger> antmas: You mean ##sharepoint? The extra hash is for extra sharpness
119: [02:03:09] * antmas heads over there
120: [02:03:14] <antmas> wish me luck
121: [02:03:44] <Tanger> When I last visited, there was undertones of "We don't like your kind 'round here'. These are the kinds we like"
122: [02:04:42] <antmas> room was empty :O
123: [02:05:13] <Tanger> Lies and slander
124: [02:05:20] <Tanger> Their motd is "Sharepoint! That product you love to hate"
125: [02:05:40] <antmas> hahah
126: [02:06:05] <antmas> at the conference, the literally told everyone that when implementing it to 'not call it sharepoint, come up with custom name'
127: [02:06:16] <antmas> they*
128: [02:06:16] <Tanger> lol
129: [02:13:21] <antmas> I have a feeling no one is there :P
130: [02:19:27] <Tanger> Maybe they're busy working in VS
131: [02:20:53] <Hailwood> Hey guys, so anyone know of a nice way to do permalinks in SS (for blog posts mostly)
132: [02:21:40] * muskie9_afk is now known as muskie9
133: [02:22:01] * greenman_ has joined #silverstripe
134: [02:26:14] <Tanger> Hailwood: As in hard-code a URL to a post into a template?
135: [02:26:22] * greenman_ quit (Ping timeout: 240 seconds)
136: [02:31:48] <Hailwood> Tanger, pretty much yeah
137: [02:32:08] <Hailwood> Although I guess with the "oldPageRedirector" permalinks aren't needed really eh?
138: [02:32:16] <Hailwood> Just read up about it.
139: [02:32:37] * muskie9 is now known as muskie9_afk
140: [02:32:37] * willr quit (Ping timeout: 256 seconds)
141: [02:34:03] * Chix quit (Remote host closed the connection)
142: [02:37:04] * willr has joined #silverstripe
143: [02:41:49] * Ryan-Toast has joined #silverstripe
144: [02:45:20] <Hailwood> there is allowed_children, is there allowed_parents?
145: [02:47:09] <zippy> nop
146: [02:47:47] <Hailwood> zippy, Any reason why not?
147: [02:47:50] <Ryan-Toast> Will SS register a config .yml in a theme?
148: [02:47:53] <zippy> performance I think
149: [02:48:27] <Ryan-Toast> Hailwood: I usually just set $can_bve_root to false.
150: [02:48:32] <Ryan-Toast> can_be_root**
151: [02:48:49] <Ryan-Toast> then have the Page class allowed pages set to Page
152: [02:49:02] <Ryan-Toast> then you can allow based on a parent.
153: [03:13:47] <antmas> SHE'S JUST A SMALL TOWN GIRL
154: [03:20:11] <antmas> LIVING IN A LONELY WORLD
155: [03:21:26] <Stomach> zippy - not performance
156: [03:21:30] <Stomach> theres a pr open now
157: [03:22:15] <Stomach> https://github.com/silverstripe/silverstripe-cms/pull/1171
158: [03:22:42] * muskie9_afk is now known as muskie9
159: [03:23:09] <antmas> Stomach: hah, whatya no
160: [03:23:31] <Stomach> i know lots of things
161: [03:23:35] <Stomach> spend too much time on github
162: [03:23:41] <zippy> my bad, I thought someone said performance since it'd have to check stuff
163: [03:28:31] * willr quit (Quit: willr)
164: [03:33:15] * willr has joined #silverstripe
165: [03:33:30] * willr quit (Changing host)
166: [03:33:30] * willr has joined #silverstripe
167: [03:36:12] * muskie9 is now known as muskie9_afk
168: [03:45:58] <Tanger> That feeling when you realize one of the main headers on a site says "Furniture Hide" instead of "furniture hire". Then realizing it's written in god-awful, ancient, copy & paste PHP so you have to go change it across 10 files. Boooo!
169: [03:52:29] <antmas> Tanger: lol
170: [03:52:55] <antmas> Furniture Hide
171: [03:53:25] <antmas> "We put your chairs under your house and count to 10"
172: [03:53:33] <Tanger> Tomato sauce and ketchup, same thing. Am I right?
173: [03:53:40] <Colin[pi]> antmas: lol
174: [03:53:41] <Tanger> Haha
175: [03:54:11] <Colin[pi]> "When we deliver, you need to guess where we've hidden your new furniture! Teehee!"
176: [03:54:30] <antmas> lol
177: [03:54:53] <mobiusnz> so, who needs prodding to do this? https://github.com/silverstripe/silverstripe-framework/pull/3964 :P
178: [03:55:05] <antmas> that feeling when you're so tired you laugh at jokes like that ^^^
179: [03:55:29] <Colin[pi]> yep
180: [03:55:36] <Colin[pi]> it's that shitty joke time of day
181: [03:55:57] <Tanger> I'm on my second coffee/second wind. Shit is cash
182: [03:56:07] <antmas> cool so just realised I can UNC to the file I've been requiring to edit in putty
183: [03:56:10] <antmas> fml
184: [03:56:35] * greenman_ has joined #silverstripe
185: [03:56:48] <Colin[pi]> haha antmas
186: [03:58:46] <Colin[pi]> wow mobiusnz, that seems... such a basic thing, must have gone unnoticed a while?
187: [03:59:08] <mobiusnz> Colin[pi]: yeah
188: [04:01:08] * greenman_ quit (Ping timeout: 265 seconds)
189: [04:03:16] <Hailwood> Is there a quick way with hte orm to get it to return each row say 4 times?
190: [04:03:51] <Motoservo> Relearning SS after a few years off and remembering that some of the names the developers thought up are either ambigious, confusing, or non-descriptive (therefore missing a chance for the code to educate the coder. Can somebody tell me what about the $Layout variable (and subdirectory) makes it “layout” and what’s outside of it “not” layout?
191: [04:05:56] <Motoservo> Following the new lessons that replaced the old tutorials. Seems to me that the header and sidebar are *also* considered layout. Right? I mean, these also require layout by the style sheets.
192: [04:07:31] <Motoservo> I used to get confused by the Pages being called Content as well, but lobbied (successfully) for those to be called Pages instead.
193: [04:08:57] * antmas quit (Quit: Page closed)
194: [04:10:11] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
195: [04:11:19] <willr> $Layout is just a subtemplate holder.
196: [04:12:10] <willr> If your sidebar is on everypage then you can keep that at a root Page.ss, if the sidebar changes per page type then it’ll be useful in a subtemplate
197: [04:15:16] <Motoservo> Okay, thanks. Do you think it’s worth the effort, willr, to change that in the future to indicate that it’s a “sub”?
198: [04:16:09] <willr> Not sure I follow
199: [04:17:26] <Motoservo> Well, wondering if the name $subtemplate (or, just $sub) would better describe it. And make it a little more intuitive.
200: [04:18:10] <Motoservo> I know I get caught up on names, probably more than most, but little things like that seem to help me understand it at face value.
201: [04:18:56] <Motoservo> Just a thought.
202: [04:19:02] * Sticks has joined #silverstripe
203: [04:19:59] <Sticks> My core is always so fucking late with this build, I'm so retarded about it
204: [04:20:17] <Sticks> wrong chat...
205: [04:21:07] <Motoservo> I think the dir called code could be more discriptive. too. Somethign to indicate it’s models and controllers. To somebody like me, who’s done quite a bit of front end coding, most of what’s in themes is “code” too.
206: [04:21:50] <Motoservo> I think I suggested that a few years back but it was explained that models and controllers might confuse beginners. Perhaps MVC is well known enough, now.
207: [04:22:37] * Hailwood quit (Ping timeout: 264 seconds)
208: [04:23:20] * mobiusnz quit (Quit: Leaving.)
209: [04:23:27] * mobiusnz has joined #silverstripe
210: [04:24:08] * Stomach quit (Ping timeout: 272 seconds)
211: [04:24:19] * Ryan-Toast quit (Quit: Ryan-Toast)
212: [04:29:42] * willr quit (Quit: willr)
213: [04:33:53] * cloph has joined #silverstripe
214: [04:33:59] * cloph_away quit (Ping timeout: 246 seconds)
215: [04:37:34] <adrexia> "php" is more accurate than "code" ;)
216: [04:37:45] <adrexia> ?I agree, Layout is a strange name
217: [04:37:55] <adrexia> though $Content is taken
218: [04:39:21] <adrexia> $Body might do?
219: [04:39:31] <adrexia> Though, suspect it'll never change ;)
220: [04:39:36] <simon_w|air> $Content works the same as $Layout, so long as there's not already a variable using that name
221: [04:39:42] <simon_w|air> So, outside of Pages
222: [04:39:51] * adrexia nods
223: [04:40:10] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
224: [04:40:18] <adrexia> but Pages is likely the context most of used to, right?
225: [04:40:25] <simon_w|air> Yeah
226: [04:46:29] * benjhocking has joined #silverstripe
227: [04:47:14] * willr has joined #silverstripe
228: [04:47:24] * muskie9_afk is now known as muskie9
229: [04:48:53] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
230: [04:56:22] * willr quit (Quit: willr)
231: [05:19:43] * mahfuz quit (Ping timeout: 246 seconds)
232: [05:32:27] * EasyCo quit (Quit: Connection closed for inactivity)
233: [06:01:15] * Colin[pi] quit (Ping timeout: 244 seconds)
234: [06:16:56] * Err404NotFound has joined #silverstripe
235: [06:16:57] * Error404NotFound quit (Disconnected by services)
236: [06:25:54] * Shrike_Finland has joined #silverstripe
237: [06:33:52] <Motoservo> adrexia: (just seeing this) php isn’t more accurate when it’s also describing css and html though. ;)
238: [06:34:37] <Motoservo> …which is *also* code.
239: [06:37:24] <Motoservo> Problem is, most “coders” only think of programatic code, which has a flow, as code. Though declarative code is still code. As is any other text we use to communicate ideas to our computers.
240: [06:38:11] <Motoservo> programmatic code is a small subset.
241: [06:39:13] <Motoservo> For instance, config.yml. Is code. Yet sits just outside the “code” dir.
242: [06:41:17] * zippy has joined #silverstripe
243: [06:41:24] <Motoservo> adrexia: I didn’t think names would be changed either, a few years ago, but was surprised to see a few of my suggestions used. So, never hurts to bring it up, now and then. If you see a place you think could be improved.
244: [06:42:56] <Motoservo> Especially while learning, helps to make note of things that seem confusing. People who’ve been using the framework as experts often take those little details for granted.
245: [06:44:58] * Error404NotFound has joined #silverstripe
246: [06:46:50] * Err404NotFound quit (Ping timeout: 252 seconds)
247: [06:51:03] * ss-helper quit (Remote host closed the connection)
248: [06:51:19] * ss-helper has joined #silverstripe
249: [06:51:42] <zippy> Motoservo: Header and Footer would live in the includes
250: [06:52:05] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
251: [06:54:22] * Sticks quit (Quit: Leaving)
252: [07:00:30] * Stomach has joined #silverstripe
253: [07:00:56] * Colin[pi] has joined #silverstripe
254: [07:05:11] * Colin[pi] quit (Ping timeout: 246 seconds)
255: [07:10:48] * wmk has joined #silverstripe
256: [07:20:28] * CodeTrap has joined #silverstripe
257: [07:23:38] <Motoservo> zippy: Still part of the layout though, right?
258: [07:24:08] <zippy> mmmm not generally
259: [07:24:37] <zippy> eg, Page.ss <html>stuff <% include Header %> little bit of stuff $Layout stuff <$ include Footer %> </html>
260: [07:27:07] <Motoservo> Tell that to my web designer. ;)
261: [07:27:36] <Motoservo> My point was, if it’s something that renders visually in your browser, it’s layout.
262: [07:30:01] <wmk> well, you can layout any good html structure with css
263: [07:31:22] <Motoservo> For sure. Just think that the $Layout could have a more specific name that better describes its essence. So there’s no confusion, since it’s actually just a subset of the layout.
264: [07:32:09] <wmk> well, you include a template for the current Page from the /Layout/ folder
265: [07:32:16] <wmk> in this template you can surely layout the current page type.
266: [07:32:30] <wmk> e.g. put a image somewhere
267: [07:32:36] <wmk> or group subitems in a holder
268: [07:34:34] <wmk> $Layout is more like a shortcode for <% include the right template for this page type %>
269: [07:50:03] * Shrike_Finland quit (Quit: Leaving.)
270: [07:54:21] <Eliseth> Morning
271: [07:55:53] <zippy> hi
272: [07:56:38] <Eliseth> How would I go about the following? In security I must modify the change password functionality as follows: instead of just e-mail address I need to check based on 2 fields (email address AND customerCode, which must match). And when a password is successfully changed I need to call a custom API which also changes the password in an external system.
273: [08:02:17] <wmk> Eliseth, maybe subclass PasswordValidator and extend with your other validation logic
274: [08:02:42] * CodeTrap1 has joined #silverstripe
275: [08:04:19] * CodeTrap quit (Ping timeout: 255 seconds)
276: [08:04:23] <Eliseth> Ehm, yeah, I've done extending before I think, what about this subclassing? What is that?
277: [08:04:52] <wmk> subclassing is php:
278: [08:05:00] <wmk> class MyClass extends FooClass
279: [08:05:31] <wmk> extending is plugging silverstripe's Extension or DataExtension to an object
280: [08:06:23] <Eliseth> Ahhh, okok, yeah I forgot
281: [08:06:30] <Eliseth> It's early >.<
282: [08:06:31] <wmk> on Security/login you can define the form you need for login, maybe you can just plug you form in
283: [08:09:38] * Werner_2_ has joined #silverstripe
284: [08:09:57] * wmk quit (Read error: No route to host)
285: [08:10:30] * Werner_2_ is now known as wmk
286: [08:10:33] <wmk> re
287: [08:10:50] <Eliseth> ^^
288: [08:10:57] <wmk> Eliseth, maybe you need a custom authenitcator for checking both fields
289: [08:16:29] <zippy> pretty cool plugin; https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?hl=en --- Validate and view JSON documents
290: [08:24:21] * Stomach quit (Quit: zzz)
291: [08:34:55] * Otterpocket has joined #silverstripe
292: [08:38:33] <Otterpocket> Hello, I have a my cron running some build tasks through sake and I am receiving these errors: Undefined index: SCRIPT_NAME in <b>/home/foo/foo-app/public_html/framework/core/Constants.php
293: [08:39:00] <Otterpocket> any ideas?
294: [08:40:41] * r_hector has joined #silverstripe
295: [08:45:26] <zippy> Otterpocket: did you set _FILE_TO_URL_MAPPING ?
296: [08:46:21] <Otterpocket> zippy, nooo
297: [08:47:24] <Otterpocket> ahh I see
298: [08:51:27] * Shrike_Finland has joined #silverstripe
299: [08:53:18] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
300: [08:56:16] * Error404NotFound has joined #silverstripe
301: [09:06:00] * kinglozzer has joined #silverstripe
302: [09:12:16] <Tanger> Hey guys, where should I be looking to debug why TreeDropdownField isn't working with a mapped array?
303: [09:12:39] <Tanger> The values display OK, but it's sending back null post data for the related field when it saves
304: [09:15:02] * GioVdK has joined #silverstripe
305: [09:20:00] * Colin[pi] has joined #silverstripe
306: [09:34:26] * UncleCheese has joined #silverstripe
307: [09:37:52] * Tanger quit (Quit: sleep())
308: [09:51:22] <ss-helper> Re: [silverstripe-dev] Re: Decluttering the CMS interface - https://groups.google.com/d/msg/silverstripe-dev/kA6oo6Z-srQ/mO3Tz2GSDCUJ
309: [09:51:23] <ss-helper> SilverStripe 2.4.10 security release - https://groups.google.com/d/msg/silverstripe-announce/usoRmNleRWU/oBuVKY7OKF4J
310: [09:59:49] * Pystillgotitk has joined #silverstripe
311: [10:01:10] * Asd has joined #silverstripe
312: [10:01:33] * Asd has left #silverstripe
313: [10:01:56] <Pystillgotitk> fuck, what do?
314: [10:02:14] <Pystillgotitk> My morning sandwich came with a phone number in the bottom of the bag D:
315: [10:03:02] <Colin[pi]> Pystillgotitk: wait what?
316: [10:03:24] <kinglozzer> Pystillgotitk: Was it definitely a female who served you?
317: [10:03:40] <Pystillgotitk> Colin[pi]: Who went over the hill last year, but has still got it? THIS GUY.
318: [10:03:45] <Colin[pi]> :O
319: [10:03:50] <Pystillgotitk> kinglozzer: yeh, a hot one :(
320: [10:03:57] <Colin[pi]> Pystillgotitk: nicely done sir
321: [10:04:02] <Colin[pi]> she must want your foot long
322: [10:04:05] <Pystillgotitk> Colin[pi]: I didn't do anything!
323: [10:04:20] <kinglozzer> Pystillgotitk: Apart from look FABULOUSSS
324: [10:04:21] <Pystillgotitk> Just ordered a hot chocolate and a sandwich, and smiled.
325: [10:04:26] <kinglozzer> :P
326: [10:04:49] <Pystillgotitk> kinglozzer: yeah well, no matter how I try to hide it, seems I have some king of raw magnetisim that just can't be shrouded
327: [10:04:57] <Pystillgotitk> :P
328: [10:05:28] <kinglozzer> ss-helper: You're a bit late on that security release D:
329: [10:05:35] <Pystillgotitk> ?
330: [10:05:52] <kinglozzer> [22:51:23] <ss-helper> SilverStripe 2.4.10 security release - https://groups.google.com/d/msg/silverstripe-announce/usoRmNleRWU/oBuVKY7OKF4J
331: [10:06:23] <Pystillgotitk> Colin[pi]: kinglozzer so yeah... what do? Text and let down, but then there's no shame. Or pretend I didn't find it (I almost threw the bag out with number still inside after all!)
332: [10:06:24] <ss-helper> SilverStripe 3.0.6 Security Release - https://groups.google.com/d/msg/silverstripe-announce/m4vmXYmV0CE/EfSzp3t6mvsJ
333: [10:06:27] <Pystillgotitk> ?
334: [10:06:57] <Colin[pi]> Pystillgotitk: hmmmmmm maybe play it cool and wait for a bit?
335: [10:06:58] <kinglozzer> Pystillgotitk: How often do you go there, she always there?
336: [10:07:25] <Pystillgotitk> kinglozzer: not that often, and most times.
337: [10:07:33] <Pystillgotitk> but generally once a week.
338: [10:07:44] <kinglozzer> I dunno, I'd just text it and say you're flattered but taken
339: [10:07:51] <Pystillgotitk> Yeh, was thinking that
340: [10:08:24] <Pystillgotitk> She seemed a bit funny this morning, I guess I know why now, ha.
341: [10:09:06] <Colin[pi]> lol
342: [10:09:08] * Shrike_Finland quit (Quit: Leaving.)
343: [10:09:55] <Colin[pi]> Pystillgotitk: I wonder what ever happened to the cute girl from finland who used to serve me mochas near my first job in Sydney many years ago?
344: [10:10:06] <Colin[pi]> you never forget your first cute café girl :o
345: [10:10:28] <Pystillgotitk> haha Colin[pi]
346: [10:10:53] <Pystillgotitk> what were you then, still only 43?
347: [10:11:13] <Pystillgotitk> "back in my day... I remember this one lass..."
348: [10:12:43] <Colin[pi]> Pystillgotitk: http://i.imgur.com/4FmTwg8.gif
349: [10:14:34] <Pystillgotitk> kinglozzer: did it.
350: [10:14:57] <Pystillgotitk> Colin[pi]: hahahaha, that montage so good eh :>
351: [10:15:09] <Colin[pi]> Pystillgotitk: love it :D
352: [10:16:36] <Pystillgotitk> lol kinglozzer dat 2.4.10, gw ss-helper - letting the world know, just incase anyone has some legacy needs.
353: [10:16:51] * jeroenem has joined #silverstripe
354: [10:20:03] <Pystillgotitk> Colin[pi]: I don't think you ever forget any of your cute 'what ifs'
355: [10:20:25] * Shrike_Finland has joined #silverstripe
356: [10:22:41] <Colin[pi]> Pystillgotitk: mm prolly right
357: [10:23:12] <Colin[pi]> Pystillgotitk: that's why I travelled 13000km for my gf ;P
358: [10:23:51] <Pystillgotitk> haha. I'm lazy. GF travelled 26000km for me :P (ish, same could be said for you since you both live in Aus)
359: [10:24:08] <Colin[pi]> yeah well
360: [10:24:16] <Colin[pi]> I had to go there 4 fucking times first lol
361: [10:24:21] <Pystillgotitk> lol Colin[pi]
362: [10:24:28] <Colin[pi]> hurry up woman!
363: [10:24:29] <Colin[pi]> ;D
364: [10:32:55] <Pystillgotitk> lulz.
365: [10:34:52] <Pystillgotitk> To be fair I probably would have travelled if a few things that had to fall into place hadn't.
366: [10:36:09] <ss-helper> Making Greyscale image in Silverstripe - http://stackoverflow.com/questions/19812073/making-greyscale-image-in-silverstripe
367: [10:38:16] <kinglozzer> Is ss-helper just posting random links at random intervals? D: there hasn't been any info on that post since 2013! ^^
368: [10:38:48] <kinglozzer> Oh wait, someone edited their answer - I'll let you off ss-helper ;)
369: [10:42:59] <Pystillgotitk> ha, well I went done post extra reply anyway.
370: [10:43:55] * LoveDuckie has joined #silverstripe
371: [10:44:01] <Pystillgotitk> prolly get another one in a few mins then :P
372: [10:47:56] <wmk> Pystillgotitk, is hot choccolate some kind of chiffre where you live?
373: [10:49:48] * Pystillgotitk googles chiffre
374: [10:49:55] * Pystillgotitk still can't figure it out
375: [10:50:08] <Pystillgotitk> what's this wmk
376: [10:50:23] <Pystillgotitk> ?
377: [10:50:35] <wmk> some secret code
378: [10:50:54] <wmk> cipher in english
379: [10:51:14] <Pystillgotitk> ah, I see
380: [10:51:29] <wmk> ss-helper, wow, now with stackoverflow! great!
381: [10:51:56] <Pystillgotitk> Nope, I drank my luxuary hot chocolate. In the sunshine. With a panini. While I was supposed to have been at work 40 minutes before hand. I felt like a sales person/account manager!
382: [10:52:44] <wmk> Pystillgotitk, interested in a sepia hook for the greyscale module?
383: [10:52:58] <Pystillgotitk> as in, should I put a hook in?
384: [10:53:16] <Pystillgotitk> or, you mean have the module do either greyscale OR sepia?
385: [10:53:18] <wmk> well, more method
386: [10:53:23] <Pystillgotitk> ah, I see.
387: [10:53:26] <wmk> yup. additional sepia
388: [10:53:48] <Pystillgotitk> hmm, not particularly, but it could I guess. Or easily be a separate module on the same base
389: [10:55:28] <wmk> hehe, i could fork it and rename to sepia, harr harr
390: [10:55:43] <Pystillgotitk> You could!
391: [10:56:10] <wmk> should i?
392: [10:56:17] <Pystillgotitk> sure!
393: [10:56:18] <Pystillgotitk> :>
394: [11:02:54] <UncleCheese> can you run a build task from the command line? or does it have to be a CliController?
395: [11:05:16] <zauberfisch> UncleCheese: yes you can
396: [11:05:22] <zauberfisch> sake dev/tasks
397: [11:05:22] <Pystillgotitk> should be able to yea
398: [11:05:30] <UncleCheese> it was saying task not found
399: [11:05:34] <zauberfisch> sake dev/tasks/I18nTextCollectorTask module=mysite
400: [11:05:34] <UncleCheese> but browser had no problem
401: [11:05:45] <UncleCheese> sake dev/tasks/MyTask flush=1 did the trick
402: [11:05:58] <UncleCheese> cli and browser maintain separate caches?
403: [11:06:13] <zauberfisch> yeah, silverstripe cache / manifest are per user
404: [11:06:18] <UncleCheese> interesting
405: [11:06:26] <UncleCheese> so in my cron job, do i need to add the flush=1?
406: [11:06:32] <zauberfisch> if you run sake as a different user than you run your php, it will have different cache / manifest
407: [11:06:36] * Cheddam quit (Read error: Connection reset by peer)
408: [11:06:54] * CodeTrap1 quit (Ping timeout: 245 seconds)
409: [11:07:03] <Pystillgotitk> which means that sake run tasks are only any good for data ELTs
410: [11:07:08] <Pystillgotitk> err ETL
411: [11:07:11] <Pystillgotitk> derp
412: [11:07:14] * david_bru has joined #silverstripe
413: [11:07:18] <zauberfisch> depends on your setup. in my setup, apache and sake run as the same user. so I am good
414: [11:07:23] <zauberfisch> but you might need to
415: [11:07:35] <Pystillgotitk> yeah, but... I dunno, that seems... well, seems like it should be a bad idea.
416: [11:07:40] <Pystillgotitk> more than likely isn't.
417: [11:07:49] <Pystillgotitk> I guess that's basically what suphp etc does.
418: [11:07:50] <zauberfisch> what is?
419: [11:07:56] <Pystillgotitk> or php-fpm
420: [11:08:00] <Pystillgotitk> same user
421: [11:08:06] <Pystillgotitk> for cli & web
422: [11:08:14] <zauberfisch> yep. my server uses fpm
423: [11:08:17] <Pystillgotitk> but then if it's sandboxed or whatever
424: [11:08:20] <Pystillgotitk> should be fine
425: [11:08:23] <wmk> data ELK, Pystillgotitk ?
426: [11:08:37] <Pystillgotitk> data MOOSE wmk ?
427: [11:08:40] <zauberfisch> and locally, in my dev vm I use have an alias for sake that uses su to become www-data
428: [11:08:43] <Pystillgotitk> data REINDEER :P
429: [11:08:49] <wmk> oh, mouse au data
430: [11:08:53] <Pystillgotitk> wmk: no, Extract, Transform, Load.
431: [11:10:40] * benjhocking quit (Quit: Leaving.)
432: [11:10:50] <david_bru> hey.. i got an older silverstripe version 2.4.5 and tried updating it to the newest version i could find (2.4.13).. but if i call mydomain.com/dev/build/?flush=all after i put the new files on the server it automatically rewrites the url and adds a slash after the domain: mydomain.com//dev/build/?flush=all
433: [11:11:05] <david_bru> any idea what is causing this strange behaviour?
434: [11:11:43] <david_bru> the build page of course fails (Sorry, there was a problem with handling your request.) but the admin interface is still reachable
435: [11:11:56] <david_bru> frontend is as well reachable
436: [11:12:08] <wmk> david_bru, maybe .htaccess has changed and needs to be updated?
437: [11:12:20] <david_bru> did that, but no success
438: [11:12:54] * oetiker quit (Quit: Leaving)
439: [11:12:54] <wmk> david_bru, go to dev mode for and detaild error message and look at the log files
440: [11:12:56] <wmk> !dev
441: [11:13:09] <david_bru> had a Director::forceWWW(); in the _config.php but that didn't help as well
442: [11:13:23] <wmk> that just redirectes from foo.com to www.foo.com
443: [11:13:48] <david_bru> [User Error] Uncaught Exception: ModelAsController->getNestedController(): was not passed a URLSegment value.
444: [11:14:13] <david_bru> Line 87 in /.../sapphire/core/control/ModelAsController.php
445: [11:14:17] <wmk> hmm...
446: [11:14:41] <wmk> did you look at the changelogs?
447: [11:14:56] <david_bru> there are no changelogs for 2.4.11 to 2.4.13
448: [11:15:06] <wmk> maybe some API changed and you need to adjust your code?
449: [11:15:09] <david_bru> the only changelogs i could find are for 2.4.10
450: [11:16:47] <david_bru> if i run /dev/build without any flush it works
451: [11:17:01] <Pystillgotitk> you're not supposed to flush.
452: [11:17:03] <Pystillgotitk> ever
453: [11:17:12] <Pystillgotitk> the process is dev/build THEN flush
454: [11:17:14] <Pystillgotitk> separately
455: [11:17:23] <david_bru> ahh ok.. didn't know that
456: [11:17:36] <Pystillgotitk> someone thought it was a thing back in the day, wrote a tutorial, and it spread.
457: [11:17:46] <Pystillgotitk> It's a common misconception david_bru
458: [11:17:53] <david_bru> thanks for the info
459: [11:18:07] <Pystillgotitk> In 3.1 I think it works now, but for 2.x it should certainly always be done spearately.
460: [11:18:35] <Pystillgotitk> even in 3.0 I think maybe. Personally I always do it separete, half from habit, half because I like the certainty from it.
461: [11:19:00] <david_bru> ok /dev/build works and /?flush=all returns the same error as above
462: [11:19:19] <Pystillgotitk> Hmm, could it be some kind of template error perhaps?
463: [11:20:09] <david_bru> mh i did change some things in the template recently.. will try to narrow the error down
464: [11:20:41] <david_bru> but the template per so works just fine - all the loops are doing what they are supposed to do..
465: [11:21:58] <Pystillgotitk> what's the stack trace? is there one? it'll hopefully be a bit more explicit in where the error is originating.
466: [11:22:26] <david_bru> http://www.sspaste.com/paste/show/54f6ea73a4f64
467: [11:22:29] <Pystillgotitk> but, just quickly running my eyes down, getNestedController seems like maybe there's a $Page in your template
468: [11:22:35] <Pystillgotitk> or something like that.
469: [11:22:53] <Pystillgotitk> $Page(urlsegment) iirc returns the page that matches that segment.
470: [11:25:26] <wmk> david_bru, what kind of urls have double slashes?
471: [11:25:34] * ccburns has joined #silverstripe
472: [11:25:34] <david_bru> mh could not find any $Page in my templates..
473: [11:25:43] <wmk> all urls or urls generated in your templates where you add something manually?
474: [11:26:07] <david_bru> as far as i can tell it only adds double slashes if i call the flush page
475: [11:26:13] <david_bru> the rest is working fine
476: [11:26:35] <wmk> strange.
477: [11:28:37] <ccburns> Hey guys - I’m trying to get a new site into https for all requests. I’ve included Director::forceSSL() into my _config.php but I’m getting a “too many redirects” message in my browser - https://www.starworkplace.com.au/ Does anyone know if I need to make changes to the htaccess file or anything?
478: [11:30:54] <wmk> ccburns, does it collide with any other redirection which redirects to a hardcoded http:// ?
479: [11:31:17] <Motoservo> Working through the lessons: didn’t the getCMSFields() used to go in the controller?
480: [11:32:39] <Motoservo> No, scratch that. Just got confused. Was thinking of something else.
481: [11:32:40] <wmk> Motoservo, no. never before
482: [11:32:43] <ccburns> wmk: yeah there must be a redirect there somewhere but not sure where it would be… I don’t have anything in my code so wondering if it might be in the htaccess file - although that is pretty stock standard I believe
483: [11:34:59] <ccburns> Here is my htaccess file - http://www.sspaste.com/paste/show/54f6ed53c37b2 - any thoughts?
484: [11:36:32] <ss-helper> Re: [silverstripe-dev] Re: Decluttering the CMS interface - https://groups.google.com/d/msg/silverstripe-dev/kA6oo6Z-srQ/p8dOslkydrkJ
485: [11:37:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
486: [11:52:09] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400558
487: [11:54:25] * david_bru quit (Read error: Connection reset by peer)
488: [11:56:45] <Pystillgotitk> eyyy, got a text back kinglozzer Colin[pi]
489: [11:57:35] <Pystillgotitk> an embarrassed apology :< Reassured her it's all ok; seems to have cheered up :>
490: [12:05:07] <kinglozzer> Pystillgotitk: Gawd, feel sorry for her :P
491: [12:12:57] * r_hector quit (Ping timeout: 250 seconds)
492: [12:14:21] * ccburns quit (Quit: ccburns)
493: [12:22:15] <ss-helper> Re: FullText Filter not working on "Content" - http://www.silverstripe.org/community/forums/general-questions/show/90961?start=8#post400559
494: [12:24:54] * oetiker has joined #silverstripe
495: [12:29:19] <zauberfisch> wmk: are you using my silverstripe boilerplate?
496: [12:29:35] <zauberfisch> wmk: because I turned the i18n collector thing into a module
497: [12:30:32] <zauberfisch> Pystillgotitk kinglozzer and others: I talked about running compass with sassc a couple of weeks ago. I will not have the time to blog about it in the comming weeks, but I open sourced my hacky module for it ;)
498: [12:30:44] <zauberfisch> and in my boilerplate you can see the use of the composer mixins
499: [12:30:56] <zauberfisch> (branch: dev)
500: [12:30:58] <zauberfisch> https://github.com/Zauberfisch/silverstripe-boilerplate/tree/dev
501: [12:31:15] <zauberfisch> https://github.com/Zauberfisch/silverstripe-better-requirements
502: [12:31:20] <zauberfisch> wmk: https://github.com/Zauberfisch/silverstripe-better-i18n
503: [12:31:58] <zauberfisch> though I haven't registered the modules on packagist yet. will do that soon. for now use a repository url like so: https://github.com/Zauberfisch/silverstripe-boilerplate/blob/dev/composer.json#L27
504: [12:33:06] <wmk> zauberfisch, not the boilerplate, only the vm
505: [12:33:22] * jeroenem quit (Ping timeout: 246 seconds)
506: [12:34:03] <wmk> zauberfisch, run ?flush=1
507: [12:34:16] <wmk> confused - use with =1 or just plain ?flush ???
508: [12:36:38] <zauberfisch> just a habbit
509: [12:36:41] <zauberfisch> doesn't matter
510: [12:37:00] <wmk> jup, but is there an official howto?
511: [12:37:01] <zauberfisch> but I think the docs say ?flush=1
512: [12:37:08] <wmk> stumbled over this issue in latest tutorial
513: [12:37:09] <zauberfisch> so its easier to understand for others
514: [12:37:16] <zauberfisch> no
515: [12:37:31] <zauberfisch> also the way flush works changes every second version
516: [12:37:36] <zauberfisch> so I guess its hard to document :D
517: [12:37:47] <wmk> lol
518: [12:37:50] <wmk> !flush
519: [12:37:51] <ss-helper> Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
520: [12:38:08] <wmk> well, ss-helper says flush=all ...
521: [12:38:13] <kinglozzer> :P
522: [12:38:36] <kinglozzer> I guess flush=all is the safest in case 2.4, right?
523: [12:38:57] <wmk> jup
524: [12:39:00] <zauberfisch> I think right now ?flush=all is exactly the same as ?flush=1
525: [12:39:02] <wmk> in 2.4 i t was
526: [12:39:20] <zauberfisch> expect perhaps resized images
527: [12:39:39] <zauberfisch> those might still listen to =all to remove all and =1 to only remove ones used on the current page
528: [12:40:05] <zauberfisch> other things like the manifest (which is what I care about in the 2 modules) is flushed both with =all and =1
529: [12:41:04] * oetiker quit (Read error: Connection reset by peer)
530: [12:41:10] <Pystillgotitk> zauberfisch: cool, doest that use ruby or libsass?
531: [12:42:15] <kinglozzer> theme in mysite/, boo!
532: [12:46:07] * oetiker has joined #silverstripe
533: [12:51:46] * oetiker quit (Remote host closed the connection)
534: [12:52:01] <zauberfisch> kinglozzer: you are boo!
535: [12:52:05] <zauberfisch> Pystillgotitk: libsass
536: [12:52:20] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400560
537: [12:52:20] * oetiker has joined #silverstripe
538: [13:01:25] * wmk quit (Ping timeout: 252 seconds)
539: [13:07:23] <ss-helper> Re: Question about Templates/Layouts/HomePage.ss - http://www.silverstripe.org/community/forums/general-questions/show/101282#post400561
540: [13:15:43] * Colin[pi] quit (Ping timeout: 252 seconds)
541: [13:22:25] <ss-helper> Re: [solved] Question about custom page type setup - http://www.silverstripe.org/community/forums/general-questions/show/101282?start=8#post400562
542: [13:28:03] * muskie9 has joined #silverstripe
543: [13:30:02] * UndefinedOffset has joined #silverstripe
544: [13:34:23] <kinglozzer> zauberfisch: is libsass 3.2 out yet?
545: [13:38:45] <zauberfisch> don't think so
546: [13:38:55] <zauberfisch> I just compiled from git
547: [13:39:47] * muskie9 is now known as muskie9_afk
548: [13:40:51] <kinglozzer> Ah, not it's not yet :( not far away though, hopefully! https://github.com/sass/libsass/milestones/3.2
549: [13:41:56] * david_bru has joined #silverstripe
550: [13:44:14] <david_bru> I'm creating an image object with "$imgObject = DataObject::get_by_id('Image', $this->$value);" - if I output that I get the following: http://www.sspaste.com/paste/show/54f70b769820c
551: [13:44:33] <Pystillgotitk> nope
552: [13:44:42] <Pystillgotitk> Image::get()->byId()
553: [13:45:04] <Pystillgotitk> fffff I wish 2.4 tutorials could be retroactively marked as such :<
554: [13:45:42] <kinglozzer> Pystillgotitk: Does that syntax work in 2.4?
555: [13:45:45] <david_bru> mh is that working in 2.4 as well?
556: [13:45:46] <david_bru> :D
557: [13:45:53] <Pystillgotitk> kinglozzer: PigeonFriend: are eithe rof you in contact with the chappy from SSbits?
558: [13:46:04] <Pystillgotitk> kinglozzer: o.0 it's FROM 2.4.
559: [13:46:12] <kinglozzer> Pystillgotitk: ->byID?
560: [13:46:22] <Pystillgotitk> I made the assumption that david_bru is using 3.x
561: [13:46:24] <kinglozzer> 'cause I think david_bru is talking 2.4
562: [13:46:25] <kinglozzer> Ah
563: [13:46:26] <kinglozzer> ^^
564: [13:46:30] <Pystillgotitk> kinglozzer: no, DO::get_one
565: [13:46:45] <david_bru> jup I'm using 2.4.10
566: [13:46:53] * muskie9_afk is now known as muskie9
567: [13:46:55] <david_bru> so what would be the correct syntax?
568: [13:46:58] <kinglozzer> david_bru: What's the issue? That's correct
569: [13:47:01] <Pystillgotitk> works in 3.x, should throw DIAF EXCEPTION: dying refused.
570: [13:47:14] <Pystillgotitk> david_bru: ah, in that case yeh, that's correct.
571: [13:47:23] <Pystillgotitk> (what you've got)
572: [13:47:27] <kinglozzer> Pystillgotitk: It's cached, so maybe we should all be using it ;)
573: [13:47:31] <kinglozzer> (joking)
574: [13:47:33] <kinglozzer> :P
575: [13:47:37] <Pystillgotitk> eh?
576: [13:47:38] <david_bru> if i call a resize after the image it tells me Fatal error: Call to a member function resize() on a non-object in /mysite/code/NewsPage.php on line 129
577: [13:47:51] <Pystillgotitk> david_bru: for some reason you're getting a primitive
578: [13:47:55] <Pystillgotitk> probably false
579: [13:47:59] <Pystillgotitk> because the ID doesn't exist
580: [13:48:25] <kinglozzer> Pystillgotitk: get_by_id() calls get_one() which caches the result
581: [13:48:38] <kinglozzer> But it's pretty much useless unless you're fetching the exact same object like 50 times in one request :P
582: [13:48:47] <Pystillgotitk> DataObject::get() returns a DataObjectList, but get_one returns a single DataObject, or false.
583: [13:49:09] <Pystillgotitk> kinglozzer: yeh, but then with templates that can be an actual thing.
584: [13:49:45] <kinglozzer> Not anymore though, 'cause ViewableData::obj() does caching (maybe it didn't in 2.4, could be why)
585: [13:50:39] <Pystillgotitk> nah, request every time iirc.
586: [13:50:53] <Pystillgotitk> show_queries soon tells you ;P
587: [13:50:59] <david_bru> but if i print_r() the object it tells me it exists
588: [13:51:05] <david_bru> http://www.sspaste.com/paste/show/54f70b769820c
589: [13:51:06] <Pystillgotitk> menu, menu, menu, menu, menu oh gawd menu again
590: [13:51:14] <Pystillgotitk> zomg page data!
591: [13:51:25] <Pystillgotitk> menu, menu, menu, menu (oh dem footer links)
592: [13:51:42] <david_bru> or am I interpreting the hole thing wrong?
593: [13:51:48] <david_bru> *whole
594: [13:52:16] <Pystillgotitk> david_bru: this is $img = DataObject::get_by_id($id); var_dump($img); ?
595: [13:52:32] <ss-helper> Re: [solved] Question about custom page type setup - http://www.silverstripe.org/community/forums/general-questions/show/101282?start=8#post400563
596: [13:53:29] <david_bru> nope its: $img = DataObject::get_by_id('Image', $id); var_dump($img);
597: [13:53:58] * greenman_ has joined #silverstripe
598: [13:54:11] <kinglozzer> david_bru: And you're doing $img->resize() ?
599: [13:54:45] <Pystillgotitk> david_bru: ah, yeah that's what I meant, haha. sorry.
600: [13:55:01] * travis-ci has joined #silverstripe
601: [13:55:02] <travis-ci> sminnee/silverstripe-framework#47 (non-sortable-column-fix - 0463fec : Sam Minnee): The build has errored.
602: [13:55:03] <travis-ci> Change view : https://github.com/sminnee/silverstripe-framework/compare/cd4ebb25ca59^...0463fecc2fca
603: [13:55:03] <travis-ci> Build details : http://travis-ci.org/sminnee/silverstripe-framework/builds/53043920
604: [13:55:03] * travis-ci has left #silverstripe
605: [13:57:08] <david_bru> sry my IDE is currently hanging - brb
606: [14:00:28] <david_bru> http://www.sspaste.com/paste/show/54f70f711b1a2
607: [14:01:30] <david_bru> if i do it without the resize it's at least loading the page
608: [14:02:56] <david_bru> any idea what is wrong with my paste
609: [14:03:26] * wmk has joined #silverstripe
610: [14:05:08] <kinglozzer> david_bru: My guess is that your function is actually being called twice (IIRC SilverStripe does this sometimes...) and one of those times $this->$value isn't set or something
611: [14:05:09] * scpi has joined #silverstripe
612: [14:06:01] <kinglozzer> Just do if($imgObject) { $foo = $imgObject->resize... } or something
613: [14:07:52] <david_bru> even if i do this: http://www.sspaste.com/paste/show/54f71131765b9
614: [14:07:56] <david_bru> it fails
615: [14:21:41] * Sander has joined #silverstripe
616: [14:24:02] <Sander> Hey guys. So I tried to call a form from the SS userforms module, to appear on all pages, with this function https://bpaste.net/show/e5a6269a896e . Works fine locally, but when pushed to a server, it breaks, any suggestions?
617: [14:28:17] * david_bru has left #silverstripe
618: [14:29:05] <Sander> Anyone?
619: [14:29:05] * r_hector has joined #silverstripe
620: [14:32:08] * jamesbrowne has joined #silverstripe
621: [14:33:46] <zauberfisch> Sander: hmmm
622: [14:33:47] <zauberfisch> no idea
623: [14:33:54] <zauberfisch> page doesn't exist?
624: [14:34:10] <zauberfisch> perhaps the userform page exists but is in draft mode
625: [14:34:26] <zauberfisch> and you are in life mode when viewing the page (thus it can not find a userform page)
626: [14:36:31] <Pystillgotitk> kinglozzer: silly rabbit, tricks are for kids. if($img instanceof Image)
627: [14:37:11] <Pystillgotitk> Sander: did you replicate the database too?
628: [14:37:20] <Pystillgotitk> because 1) it's a page. 2) it needs to have a form on it.
629: [14:38:29] <Sander> Ah yes forgot to duplicate the DB. It works now. Guess Ill need to make a check on that!
630: [14:38:32] <Sander> Thanks mate
631: [14:39:43] * travis-ci has joined #silverstripe
632: [14:39:44] <travis-ci> silverstripe/silverstripe-framework#4306 (3.1 - 79a575d : Daniel Hensby): The build passed.
633: [14:39:45] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/7b7a5e031293...79a575dba468
634: [14:39:45] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53048075
635: [14:39:45] * travis-ci has left #silverstripe
636: [14:40:14] <Pystillgotitk> got a meeting.
637: [14:40:17] <Pystillgotitk> see you next year :<
638: [14:40:19] * Pystillgotitk quit ()
639: [14:49:10] * Sander quit (Ping timeout: 246 seconds)
640: [14:49:29] * muskie9 is now known as muskie9_afk
641: [14:51:56] * jamesbrowne quit (Remote host closed the connection)
642: [14:54:43] * muskie9_afk is now known as muskie9
643: [15:04:08] * travis-ci has joined #silverstripe
644: [15:04:09] <travis-ci> silverstripe/silverstripe-framework#4307 (3.1 - 2c752ad : Daniel Hensby): The build passed.
645: [15:04:10] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/79a575dba468...2c752adf5cfe
646: [15:04:10] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53050699
647: [15:04:10] * travis-ci has left #silverstripe
648: [15:09:38] * wmk quit (Ping timeout: 264 seconds)
649: [15:09:57] * r_hector quit (Quit: Leaving.)
650: [15:16:23] * Shrike_Finland quit (Quit: Leaving.)
651: [15:29:39] * catcher has joined #silverstripe
652: [15:31:53] * Otterpocket quit (Quit: Leaving)
653: [15:37:54] <ss-helper> SQLite3 Module howto - http://www.silverstripe.org/community/forums/installing-silverstripe/show/101292
654: [15:47:42] * ss31noob has joined #silverstripe
655: [16:17:03] * Shrike_Finland has joined #silverstripe
656: [16:21:55] * cupcake has joined #silverstripe
657: [16:22:40] <cupcake> Has anyone experienced the issue of the image upload field dialog closing after selecting the image in tinymce on ss3 in chrome?
658: [16:22:53] <cupcake> in firefox it works but in chrome after i select theimage
659: [16:23:01] <cupcake> the dialog suddenly closes
660: [16:23:07] <cupcake> and in the console i can see this error
661: [16:23:17] <cupcake> Uncaught TypeError: Cannot read property 'top' of null
662: [16:23:22] <cupcake> from UploadField.js
663: [16:24:51] * NETim has joined #silverstripe
664: [16:25:05] <NETim> Morning, court mandated silly question time:
665: [16:25:28] <NETim> Got a module, need to extend one of the dataobjects in that module to add a new field to it.
666: [16:25:50] <NETim> class wotsitextension extends DataExtension
667: [16:25:58] <NETim> then config.yml, then nothing.
668: [16:26:10] <NETim> How am I supposed to be doing this?
669: [16:26:22] <cupcake> NETim did you flush?
670: [16:26:38] <NETim> always flush, dev/build, etc
671: [16:26:39] <kinglozzer> NETim: Are you talking about updateCMSFields? Or do you mean it's not adding the field to the DB?
672: [16:26:45] <NETim> not adding the field.
673: [16:26:48] <kinglozzer> (db field or form field?)
674: [16:26:58] <NETim> db field
675: [16:27:36] <NETim> I'm happy to use updateCMSFields to add the new field to the form.
676: [16:28:56] <kinglozzer> Hmm
677: [16:29:06] <kinglozzer> You're applying the extension to a DataObject, not to another extension, right?
678: [16:30:06] <NETim> gimme a sec, I'll just confirm that
679: [16:30:28] <cupcake> can somebody help me on my issue ? :)
680: [16:31:14] <catcher> cupcake, what version of SS? What version of chrome?
681: [16:31:43] <cupcake> chrome Version 42.0.2311.4 dev-m (64-bit)
682: [16:31:53] <kinglozzer> cupcake: What exactly are you doing?
683: [16:32:01] <kinglozzer> Picking an existing image from the CMS? Or uploading a new one?
684: [16:32:02] <NETim> kinglozzer: sorted it, thanks.
685: [16:33:16] <cupcake> 3.1
686: [16:33:38] <cupcake> uploading a new one in the tinymce
687: [16:33:43] <cupcake> in firefox it works
688: [16:33:45] <cupcake> in chrome
689: [16:33:49] <cupcake> it just closes the dialog
690: [16:34:03] <cupcake> and triggers a js error in UploadField.js
691: [16:37:02] <kinglozzer> Works fine for me (41.0.2272.76)
692: [16:37:10] <kinglozzer> cupcake: Does it tell you what line the error is on?
693: [16:37:58] <cupcake> yes
694: [16:38:06] <ss-helper> Re: FullText Filter not working on "Content" - http://www.silverstripe.org/community/forums/general-questions/show/90961?start=8#post400565
695: [16:39:07] <cupcake> line 22
696: [16:39:13] <cupcake> var top = '+=' + (firstNewFile.position().top - parseInt(firstNewFile.css('marginTop'), 10) || 0 - parseInt(firstNewFile.css('borderTopWidth'), 10) || 0);
697: [16:43:17] * ThePeach has joined #silverstripe
698: [16:45:03] <kinglozzer> cupcake: Hmm, there haven't been any changes that look like they could've caused that. Have you got dev mode enabled? Any errors?
699: [16:45:44] <cupcake> yes i am in dev mode
700: [16:46:25] * ss31noob quit (Ping timeout: 246 seconds)
701: [16:47:34] <NETim> Anyone know how SS3 would handle text in Russian? I.e Cyrillic text?
702: [16:49:26] <cupcake> no no errors found in logs
703: [16:54:56] * wracu_ has joined #silverstripe
704: [16:54:57] <cupcake> what can i do?
705: [16:56:11] <kinglozzer> cupcake: Tried a stable version of Chrome?
706: [16:57:52] * wracu quit (Ping timeout: 240 seconds)
707: [17:00:06] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
708: [17:00:21] * benjhocking has joined #silverstripe
709: [17:01:29] <catcher> Anyone know the status of CSV exports from GF? Is it possible to export all records with chosen (or all) fields, aside from modifying $summary_fields?
710: [17:01:29] * benjhocking quit (Client Quit)
711: [17:04:03] <kinglozzer> catcher: getExportFields() in your ModelAdmin class
712: [17:04:15] <catcher> kinglozzer, lovely, thank you
713: [17:04:23] <kinglozzer> Or what I did was add a method to ModelAdmin which checked the model for a getExportFields function
714: [17:04:30] <kinglozzer> So I could define the fields on the model instead
715: [17:04:38] <catcher> kinglozzer, setExportFields() isn't working?
716: [17:05:59] <kinglozzer> catcher: I can't find any mention of that method anywhere, ModelAdmin::getExportFields() just calls summaryFields() on the model unless you override it in your ModelAdmin class
717: [17:06:07] <kinglozzer> http://pastie.org/9999948
718: [17:06:10] <kinglozzer> That's what I did
719: [17:06:46] <catcher> kinglozzer, when you say you can't find mention, you mean where it's actually used?
720: [17:06:51] <catcher> it's defined here: http://api.silverstripe.org/3.1/class-GridFieldExportButton.html#_setExportColumns
721: [17:07:19] <kinglozzer> Ohhhh columns (was looking for setExportFIELDS)
722: [17:08:10] <kinglozzer> catcher: ModelAdmin does $exportButton->setExportColumns($this->getExportFields()); when setting up the GridField in ModelAdmin::getEditForm()
723: [17:08:12] <ss-helper> Re: SQLite3 Module howto - http://www.silverstripe.org/community/forums/installing-silverstripe/show/101292#post400566
724: [17:08:36] <catcher> kinglozzer, I'll give it a go & report back
725: [17:12:40] * kinglozzer home
726: [17:12:50] <kinglozzer> gl catcher & cupcake!
727: [17:12:55] * kinglozzer quit ()
728: [17:21:19] <ss-helper> Silverstripe static publisher breaking form submissions - http://stackoverflow.com/questions/21153250/silverstripe-static-publisher-breaking-form-submissions
729: [17:27:05] * scpi has left #silverstripe
730: [17:28:36] * benjhocking has joined #silverstripe
731: [17:33:15] * Shrike_Finland quit (Quit: Leaving.)
732: [17:36:29] * Stomach has joined #silverstripe
733: [17:41:25] * Guits has joined #silverstripe
734: [17:42:31] <Guits> Can i use upload field to upload video from ipad?
735: [17:46:59] * zaki has joined #silverstripe
736: [17:48:11] * Stomach quit (Quit: zzz)
737: [17:55:37] * GioVdK quit (Ping timeout: 255 seconds)
738: [17:56:43] * Stomach has joined #silverstripe
739: [18:02:10] * zippy has joined #silverstripe
740: [18:03:33] * muskie9 is now known as muskie9_afk
741: [18:05:41] * zippy quit (Client Quit)
742: [18:06:15] * arnhoe has joined #silverstripe
743: [18:06:39] * ThePeach quit (Quit: leaving)
744: [18:12:50] * Stomach quit (Quit: zzz)
745: [18:27:35] * LoveDuckie quit (Quit: Leaving)
746: [18:29:27] * benjhocking quit (Quit: Leaving.)
747: [18:47:32] * gelignite has joined #silverstripe
748: [18:49:34] * Shrike_Finland has joined #silverstripe
749: [18:51:06] * muskie9_afk is now known as muskie9
750: [18:52:17] * Stomach has joined #silverstripe
751: [18:54:08] * wmk has joined #silverstripe
752: [18:54:17] * zaki quit (Ping timeout: 246 seconds)
753: [18:59:19] * greenman_ quit (Remote host closed the connection)
754: [19:00:00] * mobiusnz quit (Quit: Leaving.)
755: [19:06:55] * Shrike_Finland quit (Quit: Leaving.)
756: [19:14:50] * mobiusnz has joined #silverstripe
757: [19:16:46] * greenman_ has joined #silverstripe
758: [19:22:17] * Shrike_Finland has joined #silverstripe
759: [19:36:33] * veb has joined #silverstripe
760: [19:42:44] * Ryan-Toast has joined #silverstripe
761: [19:45:35] * arnhoe quit (Remote host closed the connection)
762: [19:47:06] * Shrike_Finland quit (Quit: Leaving.)
763: [19:48:55] <Stomach> hi team
764: [19:52:49] <SphereSilver> Hey tummy
765: [19:58:01] <Ryan-Toast> Hai
766: [19:58:07] <veb> moo
767: [20:01:27] * Shrike_Finland has joined #silverstripe
768: [20:02:51] <wmk> hey SphereSilver
769: [20:03:07] <SphereSilver> Hey wmk
770: [20:04:04] * zippy has joined #silverstripe
771: [20:19:22] * Hailwood has joined #silverstripe
772: [20:20:19] <Stomach> hey SphereSilver - hows stuff
773: [20:20:21] <Stomach> hi wmk
774: [20:20:24] <Stomach> hi Ryan-Toast
775: [20:20:28] <Ryan-Toast> Stomach: HAI
776: [20:20:29] <Stomach> baa veb
777: [20:20:30] <wmk> hi Stomach
778: [20:20:36] <Ryan-Toast> hello everyone.
779: [20:20:38] <Ryan-Toast> Greetings.
780: [20:20:43] <Ryan-Toast> Welcome, to Zombocom
781: [20:20:46] <SphereSilver> Trying to get the Folder class back in order.
782: [20:20:46] <wmk> still confused about ?flush=1 or just ?flush
783: [20:20:54] <Ryan-Toast> all your dreams can come true at Zombocom
784: [20:20:55] <Stomach> haha wmk :D
785: [20:21:04] <Stomach> you don't need to have the =1
786: [20:21:04] <Ryan-Toast> wmk: flush=all
787: [20:21:08] <Ryan-Toast> :P
788: [20:21:10] <Stomach> but it is more explicit
789: [20:21:20] <wmk> though some weeks ago everyone in irc told me just to use ?flush
790: [20:21:21] <Stomach> and when a newbie is going through for the first time, verbosity rules
791: [20:21:29] <Stomach> you can just use ?flush
792: [20:21:37] <Stomach> but then you would run into ?flush=all
793: [20:21:55] <Stomach> and it become a "what is going on, I thought their was just flush"
794: [20:22:03] <Stomach> having flush=1 implies their are more types of flush
795: [20:22:12] <veb> there
796: [20:22:25] <wmk> well, we could note that in old versions it was ?flush=1, but now ?flush alone is enough
797: [20:23:19] * camfindlay has joined #silverstripe
798: [20:24:21] <wmk> as zauberfisch stated earlier: "also the way flush works changes every second version"
799: [20:25:35] <Stomach> version 1
800: [20:25:39] <Stomach> and version 3
801: [20:25:40] <Stomach> ? :D
802: [20:30:13] * DimiStripe quit (Quit: DimiStripe)
803: [20:35:45] <Hailwood> Hi guys, so TeamMember (DO) can be linked to multiple 'Page' - 'Page' can have many TeamMember. What should the relations arrays look like?
804: [20:36:33] <SphereSilver> Sounds like a many_many relation, not a one_to_many
805: [20:36:36] <zippy> many many
806: [20:37:10] <Stomach> always make versioned relationships many_many
807: [20:37:13] <Stomach> saves so many headaches
808: [20:37:25] <Stomach> unless they need to be versioned
809: [20:37:27] <zippy> http://doc.silverstripe.org/en/tutorials/dataobject_relationship_management/#many-many-relationships-mentor
810: [20:37:27] <Stomach> LOL
811: [20:37:29] <Stomach> paradox
812: [20:40:38] * Alboes has joined #silverstripe
813: [20:42:05] <Alboes> hi. What is the best environment for installing SS on Windows 7? NAMP, WAMP, XAMPP or other? Any advice?
814: [20:43:27] <Ryan-Toast> Alboes: I use XAMPP and it works fine :)
815: [20:44:29] <Ryan-Toast> Anyone know how I can make a form action in the CMS download a file? whatever I generate just gets output into the cms content.
816: [20:45:22] <SphereSilver> Alboes: Vagrant machine.
817: [20:45:23] <wmk> Alboes, vagrant vm
818: [20:46:07] <wmk> there are some prebuilt vagrant vms out there, there is also a config site for it
819: [20:46:41] <wmk> and zauberfisch made a ready-to-use box, which makes spinning up a new machine much faster
820: [20:47:33] <wmk> see https://puphpet.com/
821: [20:47:41] <wmk> (not the prebuilt box)
822: [20:48:07] <camfindlay> Alboes: I’ve been using this https://github.com/BetterBrief/vagrant-skeleton
823: [20:48:22] <SphereSilver> I'm with camfindlay here
824: [20:48:34] <SphereSilver> I've been using my own fork of BetterBrief recently
825: [20:48:47] <SphereSilver> https://github.com/Firesphere/vagrant-skeleton
826: [20:48:49] <Ryan-Toast> I have tried: return SS_HTTPRequest::send_file(file_get_contents($filename), $filename); but it does nothing.
827: [20:48:52] <SphereSilver> It includes xdebug
828: [20:48:55] <SphereSilver> for example
829: [20:49:16] <camfindlay> also if you want a really quick SS install, self-contained (potentially disposable) - local AMP stack we recently got added to this: https://bitnami.com/stack/silverstripe
830: [20:49:25] * DimiStripe has joined #silverstripe
831: [20:49:30] <camfindlay> Bitnami are actually now the maintainers of XAMPP too
832: [20:50:24] <SphereSilver> Ryan-Toast: Oddity much. Could you make a pasty?
833: [20:50:24] * mahfuz has joined #silverstripe
834: [20:50:56] <SphereSilver> And note, it should *return* the SS_HTTPRequest method
835: [20:51:01] <SphereSilver> not just call it.
836: [20:52:12] <Ryan-Toast> SphereSilver: http://www.sspaste.com/paste/show/54f76ffa0abd0
837: [20:52:29] <Alboes> vagrant sounds great, i'm gonna try. thanks
838: [20:53:05] <camfindlay> Just remember that first install will download a linux distro image so the first run can take longer than subsequent ones :)
839: [20:54:02] <Alboes> okay, good to know :)
840: [20:54:32] <Hailwood> Stomach, Any idea what's wrong here? https://gist.github.com/hailwood/d3bc4085061faf7f3e0f
841: [20:54:36] <SphereSilver> You can't tail a PDF
842: [20:54:54] <Ryan-Toast> SphereSilver: What do you mean?
843: [20:55:07] <SphereSilver> The tail doesn't include the file definition
844: [20:55:18] <SphereSilver> Hailwood: What's the issue exactly?
845: [20:55:21] <Ryan-Toast> SphereSilver: Where would I do that?
846: [20:55:37] <SphereSilver> Ryan-Toast: Output the full file, is the only option.
847: [20:55:52] <Hailwood> SphereSilver, It's commented at the top of the gist - when editing a team member I am getting Inverse component of Page not found (TeamMember)
848: [20:55:56] <Ryan-Toast> okay, but how do I force the download?
849: [20:58:51] <SphereSilver> Maybe this helps? http://www.silverstripe.org/community/forums/general-questions/show/8896
850: [20:59:00] <SphereSilver> Note, you can't force a download anymore.
851: [20:59:22] <SphereSilver> A browser nowadays carries pdf.js so it will try to load it instead of downloading.
852: [21:01:10] <Alboes> need to restart, see you later :)
853: [21:01:42] * Alboes quit (Remote host closed the connection)
854: [21:05:54] <Hailwood> In Silverstripe can you belongs_many_many to a superclass? aka I have TeamMemberPage and ContactPage which both extend from Page - I want to be able to link multiple TeamMember to them - so would belongs_many_many ['Pages' => 'Page'] work on the TeamMember?
855: [21:06:03] <muskie9> Ryan-Toast back in the day I passed vars to a file that started the download... was jpg's but might work if you set the headers: https://gist.github.com/muskie9/7afcb37120e66be68a03
856: [21:07:06] <Ryan-Toast> muskie9: did you just redirect to that “page”?
857: [21:07:40] * Cheddam has joined #silverstripe
858: [21:09:10] <muskie9> it was pre my using SS... so I had an href that pointed to that page/file that was literally those 6 lines... so mysite.com/OldDownloadableJPG.php?image=someImage.jpg
859: [21:09:54] <muskie9> used a little download icon... not sure if that would just be a controller function in SS that set the headers then did some kind of return
860: [21:11:48] * EasyCo has joined #silverstripe
861: [21:12:41] <EasyCo> Morning ladies and gents
862: [21:13:42] <catcher> 'afternoon
863: [21:17:13] * Shrike_Finland quit (Quit: Leaving.)
864: [21:17:21] <SphereSilver> I'm off to bed folks. Sleep tight. I'm tired and done with today.
865: [21:18:19] <Hailwood> So anyone know how to allow a single TeamMember to be linked to either or both (or multiple of either) OurPeoplePage and ContactUsPage (both extends Page) - Here is what I've tried https://gist.github.com/hailwood/d3bc4085061faf7f3e0f
866: [21:19:32] <catcher> Hailwood, why not belongs_many_many to the individual subclasses?
867: [21:19:34] <muskie9> Hailwood so the Page Type has one TeamMember and the TeamMember has many Pages?
868: [21:20:41] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
869: [21:21:20] * UncleCheese has joined #silverstripe
870: [21:21:51] <UncleCheese> SilverStripe lessons section is up 178%! How exciting
871: [21:23:08] <catcher> UncleCheese, 178% of what?
872: [21:23:17] <Hailwood> muskie9, Nope, the page type has multiple team members, and the team members belong to multiple (of multiple) page types.
873: [21:23:39] <Hailwood> catcher, Because I want to be able to get a list of all pages each team member is attached to regardless of type type of page.
874: [21:23:55] <UncleCheese> page views
875: [21:24:13] <catcher> Hailwood, then Page will need the many_many, and you need to restrict the interfaces.
876: [21:24:21] <muskie9> ^
877: [21:24:32] <Ryan-Toast> What’s the parent of a File?
878: [21:24:47] <Ryan-Toast> it has a ParentID, but I can’t seem to find what it’s related to.
879: [21:25:05] <UncleCheese> Ryan-Toast should be a Folder, right?
880: [21:25:12] <Hailwood> catcher, Right so if this was from a separate package I would need to add the relation to Page via an extension?
881: [21:25:14] <Ryan-Toast> UncleCheese: Ah, right.
882: [21:25:26] <catcher> Hailwood, right
883: [21:25:35] * UndefinedOffset quit (Quit: Leaving.)
884: [21:26:56] <EasyCo> Talking about the Silverstripe docs, I'd love to see more information about the yaml configuration system... It's pretty anorexic as it stands.
885: [21:29:38] <UncleCheese> Yeah, we get that a lot, EasyCo
886: [21:30:07] <UncleCheese> Is there something you encounter often that you feel needs documenting?
887: [21:30:20] <UncleCheese> or just how to better take advantage of the config in general?
888: [21:30:53] <EasyCo> Well I've read through this: http://doc.silverstripe.org/en/developer_guides/configuration/configuration/
889: [21:32:04] <EasyCo> And what remains unclear to me is: do the yml file names make any difference?
890: [21:32:08] <Hailwood> If I have $has_one = ['Image' => 'Image'] then in return new RequiredFields([...]) do I want Image ImageID, or would either not work?
891: [21:32:29] <UncleCheese> EasyCo no.. file name doesn't matter
892: [21:32:40] <wmk> Hailwood, i'd go for ImageID
893: [21:32:41] <UncleCheese> the "Name" field in your yaml file does
894: [21:33:24] * antmas has joined #silverstripe
895: [21:33:31] <EasyCo> Haha, actually now that I asked it, I just saw the blue paragraph with that info
896: [21:34:10] <antmas> moin all!
897: [21:34:13] <antmas> o/
898: [21:34:15] <antmas> \o
899: [21:35:55] <EasyCo> I'd actually breakout the yml stuff into it's own page
900: [21:36:56] <catcher> My biggest problem with the yml config is knowing what properties are configurable with it.
901: [21:36:58] <Ryan-Toast> muskie9, SphereSilver: I just ended up setting the file, and a button onAfterWrite of the PDF generation: http://www.gfycat.com/EllipticalInbornAntelopegroundsquirrel
902: [21:37:48] <muskie9> that looks real nice Ryan-Toast
903: [21:37:52] <Ryan-Toast> muskie9: Chur
904: [21:39:34] <antmas> Ryan-Toast: that looks awesome man, nice work
905: [21:41:51] <Ryan-Toast> antmas: It’s open source, I’ll eventually have it finished as a little client area for myself and anyone else who wants to use it: https://github.com/Rhym/client-portal
906: [21:42:02] <EasyCo> catcher: I guess you'd be looking for anything that has config()-> so you know it's going through the config system to retrieve a value...
907: [21:42:04] <Ryan-Toast> Just to generate contracts and quotes and shit.
908: [21:42:28] <Ryan-Toast> Maybe even handle revision forms.
909: [21:42:34] <antmas> Ryan-Toast: did you just add that to git?
910: [21:42:39] <catcher> EasyCo, right, digging through source is the only way to know.
911: [21:42:46] <Ryan-Toast> antmas: “10 days ago"
912: [21:43:03] <antmas> Ryan-Toast: nice :D
913: [21:43:08] <EasyCo> catcher: True.
914: [21:44:31] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
915: [21:45:12] <antmas> wtf
916: [21:45:23] <antmas> I don't see change times in at github
917: [21:45:30] <antmas> gg IE
918: [21:47:16] <Ryan-Toast> lol
919: [21:51:36] <zippy> antmas: not down at the ground?
920: [21:51:51] <antmas> zippy: not really a big match :/
921: [21:52:00] <antmas> plus 'important' meetings
922: [21:55:10] * greenman_ quit (Remote host closed the connection)
923: [21:55:31] * Colin[pi] has joined #silverstripe
924: [21:55:36] * Pyromanik has joined #silverstripe
925: [21:55:43] <Pyromanik> Morena!
926: [21:56:33] <antmas> Colin[pi]: Pyromanik o/
927: [21:56:42] <Pyromanik> \o antmas
928: [21:57:48] <antmas> Pyromanik: Colin[pi] https://gfycat.com/SociableAdmiredAchillestang
929: [21:58:27] * Pyromanik likes this
930: [22:00:05] <Pyromanik> lol gawd, post on facebook about "how some lass randomly wanted to know if you were single." 3 seconds later: *the previous lass that randomly wanted to know if you were single likes this.*
931: [22:00:54] <Ryan-Toast> Pyromanikl: yeah she does.
932: [22:01:46] * Colin[pi] quit ()
933: [22:02:07] * Colin[pi] has joined #silverstripe
934: [22:02:49] <Pyromanik> Ryan-Toast, http://iforce.co.nz/i/qmzfrmt0.nfi.png
935: [22:03:23] <antmas> Pyromanik: the A is cutoff
936: [22:03:27] <antmas> Pyromanik: fixitpls
937: [22:03:37] <Pyromanik> antmas, carefactor0; like a bawss
938: [22:03:42] <antmas> XD
939: [22:03:47] <Ryan-Toast> Pyromanik: It’s weird now that I’m single, I used to just not give a fuck in town, but now I’m like “I kind of want to touch your butt"
940: [22:04:00] <Pyromanik> lol
941: [22:04:24] <Pyromanik> Ryan-Toast, the important thing is to ask.
942: [22:04:30] <Ryan-Toast> Pyromanik: yup
943: [22:04:35] <Pyromanik> first.
944: [22:04:49] <Ryan-Toast> “Hey, I like your butt; can I touch it?"
945: [22:04:50] <Pyromanik> http://cdn.funnie.st/wp-content/uploads/2013/09/like-a-boss-4.jpg
946: [22:06:51] * antmas sends invoice to client
947: [22:07:02] <Colin[pi]> antmas: :D
948: [22:07:08] <Colin[pi]> now, the wait
949: [22:07:08] <Pyromanik> hahahahahaha, oh gawd. Ryan-Toast Moments later... "I always thought you were gorgeous" -.- thanks mum.
950: [22:07:14] <Pyromanik> Colin[pi], :<
951: [22:07:19] <Ryan-Toast> Pyromanik: lol
952: [22:07:28] * novaweb has joined #silverstripe
953: [22:07:31] <Colin[pi]> oh let me see if I've been paid the monies I was due yesty
954: [22:07:33] <Pyromanik> street cred ++, moments later: street cred -- --
955: [22:07:37] * antmas twiddles thumbs
956: [22:07:38] <Pyromanik> lulz :P
957: [22:07:39] <Colin[pi]> IM SURE THE CLIENT WAS PROMPT
958: [22:07:57] <antmas> Colin[pi]: lol he was!
959: [22:08:08] <antmas> ha, 'I will double it if I can pay you cash this time'
960: [22:08:17] <Colin[pi]> OH that's strange, it hasn't been paid
961: [22:08:23] <Colin[pi]> that almost never happens
962: [22:08:24] <Colin[pi]> -_-
963: [22:08:30] <Pyromanik> clients gonna client!
964: [22:08:37] <Colin[pi]> ^ x1000
965: [22:08:42] <antmas> I need that tshirt
966: [22:08:53] <Colin[pi]> antmas: lol wear it to every meeting
967: [22:08:58] <antmas> :P
968: [22:09:00] <Pyromanik> Colin[pi], time for a prompt lawyer letter?
969: [22:09:27] <Pyromanik> fuck'n aye!
970: [22:09:42] * Pyromanik dreams up money making app
971: [22:10:14] <Colin[pi]> Pyromanik: I have 3 letters following non payment. 1. Friendly. 2. Terse. 3. FUCKING PAY ALREADY OR ELSE.
972: [22:10:22] <Pyromanik> sync with xero, match the monies. Set a time from invoice. Automagically set update notice on send. Cancel when payment comes in.
973: [22:10:24] <antmas> Pyromanik: do Uber, but for walking people while holding their hand to their destination
974: [22:10:31] <Pyromanik> have a 2 stage system for wins.
975: [22:10:44] <Pyromanik> 1 invoice, 2 reminder, 3 lawyer letter
976: [22:12:47] <Colin[pi]> Pyromanik: isn't it amazing how quiet they get when payment is due?
977: [22:13:07] <Colin[pi]> before bill: emails every 5 fucking seconds, after bill: *sound of crickets*
978: [22:13:37] <Ryan-Toast> Colin[pi]: I have that with a deposit atm.
979: [22:13:41] <Pyromanik> how much they whinge before that point, and within 5 seconds whenever something bad happens like your host has issues, or their ISP has DNS issues, so they can't access and think it's down?
980: [22:13:49] <antmas> Colin[pi]: I don't get that, I get the opposite
981: [22:13:52] <antmas> never email
982: [22:13:56] <antmas> then when payment is due
983: [22:13:59] <Ryan-Toast> “We’re so keen blah blah blah, here is all our shit” Okay, chuck in the 50% deposit and I’ll get started…
984: [22:14:00] <antmas> they try fight it :P
985: [22:14:05] <Colin[pi]> antmas: lol
986: [22:14:20] <antmas> Ryan-Toast: yeah I do 50/50 start and finish
987: [22:14:22] <Pyromanik> Ryan-Toast, haha, rude.
988: [22:14:25] <Pyromanik> but true.
989: [22:14:30] <Ryan-Toast> I just have a clause in my contracts that if they pay late they have to pay more.
990: [22:14:36] <Pyromanik> basically HOW FUCKING SERIOUS ARE YOU, BITCHES?
991: [22:14:41] <Ryan-Toast> I just send a friendly reminder of that and they pay pretty quick :)
992: [22:14:47] <Colin[pi]> Ryan-Toast: think ima have to add this too
993: [22:14:53] <Ryan-Toast> Colin[pi]: mos def
994: [22:14:54] <Pyromanik> Colin[pi], is best.
995: [22:15:04] <Pyromanik> what kind of fool doesn't do that already?
996: [22:15:11] <Ryan-Toast> Colin[pi]: I do like 10% each month it’s late
997: [22:15:15] <Pyromanik> you can even seem like a good cunt by giving a grace period
998: [22:15:36] <Pyromanik> of say... a week or two. But then you just decrease your billing cycle to compensate, and boom! :P
999: [22:15:52] <antmas> Colin[pi]: I do the same
1000: [22:15:56] <antmas> 10% per month of being late
1001: [22:16:08] <Colin[pi]> right, I'm adding this clause
1002: [22:16:23] <Pyromanik> antmas, compounding, or simple?
1003: [22:16:33] <antmas> simple
1004: [22:22:05] * willr has joined #silverstripe
1005: [22:23:27] * spronk2 quit (Quit: bleep bleep bloop bloop)
1006: [22:23:55] * spronk2 has joined #silverstripe
1007: [22:24:14] <ss-helper> Re: Cannot Edit or Post New Blog Entry - http://www.silverstripe.org/community/forums/blog-module-forum/show/20689#post400567
1008: [22:24:20] <antmas> spronk2: https://gfycat.com/SociableAdmiredAchillestang
1009: [22:24:37] <spronk2> :D
1010: [22:25:21] * Guits quit (Ping timeout: 246 seconds)
1011: [22:25:32] <spronk2> http://media.giphy.com/media/tuvMgAPzxaQBq/giphy.gif
1012: [22:26:32] <antmas> :P
1013: [22:26:48] <Colin[pi]> spronk2: http://i.imgur.com/NUuTU40.gif
1014: [22:27:34] <antmas> that was a great movie
1015: [22:27:44] * catcher quit (Quit: Leaving)
1016: [22:27:45] <Colin[pi]> antmas: was indeed
1017: [22:27:54] <spronk2> yeahh
1018: [22:28:13] * Sticks has joined #silverstripe
1019: [22:28:58] <Pyromanik> one less blog in the world, hooraay!
1020: [22:29:34] <spronk2> ?
1021: [22:30:02] <wmk> Pyromanik, this message was in silverstripe forum, not in Wordderp forum
1022: [22:30:59] <Pyromanik> either way wmk, most blog posts are rather inane.
1023: [22:31:15] <wmk> most stuff on internet
1024: [22:31:24] <spronk2> what blog, pyro?
1025: [22:31:44] <Pyromanik> <ss-helper> Re: Cannot Edit or Post New Blog Entry - http:/
1026: [22:31:52] <spronk2> lol
1027: [22:34:11] <adrexia> Pyromanik, blog posts also increase the amount of technical help there is out there
1028: [22:34:30] <adrexia> so, perhaps we should enquire as to the blog's topic before offering help? ;)
1029: [22:34:33] <Pyromanik> adrexia, rarely.
1030: [22:34:39] * adrexia shrugs
1031: [22:34:54] <Pyromanik> it was a jestful poke, not a serious comment of course adrexia :>
1032: [22:34:59] <adrexia> a lot of my questions have been answered in blog posts by someone
1033: [22:35:08] <adrexia> so was my suggestion ;)
1034: [22:38:16] <Blacklite> http://i.imgur.com/gUOyLO9.png
1035: [22:38:30] <Blacklite> spotify regularly accuses me of being an alcoholic
1036: [22:39:01] <Ryan-Toast> Blacklite: lol!
1037: [22:39:13] <Ryan-Toast> Mine always recommends the angry playlists :P
1038: [22:39:23] <Blacklite> the funny thing is i was at the pub last night
1039: [22:39:40] <Ryan-Toast> ha!
1040: [22:39:54] <Blacklite> i'm not hungover, but i do wonder if it somehow knows
1041: [22:42:07] * kerosene quit (Quit: brb)
1042: [22:42:48] <micmania1> I think I might become a professional alcoholic.
1043: [22:43:02] <muskie9> micmania1 u too?!
1044: [22:43:06] <antmas> micmania1: are you not already English?
1045: [22:43:16] <micmania1> antmas: good point :p
1046: [22:43:32] <antmas> :P
1047: [22:43:32] * kerosene has joined #silverstripe
1048: [22:44:33] * MichalKleiner has joined #silverstripe
1049: [22:50:24] <Stomach> I've been using grooveshark and had it on radio overnight and now I'm a country folk fan
1050: [22:50:26] <Stomach> :(
1051: [22:51:35] <Blacklite> ^ could happen to anyone
1052: [22:52:09] * camfindlay quit (Quit: camfindlay)
1053: [22:53:50] <zippy> Stomach: will have to watch your talk with the site tree thing, got a large 2k page site coming up...
1054: [22:54:07] <Stomach> zippy - just use it
1055: [22:54:09] <Stomach> easy peasy
1056: [22:55:23] <micmania1> Stomach: admission is the first step to recovery
1057: [22:55:32] <Stomach> :D
1058: [22:55:52] <Stomach> I am a user experience addict
1059: [22:56:04] <Stomach> my partner has a masters in psychology and hates the term user experience
1060: [22:56:07] <micmania1> wow. Some things are not okay to say in public
1061: [22:56:12] <Stomach> so I'm going to put it in my job title
1062: [22:56:21] <Pyromanik> adrexia, yeah, it was more a poke at "This guy did something stupid, and you WON'T BELIEVE what happens next!!!11??****!! BOLD CAPITAL TEXT"
1063: [22:57:06] <Stomach> hey guys, I have a license question
1064: [22:57:41] <Stomach> if you are building something based on a code base which is GNU GPL and you release it (like a website online), you HAVE to release the source code for that product
1065: [22:57:42] <zippy> UX guru?
1066: [22:57:43] <Stomach> correct?
1067: [22:58:57] <Pyromanik> Stomach, yup.
1068: [22:59:05] <Stomach> Pyromanik - thought so
1069: [22:59:21] <Stomach> we've got a client who has an old site built on opencart and the company wont give them the code
1070: [22:59:24] <Pyromanik> AGPL and v3 try to do something around that though, I'm not sure. You'll have to read specifics.
1071: [22:59:31] <mobiusnz> http://stackoverflow.com/questions/4526595/using-gpl-licensed-php-code-in-a-commercial-hosted-web-application
1072: [23:00:02] * DimiStripe quit (Quit: DimiStripe)
1073: [23:00:08] <mobiusnz> if you host it yourself, you're not distributing the code
1074: [23:00:15] <Pyromanik> Stomach, they could argue that while opencart is free, their code isn't. But they'd have to supply you with the core code RUNNING the site to acertain if it was ever modified.
1075: [23:00:15] <mobiusnz> so you don't have to open source your code
1076: [23:00:51] <Pyromanik> Stomach, much like SS could be GPL, but mysite doesn't necessarially have to be (but again there are some things about the GPL that make it a bit ambiguious to me here)
1077: [23:01:12] <Stomach> mobiusnz - I thought it was if you distribute the application then you have to open source it
1078: [23:01:19] <Stomach> which they are doing by making it available
1079: [23:01:21] <Pyromanik> mobiusnz, you're distributing the code by way of exposing the application for people to use. Thus the code must be available too.
1080: [23:01:43] <Pyromanik> but the web has it's own idiosyncrasies there in that you've basically got no way to tell if it's actually the code running.
1081: [23:02:02] <Blacklite> you're not distributing the code though, you're distributing the end result
1082: [23:02:11] <mobiusnz> ^^
1083: [23:02:13] <Stomach> if you write any code and it uses code under GPL, then doesn't that code have to be GPL too?
1084: [23:02:15] <Pyromanik> Yeah it's an ambiguious cunt.
1085: [23:02:18] <Blacklite> :)
1086: [23:02:22] <Blacklite> bbl yum cha!
1087: [23:02:24] <Pyromanik> that's why v3 was written
1088: [23:02:49] <Pyromanik> Stomach, if you modify GPL code, it must also be GPL, yes.
1089: [23:02:56] <Pyromanik> equal or later version.
1090: [23:03:32] <mobiusnz> correct, but if you just *use* gpl code (ie you include it somehow), your code can be whatever it wants
1091: [23:03:46] <mobiusnz> as long as you never distribute the gpl code
1092: [23:04:29] <mobiusnz> but really, the answer to it all is get a lawyer
1093: [23:04:41] <mobiusnz> it's too ambiguous for me
1094: [23:04:48] <Pyromanik> http://en.wikipedia.org/wiki/Affero_General_Public_License
1095: [23:04:59] <Pyromanik> 'loophole'
1096: [23:05:16] <Pyromanik> err, 'application service provider loophole'
1097: [23:05:21] <Pyromanik> ASP Loophole
1098: [23:05:46] <mobiusnz> I prefer the WTFPL
1099: [23:06:24] <mobiusnz> http://www.wtfpl.net/txt/copying/
1100: [23:07:24] <Pyromanik> It's the GPL v3, not AGPLv3 though Stomach.
1101: [23:09:24] <ss-helper> Uncaught Zend_Locale_Exception - http://www.silverstripe.org/community/forums/general-questions/show/101293
1102: [23:10:29] * camfindlay has joined #silverstripe
1103: [23:10:40] * travis-ci has joined #silverstripe
1104: [23:10:41] <travis-ci> silverstripe/silverstripe-framework#4310 (3.1 - f0cc751 : Daniel Hensby): The build passed.
1105: [23:10:41] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/2c752adf5cfe...f0cc751d7516
1106: [23:10:41] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/53115969
1107: [23:10:41] * travis-ci has left #silverstripe
1108: [23:15:16] * cupcake quit (Ping timeout: 246 seconds)
1109: [23:16:45] <mahfuz> Hi Guys. One question. I can use MemberDecorator to add extra fields with Member Profile using private static $db = array(.............); My question is can I use private static $has_one = array(............); to relate it to a dataobject?
1110: [23:17:05] * travis-ci has joined #silverstripe
1111: [23:17:06] <travis-ci> tractorcow/sapphire#55 (pulls/3.2/api-zero-pagination - 9367fd2 : Damian Mooyman): The build has errored.
1112: [23:17:06] <travis-ci> Change view : https://github.com/tractorcow/sapphire/compare/227ea8295334^...9367fd2456a1
1113: [23:17:06] <travis-ci> Build details : http://travis-ci.org/tractorcow/sapphire/builds/53119095
1114: [23:17:06] * travis-ci has left #silverstripe
1115: [23:17:37] <Colin[pi]> mahfuz: sure can
1116: [23:18:40] <mahfuz> Thanks Colin[pi] just wanted to confirm
1117: [23:18:59] * muskie9 is now known as muskie9_afk
1118: [23:19:17] <Stomach> confusing.
1119: [23:20:09] <Pyromanik> Stomach, quite.
1120: [23:22:47] <ss-helper> Re: [silverstripe-dev] Re: SilverStipe UserHelp card sort discussion - https://groups.google.com/d/msg/silverstripe-dev/XU40-UKcD8M/QvjW-Ta7EnoJ
1121: [23:24:27] <ss-helper> Silverstripe Developer for funded Start-up in Auckland - http://www.silverstripe.org/community/forums/connect-with-other-silverstripe-members/show/101294
1122: [23:31:51] * wracu_ quit (Quit: Leaving)
1123: [23:35:26] <Pyromanik> Give 'us' a call *provides mobile number*
1124: [23:35:31] <Pyromanik> -.-
1125: [23:40:45] * camfindlay quit (Quit: camfindlay)
1126: [23:41:28] <micmania1> (╯°□°)╯︵ ┻━┻
1127: [23:43:08] <Pyromanik> micmania1, I suppose context is important. In the corporate environment in NZ it's a stupid but normal thing (for one man bands). In North East England it's a normal thing, always, every time.
1128: [23:43:38] <micmania1> Pyromanik: context for what?
1129: [23:45:30] <Pyromanik> Me=>Us, I=>We
1130: [23:45:48] * wmk quit (Ping timeout: 252 seconds)
1131: [23:47:21] <simon_w|air> Pyromanik, Colin[pi] does it too
1132: [23:47:53] <Pyromanik> Yeh but he is a one man band simon_w|air
1133: [23:48:43] <antmas> I always say give 'us' a call
1134: [23:49:14] <simon_w|air> I just say "Email me"
1135: [23:49:17] <simon_w|air> Screw calling
1136: [23:49:53] * muskie9_afk is now known as muskie9
1137: [23:50:06] <veb> Working in this environment means that you will have to obtain and continually maintain a TOP SECRET security clearance as your day to day work involves working within a highly sensitive environment.
1138: [23:50:12] <veb> http://www.trademe.co.nz/jobs/it/security/listing-848629774.htm
1139: [23:50:14] <veb> so quaint
1140: [23:50:54] <simon_w|air> veb, sounds like almost every tech job here
1141: [23:50:57] <antmas> lol those 'requirements'
1142: [23:51:04] <antmas> NCEA bruh
1143: [23:51:47] <veb> "army life"
1144: [23:51:49] <veb> hehe
1145: [23:51:53] <veb> windows XP
1146: [23:51:56] <veb> LOIC?
1147: [23:51:57] <veb> :P
1148: [23:58:26] <Pyromanik> simon_w|air> I just say "Email me"
1149: [23:58:27] <Pyromanik> <simon_w|air> Screw calling <--- this!
1150: [23:59:32] <Pyromanik> bed.
1151: [23:59:37] * Pyromanik quit (Quit: Leaving)

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