#silverstripe IRC Log

IRC log for 15 January 2013

All timestamps are in UTC.

1: [00:01:00] <terryapodaca> can anyone tell me what I am doing wrong here:
2: [00:01:00] <terryapodaca> var list = data == null ? [] : (data.users instanceof Array ? data.user : [data.user]);
3: [00:02:00] <terryapodaca> where data is being passed via an ajax call
4: [00:02:00] <terryapodaca> data shows 5 objects but I can't see them past that
5: [00:14:00] * DesignerX has joined #silverstripe
6: [00:16:00] <FrozenFire> Not sure how to get it done
7: [00:16:00] <FrozenFire> So... I need to accept a custom action on my ModelAdmin
8: [00:19:00] <terryapodaca> look up
9: [00:21:00] * FrozenFire just sees stucco
10: [00:21:00] * FrozenFire tilts his head upwards
11: [00:25:00] * catcher quit (Quit: Leaving)
12: [00:28:00] * FrozenFire drums his fingers
13: [00:35:00] * terryapodaca has left #silverstripe
14: [00:36:00] * FrozenFire drums his fingers heavily
15: [00:36:00] <FrozenFire> Goddamn ModelAdmin
16: [00:36:00] <FrozenFire> You're screwy
17: [00:39:00] * chillu quit (Quit: chillu)
18: [00:49:00] <FrozenFire> :\
19: [00:49:00] <FrozenFire> Something's screwy. Very screwy.
20: [00:50:00] <FrozenFire> The HTML of it seems entirely good.
21: [00:50:00] <FrozenFire> I have made my own sort of iframe form for handling a complex task
22: [00:50:00] <FrozenFire> But the action of the form is apparently, somehow, malformed
23: [00:51:00] <FrozenFire> Because, despite the HTML saying it's present as expected, Chrome's inspector blanks it, and the action ends up resolving to ""
24: [00:53:00] <FrozenFire> If I have the form in any other context... it works
25: [00:56:00] <FrozenFire> Or not actually any other context
26: [00:56:00] <FrozenFire> It doesn't like the iframe...
27: [01:00:00] * DesignerX quit (Ping timeout: 255 seconds)
28: [01:03:00] * simon__w has joined #silverstripe
29: [01:04:00] * ss23_ has joined #silverstripe
30: [01:04:00] * simon_w quit (*.net *.split)
31: [01:04:00] * ss23 quit (*.net *.split)
32: [01:30:00] <dnz-> FrozenFire: you dont know how to html? amazing
33: [01:30:00] <dnz-> Pyromanik: FrozenFire cant even lift html
34: [01:31:00] * Pyromanik just lifted photoshop
35: [01:31:00] <Pyromanik> have a certificate to prove it :P
36: [01:32:00] <dnz-> did you photoshop yourself a certificate to prove your proness at photoshop
37: [01:32:00] <dnz-> cos thats pretty much the same thing as a genuine certificate in that area
38: [01:32:00] <dnz-> laminate it.
39: [01:32:00] <dnz-> wax seal maybe
40: [01:32:00] <Pyromanik> we learnt about the dreamweavers
41: [01:33:00] <Pyromanik> and how it adds 174kb javascript files for dropdown menus.
42: [01:33:00] <dnz-> dream... weaver.. somehting abuot that is familiar
43: [01:33:00] <dnz-> from like, a past life maybe
44: [01:33:00] <dnz-> as if it was popular during prohibition in the US
45: [01:34:00] <Pyromanik> Back when Macromedia were roll'n like bosses
46: [01:35:00] <Pyromanik> and flash could only draw rudimentary shapes
47: [01:35:00] <dnz-> haha
48: [01:35:00] <dnz-> tween the fuck out of that shit
49: [01:35:00] <dnz-> back when fireworks was a competitor product to photoshop
50: [01:36:00] <dnz-> *vectors
51: [01:36:00] <dnz-> drawin all the dectors up in this
52: [01:36:00] <dnz-> i mean corel draw bitch
53: [01:36:00] <dnz-> lols
54: [01:36:00] <Pyromanik> you mean freehand?
55: [01:36:00] <dnz-> and you had to use imageready to make animations
56: [01:42:00] * Emil_Blume quit (Ping timeout: 246 seconds)
57: [01:43:00] * Emil_Blume has joined #silverstripe
58: [01:44:00] * irogue checks his email
59: [01:44:00] * irogue grins in tankr's general direction
60: [01:45:00] <Pyromanik> rofl
61: [01:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/703c10aa0eaf...80feb8c0b4b5
62: [01:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4154903
63: [01:46:00] * travis-ci has left #silverstripe
64: [01:46:00] <Pyromanik> HNY and all that shit.
65: [01:46:00] <Pyromanik> http://www.iawriter.com/
66: [01:46:00] <Pyromanik> pay $5 - $10 for notepad.
67: [01:46:00] <Pyromanik> what are you up to irogue?
68: [01:46:00] * travis-ci has joined #silverstripe
69: [01:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#1169 (3.1 - 80feb8c : Ingo Schommer): The build was broken.
70: [01:48:00] * nicolaas has joined #silverstripe
71: [01:49:00] <nicolaas> i have a quick question... if we have SiteTree::get()->byID(9999999); can it return false, or does it always return an object?
72: [01:51:00] <Pyromanik> empty object
73: [01:51:00] <Pyromanik> DataList iirc
74: [01:51:00] <nicolaas> wishing ya;ll a happy 2013333333333 of course
75: [01:51:00] <nicolaas> does an empty object return true?
76: [01:51:00] <Pyromanik> :)
77: [01:51:00] <nicolaas> is there such a thing as a DataList iirc?
78: [01:52:00] <irogue> Pyromanik: spotting that swipestripe for ss3 has been released :)
79: [01:52:00] <nicolaas> I mean if I have: if($emptyObject) {
80: [01:52:00] <nicolaas> nice
81: [01:52:00] <nicolaas> i am working on e-commerce 3.0
82: [01:52:00] <nicolaas> changing all the DataObject::gets....
83: [01:53:00] <nicolaas> but I just started to doubt if byID (First()) can return false....
84: [01:59:00] <nicolaas> just to answer my own question: i reckon it can return false.
85: [02:23:00] <Pyromanik> irogue: ah sweeeet
86: [02:23:00] <Pyromanik> tankr is a champion
87: [02:27:00] * travis-ci has left #silverstripe
88: [02:27:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/80feb8c0b4b5...a93f8841d7d0
89: [02:27:00] * travis-ci has joined #silverstripe
90: [02:27:00] <travis-ci> [travis-ci] silverstripe/sapphire#1170 (3.1 - a93f884 : Jeremy Bridson): The build passed.
91: [02:27:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4154977
92: [02:29:00] <Pyromanik> nicolaas: pretty sure it returns an empty DataList
93: [02:39:00] * ratcat quit (Ping timeout: 272 seconds)
94: [02:53:00] <nicolaas> Pyromanik: it returns false in an if statement...
95: [02:53:00] <nicolaas> AFAIK
96: [02:55:00] <Pyromanik> I guess, yeah.
97: [02:55:00] <nicolaas> what is the best way to filter for a class name ? e.g. SiteTree::get()->Filter("ClassName", "MyClass") (if you can not do MyClass::get())?
98: [02:56:00] <Pyromanik> I wonder if Self::get() would work
99: [03:02:00] <nicolaas> I mean, it works, but it will also return MyExtendedPage.
100: [03:02:00] <dnz-> ur
101: [03:02:00] <nicolaas> I dont think it will.
102: [03:08:00] * travis-ci has left #silverstripe
103: [03:08:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4155169
104: [03:08:00] * travis-ci has joined #silverstripe
105: [03:08:00] <travis-ci> [travis-ci] silverstripe/sapphire#1171 (3.1 - 27d2f75 : Ingo Schommer): The build was broken.
106: [03:08:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a93f8841d7d0...27d2f75d9dc9
107: [03:19:00] * Pyromanik has left #silverstripe
108: [03:25:00] * nicolaas quit (Quit: ChatZilla 0.9.89 [Firefox 18.0/20130107224407])
109: [03:34:00] * instabil quit (Read error: Connection reset by peer)
110: [03:37:00] * ApacheTiger37 has joined #silverstripe
111: [03:38:00] <ApacheTiger37> Newbie with a newbie question.
112: [03:39:00] <ApacheTiger37> Is there a way to format the searchable_fields, say have a date field that you can set the dateformat, datavalueformat and showcalendar for?
113: [03:49:00] <ApacheTiger37> is there any way to get the form fields for the searchable_fields and modify them prior to rendering from within the extended DataObject class.
114: [03:53:00] <ApacheTiger37> Is it as easy as overriding the searchableFields function?
115: [03:55:00] * ApacheTiger37 quit (Quit: Page closed)
116: [04:02:00] * nickmolhoek quit (Quit: nickmolhoek)
117: [04:04:00] * DigNZ quit (Quit: DigNZ)
118: [04:17:00] * DesignerX has joined #silverstripe
119: [04:26:00] * jrthomer has joined #silverstripe
120: [04:40:00] * guci0 has joined #silverstripe
121: [04:53:00] * cloph_away1 quit (Ping timeout: 246 seconds)
122: [04:57:00] * cloph_away has joined #silverstripe
123: [04:57:00] * SightUnseen has left #silverstripe
124: [04:57:00] * SightUnseen has joined #silverstripe
125: [05:03:00] * DesignerX quit (Ping timeout: 248 seconds)
126: [05:09:00] * guci0 quit (Ping timeout: 245 seconds)
127: [05:34:00] * ss23_ is now known as ss23
128: [05:37:00] * dendeffe has joined #silverstripe
129: [05:43:00] * EPIK quit (Ping timeout: 276 seconds)
130: [05:47:00] * congii has joined #silverstripe
131: [06:00:00] * ApacheTiger37 has joined #silverstripe
132: [06:00:00] <ApacheTiger37> Hello
133: [06:01:00] <ApacheTiger37> do you have time to answer a quickone?
134: [06:01:00] <ApacheTiger37> Is anyone hanging around tonight/today?
135: [06:01:00] <simon__w> Evening
136: [06:01:00] * simon__w is now known as simon_w
137: [06:01:00] <simon_w> Probably
138: [06:02:00] <ApacheTiger37> I have one dataobject emailcampaign that has a one to many relationship with EmailCondition.
139: [06:03:00] <ApacheTiger37> but i cannot get /dev/build to recognize the relationship i have has_many in EmailCampaign and belongs_to in EmailCondition
140: [06:03:00] <ApacheTiger37> I want the cms to automatiocally build the form and connect the two.
141: [06:03:00] <simon_w> You need a has_one in EmailCondition
142: [06:04:00] <ApacheTiger37> if i do the has_one, when i add the GridField to the EmailCampaign then they still have to choose the EmailCampaign even though they are on it.
143: [06:04:00] <simon_w> no they don't, and you should probably remove the field within your getCMSFields
144: [06:05:00] <ApacheTiger37> just not really intuitive.
145: [06:05:00] <ApacheTiger37> okay thanks
146: [06:05:00] <ApacheTiger37> easy enough
147: [06:05:00] <ApacheTiger37> so just remove the field in getcmsfields and then they don't get that choice and it is smart.
148: [06:06:00] <simon_w> no
149: [06:06:00] <ApacheTiger37> do i need belongs_to still?
150: [06:06:00] <simon_w> a has_many needs a has_one
151: [06:07:00] <simon_w> a belongs_to is a singular reverse has_one
152: [06:07:00] <simon_w> it's kinda like getting the first item in a has_many
153: [06:07:00] <simon_w> that's it
154: [06:07:00] <ApacheTiger37> i see, then what does the belongs_to do?
155: [06:08:00] <ApacheTiger37> so if i wanted to go through the condition to get to the campaign i would need it.
156: [06:08:00] <simon_w> No, you would use the has_one
157: [06:09:00] * guci0 has joined #silverstripe
158: [06:09:00] <ApacheTiger37> thanks again.
159: [06:09:00] <ApacheTiger37> okay, i don't get the need for a belongs_to, but i guess it will come to me later.
160: [06:09:00] <simon_w> You almost never need a belongs_to
161: [06:10:00] <guci0> :)
162: [06:11:00] * BPower has joined #silverstripe
163: [06:12:00] <BPower> Hello everyone :) I'd like to *move* directories within the assets admin. Is this possible? Any way to enable it?
164: [06:19:00] <ApacheTiger37> trying $fields->remove{Filed}('EmailCampaign'); and $fields->remove{Field}('CampaignID'); in getCMSFields are both throwing errors in file FieldList.php
165: [06:20:00] <ApacheTiger37> Should I try overriding the scaffoldFormFields?
166: [06:21:00] * ApacheTiger37 quit (Quit: Page closed)
167: [06:21:00] <simon_w> ApacheTiger37, $fields->removeFieldByName('CampaignID')
168: [06:22:00] * ApacheTiger37 has joined #silverstripe
169: [06:22:00] <simon_w> ApacheTiger37, $fields->removeFieldByName('CampaignID')
170: [06:22:00] * priithansen has joined #silverstripe
171: [06:23:00] <simon_w> ApacheTiger37, you want the name of the relation ID
172: [06:23:00] <ApacheTiger37> They all give me an error on line 245 of FieldList.php file. I did the EmailCampaign and EmailCampaignID
173: [06:23:00] <ApacheTiger37> Simon I tried removing the field in the getCMSFields with remove and removeFieldByName passing both class name and the class name ID.
174: [06:24:00] <simon_w> No
175: [06:24:00] <simon_w> What's the error?
176: [06:24:00] <ApacheTiger37> what about overriding the scaffoldFormFields would that give me better control?
177: [06:24:00] <simon_w> And what's the name of the has_one?
178: [06:26:00] <ApacheTiger37> $fields = parent::getCMSFields(); $fields->removeByName('EmailCampaign');
179: [06:26:00] <ApacheTiger37> public static $has_one = array( 'EmailCampaign' => 'EmailCampaign', );
180: [06:26:00] <ApacheTiger37> $fields = parent::getCMSFields(); $fields->removeByName('EmailCampaignID');
181: [06:27:00] <ApacheTiger37> Both failed.
182: [06:28:00] <ApacheTiger37> hell
183: [06:28:00] <simon_w> Yes, what's the error?
184: [06:28:00] <ApacheTiger37> hello
185: [06:29:00] <ApacheTiger37> error on line 295 in FieldList.php
186: [06:29:00] * BPower_ has joined #silverstripe
187: [06:29:00] <simon_w> That's the location, not the error
188: [06:30:00] <ApacheTiger37> it doesn't give an error, just fails and shows a little black box in top right corner of browser.
189: [06:30:00] * BPower quit (Read error: Connection reset by peer)
190: [06:31:00] <ApacheTiger37> Error at line 295 of /home/awakeningsoul/www/awakeningsoul.digitalresourcestn.com/framework/forms/FieldList.php
191: [06:31:00] <simon_w> so look at the response from the server in your browser's debug console
192: [06:32:00] <ApacheTiger37> here is the line in the file user_error("FieldList::addFieldToTab() Tried to add a tab to object" . " '{$parentPointer->class}'{$withName} - '$part' didn't exist.", E_USER_ERROR);
193: [06:32:00] <simon_w> though, assuming you're using 3.0.3, that's in a method that only gets called when adding fields
194: [06:33:00] <ApacheTiger37> looks like it doesn't think it exists.
195: [06:36:00] <simon_w> That's for adding a field. Do you have any addFieldToTab() calls?
196: [06:39:00] <ApacheTiger37> No, no adds. i immediately return $fields.
197: [06:40:00] <ApacheTiger37> public function getCMSFields () { $fields = parent::getCMSFields(); $fields->removeByName('EmailCampaignID'); return $fields;
198: [06:43:00] <ApacheTiger37> each time
199: [06:43:00] <ApacheTiger37> i have flushed admin too
200: [06:44:00] <ApacheTiger37> Is there a way to have that emailed?
201: [06:44:00] <simon_w> Can you look at the response from the server and get the full error message and callstack?
202: [06:45:00] <ApacheTiger37> I have to download my logs otherwise.
203: [06:46:00] <ApacheTiger37> It is 2 AM here right now. I think I am going to just give up till tomorrow.
204: [06:46:00] <ApacheTiger37> I appreciate your efforts though.
205: [06:48:00] <simon_w> What browser are you using?
206: [06:49:00] <ApacheTiger37> My eyes are cross-eyed LOL
207: [06:49:00] <ApacheTiger37> Firefox 18
208: [06:49:00] <ApacheTiger37> Mac OSX
209: [06:50:00] <ApacheTiger37> probably just a syntax error
210: [06:50:00] <simon_w> Install Firebug, enable the Net tab, do the request, expand the response, look at the body
211: [06:50:00] <ApacheTiger37> does web developer do it too or just firebug?
212: [06:51:00] <simon_w> The toolbar doesn't do it
213: [06:51:00] <ApacheTiger37> okay, i have firebug turned on.
214: [06:55:00] <ApacheTiger37> nice tool.
215: [06:55:00] <ApacheTiger37> my issue was actuallly another class
216: [06:56:00] <ApacheTiger37> sorry to waste your time,but i learned a lot.
217: [06:56:00] <needinfo> Hello, everyone
218: [06:56:00] * needinfo has joined #silverstripe
219: [06:56:00] <ApacheTiger37> the error was in the emailcampaign where i was adding the gridfield i no longer needed.
220: [06:57:00] <simon_w> Yeah, getting the actual error message and callstack is rather useful
221: [06:59:00] <ApacheTiger37> definitely
222: [06:59:00] <ApacheTiger37> that was nice info on firebug
223: [06:59:00] <ApacheTiger37> i have a couple of other one to many relationships that i need to go fix now
224: [06:59:00] <ApacheTiger37> also on removing the fieldbyname
225: [07:00:00] <ApacheTiger37> i thought it was pretty weird that i would have to choose the one in the many form.
226: [07:00:00] <ApacheTiger37> that is why i thought belongs_to defined the relationship
227: [07:01:00] <ApacheTiger37> better get sleep. now that i can.
228: [07:01:00] <ApacheTiger37> i hate not having something worked out before bed.
229: [07:01:00] <ApacheTiger37> or what's left of it.
230: [07:01:00] <ApacheTiger37> it's morning here.
231: [07:01:00] <ApacheTiger37> thanks a bunch and have a great night.
232: [07:02:00] * ApacheTiger37 quit (Quit: Page closed)
233: [07:03:00] * layer8switch has joined #silverstripe
234: [07:14:00] * DesignerX has joined #silverstripe
235: [07:15:00] <DesignerX> swipestripe *
236: [07:15:00] <DesignerX> wsipestripe is ss3 :D
237: [07:18:00] <needinfo> If I have a custom file inside <Includes> directory, how may I attach a custom function to it? the only way I think it is - create new CustomPage.php inside mysite/code . Is this the only way ?
238: [07:19:00] <simon_w> needinfo, the custom function needs to be on whatever's in scope when you call the include or in a global provider
239: [07:22:00] <needinfo> simon_w, I have included the function inside Page.php and from Page.ss I am including custom file
240: [07:22:00] <needinfo> however the function returns empty(in this case I believe it simply does not find it, as the function should return at least some dummy text: return "i am here";
241: [07:22:00] <simon_w> needinfo, where in Page.php and are you inside a loop or with block?
242: [07:23:00] <simon_w> and where in Page.php is the function?
243: [07:23:00] <needinfo> I am using 2.4.7 release
244: [07:23:00] <simon_w> so are you in a control block?
245: [07:23:00] <needinfo> yes
246: [07:24:00] <simon_w> And what are you looping over?
247: [07:24:00] <needinfo> class Page extends SiteTree {....
248: [07:24:00] <needinfo> I have two functions over there and the first one is invoked perfectly
249: [07:24:00] <needinfo> but with another one I have a problem as I call it from Sidebar.ss file (which is just a file alone)
250: [07:25:00] <needinfo> it has no PHP code associated with it so I believe it may cause a problem. As a global namespace I believe it's Page so I have added function there - no luck :)
251: [07:27:00] <simon_w> Mostly likely causes: you're not looping over pages; the method is in Page_Controller, not Page; the child page overrides it
252: [07:28:00] <simon_w> other possibilities: you spelt it wrong; the method's protected/private
253: [07:29:00] <needinfo> hm.. I consider none of these cases..
254: [07:29:00] <needinfo> if I spell the function wrong in a template, why doesn't it produce a warning at least? I believe I can somehow turn this one on :)
255: [07:30:00] <simon_w> Because it's then accessing a property that doesn't exist and gets null returned
256: [07:31:00] * funkygibbon has joined #silverstripe
257: [07:32:00] <needinfo> good to know heh.. :) now I have this situation: Inside Page.php I have a function and inside Page.ss I control over it and get perfect results. I have created a duplicate of Page.php and renamed it to Sidebar.php(changed the classnames too)
258: [07:32:00] <needinfo> I am then doing <% include Sidebar %> inside Page.ss
259: [07:33:00] <needinfo> and inside Sidebar.ss I call the same function(defined in Page.php and Sidebar.php), but it fails within Sidebar.ss
260: [07:36:00] <needinfo> I can't think of any other idea how to do this :)
261: [07:41:00] <needinfo> simon_w, maybe you have more options to offer?
262: [07:42:00] <DesignerX> needinfo: hi, my 1st question is, do u have to use ss2.4 ? why not ss3 ?
263: [07:43:00] <needinfo> actually, I am quite afraid to use 3 because of information I can find about 2.4. Really would like to get the latest build and use it, but am in fear that it contains smaller community and of course google results
264: [07:45:00] * Emil_Blume quit (Quit: Leaving.)
265: [07:45:00] <DesignerX> needinfo: There is alot of info about SS3 getting out there . They maybe harder to find but its there .& if this is just a test you doing its better done on ss3 becasue many things can be done much faster with SS3 :D
266: [07:46:00] <needinfo> but as this is such a simple functionality (invoke a functon from a template) it shouldn't be a difference what I am using :). so.. How can I invoke the function from a file which is included into another file..?
267: [07:46:00] <DesignerX> + I am building a DemoDataObject.php & DemoPage.php loaded with most options that I can find then post it online, it should help me/us find what we need fater
268: [07:47:00] <DesignerX> needinfo: lets go back few steps . Add your function in Page.php & call it at the top of temaples/Layout/Page.ss
269: [07:48:00] <DesignerX> needinfo: I will take you through it step by step. PM me when U get it done
270: [07:49:00] <needinfo> I really look for a small project in the near future to start using 3. It's just that we must play it safe - work with what we have worked before so website is delivered on time :)
271: [07:50:00] <DesignerX> needinfo: Most tutorials are updated to SS3 & the Core code is well documented . If i need anything I just dig into the code & read the docs
272: [07:50:00] * Unlearned has joined #silverstripe
273: [07:50:00] <Unlearned> well thanks for the support! :) I am proud of SS documentation/tutorial style
274: [07:51:00] <DesignerX> needinfo: every function & class is explained & most of them even have an example in the comment on how to use it :D
275: [07:53:00] <DesignerX> I like to add, I made a custom google search http://www.google.com/cse/home?cx=010558900908239387678:vqc2gretvaq . searches sites including: http://www.ssbits.com/, http://api.silverstripe.org, http://doc.silverstripe.org
276: [07:53:00] * needinfo quit (Ping timeout: 245 seconds)
277: [07:53:00] * Unlearned is now known as needinfo
278: [07:54:00] <needinfo> hey, great! any more SS resources there?
279: [07:57:00] * BPower_ quit (Quit: Ex-Chat)
280: [07:59:00] * spronk has left #silverstripe
281: [08:00:00] <dnz-> DYEL BRO ?
282: [08:00:00] <dnz-> yeah github!
283: [08:00:00] <dnz-> wowowowowow
284: [08:00:00] * spronk has joined #silverstripe
285: [08:00:00] <spronk> o_O
286: [08:05:00] * Guits quit (Read error: Connection reset by peer)
287: [08:05:00] * dobalina has joined #silverstripe
288: [08:05:00] * MrGuits has joined #silverstripe
289: [08:21:00] <DesignerX> back in 30
290: [08:36:00] * congii quit (Ping timeout: 245 seconds)
291: [08:38:00] * zfmf has joined #silverstripe
292: [08:38:00] * guci0 quit (Ping timeout: 245 seconds)
293: [08:49:00] * webguest has joined #silverstripe
294: [08:54:00] * dendeffe quit (Quit: dendeffe)
295: [08:56:00] * chillu has joined #silverstripe
296: [09:08:00] * gour has joined #silverstripe
297: [09:10:00] * ratcat has joined #silverstripe
298: [09:11:00] * kinglozzer has joined #silverstripe
299: [09:13:00] <kinglozzer> simon_w, chillu: Is there anything special about the word 'data' in a URL? I have $allowed_actions = false; GoogleBot is causing errors trying to visit a page called /mypagetype/data/something - anything except 'data' doesn't cause an error. 'data' causes 'method getviewer does not exist'
300: [09:14:00] <simon_w> kinglozzer, use $allowed_actions = ['index'];
301: [09:16:00] <simon_w> $allowed_actions = false is the same as having an empty array
302: [09:16:00] <kinglozzer> simon_w: Yep that's fixed it. I thought index was always an allowed action, even if I set $allowed_actions = false
303: [09:16:00] <kinglozzer> Anyway thanks
304: [09:17:00] <simon_w> that is, it allows everything
305: [09:18:00] <kinglozzer> Ah I see. So if you don't set it at all, that's when it defaults to allowing index?
306: [09:20:00] <simon_w> nope, index is just always allowed
307: [09:20:00] <simon_w> which means you can use it to say "don't allow anything else"
308: [09:21:00] <kinglozzer> I see, I thought setting it to false would do that! Thanks again
309: [09:30:00] * webguest quit (Ping timeout: 245 seconds)
310: [09:34:00] * Shrike_Finland has joined #silverstripe
311: [09:36:00] * gour_ has joined #silverstripe
312: [09:36:00] * gour quit (Disconnected by services)
313: [09:38:00] * wmk has joined #silverstripe
314: [09:53:00] * instabil has joined #silverstripe
315: [09:59:00] * travis-ci has left #silverstripe
316: [09:59:00] * travis-ci has joined #silverstripe
317: [09:59:00] <travis-ci> [travis-ci] silverstripe/sapphire#1174 (3.0 - 2e6e0de : Ingo Schommer): The build was broken.
318: [09:59:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/317495f8ef28...2e6e0de44ddc
319: [09:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4161278
320: [09:59:00] <ec8or_> has anyone got a snippet for filtering a dropdownfield against a many_many relation
321: [10:00:00] * gour_ is now known as gour
322: [10:03:00] <DesignerX> ec8or_ if MyPage masn_many MyObject , shouldnt $this->MyObjects just return all objects related to MyPage ?
323: [10:05:00] <DesignerX> ajshort / silverstripe-memberprofiles has been updated :D
324: [10:05:00] * dendeffe has joined #silverstripe
325: [10:06:00] * ivoba has joined #silverstripe
326: [10:08:00] <ec8or_> DesignerX: ah yeah right :)
327: [10:09:00] <ec8or_> been a while since i touched any SilverStripe.. duh
328: [10:12:00] <DesignerX> ec8or_: Was that really what u needed or did I miss understand the question ?
329: [10:14:00] * deschebbes has joined #silverstripe
330: [10:19:00] <ivoba> hi all how can i add Created, LastEdited fields to a many_many relation?
331: [10:19:00] <ec8or_> DesignerX: no that was it
332: [10:20:00] <ivoba> actually just Created to log when the items got connected
333: [10:27:00] <ec8or_> ivoba: you probably want to use this: http://api.silverstripe.org/trunk/framework/model/DataObject.html#methodmany_many_extraFields
334: [10:28:00] <ec8or_> it can be a bit messy but here is one tutorial that should point you in the right direction
335: [10:28:00] <ivoba> ah yes this looks promising thanx
336: [10:29:00] <ec8or_> http://blog.fraser-hart.co.uk/silverstripe-3-gridfield-with-many_many-relationship/
337: [10:29:00] <ec8or_> just using it for SortOrder which shouldn't really be necessary but same thing
338: [10:41:00] <gour> how far is 3.1?
339: [10:42:00] <gour> does SS grow in terms of users numberm modules etc.?
340: [10:53:00] * ratcat quit (Ping timeout: 260 seconds)
341: [11:03:00] <ivoba> how can i define default values for the extra fields?
342: [11:03:00] <ivoba> ec8or_: thanx
343: [11:04:00] <ivoba> in static $defaults and then ManyManyListName.Field ?
344: [11:16:00] * guci0 has joined #silverstripe
345: [11:24:00] <kinglozzer> How can I remove the 'Save' and 'Delete' buttons from ModelAdmin edit form? getCMSActions() isn't called
346: [11:36:00] <ivoba> couldnt find any information on defaults for extraFields so i just added it manually
347: [11:37:00] <ivoba> $MML->add($member,array('Created' => date("Y-m-d H:m:s")));
348: [11:37:00] <ivoba> but how can i retrieve the Created field now?
349: [11:40:00] <kinglozzer> Never mind, I've done it by extending GridFieldDetailForm and GridFieldDetailForm_ItemRequest
350: [11:45:00] <ivoba> Created is already used, i had to name it differently then it appeared in the DO
351: [12:01:00] * travis-ci has joined #silverstripe
352: [12:01:00] * travis-ci has left #silverstripe
353: [12:01:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4155169
354: [12:01:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a93f8841d7d0...27d2f75d9dc9
355: [12:01:00] <travis-ci> [travis-ci] silverstripe/sapphire#1171 (3.1 - 27d2f75 : Ingo Schommer): The build was broken.
356: [12:14:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4162534
357: [12:14:00] <travis-ci> [travis-ci] silverstripe/sapphire#1176 (3.0 - dc4b2a4 : Ingo Schommer): The build was fixed.
358: [12:14:00] * travis-ci has joined #silverstripe
359: [12:14:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/2e6e0de44ddc...dc4b2a44796b
360: [12:14:00] * travis-ci has left #silverstripe
361: [12:19:00] * Emil_Blume has joined #silverstripe
362: [12:23:00] * guci0 quit (Ping timeout: 245 seconds)
363: [12:34:00] <priithansen> any way to loop unpublished pages in silverstripe template?
364: [12:37:00] <kinglozzer> Is there any way to use the ORM to filter has_many relationships? 'Supplier' has_many 'Services', want to filter suppliers by the services they offer
365: [12:39:00] <priithansen> $this->relationshipname()->filter('service', 'service type'); < maybe
366: [13:00:00] * ARNHOFF has joined #silverstripe
367: [13:01:00] * UndefinedOffset has joined #silverstripe
368: [13:03:00] * travis-ci has left #silverstripe
369: [13:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4163113
370: [13:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/dc4b2a44796b...dadd9e1b9870
371: [13:03:00] <travis-ci> [travis-ci] silverstripe/sapphire#1177 (3.0 - dadd9e1 : Ingo Schommer): The build was fixed.
372: [13:03:00] * travis-ci has joined #silverstripe
373: [13:14:00] * dendeffe has left #silverstripe
374: [13:15:00] * dendeffe has joined #silverstripe
375: [13:15:00] * lobarvaz has joined #silverstripe
376: [13:23:00] * Emil_Blume quit (Quit: Leaving.)
377: [13:25:00] * dendeffe quit (Read error: Connection reset by peer)
378: [13:39:00] * dendeffe has joined #silverstripe
379: [13:40:00] <dendeffe> The main htmleditorfield won't focus. No error messages.
380: [13:40:00] <dendeffe> I can press the TinyMCE buttons
381: [13:43:00] * bino has joined #silverstripe
382: [13:44:00] <bino> hi all! does anybody know what cookie PastMember does?
383: [13:44:00] <bino> I need to disable unuseful cookies to use varnish on my server
384: [13:50:00] <UndefinedOffset> soo chillu... seeing commits on 3.0 branch does this mean we're going to see a 3.0.4?
385: [13:59:00] <ARNHOFF> chillu: Without any research, and you can tell me that I should do that before asking! But in 3.1, and the admin area is it possible to start with Edit Mode instead of Preview Mode?
386: [14:03:00] <UndefinedOffset> ARNHOFF I've noticed this as well... one of my only complaints about 3.1 lol
387: [14:04:00] <ARNHOFF> Yeah, I mean, it will scare the crap out when my customers will see it I think :D
388: [14:04:00] <ARNHOFF> EVERYTHING has changed!!
389: [14:06:00] <UndefinedOffset> my biggest complaint about it is the potential for user confusion, with it there by default or side-by-side some users (not all) may think that its realtime editing when it's not. One of the reasons I like the full screen preview in 3.0. I'd rather seen the responsive toggles in the 3.0 style preview
390: [14:06:00] <UndefinedOffset> or atleast have the side by side as an option not the default
391: [14:08:00] <ARNHOFF> Well, it is actually a good addition, but indeed it could confuse the people. I even had a call from a customer, who changed 15 pages and thought that he only needed to Save & Publish at the last page, haha
392: [14:08:00] <UndefinedOffset> lol nice thats a new one...
393: [14:09:00] <ARNHOFF> But sometimes I have that when I change some text, I need to click outside the area first, before the buttons below turn into Save & Publish etc
394: [14:10:00] <ARNHOFF> But I don't really want to criticise too much, simply because I don't have to skills to actually create what is standing already
395: [14:10:00] <UndefinedOffset> lol mm
396: [14:17:00] * ARNHOFF is now known as ARNHOE
397: [14:27:00] * travis-ci has joined #silverstripe
398: [14:27:00] <travis-ci> [travis-ci] silverstripe/sapphire#1179 (3.1 - 2ad56e1 : Ingo Schommer): The build was fixed.
399: [14:27:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/27d2f75d9dc9...2ad56e1d523c
400: [14:27:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4163311
401: [14:27:00] * travis-ci has left #silverstripe
402: [14:42:00] * Error404NotFound has joined #silverstripe
403: [14:44:00] * Shrike_Finland quit (Quit: Leaving.)
404: [14:52:00] * Emil_Blume has joined #silverstripe
405: [14:53:00] <g4b0> hi all
406: [14:53:00] * g4b0 has joined #silverstripe
407: [14:54:00] * kinglozzer quit (Remote host closed the connection)
408: [14:54:00] <g4b0> how can I get all classes extended by a DataExtension?
409: [14:55:00] <UndefinedOffset> g4b0 try this http://api.silverstripe.org/3.0/framework/core/ClassInfo.html#methodsubclassesFor
410: [14:56:00] <g4b0> I'll have a try
411: [14:59:00] <g4b0> UndefinedOffset: it doesn't work...
412: [15:00:00] <g4b0> but it's very unefficient!!
413: [15:00:00] <g4b0> I can iterate over ClassInfo::allClasses() and then chek it by singleton($class)->hasExtension("CustomWorkflow")
414: [15:01:00] <chillu> ARNHOE: UndefinedOffset 3.04, yes, sometime in the next couple of weeks. 3.1 defaulting to edit mode: I can imagine that'll be a common request. It'll take some digging, so wouldn't hold my breath in terms of it getting committed by the core team. But happy to review pull requests
415: [15:04:00] <chillu> We've tried to minimize the "mistake for live preview" by highlighting the save button when you make changes. I don't think its a big mental leap for CMS users, but definitely worth pointing out to them when upgrading projects
416: [15:06:00] * SightUnseen has joined #silverstripe
417: [15:11:00] <travis-ci> [travis-ci] silverstripe/sapphire#1180 (3.0 - 64d3a3d : Ingo Schommer): The build passed.
418: [15:11:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/dadd9e1b9870...64d3a3dafc8d
419: [15:11:00] * travis-ci has joined #silverstripe
420: [15:11:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4163416
421: [15:11:00] * travis-ci has left #silverstripe
422: [15:18:00] <g4b0> }
423: [15:18:00] <g4b0> if (singleton($class)->hasExtension("DoToSlider")) {
424: [15:18:00] <g4b0> a little bit more efficent
425: [15:18:00] <g4b0> foreach(ClassInfo::subclassesFor('DataObject') as $class) {
426: [15:18:00] <g4b0> UndefinedOffset:
427: [15:18:00] <g4b0> echo "$class<br />";
428: [15:18:00] <g4b0> }
429: [15:19:00] <g4b0> thanks for your hint
430: [15:20:00] <g4b0> How can I use a support table from my DataExtension?
431: [15:20:00] <g4b0> Another question :)
432: [15:20:00] * bino quit (Ping timeout: 245 seconds)
433: [15:21:00] <g4b0> e.g. a table not created by default through dev/build
434: [15:23:00] * OxFF1 has joined #silverstripe
435: [15:25:00] * dendeffe quit (Quit: dendeffe)
436: [15:25:00] * Shrike_Finland has joined #silverstripe
437: [15:27:00] * dendeffe has joined #silverstripe
438: [15:28:00] <discorpia> is there anythong similar to Upload::load() and Upload::loadIntoFile() that is meant for images already on the filesystem?
439: [15:29:00] <discorpia> or what is the best way to create Image objects from existing image files?
440: [15:49:00] * needinfo quit (Read error: No route to host)
441: [15:51:00] <chillu> ARNHOE: UndefinedOffset Actually, I've made it configurable :) https://github.com/silverstripe/sapphire/pull/1101
442: [15:51:00] * travis-ci has left #silverstripe
443: [15:51:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4164350
444: [15:51:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/64d3a3dafc8d...014f541a8906
445: [15:51:00] <travis-ci> [travis-ci] silverstripe/sapphire#1181 (3.0 - 014f541 : Ingo Schommer): The build was broken.
446: [15:51:00] * travis-ci has joined #silverstripe
447: [15:54:00] <chillu> http://open.silverstripe.org/roadmap ...
448: [15:54:00] <Shrike_Finland> Chillu, how is going with 3.1? Still a lot difficult tickets?
449: [15:55:00] <Shrike_Finland> Ah, ok. That is good info becoz it's a bit hard to estimate based on the tickets, how much work there really is.
450: [15:55:00] <chillu> 38 tickets, I would say the average one takes 1-3h to fix. So quite a bit of work left
451: [15:56:00] <Shrike_Finland> Have you desided anything yet with the title metatag?
452: [15:56:00] <UndefinedOffset> chillu: awesome :)
453: [15:57:00] <chillu> Yes, see mailinglist discussion
454: [15:57:00] <chillu> The variation is quite large, some tickets will be done in 10 minutes, other take a whole team a week or more
455: [15:58:00] <Shrike_Finland> is this right link? https://groups.google.com/forum/?fromgroups#!forum/silverstripe-dev
456: [15:59:00] <ARNHOE> chillu: Thanks!
457: [16:01:00] <chillu> Shrike_Finland: Yep
458: [16:09:00] * hubertusanton quit (Remote host closed the connection)
459: [16:10:00] * hubertusanton has joined #silverstripe
460: [16:16:00] * MichaelDesignerX has joined #silverstripe
461: [16:19:00] * DesignerX quit (Ping timeout: 252 seconds)
462: [16:19:00] * MichaelDesignerX quit (Client Quit)
463: [16:27:00] <lobarvaz> Line 376 in /home/xinhui/public_html/test22/cms/code/controllers/CMSMain.php
464: [16:27:00] <lobarvaz> Funky: ERROR [Notice]: Undefined index: DirectoryListing
465: [16:27:00] <lobarvaz> SS3.0.3
466: [16:27:00] <lobarvaz> IN GET /admin/pages/treeview?q%5BTerm%5D=&q%5BLastEditedFrom%5D=&q%5BLastEditedTo%5D=&q%5BFilterClass%5D=CMSSiteTreeFilter_Search&q%5BClassName%5D=
467: [16:35:00] * hubertusanton quit (Quit: hubertusanton)
468: [16:36:00] * g4b0 quit (Quit: Sto andando via)
469: [16:41:00] * marcruz has joined #silverstripe
470: [16:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4166972
471: [16:41:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/1dbc1d4de079...ca84ddca16b7
472: [16:41:00] <travis-ci> [travis-ci] chillu/sapphire#46 (pulls/preview-configuration - ca84ddc : Ingo Schommer): The build passed.
473: [16:41:00] * travis-ci has joined #silverstripe
474: [16:41:00] * travis-ci has left #silverstripe
475: [16:42:00] <marcruz> hi
476: [16:42:00] * marcruz quit (Client Quit)
477: [16:47:00] * dendeffe quit (Quit: dendeffe)
478: [16:49:00] * catcher has joined #silverstripe
479: [16:54:00] <wmk> anyone knows a trick that nesting of gridfields doesn't break the layout of BulkEditingTools ?
480: [17:14:00] <wmk> it's silversmith generated code like page -> albums -> images
481: [17:14:00] <FrozenFire> Nesting.... GridFields...
482: [17:14:00] <FrozenFire> Do you mean just having children which have their own GridFields?
483: [17:14:00] <wmk> yup.
484: [17:15:00] <wmk> it autogenerates a new tabset
485: [17:23:00] * wmk quit (Quit: nice to meet you ;))
486: [17:39:00] * dobalina quit (Ping timeout: 246 seconds)
487: [17:55:00] * lobarvaz has left #silverstripe
488: [18:02:00] * dobalina has joined #silverstripe
489: [18:04:00] <discorpia> is it possible to supply login/password in the url for /dev/build?
490: [18:05:00] <FrozenFire> discorpia, BASIC auth, I believe
491: [18:06:00] <FrozenFire> If you're using email-based usernames, it'd be something like: you%40example.com:password@domain.com/dev/build
492: [18:08:00] <discorpia> ah
493: [18:08:00] <discorpia> doesn't seem to work unfortunately
494: [18:10:00] <FrozenFire> http://api.silverstripe.org/trunk/framework/security/BasicAuth.html
495: [18:10:00] <FrozenFire> Have to enable it, apparently
496: [18:10:00] <discorpia> aha, cool. thanks. doesn't help in this case but really good to know
497: [18:11:00] <FrozenFire> Hrmm
498: [18:11:00] <FrozenFire> Apparently it's changed since 2.4
499: [18:11:00] <FrozenFire> 2.4 had an enable function
500: [18:11:00] <discorpia> ah, this is a ss3 install
501: [18:11:00] <discorpia> i have no access to the filesystem of the server though
502: [18:12:00] <FrozenFire> Yeah, in that case, you'll need to authenticate normally
503: [18:13:00] <discorpia> i guess i could login normally and steal the session cookie to use in wget requests
504: [18:14:00] <FrozenFire> The cookiedance cannot be avoided. :P
505: [18:14:00] <discorpia> was just hoping to avoid the whole cookiedance
506: [18:14:00] <FrozenFire> Well, this is a perfect use-case for cURL
507: [18:14:00] <discorpia> it's a transparent round robin, so i need to run /dev/build on the same domain several times until all servers have rotated
508: [18:14:00] <discorpia> yeah
509: [18:21:00] * dendeffe has joined #silverstripe
510: [18:22:00] <discorpia> thanks for the suggestions btw
511: [18:22:00] <discorpia> FrozenFire: ;)
512: [18:23:00] <FrozenFire> The other alternative, by the by, is the REST api, if it's enabled.
513: [18:28:00] <FrozenFire> Is there any way to serialize a Form's state without serializing the whole form?
514: [18:28:00] <FrozenFire> Because serializing the whole form results in a ridiculously-large amount of data
515: [18:29:00] * dendeffe quit (Quit: dendeffe)
516: [18:33:00] * ApacheTiger37 has joined #silverstripe
517: [18:34:00] <ApacheTiger37> To what level does SS handle cascaded deletes with a one to one relationship?
518: [18:35:00] <FrozenFire> In the DataObject onBeforeDelete? Completely
519: [18:35:00] <ApacheTiger37> that is what i was thinking.
520: [18:35:00] <ApacheTiger37> thanks
521: [18:35:00] <ApacheTiger37> thank you
522: [18:35:00] <FrozenFire> In the DBMS? To no level.
523: [18:36:00] * ivoba quit (Quit: Leaving)
524: [18:37:00] * SightUnseen has left #silverstripe
525: [18:37:00] * ApacheTiger37 has left #silverstripe
526: [18:39:00] * ApacheTiger37 has joined #silverstripe
527: [18:40:00] <ApacheTiger37> If i have a DataObject Contact and it has has_many QueuedEmails can I do $this->QueuedEmails()->delete() ?
528: [18:41:00] <ApacheTiger37> or do i need to loop through the $this->QueuedEmails?
529: [18:41:00] <ApacheTiger37> in the onBeforeDelete method?
530: [18:47:00] * popeshoe quit (Quit: Leaving)
531: [18:47:00] <ApacheTiger37> Is this right? public function onBeforeDelete () { parent::onBeforeDelete(); foreach ( $this->QueuedEmails() as $oQueuedEmail ) { $oQueuedEmail->delete(); } }
532: [18:49:00] * ApacheTiger37 quit (Quit: Page closed)
533: [18:52:00] * AlphaCactus has joined #silverstripe
534: [18:55:00] * ApacheTiger has joined #silverstripe
535: [18:55:00] * deschebbes quit (Ping timeout: 260 seconds)
536: [19:05:00] <ss23> Have you tried turning it off and on again?
537: [19:05:00] <AlphaCactus> lol
538: [19:05:00] <FrozenFire> But it keeps giving me this shit about invalid ModelClass
539: [19:05:00] <FrozenFire> I need to accept a custom action on my ModelAdmin
540: [19:05:00] <FrozenFire> So, I'm having a really frustrating issue with ModelAdmin, that I can't seem to figure out.
541: [19:06:00] <AlphaCactus> custom action on a specific class or on the ModelAdmin itself?
542: [19:06:00] <FrozenFire> I think you need to re-watch it
543: [19:06:00] <ss23> I just watched Hackers.
544: [19:06:00] <ss23> FrozenFire: HACK THE GIBSON
545: [19:06:00] <FrozenFire> ss23, And yeah, I tried turning it off and on again. WITH MAH FIST
546: [19:06:00] <OxFF1> yeah, HACK THE PLANET
547: [19:06:00] <FrozenFire> AlphaCactus, The ModelAdmin itself
548: [19:06:00] <FrozenFire> It's HACK THE PLANET!
549: [19:07:00] <OxFF1> nice movie
550: [19:07:00] <FrozenFire> And the only feasible endpoint for that happens to be the ModelAdmin controller
551: [19:07:00] <ss23> They gotta hack the gibson, bro
552: [19:07:00] <ss23> BOTH
553: [19:07:00] <FrozenFire> So I essentially just need to accept an action which will then create certain relations on an object.
554: [19:07:00] <ApacheTiger> Are there performance considerations between Object::get()->filter vs Object::get(filter) ?
555: [19:07:00] <AlphaCactus> bugger. I added clone to my objects, but nothing to ModelAdmin itself
556: [19:07:00] <FrozenFire> My use-case is a bit convoluted, but what it boils down to is that an iframe form that's displayed by one of the children's children's children needs a "redirect on success" URL.
557: [19:08:00] <FrozenFire> And if your development server is configured properly, you should be getting notices to that effect. ;)
558: [19:08:00] <FrozenFire> ApacheTiger, Yes. The latter is deprecated.
559: [19:08:00] <ApacheTiger> seems the first would return all objects before being filtered and use more memory though.
560: [19:09:00] <FrozenFire> It's fetch-on-access
561: [19:09:00] * OxFF1 quit (Quit: Leaving.)
562: [19:09:00] <FrozenFire> Nope
563: [19:09:00] <FrozenFire> DataList is lazy-loaded
564: [19:09:00] <FrozenFire> It represents the set using a query
565: [19:10:00] <ApacheTiger> Beautiful, I love it. Sorry for what seems like stupid questions.
566: [19:10:00] <ApacheTiger> can I then do a delete on the DataList as DataList()->delete()?
567: [19:10:00] <FrozenFire> And the only stupid questions are the ones you don't ask.
568: [19:10:00] <FrozenFire> No problem. It's not obvious from the documentation
569: [19:11:00] <FrozenFire> Delete all objects in that set?
570: [19:11:00] * chillu quit (Quit: chillu)
571: [19:11:00] <FrozenFire> What is your goal?
572: [19:11:00] <ApacheTiger> yes
573: [19:11:00] <ApacheTiger> Say on deleted a contact i want them to be deleted from a bunch of queuedemails
574: [19:11:00] * dendeffe has joined #silverstripe
575: [19:12:00] <ApacheTiger> I'm just wondering if calling any DataObject function on a DataList will loop through the DataLiast.
576: [19:12:00] <FrozenFire> http://api.silverstripe.org/trunk/sapphire/model/DataList.html#methodremoveAll
577: [19:12:00] <FrozenFire> DataList is is iterable
578: [19:12:00] <ApacheTiger> DataList
579: [19:13:00] <FrozenFire> So you would do foreach($list as $object)
580: [19:14:00] <ApacheTiger> thanks for the information, I have what i need.
581: [19:14:00] <ApacheTiger> Right, knew that. Just thought if datalist didn't have the function call it might go through and try each object for a funciton call instead.
582: [19:14:00] * DigNZ has joined #silverstripe
583: [19:14:00] * DigNZ quit (Remote host closed the connection)
584: [19:14:00] * DigNZ has joined #silverstripe
585: [19:15:00] <ApacheTiger> As simple as this right? ContactEmailQueued::get()->filter(array( 'ContactID' => $this->ID ))->removeAll();
586: [19:16:00] <FrozenFire> Hrmm, so apparently my ModelAdmin issue can be resolved by specifying the model, and then the action
587: [19:16:00] <FrozenFire> ApacheTiger, You should instead use a relation
588: [19:16:00] <FrozenFire> E.g. static $has_many = array("ContactEmails" => "ContactEmailQueued")
589: [19:17:00] <FrozenFire> Then each ContactEmailQueued which $has_one Contact of this object's ID will be fetched
590: [19:17:00] <FrozenFire> Then $this->ContactEmails()
591: [19:18:00] <ApacheTiger> Got it
592: [19:22:00] <ApacheTiger> How do i programmatically create an object tied to Contact? I want to be able to customize the query that determines which contacts are added and not require them to add contacts one at a time to the queued email.
593: [19:23:00] <ApacheTiger> do i just set Contact = ContactObject when i pass the values to the DataObject->create()?
594: [19:24:00] <ApacheTiger> I guess i answered my own question.
595: [19:24:00] <FrozenFire> No, it'd be ContactEmailQueued::create(array("ContactID" => $this->ID));
596: [19:24:00] <ApacheTiger> Does that automatically configure the join?
597: [19:25:00] <FrozenFire> So $has_one Contact is $this->ContactID
598: [19:25:00] <FrozenFire> A $has_one's relation ID is stored in <relationname>ID
599: [19:26:00] <FrozenFire> I'm not sure if you can set has_one relations directly by "setting" with an object
600: [19:26:00] <ApacheTiger> ok thanks
601: [19:31:00] * nickmolhoek quit (Read error: Connection reset by peer)
602: [19:31:00] * nickmolhoek has joined #silverstripe
603: [19:31:00] * nickmolhoek has joined #silverstripe
604: [19:38:00] <FrozenFire> Method
605: [19:38:00] <ApacheTiger> on a one to one do you have to call the has one object by method or by property?
606: [19:39:00] <FrozenFire> Fields are properties, relations are methods
607: [19:42:00] * gelignite has joined #silverstripe
608: [19:43:00] <simon_w> And dragons are cuddly
609: [19:43:00] <simon_w> Holiday time, part two! :)
610: [19:43:00] * simon_w quit (Quit: Leaving)
611: [19:45:00] <FrozenFire> Damnit, simon_w, I had need of you!
612: [19:46:00] <ApacheTiger> Happy Holidays Simon
613: [19:47:00] <ApacheTiger> Is the best way to test for whether getCMSFields is in edit or add mode to test for $this->ID?
614: [19:47:00] <ApacheTiger> I want the add mode to have a hidden field and the edit mode to have a checkbox.
615: [19:54:00] <FrozenFire> You could use $this->ID, or $this->isInDB()
616: [19:56:00] * tankr has joined #silverstripe
617: [19:58:00] <FrozenFire> One of those annoying times when I need to detect what this object is being added to
618: [19:58:00] * FrozenFire is having his own add problem
619: [19:58:00] <FrozenFire> :(
620: [20:08:00] <ApacheTiger> I guess seeing which many many is creating the object is an issue?
621: [20:09:00] * Shrike_Finland quit (Quit: Leaving.)
622: [20:10:00] <FrozenFire> Indeed
623: [20:11:00] <FrozenFire> Normally it wouldn't be.
624: [20:11:00] <FrozenFire> But in this case, I need to pass the ID of the parent object to another URL in order to establish the new relation of this particular form
625: [20:19:00] <ApacheTiger> Someday I hope to be using SS to that level.
626: [20:19:00] <ApacheTiger> sounds far more complex than my small issues.
627: [20:20:00] <FrozenFire> No you don't. :P
628: [20:21:00] <FrozenFire> :P
629: [20:21:00] <FrozenFire> I'm hacking around a bug. Not doing something super-cool
630: [20:22:00] <ApacheTiger> LOL, ohh...
631: [20:23:00] <ApacheTiger> I like the idea of doing super-cool much better.
632: [20:23:00] * Pyromanik has joined #silverstripe
633: [20:25:00] * zfmf has left #silverstripe
634: [20:26:00] <jrthomer> is DataObject::get supposed to be broken (I know it's deprecated)?
635: [20:26:00] <jrthomer> when I have a ::get that uses a $join it is broken because of line 2721 in DataObject
636: [20:26:00] * jrthomer is upgrading a site from 2.4.x to 3.0 ...
637: [20:27:00] <FrozenFire> Assume it's broken.
638: [20:27:00] <Pyromanik> could also be broken broken. But there are some tricky filters you may be able to use to get around it
639: [20:27:00] <Pyromanik> convert it from old code to good code.
640: [20:27:00] <Pyromanik> yes
641: [20:27:00] <jrthomer> which calls ->join($myJoinClause) on a DataList
642: [20:28:00] <jrthomer> if we know it's broken, why not just delete the code in DataObject altogether and put a deprecation error instead of having it half work?
643: [20:28:00] <jrthomer> I ask because: if it's supposed to be (at least temporarily) backwards-compatible, I could attempt a fix and send pull request
644: [20:29:00] <jrthomer> but if it's "yeah, we know it's broken and we don't want bw-compat" then I'll just ignore and go on changing my code
645: [20:29:00] <jrthomer> either way I'm going to be changing my code - I was just wondering what the expectation was
646: [20:30:00] <FrozenFire> Just piling hacks on hacks
647: [20:30:00] <FrozenFire> Hoping for it to work
648: [20:30:00] <FrozenFire> Been working at this for two hours
649: [20:30:00] <FrozenFire> :(
650: [20:30:00] <FrozenFire> IS IT SO BAD THAT I WANT TO KNOW WHAT I'M ADDING SOMETHING TO?!?
651: [20:30:00] <FrozenFire> Or, more specifically, at the add new functionality
652: [20:30:00] * FrozenFire cries at GridField's ItemEditForm
653: [20:32:00] <Pyromanik> it's shouldn't matter if it's broken or not, it should through a deprecation error and halt execution.
654: [20:32:00] <Pyromanik> jrthomer: because it's not 3.1 yet
655: [20:33:00] <jrthomer> Pyromanik: thanks
656: [20:33:00] <Pyromanik> iirc in 3.1 is the milestone for deprecated stuff being removed.
657: [20:33:00] * ApacheTiger quit (Ping timeout: 245 seconds)
658: [20:37:00] <Pyromanik> "It looks like something I've seen before somewhere... I'm not sure what it is exactly, but can you change it?"
659: [20:37:00] <Pyromanik> hahahahahahahah clients.
660: [20:37:00] <Pyromanik> send out a fantastic looking design
661: [20:38:00] <Pyromanik> no direction at all.
662: [20:40:00] <FrozenFire> Lollercopter. I just made the biggest hack ever
663: [20:41:00] <FrozenFire> :D
664: [20:41:00] <FrozenFire> But it works!!!!
665: [20:41:00] <FrozenFire> I can't even explain what I did, it's so bad.
666: [20:42:00] * chillu has joined #silverstripe
667: [20:42:00] <layer8switch> FrozenFire: don't forget to comment (something like: // this is my hack)
668: [20:42:00] <FrozenFire> Nah.
669: [20:43:00] <FrozenFire> :P
670: [20:43:00] <FrozenFire> I know it's the famous words of every bad programmer everywhere, but nobody's going to see this code.
671: [20:44:00] <jrthomer> FrozenFire: post to TheDailyWTF for us
672: [20:45:00] <FrozenFire> It's a form rendered through an iframe that uploads a video to a video CDN, which then redirects back to my ModelAdmin, which uses a URL I passed through the form and extracts from that URL the dataobject it's supposed to associate the new video with.
673: [20:45:00] <FrozenFire> It's almost worthy of that.
674: [21:08:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4171936
675: [21:08:00] * travis-ci has joined #silverstripe
676: [21:08:00] <travis-ci> [travis-ci] silverstripe/sapphire#1184 (3.0 - 5bd0f0a : Sean Harvey): The build is still failing.
677: [21:08:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/014f541a8906...5bd0f0accd03
678: [21:08:00] * travis-ci has left #silverstripe
679: [21:13:00] * UndefinedOffset quit (Quit: Leaving.)
680: [21:14:00] * UndefinedOffset has joined #silverstripe
681: [21:18:00] * UndefinedOffset quit (Ping timeout: 248 seconds)
682: [21:19:00] * gour has left #silverstripe
683: [21:41:00] <Pyromanik> and ec8or_
684: [21:41:00] <Pyromanik> http://devopsreactions.tumblr.com/
685: [21:41:00] <Pyromanik> hey FrozenFire, this is for you.
686: [21:41:00] <Pyromanik> and irogue
687: [21:42:00] <Pyromanik> and anyone else who wants a bit of a lol
688: [21:44:00] <Pyromanik> also, wholey shit, the guy who wrote RSS died :< https://blog.wikimedia.org/2013/01/12/remembering-aaron-swartz-1986-2013/
689: [21:44:00] <Pyromanik> errr, co-authored
690: [21:45:00] <irogue> Pyromanik: holy shit old
691: [21:45:00] <Pyromanik> diaf.
692: [21:45:00] <irogue> if you're hearing about tech news *after* the NZ media reports on it, OLD
693: [21:45:00] <irogue> reddit/digg/hackernews have been covered in that news for days
694: [21:45:00] <ss23> lol
695: [21:45:00] <ss23> srsly so old
696: [21:45:00] <ss23> Pyromanik: Do you even old?
697: [21:45:00] <ss23> Pretty sure even my mother knows about that, Pyromanik
698: [21:45:00] <irogue> it was even on 3 news!
699: [21:45:00] <ss23> I think she's gotten like 4 chain emails about it already with funny gifs
700: [21:45:00] <Pyromanik> mine doesn't.
701: [21:46:00] * Pyromanik doesn't tv
702: [21:46:00] <Pyromanik> Amazing.
703: [21:46:00] * Pyromanik doesn't newspaper
704: [21:46:00] * Pyromanik doesn't stuff/herald/derp
705: [21:46:00] <ss23> ^^^
706: [21:46:00] <Pyromanik> the NZ media reported on it?
707: [21:46:00] <irogue> ya, was on 3 news at least
708: [21:46:00] <irogue> all referring to him as "co-founder of reddit" though
709: [21:47:00] * Pyromanik doesn't redderp
710: [21:47:00] <spronk> sigh
711: [21:47:00] * cloph_away is now known as cloph
712: [21:47:00] <irogue> the craziest part is that he co-authored RSS 1.0... while 14.
713: [21:48:00] <ss23> Bitch
714: [21:48:00] <ss23> >we use today
715: [21:48:00] <Pyromanik> because you clicked that rss icon in the address bar
716: [21:48:00] <irogue> ss23: tbh though RSS 1.0 != RSS we use today
717: [21:48:00] <Pyromanik> back when it used to be easy.
718: [21:48:00] <Pyromanik> I think I did once.
719: [21:48:00] * spronk is now sticky.
720: [21:48:00] <ss23> tbh though, I've never used rss.
721: [21:48:00] * irogue licks spronk
722: [21:48:00] <ss23> Thats almost 15!
723: [21:48:00] <Pyromanik> ikr
724: [21:48:00] <irogue> current version is RSS 2.0, which was the next version of the RSS 0.9 codebase
725: [21:48:00] <Pyromanik> now no one rss's
726: [21:48:00] <ss23> wahtchu talking about
727: [21:49:00] <Pyromanik> lame
728: [21:49:00] <Pyromanik> because NO INDICATIONS THAT THERE ARE ANY
729: [21:49:00] <irogue> 1.0 was a total rewrite that nobody actually used
730: [21:49:00] <ss23> I think my keyboard uses RSS for its news stream
731: [21:49:00] <irogue> 2.0 ignored 1.0 and continued the old spec
732: [21:49:00] <irogue> a la HTML4 -> XHTML -> HTML5
733: [21:50:00] <ss23> You know whats fucking awesome? Metallicas S&M
734: [21:50:00] <irogue> yup.
735: [21:50:00] <irogue> need more albums like that
736: [21:50:00] <Pyromanik> So I was thinking about learning Lua.
737: [21:51:00] <Pyromanik> THAT WAS A JOKE, LOLOLLLLLOLOLOLOL
738: [21:52:00] <Pyromanik> everyone horray for prototypal inheritance
739: [21:52:00] <irogue> :P
740: [21:54:00] <ss23> "Could be worse -- they could be using RoR"
741: [21:54:00] <ss23> Even PHP hasn't fucked up that bad XD
742: [21:54:00] <irogue> its trying hard to take over from Java as the security joke
743: [21:54:00] <irogue> yeah
744: [21:54:00] <ss23> lol Pyromanik, better learn something useful instead, like NodeJS
745: [21:54:00] <ss23> :P
746: [21:54:00] <ss23> you know
747: [21:54:00] <ss23> I love RoR now
748: [21:54:00] <ss23> Cause like, they've opened themselves to such awesome jokes
749: [21:54:00] <ss23> People can say anything about security and you can be like
750: [21:55:00] <ss23> lol
751: [21:55:00] <irogue> but Java's fighting back hard
752: [21:55:00] <ss23> hahaa
753: [21:56:00] <Pyromanik> because oracle
754: [21:56:00] <Pyromanik> MySQL: your data is safe with us.
755: [22:01:00] <irogue> story of my life: http://devopsreactions.tumblr.com/post/37466484802/when-something-breaks-just-before-the-lunch-break
756: [22:02:00] <ss23> You've been looking through those for like the past 15 mins!
757: [22:02:00] <ss23> irogue: Stop pretending like if you post those in a different channel each time, people will think you're working
758: [22:04:00] * ARNHOE quit (Read error: Connection reset by peer)
759: [22:05:00] <irogue> ss23: lol
760: [22:16:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
761: [22:22:00] * dendeffe quit (Quit: dendeffe)
762: [22:27:00] * liam has joined #silverstripe
763: [22:27:00] <liam> does anyone know of any examples of extending compositefield to create a custom form field that contains multiple fields?
764: [22:29:00] * dobalina quit (Ping timeout: 276 seconds)
765: [22:34:00] * chillu quit (Quit: chillu)
766: [22:35:00] * Emil_Blume quit (Quit: Leaving.)
767: [22:36:00] * layer8switch quit (Quit: Nettalk6 - www.ntalk.de)
768: [22:37:00] <Pyromanik> prolly get it tomorrow
769: [22:37:00] <Pyromanik> bl2u
770: [22:37:00] <AlphaCactus> Don't see a game
771: [22:37:00] <Pyromanik> dafuq is up with google today? just a game for no particular reason?
772: [22:38:00] <Pyromanik> just wondering if there's a point to it
773: [22:38:00] <Pyromanik> you whip around after ice skaters sweeping their shit up
774: [22:38:00] <AlphaCactus> oh right u r in the future
775: [22:39:00] <Pyromanik> most google things are in commemoration of something
776: [22:46:00] <spronk> mm..
777: [22:51:00] <spronk> ugh
778: [22:51:00] <spronk> these phones
779: [22:51:00] <spronk> so idiotic
780: [22:51:00] <spronk> irogue: the voip company are installing a separate connection at boss' place for the voip pabx. he has telstra cable. they're installing adsl for the pabx. :\
781: [22:53:00] * ApacheTiger has joined #silverstripe
782: [22:55:00] <irogue> Pyromanik: 112th anniversary of the Zamboni
783: [22:55:00] <irogue> i.e. some canadian googler felt like making a zamboni game
784: [22:58:00] <Pyromanik> oic
785: [22:59:00] <spronk> mm.
786: [22:59:00] <Pyromanik> just change for a different system that actually works :<
787: [22:59:00] <Pyromanik> spronk: oh wow. So much commotion.
788: [23:03:00] <irogue> adsl is fine as long as you don't have more than 10 or so simultaneous calls
789: [23:03:00] <irogue> [11:51] <spronk> irogue: the voip company are installing a separate connection at boss' place for the voip pabx. he has telstra cable. they're installing adsl for the pabx. :\
790: [23:03:00] <irogue> seperate connection = best
791: [23:04:00] <ApacheTiger> can I declare public variables that match my db variables in my DataObject for code hinting purposes?
792: [23:06:00] <FrozenFire> In fact, I'd even say, you can't.
793: [23:06:00] <ApacheTiger> netbeans
794: [23:06:00] <AlphaCactus> what environment are you using
795: [23:06:00] <FrozenFire> ApacheTiger, You can, but you shouldn't.
796: [23:06:00] <FrozenFire> Not sure if that screws with DataObject's record stuff
797: [23:06:00] <ApacheTiger> Is there a better way to get code hinting?
798: [23:06:00] <FrozenFire> You can add docblocks without the actual property/method existing
799: [23:07:00] <ApacheTiger> I got it. The docblocks work fine
800: [23:07:00] <FrozenFire> Anyone know if it's possible to have a GridFieldAddExistingAutocompleter which allows multiple selection?
801: [23:08:00] <FrozenFire> Instead of floating nowhere
802: [23:08:00] <FrozenFire> Indeed. You can even put it *in* your $db array
803: [23:08:00] <AlphaCactus> you could try /* @var $varname ClassName */ on the line just before where you want the hint. not great, but helps sometimes. I use aptana, but i think it might work in netbeans too?
804: [23:14:00] * EPIK has joined #silverstripe
805: [23:20:00] <FrozenFire> Something in IDEs
806: [23:20:00] <Pyromanik> wtf is code hinting.
807: [23:21:00] <Pyromanik> just
808: [23:21:00] <FrozenFire> Nor I
809: [23:21:00] <Pyromanik> oh right yeah
810: [23:21:00] <FrozenFire> When you are typing a function or variable name, it'll look up what it is in the symbol table, and give you hints about it
811: [23:21:00] <Pyromanik> yeh, i know
812: [23:21:00] <Pyromanik> havn't ide'd in about... 12 years.
813: [23:22:00] <FrozenFire> But, to each his pwn
814: [23:23:00] <Pyromanik> so Birthday I guess.
815: [23:23:00] <Pyromanik> irogue: 112th anniversary? Or Birthday of Frank Zamboni? because apparently the machine was invented in 1949.
816: [23:23:00] <Pyromanik> but he was born 1901.
817: [23:25:00] <Pyromanik> mm.
818: [23:25:00] <FrozenFire> Docblocks fall out of sync
819: [23:25:00] <ApacheTiger> I have classes I created in 2009. I don't remember all the methods or properties and I don't like having to go back and look at them.
820: [23:25:00] <ApacheTiger> Code hinting speeds up the process.
821: [23:25:00] <FrozenFire> Yep. To each his own. I prefer reading the actual code
822: [23:26:00] <Pyromanik> skills and practice evolve over time. Shit I wrote ages ago likely is rubbish or deprecated today.
823: [23:26:00] <Pyromanik> I don't go back to old code.
824: [23:26:00] <FrozenFire> As is the case with SS itself
825: [23:26:00] <ApacheTiger> right, but declaring your variables doesn't fall out of sync.
826: [23:27:00] <FrozenFire> Variables don't have an explicit type
827: [23:27:00] <FrozenFire> They're scalar
828: [23:27:00] <FrozenFire> And often, you change what a variable might contain as you work on it
829: [23:27:00] <ApacheTiger> I'm just giving my perspective of why I use one.
830: [23:28:00] <ApacheTiger> at least type hinting gives you a description of what you should be storing and receiving
831: [23:28:00] * blindMoe has joined #silverstripe
832: [23:28:00] <FrozenFire> Yup. Not arguing against it necessarily
833: [23:28:00] <FrozenFire> Just, I don't use them for these reasons
834: [23:29:00] <ApacheTiger> Of course
835: [23:29:00] <FrozenFire> If your docblocks are maintained
836: [23:29:00] <blindMoe> what is the easiest way to see what version of silverstripe a site is running if you cannot log in to the admin section? I have file system access and db access but the host is running php 5.4 and the amount of errors that this version of silverstripe is throwing makes it so I cannot login to the admin
837: [23:30:00] <FrozenFire> blindMoe, There is no reliable method
838: [23:31:00] <blindMoe> its gotta be in the db somewhere ( I would hope so at least )
839: [23:31:00] <FrozenFire> Nope
840: [23:31:00] <blindMoe> seriously?
841: [23:32:00] <FrozenFire> And currently, I'm pretty sure it's empty
842: [23:32:00] <AlphaCactus> no, it is commonly stored in a file named silverstripe_version, however for a few releases in 2.x the file was missing or empty
843: [23:32:00] <AlphaCactus> and before that I'm not sure
844: [23:32:00] <blindMoe> wow
845: [23:32:00] <blindMoe> that is impressive :)
846: [23:32:00] <FrozenFire> :P
847: [23:32:00] <blindMoe> guess I have to fix all these errors so I can hopefully log in
848: [23:33:00] <blindMoe> do the newer version of SS run properly on php 5.4 ?
849: [23:33:00] <FrozenFire> Yes, they do
850: [23:33:00] <FrozenFire> In these days of git versioned installs, and composer-managed dependencies, static version numbers are pointless.
851: [23:33:00] <FrozenFire> It's pretty useless anyways
852: [23:33:00] <AlphaCactus> I'm using 3.0.3 and it is there, but yeah. if that file is missing... you might just be sol
853: [23:33:00] <blindMoe> I think I am SOL
854: [23:33:00] <AlphaCactus> I'm using 5.4.3 no probs
855: [23:33:00] <FrozenFire> Pretty sure 2.4x won't run on 5.4
856: [23:33:00] <blindMoe> k
857: [23:34:00] <blindMoe> yeah I think I am 2.4
858: [23:34:00] <blindMoe> I got the frontend squared away with the exception of the contact form
859: [23:35:00] <FrozenFire> SS 2 is derived from, basically, PHP 5.1 and 5.2
860: [23:35:00] <FrozenFire> With a hint of 5.3
861: [23:36:00] <blindMoe> is there a good doc on properly upgrading from 2.4.x to 3.0.x ?
862: [23:36:00] <blindMoe> does-bash-3.2$ cat ./cms/silverstripe_version $URL: http://svn.silverstripe.com/open/modules/cms/tags/2.4.2/silverstripe_version $
863: [23:36:00] <FrozenFire> SS 3 is the place to be
864: [23:36:00] <FrozenFire> Heh. Yeah.
865: [23:37:00] <FrozenFire> But because SS isn't some static package of code (in that you have modules and whatnot), it's not a definite process.
866: [23:37:00] <FrozenFire> Sort of
867: [23:37:00] <blindMoe> I see some forum posts about it but wondering if there is a more "official" upgrade path doc
868: [23:38:00] <FrozenFire> Back everything up.
869: [23:38:00] <blindMoe> yeah I am more concerned with the core and db upgrades
870: [23:38:00] <blindMoe> I know I will have to check that the modules have a version that is compatible with 3.0.x and can be upgraded
871: [23:38:00] <FrozenFire> http://doc.silverstripe.org/framework/en/changelogs/3.0.0 gives some insight
872: [23:38:00] <blindMoe> hehe yeah I will be upgadring in a dev invironment first
873: [23:38:00] <blindMoe> k thanks
874: [23:39:00] <blindMoe> not a large site at all
875: [23:39:00] <FrozenFire> If you have a very large project, it can definitely be a hassle
876: [23:39:00] <FrozenFire> I spent a couple of days upgrading one of mine, and I'm pretty seasoned
877: [23:39:00] <blindMoe> I think it is really just the blog module and user forms
878: [23:39:00] <blindMoe> hopefully the templating engine didn't change much
879: [23:40:00] <blindMoe> ahh ok
880: [23:40:00] <FrozenFire> Not much, but some, and for the better.
881: [23:40:00] <FrozenFire> I think it's pretty-much compatible
882: [23:40:00] <blindMoe> cool
883: [23:40:00] <FrozenFire> But you should upgrade your <% control %> stuff to <% with %> or <% loop %>
884: [23:40:00] <FrozenFire> with is for changing scope, loop is for iterating
885: [23:40:00] <blindMoe> nice
886: [23:41:00] <blindMoe> oh man
887: [23:41:00] <FrozenFire> The biggest change in the framework is the new ORM
888: [23:41:00] <FrozenFire> DataObjectSet doesn't exist any more
889: [23:41:00] <FrozenFire> And you don't use DataObject::get() ever
890: [23:41:00] <blindMoe> upgrading might end up being quite a bit of work then
891: [23:42:00] <FrozenFire> E.g. MyObject::get()->filter(array("SomeField" => "Val"))->sort("Sorting")
892: [23:42:00] <FrozenFire> Instead, you use DataList
893: [23:42:00] <FrozenFire> For instance, you would do MyObject::get()
894: [23:42:00] <FrozenFire> And filtering/joining/sorting/etc are chained off of that
895: [23:42:00] <blindMoe> hrmm so like a more standard ORM model
896: [23:43:00] <FrozenFire> ComplexTableField is replaced with the abso-freaking-lutely great GridField
897: [23:43:00] <FrozenFire> Indeed
898: [23:43:00] <blindMoe> that is nice
899: [23:43:00] <FrozenFire> Yeah. Everything about SS is much nicer
900: [23:43:00] <blindMoe> hrmm ok gonna dive into the existing code and see what an upgrade is going to really entail
901: [23:44:00] <FrozenFire> Which makes for simple relationship management
902: [23:44:00] <blindMoe> I only have two sites left running SS
903: [23:44:00] <blindMoe> maybe the 3.x branch will bring me back into SS
904: [23:44:00] <FrozenFire> It very-well could
905: [23:44:00] <AlphaCactus> What do you use instead of SS?
906: [23:44:00] <blindMoe> AlphaCactus: depends on what the client needs
907: [23:45:00] <blindMoe> I have a custom CMS I built on the Yii framework that I use for most larger sites
908: [23:45:00] <AlphaCactus> ok, what are your two most popular
909: [23:45:00] <blindMoe> most CMS' try to do to much and the resources they require become out of hand
910: [23:45:00] <FrozenFire> Heh. Honestly, that's true of SS especially.
911: [23:45:00] <FrozenFire> In that, it's pretty resource-heavy
912: [23:46:00] <FrozenFire> SS's CMS builds itself from your code
913: [23:46:00] <FrozenFire> But it's so customizable, I think it's worth it
914: [23:46:00] <blindMoe> AlphaCactus: EE is pretty nice.. if clients want a blog I will normally just give them wordpress
915: [23:46:00] <blindMoe> like I said though.. tend to use my custom CMS for most
916: [23:46:00] <AlphaCactus> In Yii, it is my undersatnding that it doesn't take care of the ORM for inherited classes?
917: [23:46:00] <FrozenFire> Most CMS' have a set way of doing things that you have to tack additional stuff onto
918: [23:47:00] <blindMoe> FrozenFire: yeah it is pretty nice.. the 2.x series was ridiculously resource intensive though .. static page caching was almost mandatory for some sites
919: [23:47:00] <FrozenFire> Especially with GridField
920: [23:47:00] <FrozenFire> Yeah. I do agree
921: [23:47:00] <FrozenFire> That being said, the biggest reason is that most people forget to use an opcode cache
922: [23:47:00] <blindMoe> even with it.. SS and WP use a ton of resources
923: [23:47:00] <FrozenFire> The "slowness" of SS often comes from it having to re-interpret all of its code ever load
924: [23:48:00] <FrozenFire> every**
925: [23:48:00] <blindMoe> even Joomla and Drupal seemed to be easier on the the server than SS
926: [23:48:00] <FrozenFire> Installing xcache produces *at least* a 20% increase in performance
927: [23:48:00] <FrozenFire> For larger sites, closer to 60%
928: [23:48:00] <blindMoe> there are pro's and con's to every CMS though.. no one is perfect.. or even close to it :)
929: [23:49:00] <blindMoe> had a few issues with APC that forced me to switch to xcache and now I don't think I will ever go back
930: [23:49:00] <blindMoe> yeah I use xcache and try to use memcached for object caching when I can
931: [23:49:00] <FrozenFire> I've seen sites go from two second load times to .3 second load times. :P
932: [23:49:00] <FrozenFire> Just with an xcache enable
933: [23:49:00] <blindMoe> yeah xcache is nice
934: [23:50:00] <blindMoe> ok bbiaf.. gonna start digging through template / module code and see what this is going to take
935: [23:50:00] <FrozenFire> Yeah. That's a common sentiment

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