#silverstripe IRC Log

IRC log for 27 February 2013

All timestamps are in UTC.

1: [00:07:00] <djd4ws0n> By the looks of it, you may be better served with a manual query; http://api.silverstripe.org/2.4/class-SQLQuery.html
2: [00:08:00] <djd4ws0n> As that seems to be quite a complex query for DataObject::get();
3: [00:09:00] * djd4ws0n quit (Quit: Page closed)
4: [00:21:00] * Guest66097 quit (Quit: Guest66097)
5: [00:36:00] * Stomach quit (Quit: Leaving.)
6: [00:47:00] * FarboxDaniel has joined #silverstripe
7: [00:50:00] * chillu quit (Quit: chillu)
8: [00:53:00] <FarboxDaniel> Anyone know a great resource for learning how to use sql joins with SS, I've looked at Data model docs and was not quite enough for me. I have the SQL that works: SELECT * FROM Product p, ProductCategory_Products c, SiteTree s WHERE p.ID = c.ProductID AND c.ProductCategoryID = s.ID Order By Sort ASC
9: [00:54:00] <FarboxDaniel> But cannot get it to work with Data model
10: [00:55:00] * Stomach has joined #silverstripe
11: [00:58:00] <FarboxDaniel> Heres my attempt using the ORM: $products = Product::get() ->sort('Sort ASC') ->leftJoin('Product', 'Product.ID = ProductCategory_Products.ProductID AND ProductCategory_Products.ProductCategoryID = SiteTree.ID');
12: [00:59:00] <FarboxDaniel> It displays and sorts the products, but it seems to sort by the products 'sort' where I need it to sort by the categories 'sort'
13: [01:08:00] <Pyromanik> your sort is in the wrong place
14: [01:08:00] <Pyromanik> (at a guess)
15: [01:08:00] <Pyromanik> FarboxDaniel: what versions?
16: [01:08:00] <Pyromanik> oh
17: [01:08:00] <Pyromanik> 3
18: [01:08:00] <FarboxDaniel> yeah.
19: [01:08:00] <Pyromanik> order matters!
20: [01:09:00] <Pyromanik> yes indeed, try putting the sort after the leftJoin
21: [01:09:00] <Pyromanik> it follows in logical sequence
22: [01:09:00] <FarboxDaniel> ok, I'll give it a go
23: [01:09:00] <Pyromanik> you want to get products joined with data then sort them
24: [01:09:00] <Pyromanik> first you get, then your sort products, then you're joining.
25: [01:12:00] <irogue> BREAKING: A person has been killed by a shark at Muriwai Beach west of Auckland.
26: [01:12:00] <irogue> jebus
27: [01:13:00] <Pyromanik> that sucks for them
28: [01:16:00] <Pyromanik> did you try ProductCategory.Sort ?
29: [01:16:00] <FarboxDaniel> That does seem logical, but it is still not working. Basically I want to sort the product by the sort order of the category page they belong to. It still seems to be sorting by the sort order of the product.
30: [01:18:00] <FarboxDaniel> I didn't as I don't have a ProductCategory table, should I add a dummy field so I get a table and then try this or is there a better way?
31: [01:21:00] <Pyromanik> you don't have a ProductCategory table?
32: [01:21:00] <Pyromanik> does it inherit from something else?
33: [01:23:00] <FarboxDaniel> it extends Page
34: [01:24:00] <Pyromanik> I see
35: [01:24:00] <FarboxDaniel> So I have a ProductCategory_Products table and a Products table.
36: [01:24:00] <Pyromanik> right
37: [01:24:00] <Pyromanik> wait
38: [01:25:00] <Pyromanik> you want to get the products ordered by category?
39: [01:25:00] <Pyromanik> why not get categories then loop the products?
40: [01:26:00] <FarboxDaniel> I guess I had it my head that it would be more efficient to get it in one query. And I need a certain category to be last so was hoping to use "sort"
41: [01:27:00] <FarboxDaniel> So if client adds more categories they can move them where they want to appear by rearranging site tree
42: [01:27:00] <Pyromanik> I'm not that advanced with DataList yet.
43: [01:27:00] <Pyromanik> well you can probably do it, I just don't know how, sorry
44: [01:27:00] <Pyromanik> Right
45: [01:28:00] * liam_ has joined #silverstripe
46: [01:28:00] * liam_ is now known as Guest86807
47: [01:29:00] <FarboxDaniel> Thats fine thanks for help I did gain a little there. Another idea I have is to add a field for category to set sort order and then I can order by that. and client can sort them that way. Do see any problems with this?
48: [01:29:00] <Pyromanik> if they're pages, just sort them in the CMS?
49: [01:29:00] * ajshort has joined #silverstripe
50: [01:29:00] <Pyromanik> site tree
51: [01:30:00] <Pyromanik> Pages already have a Sort field
52: [01:31:00] <FarboxDaniel> Actually I should be able to sort categories by sort order without product 'sort' col getting in the way by doing as you said. I'll just get categories in order of sort first and then loop through and get products.
53: [01:31:00] <Pyromanik> if you want a separate sort for a different purpose I suppose it wouldn't hurt so long as nothing conflicts.
54: [01:32:00] <FarboxDaniel> Yeah got it! Thanks Pyromanik.
55: [01:32:00] <Pyromanik> seems safe.
56: [01:32:00] <Pyromanik> yeh, just put a gridfield in the siteconfig or something and set the sortable rows component to SortOrder
57: [01:33:00] <FarboxDaniel> cool, off to give it a go.
58: [01:34:00] * LoveDuckie quit (Ping timeout: 255 seconds)
59: [01:43:00] <priithansen> hm adding formaction in getCMSFields is not that simple right?
60: [01:44:00] * Stomach quit (Quit: Leaving.)
61: [01:45:00] <Pyromanik> you don't add form actions in getCMSFields, as the method suggests, it's for fields, not actions.
62: [01:45:00] <Pyromanik> although I hear it's not very fantastic in modeladmin :<
63: [01:45:00] <Pyromanik> getCMSActions on the other hand...
64: [01:47:00] <priithansen> hm that sadly makes sense
65: [02:03:00] * Stomach has joined #silverstripe
66: [02:05:00] * SightUnseen has joined #silverstripe
67: [02:05:00] * SightUnseen has left #silverstripe
68: [02:11:00] <aznain> Please help ... really stuck with form thing ....
69: [02:11:00] <aznain> http://www.sspaste.com/paste/show/512d6b213c42c ....Form Save button is not calling ....
70: [02:17:00] <Pyromanik> aznain... this is member profiles
71: [02:17:00] <Pyromanik> have you edited it?
72: [02:19:00] <Pyromanik> don't edit core files
73: [02:19:00] * sminnee quit (Remote host closed the connection)
74: [02:19:00] <Pyromanik> :(
75: [02:19:00] <Pyromanik> echo "<PRE>"; print_r('your are here'); echo "</PRE>"; exit;
76: [02:20:00] <Pyromanik> I do it all the time, but usually just temporary to see what's going on in it (debugs)
77: [02:20:00] * sminnee has joined #silverstripe
78: [02:20:00] * sminnee quit (Changing host)
79: [02:20:00] * sminnee has joined #silverstripe
80: [02:20:00] <Colin[pi]> we've all done it
81: [02:20:00] <irogue> but it's so much fun!
82: [02:20:00] <Pyromanik> It's true, we have
83: [02:20:00] <aznain> echo "<PRE>"; print_r('your are here'); echo "</PRE>"; exit; i wrote to check whether form is calling or not
84: [02:20:00] <Pyromanik> :<
85: [02:20:00] <aznain> Pyromanik: I followed aaram tutorial ... then was modifying that
86: [02:21:00] <Pyromanik> right
87: [02:21:00] <Pyromanik> hitting save should send you to thispage/MemberProfileForm
88: [02:21:00] <Pyromanik> aznain: ok, so what IS happening?
89: [02:21:00] <aznain> please help
90: [02:21:00] <aznain> but it is not calling
91: [02:21:00] <Pyromanik> so you haven't edited anything else in the module?
92: [02:21:00] <Pyromanik> well
93: [02:21:00] <Pyromanik> yeh
94: [02:22:00] <aznain> if i remove that line ... form is not saving anything ...
95: [02:22:00] <Pyromanik> ?
96: [02:22:00] <aznain> empty screen
97: [02:22:00] <Pyromanik> but what DOES happen
98: [02:22:00] <Pyromanik> yes
99: [02:23:00] <Pyromanik> just if the page is "thispage"
100: [02:23:00] <Pyromanik> what is the URL?
101: [02:23:00] <Pyromanik> you don't have to paste the whole thing
102: [02:23:00] <aznain> when click on save button , empty screen comes ..
103: [02:23:00] <Pyromanik> is this correct?
104: [02:23:00] <Pyromanik> you should be at "thispage/MemberProfileForm"
105: [02:23:00] <Pyromanik> (with a blank screen)
106: [02:24:00] <aznain> http://local.oldgold.com/membersadmin/memberprofile/MemberProfileForm
107: [02:25:00] <Pyromanik> aznain: I would think that the site is not in dev mode
108: [02:25:00] <Pyromanik> put site in dev mode, you will see an error
109: [02:25:00] <aznain> yes
110: [02:26:00] <Pyromanik> also, is this 2.4 or 3.0/3.1 ?
111: [02:27:00] <aznain> 2.4
112: [02:28:00] <aznain> I put site in dev mode .. no error yet ... something i am missing ...
113: [02:28:00] <Pyromanik> do you normally see errors?
114: [02:29:00] * Stomach quit (Quit: Leaving.)
115: [02:29:00] * DesignerX has joined #silverstripe
116: [02:29:00] <aznain> if dev mode on then yes .... sometime errors come in firebug console or net panel
117: [02:30:00] * Stomach has joined #silverstripe
118: [02:30:00] <Pyromanik> aznain: what is the http code returned?
119: [02:31:00] <DesignerX> hi, I need to create a method on Page.php like rederPageWithTemplate() , will this function the same way as the $Layout in the template ?
120: [02:32:00] <DesignerX> if I do $this-<renderwith() , will the template files have access to all method, relations , dabasfields as the default $Layout .. this is all on the theme
121: [02:32:00] <aznain> or u mean in response sub tab of net panel ?
122: [02:32:00] <aznain> source code ?
123: [02:32:00] <Pyromanik> response tab
124: [02:32:00] <Pyromanik> 500?
125: [02:32:00] <Pyromanik> is it anything else?
126: [02:32:00] <Pyromanik> aznain: should be 200
127: [02:33:00] <Pyromanik> Layout, Main
128: [02:33:00] <Pyromanik> DesignerX: renderWith takes an array
129: [02:33:00] <Pyromanik> hmm
130: [02:33:00] <aznain> 200
131: [02:34:00] <Pyromanik> DesignerX: but yes, whatever template you define will have access to all temeplate accessable methods
132: [02:34:00] <Pyromanik> the Layout, if you will
133: [02:34:00] <Pyromanik> if you're calling this method from within the template then just return the portion
134: [02:34:00] <Pyromanik> if that's all you're returning
135: [02:34:00] <aznain> Pyromanik: there is no response tab ....
136: [02:35:00] <Pyromanik> aznain: interesting
137: [02:35:00] <DesignerX> Pyromanik: great .
138: [02:36:00] <Pyromanik> DesignerX: doable
139: [02:36:00] * priithansen quit (Quit: priithansen)
140: [02:36:00] <Pyromanik> DesignerX: as in, same as the scope, same like doing <% with thatObject %> ..
141: [02:36:00] <DesignerX> The idea is to provide an option to render page(s) from a template name selected from a dropdown menu in the CMS
142: [02:36:00] <Pyromanik> but a bit messy
143: [02:37:00] <Pyromanik> ie, just return $form;
144: [02:37:00] <Pyromanik> aznain: try commenting the if($response) return $form->renderwith .. else
145: [02:37:00] <aznain> if i comment out $Form->loadDataFrom($Member->data()); then there is response tab .... with html code starting with <form id="Form_MemberProfileForm" action="/membersadmin/memberprofile/MemberProfileForm" method="post" enctype="application/x-www-form-urlencoded">
146: [02:38:00] <aznain> the method 'handleaction' does not exist on 'Form'
147: [02:39:00] <aznain> Pyromanik: "[User Error] Uncaught Exception: Object->__call(): the method 'handleaction' does not exist on 'Form'"
148: [02:41:00] <Pyromanik> aznain: this isn't the member profiles module, is it?
149: [02:42:00] <Pyromanik> I see
150: [02:42:00] <aznain> yes I am not using any module
151: [02:43:00] <Pyromanik> lines 22 - 24
152: [02:43:00] <Pyromanik> aznain: in that case
153: [02:43:00] <Pyromanik> get rid of $url_handler
154: [02:44:00] <spronk> you guys kick arse last night?
155: [02:44:00] <Pyromanik> I KNOW RIGHT
156: [02:44:00] <Pyromanik> first game was fun but a shocker
157: [02:44:00] <Pyromanik> DesignerX: yes
158: [02:44:00] <Colin[pi]> lol
159: [02:44:00] <spronk> haah
160: [02:44:00] <spronk> FUNNY GUY PYRO
161: [02:44:00] <spronk> :p
162: [02:44:00] <DesignerX> If MyFunction(){ return fasle; } on page.php shouldnt <% if MyFunction %> return flase in template ?
163: [02:44:00] <spronk> has anyone here actually implemented simon_w's oauth server module?
164: [02:44:00] <Pyromanik> spronk: of course
165: [02:44:00] <Pyromanik> simon_w
166: [02:44:00] <spronk> lol
167: [02:44:00] <Pyromanik> spronk: sorta
168: [02:45:00] <Pyromanik> second game saw us dance around the opposition, was a bit boring tbh
169: [02:45:00] <Pyromanik> until I got completely railed in the foot
170: [02:45:00] <spronk> sigh
171: [02:45:00] <Pyromanik> full bullet drag on PC
172: [02:45:00] <spronk> hmm
173: [02:45:00] <spronk> railed
174: [02:45:00] <spronk> railgun
175: [02:45:00] <spronk> QUAKE!
176: [02:45:00] <Pyromanik> live.com
177: [02:45:00] <spronk> www.QUAKE!live.com
178: [02:45:00] <Pyromanik> -1
179: [02:45:00] <Pyromanik> x!
180: [02:45:00] <spronk> hrm
181: [02:46:00] <spronk> yes?
182: [02:46:00] <Pyromanik> spronk: I have a very important question to ask
183: [02:46:00] <spronk> :D
184: [02:46:00] <Pyromanik> what DOES make the motherfucker so damn fresh?
185: [02:47:00] <Pyromanik> what indeed.
186: [02:47:00] <aznain> Pyromanik: url_handler removed ... but still getting same error
187: [02:47:00] <Pyromanik> http://www.youtube.com/watch?v=dFlE7_6hKUE
188: [02:47:00] <Pyromanik> aznain: and you're just returning Form, not form->renderwith or anything?
189: [02:48:00] <aznain> Pyromanik: Yes .... but function MemberProfileForm($request) still has $request parameter
190: [02:48:00] <aznain> ?
191: [02:48:00] <aznain> should i remove that too
192: [02:49:00] <Pyromanik> if($request)
193: [02:49:00] <Pyromanik> and put an if around that first line inside the function
194: [02:49:00] <Pyromanik> make it $request=null
195: [02:49:00] <Pyromanik> yes
196: [02:49:00] <Pyromanik> aznain: actually no
197: [02:51:00] <aznain> Pyromanik: done ... same error
198: [02:52:00] <aznain> public function Link() { if($ProfilePage = DataObject::get_one('MemberProfile')) { return DataObject::get_one('MemberProfile')->Link().'MemberProfileForm/'.$this->owner->ID; } }
199: [02:52:00] <Pyromanik> I can't help sorry, there's too much I don't know
200: [02:52:00] <Pyromanik> install member profiles :<
201: [02:52:00] <Pyromanik> god
202: [02:52:00] <Pyromanik> urgh
203: [02:52:00] <Pyromanik> what
204: [02:52:00] <aznain> it is in decorator
205: [02:54:00] <Pyromanik> not in 2.4
206: [02:54:00] <aznain> is there any way to pass id from template to form method without url_handler ?
207: [02:55:00] <Pyromanik> from the template
208: [02:55:00] <Pyromanik> mmm
209: [02:55:00] <Pyromanik> you can't pass variables
210: [02:55:00] <Colin[pi]> just hard coded values, ick
211: [02:55:00] * mwm has joined #silverstripe
212: [02:56:00] <mwm> I tried it and it seems none of the variables from the page and its controller are passing to the second include?
213: [02:56:00] <Pyromanik> yes, it will work
214: [02:56:00] <mwm> hi guys, anyone know with SS templates if an include within an include is supposed to work?
215: [02:57:00] <Pyromanik> you have a scope issue not related to including your include.
216: [02:58:00] <aznain> THen how to pass ID parameter so that inside form function, i get that variable in $_REQUEST / $_GET to get member data ...
217: [02:58:00] <Pyromanik> if so, use Member::currentUser iirc
218: [02:58:00] <Pyromanik> eg, page includes footer, which has a with footstuff, which has include footer in it
219: [02:58:00] <Pyromanik> aznain: is the member logged in at this point?
220: [02:59:00] <Pyromanik> or something like that
221: [02:59:00] <Pyromanik> if not
222: [02:59:00] <aznain> Pyaromanik: yes ... but admin is logged in ... as admin i want search for member by name etc ... then edit their profile to update data
223: [02:59:00] <Pyromanik> use a hiddenField on the form to save the data
224: [02:59:00] <Pyromanik> aznain: use a HiddenField on the form
225: [02:59:00] <aznain> wow
226: [02:59:00] * mwm__ has joined #silverstripe
227: [02:59:00] <aznain> let me
228: [03:00:00] <mwm__> pyro: thanks for that, didnt check if it was within a <% with %> scope
229: [03:00:00] <Pyromanik> ie load the page with the ID in the URL param, use that to fill in the hidden field so that it's still there when visiting the form action
230: [03:00:00] * howardgrigg has joined #silverstripe
231: [03:00:00] <Pyromanik> mwm__: you're welcome
232: [03:01:00] * mwm quit (Ping timeout: 245 seconds)
233: [03:04:00] * MichaelDesignerX has joined #silverstripe
234: [03:06:00] * DesignerX quit (Ping timeout: 264 seconds)
235: [03:24:00] * Stomach quit (Quit: Leaving.)
236: [03:33:00] * Mark_ has joined #silverstripe
237: [03:35:00] <Mark_> Hello Everyone. I have had so many issues with the SilverStripe Cache and reinstalling SilverStripe hadn't fixed any problems and neither has changing permissions. When I removed SS this morning the "silverstripe-cache" folder won't go. How do I get rid of it? The link is http://mark-wasley.exofire.net/silverstripe-cache/.
238: [03:38:00] <Pyromanik> you can't because you have shared hosting.
239: [03:39:00] <Pyromanik> then run that by visiting it in your browser
240: [03:39:00] <Pyromanik> it's not a fault of silverstripe
241: [03:39:00] <Pyromanik> you'll need to make a php script that deletes the folder for you
242: [03:39:00] <Pyromanik> the issue is that the files in it do not belong to you, they belong to the web user (who created them).
243: [03:40:00] <Mark_> Run me through that please.
244: [03:40:00] <Pyromanik> t
245: [03:40:00] <Pyromanik> I canno
246: [03:40:00] <Mark_> The php script
247: [03:40:00] <Pyromanik> basic file permissions
248: [03:41:00] <Pyromanik> use google?
249: [03:41:00] <Mark_> Cheers.
250: [03:41:00] <Pyromanik> they will help you.
251: [03:41:00] <Pyromanik> I don't work with filesystems
252: [03:41:00] <Mark_> Well how do I do it then?
253: [03:41:00] <Pyromanik> at the same time you can ask how to avoid the issue in the future too
254: [03:41:00] <Pyromanik> ask your host (exofire.net) to do it for you?
255: [03:41:00] <Pyromanik> probably the easiest
256: [03:41:00] <Pyromanik> php.net/manual ?
257: [03:42:00] <Pyromanik> :)
258: [03:45:00] * Guest86807 quit (Quit: Guest86807)
259: [03:46:00] * Mark_ quit (Ping timeout: 245 seconds)
260: [03:47:00] <Colin[pi]> didnt he have a phd in internet or something?
261: [03:47:00] <Colin[pi]> he's been battling with that for how long now?
262: [03:47:00] <Colin[pi]> weeks?
263: [03:47:00] <Pyromanik> he wants someone to do it all for him.
264: [03:48:00] <Colin[pi]> ah hehe
265: [03:48:00] <Pyromanik> nah, not the same guy
266: [03:53:00] * Marvanni quit (*.net *.split)
267: [03:55:00] * DesignerX has joined #silverstripe
268: [03:55:00] * Marvanni has joined #silverstripe
269: [03:56:00] * MichaelDesignerX quit (Ping timeout: 248 seconds)
270: [03:59:00] * DigNZ quit (Quit: DigNZ)
271: [04:05:00] * Stomach has joined #silverstripe
272: [04:16:00] * cloph_away1 has joined #silverstripe
273: [04:17:00] * cloph_away quit (Ping timeout: 245 seconds)
274: [04:22:00] <irogue> KareKare, Piha, North Piha, Bethells and Muriwai beaches all closed until at least Friday when situation will be reassessed. #SharkAttack
275: [04:26:00] * SightUnseen has joined #silverstripe
276: [04:26:00] * SightUnseen has left #silverstripe
277: [04:27:00] * liam__ has joined #silverstripe
278: [04:39:00] * liam__ quit (Quit: liam__)
279: [04:44:00] * FarboxDaniel quit (Quit: Page closed)
280: [04:44:00] * Stomach quit (Quit: Leaving.)
281: [04:45:00] * liam__ has joined #silverstripe
282: [04:51:00] * mwm__ quit (Ping timeout: 245 seconds)
283: [04:53:00] * liam__ quit (Quit: liam__)
284: [04:53:00] * liam__ has joined #silverstripe
285: [04:58:00] * liam__ quit (Client Quit)
286: [05:01:00] <Colin[pi]> anyone here?
287: [05:02:00] <howardgrigg> maybe...
288: [05:05:00] <Colin[pi]> hey.. navigation question
289: [05:06:00] <Colin[pi]> options?
290: [05:06:00] <Colin[pi]> but he wants it to use a different menu title than the top
291: [05:06:00] <Colin[pi]> client wants a link to be included in the sub-nav for the top-level
292: [05:06:00] <Colin[pi]> a site of mine has top-level nav along the top, sub nav at the side, usual affair
293: [05:07:00] <Colin[pi]> (using built-in ss stuff, or do I need to mod it?)
294: [05:07:00] <Colin[pi]> virtual page inherits the label, no?
295: [05:07:00] <howardgrigg> what does he want to use?
296: [05:07:00] <Colin[pi]> so he wants it to go to the same page as the top, but a different label
297: [05:08:00] <howardgrigg> *yea
298: [05:08:00] <Colin[pi]> like.. alternate menu title?
299: [05:08:00] <howardgrigg> just add a new text field to page then include that in the template no?
300: [05:08:00] <howardgrigg> year
301: [05:09:00] <Colin[pi]> k that was my thinking too, but wasn't sure if there was a better way
302: [05:09:00] <howardgrigg> well youre going to need somewhere to store the alternative text somewhere
303: [05:10:00] * SightUnseen has joined #silverstripe
304: [05:10:00] <Colin[pi]> aye.. I was doing it as part of a navigation widget, but then that is only displayed in the widget, not site wide
305: [05:12:00] * SightUnseen has left #silverstripe
306: [05:16:00] * liam__ has joined #silverstripe
307: [05:17:00] * Error404NotFound quit (Ping timeout: 256 seconds)
308: [05:20:00] <DesignerX> this way, when ever the client set the 2nd title, it will be used for the side bar, else use the default .
309: [05:20:00] <DesignerX> Colin[pi]: hi, you can have a Title2 field (for example) then in the sidebar menu u can do <% if Title2 %> $Title2 <% else %> $Title ,% end_if %>
310: [05:29:00] * liam__ quit (Quit: liam__)
311: [05:29:00] * Error404NotFound has joined #silverstripe
312: [05:34:00] * MichaelDesignerX has joined #silverstripe
313: [05:35:00] * Stomach has joined #silverstripe
314: [05:36:00] * DesignerX quit (Ping timeout: 252 seconds)
315: [05:36:00] * Colin[pi] quit (Ping timeout: 256 seconds)
316: [05:39:00] * Shrike_Finland quit (Quit: Leaving.)
317: [05:46:00] * Stomach quit (Quit: Leaving.)
318: [05:48:00] * pippy_ has joined #silverstripe
319: [05:49:00] * pippy quit (Ping timeout: 244 seconds)
320: [05:50:00] <MichaelDesignerX> hi again, what would be a reasnable timeframe to get an e-commerce website done with silverstripe ? using the e-commerce payment, ss3 , default theme , & the basic paypal payment ?
321: [05:51:00] * SightUnseen has left #silverstripe
322: [05:51:00] * SightUnseen has joined #silverstripe
323: [05:56:00] * varunS has joined #silverstripe
324: [06:16:00] * Err404NotFound has joined #silverstripe
325: [06:16:00] * Error404NotFound quit (Disconnected by services)
326: [06:22:00] * joelpittet quit (Ping timeout: 272 seconds)
327: [06:24:00] * SightUnseen has left #silverstripe
328: [06:24:00] * SightUnseen has joined #silverstripe
329: [06:26:00] <MichaelDesignerX> is the payment module SS3 ready ? https://github.com/silverstripe-labs/silverstripe-payment nothing in the readme about the ss version supported !
330: [06:33:00] * joelpittet has joined #silverstripe
331: [06:33:00] * varunS quit (Ping timeout: 245 seconds)
332: [06:33:00] * liam__ has joined #silverstripe
333: [06:36:00] * liam__ quit (Client Quit)
334: [06:47:00] * guci0 has joined #silverstripe
335: [06:48:00] <guci0> Morning!
336: [07:00:00] <howardgrigg> evening!
337: [07:01:00] <howardgrigg> MichaelDesignerX: according to the composer file it's for 2.3 but I've never used it
338: [07:05:00] * DrCuriosity quit (Ping timeout: 252 seconds)
339: [07:26:00] <nimeso> michael... u still there?
340: [07:28:00] <nimeso> ss3 branch that is
341: [07:28:00] <nimeso> We have a 99% working branch of the shop module here... https://github.com/burnbright/ as well as some payment modules that should work.
342: [07:29:00] * Shrike_Finland has joined #silverstripe
343: [07:43:00] * DesignerX has joined #silverstripe
344: [07:46:00] * MichaelDesignerX quit (Ping timeout: 264 seconds)
345: [07:49:00] <DesignerX> nimeso: great. I will have a look
346: [07:52:00] <DesignerX> nimeso: is the shop module differnt from the ecommerce module at http://www.silverstripe.org/ecommerce-module/ ?
347: [07:53:00] * priithansen has joined #silverstripe
348: [07:54:00] <howardgrigg> DesignerX: see http://swipestripe.com ?
349: [07:55:00] <DesignerX> I know about swipestripe , I like it but it adds an extra $400 to my costs :(
350: [07:57:00] <DesignerX> & its doesnt have eway payment :(
351: [08:25:00] * zfmf has joined #silverstripe
352: [08:43:00] * chillu has joined #silverstripe
353: [09:04:00] * kinglozzer has joined #silverstripe
354: [09:08:00] * travis-ci has left #silverstripe
355: [09:08:00] * popeshoe quit (Quit: This computer has gone to sleep)
356: [09:08:00] * travis-ci has joined #silverstripe
357: [09:08:00] <travis-ci> [travis-ci] silverstripe/sapphire#1526 (3.0 - 7c0240c : Ingo Schommer): The build passed.
358: [09:08:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d888ea5e6784...7c0240cec1c0
359: [09:08:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097202
360: [09:15:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/7c0240cec1c0...e6fffb9ef910
361: [09:15:00] <travis-ci> [travis-ci] silverstripe/sapphire#1527 (3.0 - e6fffb9 : Ingo Schommer): The build passed.
362: [09:15:00] * travis-ci has joined #silverstripe
363: [09:15:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097288
364: [09:15:00] * travis-ci has left #silverstripe
365: [09:25:00] * LoveDuckie has joined #silverstripe
366: [09:30:00] <travis-ci> [travis-ci] silverstripe/sapphire#1528 (master - 6f55948 : Ingo Schommer): The build passed.
367: [09:30:00] * travis-ci has joined #silverstripe
368: [09:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/50f36447a965...6f55948e4e33
369: [09:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097621
370: [09:30:00] * travis-ci has left #silverstripe
371: [09:35:00] * travis-ci has left #silverstripe
372: [09:35:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097645
373: [09:35:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bea1b9002d38...af52de97e92c
374: [09:35:00] <travis-ci> [travis-ci] silverstripe/sapphire#1529 (3.1 - af52de9 : Ingo Schommer): The build passed.
375: [09:35:00] * travis-ci has joined #silverstripe
376: [09:37:00] * travis-ci has joined #silverstripe
377: [09:37:00] * travis-ci has left #silverstripe
378: [09:37:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097681
379: [09:37:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/af52de97e92c...64b465f0cbc2
380: [09:37:00] <travis-ci> [travis-ci] silverstripe/sapphire#1530 (3.1 - 64b465f : Ingo Schommer): The build passed.
381: [09:45:00] * travis-ci has joined #silverstripe
382: [09:45:00] <travis-ci> [travis-ci] silverstripe/sapphire#1531 (3.1 - 3978952 : Ingo Schommer): The build passed.
383: [09:45:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/64b465f0cbc2...39789529d7a7
384: [09:45:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5097795
385: [09:45:00] * travis-ci has left #silverstripe
386: [09:45:00] * Colin[pi] has joined #silverstripe
387: [09:46:00] * g4b0 has joined #silverstripe
388: [09:46:00] <g4b0> hi all
389: [09:52:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
390: [09:52:00] <Colin[pi]> DesignerX: thanks yep that's my plan now
391: [09:54:00] <Colin[pi]> hey g4b0
392: [09:55:00] * joelpittet quit (Remote host closed the connection)
393: [09:55:00] * ARNHOE has joined #silverstripe
394: [10:02:00] <nimeso> I'm just board now... lol... who is around the world! I'm in NZ... getting late 10.59 and still no luck figuring out simons oauth module. How does everyone feel about HTML5 becoming mobile default tech for apps in future? do you really think HTML5 can pull it off? anyone playing with a win 8 phone yet?
395: [10:03:00] <kinglozzer> If I have a query string like this: ?somevar=yes#Some_ID, iOS Safari strips out the #Some_ID.. only iOS Safari though. Anyone experienced this?
396: [10:04:00] <nimeso> no, sorry can't say I've had to use # in requests
397: [10:04:00] <nimeso> crazy! thats nutz man
398: [10:05:00] * howardgrigg quit (Remote host closed the connection)
399: [10:08:00] <kinglozzer> Might have to do it as another part of my query string and use javascript or something
400: [10:09:00] <ec8or> maybe do /page/somevar/yes#Hash
401: [10:09:00] <nimeso> that is really weird thou... wonder why they do that? do you want me to test on my ios?
402: [10:10:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/39789529d7a7...365e8021ba51
403: [10:10:00] * travis-ci has left #silverstripe
404: [10:10:00] <ec8or> if it is only one variable
405: [10:10:00] <nimeso> yer, could do... not ideal thou
406: [10:10:00] * travis-ci has joined #silverstripe
407: [10:10:00] <travis-ci> [travis-ci] silverstripe/sapphire#1533 (3.1 - 365e802 : Ingo Schommer): The build passed.
408: [10:10:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5098552
409: [10:11:00] <kinglozzer> ec8or: I'll probably do ?someVar=1&scrollTo=Some_ID
410: [10:11:00] <kinglozzer> nimeso: Yeah I don't know, Chrome on iOS handles it fine. It's only on my local server, tested it on iOS simulator and my iPhone as well :(
411: [10:11:00] <nimeso> ok... I'll do quick test, give me 10 mins, got boss bugging me.. at 11.11pm :(
412: [10:16:00] <kinglozzer> Again only iOS Safari :/
413: [10:16:00] <kinglozzer> Weird, even removing the query string and leaving just the hash isn't working now
414: [10:16:00] <ec8or> does it disappear in the address bar?
415: [10:17:00] <ec8or> or is it just the js not firing
416: [10:17:00] <kinglozzer> ec8or: It just disappears in the address bar
417: [10:18:00] <ec8or> aha, well that makes a little bit of sense at least
418: [10:18:00] <kinglozzer> It's on a form. The form action ends in #SomeID, verified that with Safari/iOS inspector, but it ignores it
419: [10:19:00] <kinglozzer> It does? :P
420: [10:19:00] <ec8or> is it using ajax to submit?
421: [10:20:00] <kinglozzer> Nope
422: [10:20:00] <ec8or> try using %23 instead of # in the action as well
423: [10:21:00] <kinglozzer> Nope :/
424: [10:23:00] <ec8or> kinglozzer: well, i'd just add a hidden field and parse it out using js then :)
425: [10:24:00] <kinglozzer> Yeah I think I'll have to. Pain in the a**!
426: [10:25:00] <ec8or> http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values
427: [10:28:00] <kinglozzer> Neither does old IE
428: [10:28:00] <kinglozzer> Ahh, it's because Safari doesn't submit the hash when it submits the form
429: [10:29:00] * feejin has joined #silverstripe
430: [10:29:00] * webguest has joined #silverstripe
431: [10:30:00] <webguest> i want to create a form which loads info from a specific DataObject.. the idea: unique url's tells the page which DO to load into the form
432: [10:30:00] <webguest> how do i do this
433: [10:31:00] <webguest> just an example
434: [10:31:00] <webguest> ulr.com/myform/1234
435: [10:32:00] <ec8or> webguest: http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/
436: [10:34:00] <ec8or> basically you have to do /myform/id/123 and then just add a method for retrieving the DO based on the parameter in the url
437: [10:38:00] * lx-berlin has joined #silverstripe
438: [10:41:00] * Luke1988 has joined #silverstripe
439: [10:42:00] * feejin quit (Remote host closed the connection)
440: [10:47:00] * aznain quit (Ping timeout: 245 seconds)
441: [10:59:00] <webguest> ec8or, does the DO MUST have a relation to the oage?
442: [10:59:00] <webguest> *page?
443: [11:00:00] <webguest> is it required?
444: [11:04:00] * Luke1988 quit (Quit: Leaving)
445: [11:14:00] <webguest> *relation
446: [11:14:00] <webguest> ec8or: is the realtion required? im not using the relation now, but im getting the default 404 when i try to do function/ID
447: [11:14:00] <webguest> http://paste2.org/p/2998887
448: [11:16:00] <webguest> oops forgot to change the template behaviour
449: [11:28:00] * PigeonFriend has joined #silverstripe
450: [11:35:00] <ocm> howdy!
451: [11:35:00] * ocm has joined #silverstripe
452: [11:36:00] <kinglozzer> Morning
453: [11:36:00] <webguest> does any one know why my control DataObject returns this: array ( 'PaymentLink' => PaymentLink::__set_state(array( 'destroyed' => false, 'record' => array ( 'ClassName' => 'PaymentLink', 'Created' => '2013-02-27 12:09:01', 'LastEdited' => '2013-02-27 12:09:25', 'TourProgram' => 'Cycle Belgium Classics', 'F...
454: [11:36:00] * ajshort quit (Ping timeout: 252 seconds)
455: [11:36:00] <webguest> never seen this before
456: [11:36:00] <webguest> while im using in the template: control paymentlink .... $vars...
457: [11:37:00] <webguest> using DO via URl
458: [11:37:00] <webguest> http://paste2.org/p/2998887
459: [11:40:00] <ocm> someone painted the api.silverstripe.org? :P
460: [11:43:00] * Colin[pi] quit (Ping timeout: 276 seconds)
461: [11:47:00] <webguest> or how does $this->Customise($Data); work ...
462: [11:52:00] <webguest> common guys, i really need this answer, cant seem to fix it
463: [11:54:00] <ec8or> webguest: are you using ss3?
464: [11:54:00] <webguest> ss2
465: [11:54:00] <webguest> http://paste2.org/p/2999151
466: [12:00:00] <ec8or> try this instead http://paste2.org/p/2999187
467: [12:01:00] * ocm quit (Remote host closed the connection)
468: [12:02:00] * ocm has joined #silverstripe
469: [12:02:00] <webguest> ec8or, now i only see 'Array' on my page
470: [12:03:00] * ajshort has joined #silverstripe
471: [12:03:00] <webguest> ec8or, do i need to make a relation between PaymentLink and PaymentForm? i believe i dont right?
472: [12:04:00] <ajshort> chillu: do you think you could merge 3.1 into master so I can finish off the last of the build-related pull requests?
473: [12:09:00] <ec8or> webguest: try removing the form function completely, not really needed
474: [12:09:00] <ajshort> chillu: I was also wondering what the status of the payment module with SS3 was. Is the GSOC project stuff going to move forwards?
475: [12:11:00] <webguest> ok goood idea!
476: [12:12:00] <ec8or> but should work with Customise() as well, not sure what is going on
477: [12:13:00] <webguest> or where should i place the code from 'form'
478: [12:13:00] <ec8or> try outputting the id to make sure that is right
479: [12:13:00] <webguest> should i load it in the init?
480: [12:17:00] <webguest> ec8or, it isnt working. uhm, now i dont even see the array
481: [12:17:00] * UncleCheese has joined #silverstripe
482: [12:18:00] <webguest> http://paste2.org/p/2999296
483: [12:18:00] <webguest> but why use data?
484: [12:20:00] <ec8or> but looks like you had everything set up correctly before so not really sure why you got an array back like that..
485: [12:20:00] <ec8or> remove the whole if statement from your init function, $PaymentLink will be accessible from the template anyway
486: [12:22:00] * howardgrigg has joined #silverstripe
487: [12:26:00] <webguest> hmm.. what now :P
488: [12:26:00] <webguest> ?
489: [12:27:00] <chillu> I've actually just pinged Frank and Jeremy yesterday about what's left to do in order to merge their payment module changes upstream
490: [12:27:00] <chillu> ajshort: Doing the master merge now
491: [12:27:00] <chillu> Have you looked through the codebase? What's your impression of its state?
492: [12:28:00] <ajshort> apparently the code base itself is good, but more payment providers need to be ported across
493: [12:28:00] <ajshort> chillu: I pinged them, they said that the student has lost interest
494: [12:28:00] <ajshort> I haven't look through the code base myself
495: [12:29:00] <chillu> Yeah, that's to be expected - its really up to interested devs on the module to get this over the line. Don't think SS Ltd. will be able to contribute much to this effort though
496: [12:29:00] <chillu> It doesn't need to be perfect to get upstream, but we do need a migration path
497: [12:29:00] <ajshort> yep
498: [12:34:00] * howardgrigg quit (Remote host closed the connection)
499: [12:37:00] <chillu> ajshort: alright, merged into master. Fixed the travis.yml as well
500: [12:38:00] <ajshort> chillu: the version in README.md (for the build indicator image) is wrong as well
501: [12:38:00] <chillu> Build seems to running OK so far: https://travis-ci.org/silverstripe/sapphire/jobs/5101974
502: [12:38:00] <chillu> Yeah fixed that as well
503: [12:38:00] <ajshort> now I can finally submit my original HTTP pull request :)
504: [12:38:00] <ajshort> ok cool
505: [12:39:00] <chillu> Thanks for adding the "generated composer file" stuff to the output
506: [12:39:00] <chillu> woop woop :)
507: [12:39:00] <chillu> Do you know why phpunit doesn't pass through to stdout while its running? Is that because of the "sh -c" usage?
508: [12:40:00] <ajshort> could be I imagine
509: [12:40:00] * howardgrigg has joined #silverstripe
510: [12:40:00] <ajshort> no idea
511: [12:40:00] <webguest> ec8or, i solvd it ;) .... Page.ss wasn't using $Layout.. thats why my template wasnt working
512: [12:40:00] <ajshort> actually yeah that's probably it
513: [12:42:00] <webguest> the large array was coming from $Form btw
514: [12:45:00] * travis-ci has left #silverstripe
515: [12:45:00] * popeshoe has joined #silverstripe
516: [12:45:00] * travis-ci has joined #silverstripe
517: [12:45:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#251 (master - 56208a5 : Ingo Schommer): The build passed.
518: [12:45:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1324024445bb...56208a59e51d
519: [12:45:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5101980
520: [12:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5101973
521: [12:47:00] * travis-ci has joined #silverstripe
522: [12:47:00] <travis-ci> [travis-ci] silverstripe/sapphire#1534 (master - ce66bc1 : Ingo Schommer): The build passed.
523: [12:47:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/6f55948e4e33...ce66bc1eaf02
524: [12:47:00] * travis-ci has left #silverstripe
525: [12:49:00] <ec8or> webguest: nice one :)
526: [12:50:00] <webguest> thx for the help ;)
527: [12:53:00] <ec8or> plus the skiing is on..
528: [12:53:00] <ec8or> haha sorry for not focusing properly, lots going on here
529: [12:53:00] * howardgrigg quit (Remote host closed the connection)
530: [12:54:00] <webguest> and then public function ecrypt($str){ ?
531: [12:54:00] <webguest> how do i put the result of a function in a variable? $EncryptID = ecrypt($ID);
532: [12:54:00] <webguest> im getting Call to undefined function ecrypt()
533: [12:55:00] <kinglozzer> Not in the Page_Controller
534: [12:55:00] <webguest> on a DO
535: [12:55:00] <kinglozzer> webguest: Your function ecrypt() will need to exist on your dataobject if it's inside a <% control %> or something
536: [12:56:00] <webguest> this is a function inside a DataObject, so not in a contorller
537: [12:56:00] <webguest> do i need to put it inside onbeforewrite
538: [12:56:00] <webguest> ?
539: [12:56:00] <kinglozzer> I don't know what you're trying to do
540: [12:58:00] <kinglozzer> What are you trying to do?
541: [12:58:00] <webguest> should i use setVaraible and getVarialbe?
542: [12:59:00] <kinglozzer> You forgot $this->
543: [12:59:00] <kinglozzer> webguest: Just looking at your code above, it should be $EncryptID = $this->ecrypt($ID);
544: [12:59:00] <webguest> :o
545: [13:01:00] * r3v3rb has joined #silverstripe
546: [13:02:00] <webguest> yeah :) it works, thx! now with a simple encryption ppl cant just change the ID on the URL ... form/Zg%3D%3D ... will become /form/1 for instance
547: [13:08:00] * r3v3rb quit (Quit: r3v3rb)
548: [13:11:00] * UndefinedOffset has joined #silverstripe
549: [13:14:00] <priithansen> If I want the array of has_many item ID's should I foreach the $this->HasmanyItem or is there a built in function?
550: [13:17:00] <kinglozzer> priithansen: There's no built in function I'm aware of. There's ->toArray(), but you'd have to do a foreach after that anyway. Possibly ->setQueriedColumns() - http://api.silverstripe.org/3.0/class-DataList.html#_setQueriedColumns
551: [13:18:00] <UndefinedOffset> priithansen kinglozzer isn't there a column() function on data list? wouldn't $this->HasmanyItem()->column('ID') return an array of the ids?
552: [13:18:00] <priithansen> hm thanks kinglozzer, I'll just foreach the Hasmanylist then and get $array[] = $item->ID from there
553: [13:18:00] <priithansen> oh let me try that :)
554: [13:19:00] <kinglozzer> Ahh, yes! UndefinedOffset is correct priithansen
555: [13:22:00] <priithansen> Hm yes that works too though the array is with keys. Will have to get rid of them to use it in filter()
556: [13:22:00] <priithansen> or not looks like it works with keys too
557: [13:24:00] <priithansen> kinglozzer, UndefinedOffset help appreciated
558: [13:26:00] <priithansen> does anyone use chrome or safari for developing? Is it just me or adding debug::show() in code pushes ui down out of the window without scrollbars and ss errors disappear to the top of the window
559: [13:29:00] <priithansen> ocm listbox works
560: [13:29:00] <ocm> little question: what fieldtype do I have to use for an mutliplechoice option? Enum provides a 'select one' option, but I want more
561: [13:30:00] <ajshort> checkboxsetfield is better
562: [13:30:00] <UndefinedOffset> priithansen i've seen this as well in firefox :) not just a chrome issue, sadly best way is to view source
563: [13:31:00] <ocm> thanks :)
564: [13:31:00] <priithansen> UndefinedOffset: ok firefox was the only one that worked at the moment. I sometimes use the refresh really fast technique too :)
565: [13:31:00] <ocm> ajshort, I will remove the _config from the dutchtranslation pullrequest tonight
566: [13:32:00] <ocm> just saw your message about it
567: [13:32:00] <ajshort> ok
568: [13:32:00] <ajshort> ocm: just make sure to rebase it all into a single commit
569: [13:33:00] <ocm> so create a new commit and do a pullrequest after that?
570: [13:33:00] <ocm> I am quite new to github (as you might have noticed)
571: [13:34:00] <ajshort> kinda
572: [13:34:00] <ajshort> the easiest way might be just to edit the existing commit
573: [13:35:00] <ajshort> which you can do using the `git gui` command
574: [13:37:00] <ocm> how to remove a file from the commit?
575: [13:39:00] <ajshort> if you're in `git gui`, and editing the commit
576: [13:40:00] <ocm> lol, that easy :D
577: [13:40:00] <ajshort> just click the icon next to the file in the stage section on the left
578: [13:49:00] <ocm> seems I am failing hard still
579: [13:52:00] * guci0 quit (Ping timeout: 245 seconds)
580: [13:56:00] * ajshort quit (Quit: Leaving)
581: [14:10:00] * Shrike_Finland quit (Quit: Leaving.)
582: [14:14:00] * kinglozz_ has joined #silverstripe
583: [14:16:00] * kinglozzer quit (Ping timeout: 260 seconds)
584: [14:34:00] <g4b0> Does TranslatableDataObject works with SS 3.1 ?
585: [14:41:00] * kinglozz_ is now known as kinglozzer
586: [14:53:00] * Rastafarii has joined #silverstripe
587: [14:53:00] <Rastafarii> Hi every1!
588: [14:54:00] <Rastafarii> I have to add some things to a 2.4 SS install, and I'm having problems with Member decorator
589: [14:55:00] <Rastafarii> but I can't rely on it being set - because it's optional
590: [14:55:00] <Rastafarii> there is a property called FullName, which contains a little bit more data than FirstName and Surname
591: [14:56:00] <Rastafarii> and I should always display it first, if set, instead of Title()
592: [14:57:00] <Rastafarii> is there a possibility to override Title() method in decorator to first take a look at the FullName?
593: [15:13:00] * Rastafarii quit (Ping timeout: 245 seconds)
594: [15:50:00] * feejin has joined #silverstripe
595: [15:58:00] * ARNHOE quit (Remote host closed the connection)
596: [15:58:00] <priithansen> What would be the preferred method of removing entries in relations if the owner get's deleted?
597: [16:09:00] * Nivery has joined #silverstripe
598: [16:09:00] <g4b0> How can I get a list of all classes extended by a DataExtension?
599: [16:09:00] * guci0 has joined #silverstripe
600: [16:12:00] * webguest quit (Ping timeout: 245 seconds)
601: [16:16:00] <kinglozzer> priithansen: onBeforeDelete() ?
602: [16:17:00] <kinglozzer> So in onBeforeDelete(), you'd find a list of related records and remove them all
603: [16:17:00] * hubertusanton has joined #silverstripe
604: [16:17:00] <priithansen> Well yeah I was thinking more in the lines of $this->deleteAllrelations() :)
605: [16:18:00] <priithansen> Seems as if even foreach is made redundant with all the awesome ss methods I wanted to make sure
606: [16:19:00] <kinglozzer> I think you can do $this->RelationName()->removeAll();
607: [16:21:00] <priithansen> kinglozzer: did it again
608: [16:23:00] <kinglozzer> It works?
609: [16:23:00] <priithansen> Have not tried it yet but the documentation seems to confirm that it should
610: [16:27:00] <kinglozzer> Ah :) yeah that API has all the answers!
611: [16:31:00] <priithansen> Yes if one knows what to look for. With onAfterWrite() it first gave me out of memory and then some other error in object.php but deleted all the relations with coulee of save's
612: [16:32:00] <priithansen> though it didn't remove the associated records just made the relationship ID 0
613: [16:32:00] <priithansen> So i'll probably have to use more manual way anyhow
614: [16:57:00] * feejin quit (Remote host closed the connection)
615: [17:00:00] * g4b0 quit (Quit: Sto andando via)
616: [17:05:00] <PigeonFriend> like the only thing you're trying to acheive is to change the requested URL... is that right?
617: [17:05:00] <PigeonFriend> chillu / sminnee: hey, I've got a bug here where isAjax on request objects on page_controllers isn't working and it turns out that none of the request headers are set... a bit of digging leads me here: https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/RootURLController.php#L120 where you replace the request object but don't bring the headers through... It looks
618: [17:06:00] * kinglozzer quit (Remote host closed the connection)
619: [17:11:00] <chillu> PigeonFriend: Yeah, looks like it - we want to have URLSegment and Actoin populated. Wanna submit a patch?
620: [17:11:00] <PigeonFriend> sure
621: [17:13:00] <PigeonFriend> chillu: only if you accept my other patches too ;)
622: [17:14:00] <ocm> anyone.. about which module for SS is this post?
623: [17:14:00] <ocm> http://www.silverstripe.org/all-other-modules/show/22832
624: [17:14:00] <ocm> :D
625: [17:16:00] <PigeonFriend> who deals with spam?
626: [17:16:00] <PigeonFriend> ocm: gtfo
627: [17:19:00] <PigeonFriend> ocm: soz, i thought you were marketing the spam, not telling people it needs to be removed ;) soz
628: [17:19:00] <ocm> why do I have to gtfo? I just pointing to a message of spam on the forum
629: [17:20:00] <ocm> ofcourse I dont market spam
630: [17:20:00] <ocm> only if it comes in a can!
631: [17:20:00] <ocm> though I actually laugh at spammers like that, copy pasting long treaths of nonesense
632: [17:21:00] <ocm> and putting a link in there somewhere, doesnt really work for me
633: [17:21:00] <ocm> anyway, time to head home!
634: [17:21:00] <ocm> cheerios
635: [17:21:00] * ocm quit ()
636: [17:22:00] <chillu> PigeonFriend: Heh yeah we're a bit swamped with other work at the moment, sorry we've been so laggy with looking through PRs
637: [17:23:00] <PigeonFriend> it's cool, travis said my pulls fail.. but that's not my error :(
638: [17:31:00] <PigeonFriend> chillu: see https://github.com/silverstripe/sapphire/pull/1242 and https://github.com/silverstripe/silverstripe-cms/pull/294
639: [17:33:00] * lx-berlin has left #silverstripe
640: [17:39:00] * Liquide has joined #silverstripe
641: [17:42:00] <PigeonFriend> can anyone tell me what the hell is going on here: https://github.com/silverstripe/sapphire/blob/3.0/model/SQLQuery.php#L571
642: [17:43:00] * zfmf quit (Ping timeout: 248 seconds)
643: [17:44:00] <PigeonFriend> if means that you can't sort by calculated values that depend on SELECT aliases
644: [17:44:00] <PigeonFriend> *it
645: [17:48:00] <FrozenFire> Yeah... SilverStripe's model sucks pretty bad when it comes to complex queries, unfortunately.
646: [18:03:00] <PigeonFriend> FrozenFire: but what's the logic in if your Order By clause has a space or bracked that it should be moved to a select and aliased?
647: [18:05:00] <FrozenFire> Not sure what your particular scenario is
648: [18:08:00] <PigeonFriend> FrozenFire: well, you know how you can't do where on a select alias (ie: Select ABS(Field1 - Field2) AS Deduction ... WHERE Deduction < 4; can't be done, but you can sort on the alias).. well, i'm then doing some maths on the aliases in the sort by clause.. so SS moves that to the SELECT and it breaks
649: [18:14:00] * DesignerX quit (Ping timeout: 252 seconds)
650: [18:17:00] * Nivery quit (Quit: Nivery)
651: [18:31:00] * joelpittet has joined #silverstripe
652: [18:33:00] <FrozenFire> Traits would be so fucking useful in SS...
653: [18:33:00] <FrozenFire> God I wish I could use PHP 5.4
654: [18:41:00] * gelignite has joined #silverstripe
655: [18:44:00] * SightUnseen has joined #silverstripe
656: [18:44:00] * SightUnseen has left #silverstripe
657: [18:49:00] * Nivery has joined #silverstripe
658: [18:57:00] * hubertusanton quit (Ping timeout: 248 seconds)
659: [18:58:00] * hubertusanton has joined #silverstripe
660: [19:06:00] * DigNZ quit (Client Quit)
661: [19:06:00] * DigNZ has joined #silverstripe
662: [19:08:00] * DigNZ has joined #silverstripe
663: [19:09:00] * joelpittet quit (Remote host closed the connection)
664: [19:12:00] * Shrike_Finland has joined #silverstripe
665: [19:13:00] <PigeonFriend> chillu / sminnee : if someone could bring this to the attention of hamish: https://github.com/silverstripe/sapphire/commit/db56d17056b52c09fdf1e39641a268bcac3c9eac#commitcomment-2707585
666: [19:13:00] <PigeonFriend> that commit seems to be causing us no-end of trouble
667: [19:32:00] * nickmolhoek quit (Remote host closed the connection)
668: [19:32:00] * nickmolhoek has joined #silverstripe
669: [19:32:00] * nickmolhoek has joined #silverstripe
670: [19:39:00] * UncleCheese quit (Quit: UncleCheese)
671: [19:41:00] * UncleCheese has joined #silverstripe
672: [19:49:00] <guci0> Hmmm...
673: [19:49:00] <guci0> Does anybody playing with memodemo from WDCNZ 2012? https://github.com/hafriedlander/wdcnz-memodemo I cannot fire this, but there is a couple of good solutions
674: [19:53:00] * Bollig|DesignCty has joined #silverstripe
675: [19:53:00] * pippy_ is now known as pippy
676: [19:56:00] <Pyromanik> what do you mean guci0?
677: [19:56:00] <Pyromanik> fire?
678: [19:56:00] <nimeso> lol.
679: [19:57:00] <Pyromanik> nimeso, lol?
680: [19:58:00] * Stomach has joined #silverstripe
681: [20:03:00] * nimeso quit ()
682: [20:08:00] <guci0> I can't start this app
683: [20:09:00] <guci0> It's great idea ??? and I wanna look closer
684: [20:12:00] * Friksel has joined #silverstripe
685: [20:15:00] * SphereSilver has joined #silverstripe
686: [20:16:00] <SphereSilver> This might sound stupid, but is it possible to set the Created-date to a date in the future?
687: [20:24:00] <Pyromanik> you'd have to do it programmatically though, it won't scaffold.
688: [20:24:00] <Pyromanik> it's just a field
689: [20:24:00] <Friksel> @SphereSilver: you can set that date in the onBeforeWrite field I guess
690: [20:24:00] <Pyromanik> I don't see why not.
691: [20:25:00] <Friksel> but Created-date is not in the future normaly... so... sometimes you just want stupid things ;)
692: [20:25:00] <Friksel> field = function
693: [20:25:00] <SphereSilver> I would guess so too, but it feels a bit stupid...
694: [20:26:00] <SphereSilver> I think I'd better use an extra datefield and do default-sort "publish,created DESC"
695: [20:26:00] <Friksel> What do you want to accomplish?
696: [20:26:00] <SphereSilver> Yeah, I'm pondering if I could solve it in a way that makes a bit more sense ;)
697: [20:27:00] <SphereSilver> In my newsmodule, You can set a "publish" date, for if you want to write something, but publish it later.
698: [20:27:00] <SphereSilver> But in the template and select, it only takes the created-date.
699: [20:28:00] <SphereSilver> I guess the cleanest way would be to sort by Publish, THEN by Created
700: [20:28:00] <SphereSilver> Yeah, that's better :)
701: [20:28:00] <Friksel> Sounds good
702: [20:29:00] <SphereSilver> Now for my awesome SQL-skills to figure out if I need ASC or DESC again. Somehow, I am unable to remember this :(
703: [20:30:00] <Friksel> Hey, do you know if there's a way to let Silverstripe convert the last part of this friendly URL like http://site.com/my_page/3369836983936kj3i to the indexfunction of my_page with the code as a parameter? (without using htaccess)
704: [20:30:00] <Friksel> Ascending: 1 to 10, Descending: 10 to 1
705: [20:31:00] <Pyromanik> advanced workfly
706: [20:31:00] <Friksel> why?
707: [20:31:00] <SphereSilver> Yes, there is... but I'd advice you not to, it will create a mess.
708: [20:31:00] <Pyromanik> what why
709: [20:31:00] <Pyromanik> SphereSilver: why what
710: [20:31:00] <Pyromanik> etc
711: [20:31:00] <SphereSilver> Ehm, I have bad experience with it.
712: [20:31:00] <Pyromanik> -y+ow
713: [20:32:00] <SphereSilver> But you can use the $url_handlers
714: [20:32:00] <Friksel> actually I want to know that advanced workflow
715: [20:32:00] <Pyromanik> or just the embargo module
716: [20:32:00] <SphereSilver> in your page-controller, do something like this:
717: [20:32:00] <SphereSilver> public static $url_handlers = array(
718: [20:32:00] <SphereSilver> '$Action//$ID' => 'Show',
719: [20:32:00] <Pyromanik> although that's probably not updated for ss3
720: [20:32:00] <SphereSilver> );
721: [20:32:00] <SphereSilver> You'd better just create a function, e.g. "show"
722: [20:32:00] <SphereSilver> which uses the ID-parameter
723: [20:33:00] <SphereSilver> it will return everything from the URL-segment on in an array
724: [20:33:00] <Friksel> you mean with a GET-parameter?
725: [20:33:00] <Friksel> The reason I want to get rid of it, is for Search Engine Optimisation
726: [20:33:00] <SphereSilver> No, you can just address the URL-parameters in your controller with $this->getURLParams()
727: [20:34:00] <SphereSilver> 'Cat',
728: [20:34:00] <SphereSilver> public static $allowed_actions = array(
729: [20:34:00] <SphereSilver> 'Show',
730: [20:34:00] <SphereSilver> I was obviously fed-up with this job (looking at old code, 800 lines, 300 commented out)
731: [20:34:00] <Friksel> Thanks, I'll check that out
732: [20:34:00] <SphereSilver> 'goaway',
733: [20:34:00] <SphereSilver> );
734: [20:35:00] <SphereSilver> https://github.com/Firesphere/silverstripe-newsmodule/blob/master/code/pages/NewsHolderPage.php
735: [20:35:00] <SphereSilver> check the getNews() function.
736: [20:35:00] * SightUnseen has joined #silverstripe
737: [20:35:00] <SphereSilver> That's where I use action/ID for getting the correct item.
738: [20:35:00] <SphereSilver> While the actual position of the URL is show/url-segment-here
739: [20:35:00] <SphereSilver> and the function show() simply returns $this
740: [20:38:00] * UncleCheese quit (Quit: UncleCheese)
741: [20:39:00] * SightUnseen1 has joined #silverstripe
742: [20:39:00] * SightUnseen1 has left #silverstripe
743: [20:39:00] * SightUnseen quit (Read error: Connection reset by peer)
744: [20:50:00] <SphereSilver> I seem to be stuck to altering the Created date. Since sorting by Publish, Created, equals in every item with a publish-date is sorted first, then, if the same in Publish, Created is selected :(
745: [20:53:00] <SphereSilver> Nevermind, problem solved. IF(PublishFrom, PublishFrom, Created) DESC
746: [20:55:00] <Friksel> Wow, that getNews function is briljant, just what I needed. Thanks!
747: [20:56:00] <Friksel> looks like a great solution with the dates
748: [20:58:00] <SphereSilver> You're welcome. I've been using that method for years already. It's a simplified version of the DataObjectAsPages module.
749: [21:06:00] <Friksel> only now I'm struggling showing the page, without the init function... I see returning values (return $this->test;) , but I don't get the page rendered. there seems to be something in the init function I'm missing here
750: [21:08:00] <SphereSilver> Is the function in your allowed actions?
751: [21:09:00] <SphereSilver> an empty init(){parent::init()}
752: [21:09:00] <SphereSilver> will fix it if it's an init-issue
753: [21:10:00] <Friksel> It seems like I need the $this->customize function for this with an array with my parameters and then go to the renderWith
754: [21:11:00] <SphereSilver> (Where _show is whatever you name it)
755: [21:11:00] <SphereSilver> will be rendered with the _show template
756: [21:11:00] <SphereSilver> then mypage/show/url-segment
757: [21:11:00] <SphereSilver> just create a template MyPage_show.ss
758: [21:12:00] <SphereSilver> in the _show, do a loop (or control in ss2.4) on the getter
759: [21:13:00] <SphereSilver> ow, it's a "with", not a "loop" in case of SS3
760: [21:13:00] <SphereSilver> Ignore the fact that I'm with "currentNewsItem". This is due to the fact that I have written an extension to the base-controller, to be able to address the newsitems globally.
761: [21:13:00] <SphereSilver> As you can see in my templates/layout
762: [21:14:00] <SphereSilver> no, wait, the with-function is correct. Ignore my previous statement :P
763: [21:15:00] <LoveDuckie> getting emails from your commits on git
764: [21:15:00] <LoveDuckie> lol you seem to be hard at work SphereSilver
765: [21:16:00] <SphereSilver> I've disabled the e-mails, since they were driving me nuts :P
766: [21:16:00] <LoveDuckie> lol it's fine :) I signed up to it
767: [21:16:00] <SphereSilver> sorry :$
768: [21:16:00] <LoveDuckie> haha
769: [21:17:00] <SphereSilver> I had almost 300 newspost.
770: [21:17:00] <SphereSilver> Well, the news-module came from the idea of my own original website, before I ported to SS3
771: [21:17:00] <LoveDuckie> well I'd imagine that you would know when you commit anyway :P
772: [21:18:00] <SphereSilver> Guess what my sitetree looked like when I imported them into the blog-module that uses pages as posts ;)
773: [21:18:00] <SphereSilver> but I'm always busy improving, I try to push a few improvements 3 to 4 times a day ;)
774: [21:19:00] * Stomach quit (Quit: Leaving.)
775: [21:19:00] * roed has joined #silverstripe
776: [21:20:00] <roed> hi all
777: [21:20:00] * roed quit (Client Quit)
778: [21:20:00] <SphereSilver> hey roed
779: [21:21:00] <Pyromanik> bye roed
780: [21:21:00] <ss23> lol
781: [21:21:00] <Friksel> @SphereSilver: thanks for your helpful input!
782: [21:22:00] <Friksel> uh.. journey
783: [21:22:00] * liam_ has joined #silverstripe
784: [21:22:00] <SphereSilver> it happens, especially to ppl with bad connection-stability ;)
785: [21:22:00] <Friksel> a quick jerney for roed
786: [21:22:00] <SphereSilver> Friksel: no problem :)
787: [21:23:00] <Friksel> :)
788: [21:23:00] <Friksel> are you going undercover liam?
789: [21:23:00] <Guest33617> does restfulserver support json?
790: [21:23:00] * liam_ is now known as Guest33617
791: [21:23:00] <Friksel> 64k4 modem probably... somewhere in the middle of the dessert
792: [21:24:00] <SphereSilver> Google works fine liam/ Guest33617 : http://www.silverstripe.org/general-questions/show/14200
793: [21:25:00] <ss23> wow, simon_w is such a cutie - https://twitter.com/larksie/status/306669105338007552/photo/1
794: [21:25:00] <ss23> also there is a girl with him, that helps too
795: [21:25:00] <SphereSilver> I'm not gonna give any comments on that :P
796: [21:28:00] <SphereSilver> I wrote the most awesome cover letter (is that correct?) yesterday. Today I had an interview at the company I sollicited to
797: [21:28:00] <Friksel> @SphereSilver: Now I see where those parameters are coming from: SS_HTTPRequest
798: [21:28:00] <SphereSilver> My letter:
799: [21:29:00] <SphereSilver> Friksel: Ehm, yes, that's where they originate, but you can address them via $this in your controller ;)
800: [21:29:00] <SphereSilver> "I really good at writing cover letters, so here's the thing: 'Do you by any chance have a position for me?' :D "
801: [21:30:00] <Guest33617> SphereSilver: thanks but there is not documentation on how to enable json??? any ideas?
802: [21:32:00] <SphereSilver> I wouldn't know. I'm guessing you can do $server->setEncoding() or something. I've never worked with the RestfulServer to know what it can do.
803: [21:32:00] <SphereSilver> I just know it can work with json ;)
804: [21:32:00] <SphereSilver> Read the docs would be my advice
805: [21:33:00] <SphereSilver> But why would you want json???
806: [21:33:00] <Guest33617> SphereSilver: because xml sucks and json doesnt require a schema...
807: [21:35:00] <SphereSilver> That is exactly why XML rules ;) the Scheme requirement ;) It makes sure you are always able to decode into an object or array in the correct fashion ;)
808: [21:35:00] * mrpink_ has joined #silverstripe
809: [21:35:00] <SphereSilver> And I'm NOT going into a fight about this ;)
810: [21:36:00] * howardgrigg has joined #silverstripe
811: [21:36:00] * mrpink_ is now known as Guest19425
812: [21:36:00] <SphereSilver> btw, if I respond "aggressively" or short, it's because I'm also a bit busy, so I try to say as much as possible, in as few lines as possible.
813: [21:38:00] <SphereSilver> But, as I said, best is to read the docs on the restfulserver options. From what I just checked in the framework/api, you need to use the JSONDataFormatter
814: [21:39:00] <SphereSilver> But seriously, if you want to build an API, use XML. The scheme is there for safety, it will prevent bad requests.
815: [21:39:00] <Pyromanik> ironic how that happens right?
816: [21:39:00] <SphereSilver> and Convert::XML2Array($result_of_API_call); isn't that much of work to type ;)
817: [21:39:00] <Pyromanik> SphereSilver: lose job, suddenly busier than ever.
818: [21:40:00] <Pyromanik> I know that feel.
819: [21:40:00] <Pyromanik> :P
820: [21:40:00] <SphereSilver> Pyromanik: guilty
821: [21:40:00] <SphereSilver> On the other hand, I have a lot of options to choose from :) I'm not "out of a job", just loosing my current job due to frikkin' financials.
822: [21:41:00] <SphereSilver> But it's a relieve for me :P
823: [21:41:00] * nimeso has joined #silverstripe
824: [21:41:00] <SphereSilver> It was either "Get the numbers even more red" or let his contract expire. They chose the latter, reluctantly.
825: [21:41:00] <Guest33617> SphereSilver: theres nothing in the docs??? json is also easier to read when consuming an API.
826: [21:42:00] <Pyromanik> does restfulserver support json? no.
827: [21:42:00] <Pyromanik> at least, not that I'm aware.
828: [21:43:00] <Pyromanik> rest of silverstripe.
829: [21:43:00] <Pyromanik> I'm not sure what restful server does
830: [21:43:00] * Guest33617 quit (Quit: Guest33617)
831: [21:43:00] <Pyromanik> but it SHOULD operate like the ... you quit, what a dick.
832: [21:43:00] <Pyromanik> in which case, make a template that contains json, not xml. ??? profit.
833: [21:44:00] <priithansen> Someone in here always shouts out http://guzzlephp.org/ when there's talk about restfulserver
834: [21:45:00] <SphereSilver> Guest19425: I repeat, XML is the way to go... but then again, I'm a stubborn (little) fucker that sticks to his principles ;)
835: [21:47:00] * Stomach has joined #silverstripe
836: [21:47:00] <SphereSilver> ow, I see :(
837: [21:47:00] <SphereSilver> well, point is still there
838: [21:47:00] <Pyromanik> I know
839: [21:47:00] <Pyromanik> the applicable one quit
840: [21:47:00] <Pyromanik> SphereSilver: wrong guest.
841: [21:48:00] * Nivery quit (Quit: Nivery)
842: [21:49:00] <Pyromanik> I belive 2.4.9 and 2.4.10 support it
843: [21:49:00] * DigNZ1 has joined #silverstripe
844: [21:49:00] <nimeso> off github just then
845: [21:49:00] * mobiusnz has joined #silverstripe
846: [21:49:00] <nimeso> Upgraded to PHP5.4 now one of my SS2.4 (2.4 branch from github) is throwing 'Array to string conversion' errors? I've had this happen before and can't remeber what I did to fix it... anyone had this happen? Most posts I've found have not helped at all. trys to build the Database and gets stuck Line 396 in C:\wamp\www\merinooutlet\sapphire\core\model\Database.php
847: [21:49:00] <Pyromanik> I don't even know where restful server is in 3.0
848: [21:49:00] <Pyromanik> nimeso: because 2.4 isn't 5.4 compatible
849: [21:49:00] <nimeso> shit... thats not to fun then :)
850: [21:49:00] <Pyromanik> update to the latest 2.4
851: [21:49:00] <nimeso> I did???
852: [21:49:00] * DigNZ1 quit (Remote host closed the connection)
853: [21:50:00] <Pyromanik> lol
854: [21:50:00] <Pyromanik> SphereSilver: yeh, unless you're managing releases.
855: [21:50:00] <Pyromanik> urgh, github
856: [21:50:00] * DigNZ1 has joined #silverstripe
857: [21:50:00] <Pyromanik> so easy to mess up.
858: [21:50:00] <SphereSilver> Pyromanik: Restful is in API
859: [21:50:00] <nimeso> sorry, I know, I know... thanks for putting up with a 'savage' lol
860: [21:50:00] <SphereSilver> and Github for President
861: [21:51:00] <Pyromanik> then you know for sure you're not pulling from the wrong branch or something like that
862: [21:51:00] <nimeso> you rock*
863: [21:51:00] <SphereSilver> Why? Private repo?
864: [21:51:00] <Pyromanik> nimeso: safest way is to grab tarball
865: [21:51:00] <nimeso> ok... will keep trying. Thanks for super quick advice yet again Pyro! ok rock
866: [21:52:00] * onfire has joined #silverstripe
867: [21:52:00] <SphereSilver> What the hell Packagist!
868: [21:52:00] <SphereSilver> The package name Firesphere/silverstripe-newsmodule is invalid, it should not contain uppercase characters. We suggest using firesphere/silverstripe-newsmodule instead.
869: [21:52:00] <SphereSilver> Ehm, my username is uppercase! STFU!
870: [21:54:00] <SphereSilver> Well, this makes sense: http://www.mobypicture.com/user/SphereSilver/view/14872122
871: [21:54:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
872: [21:55:00] <SphereSilver> It might be me, but ehm... what uppercase character is in that string?
873: [21:56:00] * UndefinedOffset quit (Quit: Leaving.)
874: [21:56:00] * UndefinedOffset has joined #silverstripe
875: [22:01:00] * UndefinedOffset quit (Ping timeout: 255 seconds)
876: [22:03:00] * Stomach quit (Quit: Leaving.)
877: [22:06:00] <nimeso> pyro... just tried clean install of 2.4.10 tar and still no luck... hangs on install.php Line 396 in C:\wamp\www\merinooutlet\sapphire\core\model\Database.php... what a nightmare upgrading to PHP5.4, I thought I could just install PHP 5.3 and use wamp to flick between but PHP 5.3 does not want to run with apache version. pooz :(
878: [22:07:00] <Pyromanik> it will
879: [22:08:00] * Rastafarii has joined #silverstripe
880: [22:08:00] <Pyromanik> change apache version first, then php version
881: [22:08:00] <Pyromanik> I have same issues.
882: [22:08:00] <nimeso> ok :) awesome
883: [22:08:00] * onfire quit (Quit: Page closed)
884: [22:08:00] <howardgrigg> Going live now with @chillu @_UncleCheese_ and @howardgrigg join us and ask a question silverscoop.org/live
885: [22:08:00] <Pyromanik> and vice versa when you switch back to 5.4
886: [22:08:00] <Pyromanik> though if you run 5.3 you shouldn't have to change at all, it runs both versions.
887: [22:08:00] <nimeso> Duh... I didt know you could change apache versions :)
888: [22:08:00] <Pyromanik> (of ss)
889: [22:09:00] <nimeso> :(
890: [22:09:00] <Pyromanik> git it a bit
891: [22:09:00] <Rastafarii> is there an option to remove import from from whole CMS?
892: [22:09:00] <Pyromanik> remove import?
893: [22:09:00] <nimeso> I'm on apache 2.2.22
894: [22:09:00] <Rastafarii> I found an option to remove it from mine model Admins
895: [22:09:00] <Rastafarii> static $model_importers = array();
896: [22:09:00] <Pyromanik> nimeso: that runs php 5.3.
897: [22:09:00] <Pyromanik> I'm using it now
898: [22:09:00] <nimeso> crazy... wamp just sits at orange
899: [22:10:00] <Pyromanik> or flick php version again
900: [22:10:00] <Rastafarii> Pyromanik: you know, that #Form_ImportForm in filter panel
901: [22:10:00] <Pyromanik> it has a bit of a 'mare sometimes.
902: [22:11:00] * herewegoagain has joined #silverstripe
903: [22:11:00] <Pyromanik> Rastafarii: not particularly, I don't use it.
904: [22:12:00] <Rastafarii> splendid - is that means that you don't know how to remove it?
905: [22:14:00] <Rastafarii> ... does it means :)
906: [22:14:00] <Rastafarii> thanks anyway
907: [22:14:00] <Pyromanik> pretty much
908: [22:18:00] <ss23> I was just talking to him
909: [22:18:00] * ajshort has joined #silverstripe
910: [22:18:00] <Pyromanik> irogue, irogue, are you here?
911: [22:18:00] <ss23> He's here!
912: [22:18:00] <ss23> wow justin beiber nudes!
913: [22:18:00] <ss23> (He should come now)
914: [22:18:00] <Pyromanik> lolwut
915: [22:19:00] <SphereSilver> I just threw beer over my keyboard. If I talk funny, it's my keyboard
916: [22:20:00] <SphereSilver> Pyromanik: why the "lolwut" :P
917: [22:20:00] <Pyromanik> you're talking funny
918: [22:20:00] <ss23> lol SphereSilver, sucks
919: [22:21:00] <SphereSilver> Nah, I got K530 from Logitech. It's quite waterproof :)
920: [22:22:00] <SphereSilver> and beerproof appearantly :P
921: [22:23:00] <Rastafarii> but wireless one?
922: [22:23:00] <SphereSilver> no, it's Logitech's own communication-protocol. The Micro-receiver-thingy
923: [22:23:00] <SphereSilver> 5 monitors and I'm still lacking monitorspace
924: [22:23:00] <Rastafarii> SphereSilver: wifi model?
925: [22:24:00] <Rastafarii> mine (k520) gave me such a headache...
926: [22:24:00] <SphereSilver> why??
927: [22:24:00] <Rastafarii> everytime I moved mouse, or typed a single letter
928: [22:24:00] <SphereSilver> It doesn't require internet connection, it's the micro-receiver Logitech uses.
929: [22:24:00] <Rastafarii> my internet connection broke :)
930: [22:24:00] <SphereSilver> the micro-receiver works like a champ for me, never failed.
931: [22:24:00] <SphereSilver> yeah, I only have wireless stuff
932: [22:25:00] <Rastafarii> yes, I know
933: [22:25:00] <Rastafarii> between kb and wifi router
934: [22:25:00] <SphereSilver> weird, never had that issue at all
935: [22:25:00] <SphereSilver> I love it. I take my keyboard, walk to the livingroom, and simply power-cycle the keyboard or mouse, and it's connected to my HTPC
936: [22:25:00] <Rastafarii> I had a interference or whatever
937: [22:26:00] <mobiusnz> hmnm
938: [22:26:00] <mobiusnz> silverstripe seems to fail with php strict
939: [22:26:00] <Rastafarii> took me a week to find out why net was dropping :D
940: [22:26:00] <SphereSilver> Yes, that's for redundancy reasons I think.
941: [22:29:00] * DigNZ quit (Quit: DigNZ)
942: [22:29:00] <Pyromanik> mobiusnz: nup, only 2.4
943: [22:29:00] <Pyromanik> unless php strict is like js strict or whatever that new feature is
944: [22:29:00] <Pyromanik> where the syntax is actually slightly different
945: [22:31:00] <Pyromanik> core runs smooth
946: [22:31:00] <mobiusnz> actually, looks like its one of the modules (userforms)
947: [22:31:00] <Pyromanik> usually is
948: [22:33:00] <Pyromanik> nope
949: [22:33:00] <mobiusnz> well it doesn't work
950: [22:33:00] <mobiusnz> is there a new blog module for 3?
951: [22:33:00] * DigNZ has joined #silverstripe
952: [22:33:00] <Pyromanik> same old
953: [22:34:00] <Pyromanik> oh well yeah, you need the 3.0 update
954: [22:34:00] <mobiusnz> maybe I have a really old version
955: [22:34:00] <Pyromanik> can't run 2.4 modules
956: [22:34:00] <Pyromanik> does
957: [22:34:00] <mobiusnz> hmm
958: [22:35:00] * Rastafarii quit (Ping timeout: 245 seconds)
959: [22:36:00] * Colin[pi] has joined #silverstripe
960: [22:41:00] * lx-berlin has left #silverstripe
961: [22:41:00] * Friksel quit (Ping timeout: 245 seconds)
962: [22:41:00] * lx-berlin has joined #silverstripe
963: [22:43:00] <chillu> in a minute :)
964: [22:43:00] <Pyromanik> is it a compliment type setup?
965: [22:43:00] <Pyromanik> howardgrigg: chillu, so what's up with PHPUnit vs Behat?
966: [22:43:00] <Pyromanik> kk :)
967: [22:45:00] * dospuntocero has joined #silverstripe
968: [22:46:00] <dospuntocero> whohoo! hey guys first time i remember the #silverscoop show live!
969: [22:47:00] <howardgrigg> dospuntocero: :)
970: [22:47:00] <ajshort> Pyromanik: phpunit = unit testing, behat = behaviour testing
971: [22:48:00] <ajshort> phpunit tests the individual "units" of code (e.g. single methods, isolated bits and pieces)
972: [22:48:00] <ajshort> behat tests the overall functionality of the application by interacting with it like an actual user would
973: [22:48:00] <Pyromanik> I see, thanks ajmitch
974: [22:48:00] <Pyromanik> err ajshort
975: [22:50:00] * halkyon has joined #silverstripe
976: [22:50:00] * halkyon has joined #silverstripe
977: [22:50:00] * halkyon quit (Changing host)
978: [22:51:00] <Colin[pi]> morning all
979: [22:54:00] <guci0> :)
980: [22:54:00] * DesignerX has joined #silverstripe
981: [22:55:00] <guci0> Late :P
982: [22:55:00] <guci0> Now I going sleep :)
983: [22:55:00] <SphereSilver> guci0: what timezone?
984: [22:56:00] <guci0> Warsaw, exactly
985: [22:56:00] <guci0> 23:55 :)
986: [22:56:00] <SphereSilver> Central Europe Time it is then ;)
987: [22:56:00] <guci0> Si
988: [22:57:00] <SphereSilver> I'm Dutch ;)
989: [22:57:00] <SphereSilver> That's actually at least 6 hours driving from me :P
990: [22:57:00] <guci0> :)
991: [22:57:00] <SphereSilver> but, yeah, I should go to bed too :P
992: [22:58:00] <guci0> Oooo 14 hours :)
993: [22:58:00] <SphereSilver> it's a distance :P
994: [22:58:00] <guci0> We have holes in the highway
995: [22:59:00] <SphereSilver> I don't know which is worse :P
996: [22:59:00] <guci0> "highway" ...
997: [22:59:00] <SphereSilver> we have a government made out of idiots....
998: [23:00:00] <SphereSilver> ;) :P
999: [23:00:00] <guci0> Hmmm... It's complicated topic
1000: [23:00:00] <guci0> Ok, crons reload and go to bad :)
1001: [23:00:00] <SphereSilver> yeah, like Breaking Bad?
1002: [23:00:00] <guci0> :)
1003: [23:01:00] <SphereSilver> And if they do?
1004: [23:01:00] <SphereSilver> But, yeah... valid point.
1005: [23:01:00] * SphereSilver ==> bed
1006: [23:01:00] <SphereSilver> sleep tight folks. And don't let the bedbugs bite.
1007: [23:01:00] <SphereSilver> Eat the little f*ckers
1008: [23:02:00] <guci0> Thanks
1009: [23:02:00] <guci0> :)
1010: [23:02:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
1011: [23:03:00] <mobiusnz> and I can't get into the admin area
1012: [23:03:00] <mobiusnz> Uncaught ReferenceError: jQuery is not defined
1013: [23:03:00] * dospuntocero quit (Ping timeout: 245 seconds)
1014: [23:03:00] <mobiusnz> I've just upgrade my site to 3.0
1015: [23:03:00] <mobiusnz> hmm
1016: [23:06:00] <willr> mobiusnz done a flush=1?
1017: [23:07:00] <mobiusnz> willr: yep
1018: [23:09:00] <mobiusnz> ah
1019: [23:09:00] * herewegoagain has left #silverstripe
1020: [23:10:00] <mobiusnz> looks like it didn't like the _combinedfiles dir
1021: [23:18:00] * liam_ is now known as Guest90377
1022: [23:18:00] <liam_> Pyromanik: have you built a json api with SS before?
1023: [23:18:00] * liam_ has joined #silverstripe
1024: [23:19:00] <Pyromanik> nop3
1025: [23:20:00] <Pyromanik> Guest90377: should be a templating matter though, no?
1026: [23:22:00] <Pyromanik> liam_, Guest90377, are you using 2.4?
1027: [23:22:00] <Guest90377> no 3
1028: [23:22:00] * Liquide quit ()
1029: [23:23:00] <Guest90377> Pyromanik: I'm really looking for something I can just plugin and use as a JSON API along with simons oauth module??? although this looks promising https://github.com/nyeholt/silverstripe-webservices
1030: [23:24:00] <Pyromanik> pretty sure they look like whatever you want them to
1031: [23:24:00] <Pyromanik> Guest90377: you mean like templates?
1032: [23:26:00] <Pyromanik> Guest90377: http://api.silverstripe.org/3.0/package-framework.formatters.html
1033: [23:26:00] <Pyromanik> look, there it is.
1034: [23:27:00] <Pyromanik> not so hard after all
1035: [23:27:00] <Pyromanik> done
1036: [23:27:00] <Pyromanik> specify json in the url
1037: [23:29:00] <Pyromanik> eg api/v1/Page/1.xml
1038: [23:29:00] <Pyromanik> eg api/v1/Page/1.json
1039: [23:29:00] <Pyromanik> or
1040: [23:31:00] <Guest90377> Pyromanik: awsome thanks.
1041: [23:36:00] * Guest90377 quit (Quit: Guest90377)

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