#silverstripe IRC Log

IRC log for 12 April 2013

All timestamps are in UTC.

1: [00:00:00] <clodeindustrie> is this correct?
2: [00:00:00] <clodeindustrie> as for the count if doesn't seem to work for some reason
3: [00:00:00] <simon_w> Nope
4: [00:00:00] <clodeindustrie> ah thanks I wasn't sure about the control isn't deprecated or something?
5: [00:00:00] <clodeindustrie> <% if (PaginatedItems->count() > 0) %>
6: [00:00:00] <clodeindustrie> I do something like that
7: [00:01:00] <clodeindustrie> I thought so
8: [00:02:00] <simon_w> Ifs don't have parens, chaining isn't like that and only very reason versions of 3.1 support inequalities
9: [00:03:00] <clodeindustrie> meh
10: [00:03:00] <clodeindustrie> I'm using 3.0.5
11: [00:03:00] <simon_w> Also, <% if $PaginatedItems %> would work fine
12: [00:03:00] <irogue> some of our domains are now pointing at a page that just says "penis"
13: [00:04:00] <irogue> yay for 12yo hackers!
14: [00:04:00] <clodeindustrie> cool it's a bit neater thanks for that
15: [00:04:00] <simon_w> Returns false if count is 0
16: [00:05:00] <Pyromanik> irogue, hahahahahahahahahahahahahahahahahahahahahaahahahahahahahahahahahahahahahahaha
17: [00:05:00] <Pyromanik> like which?
18: [00:06:00] <Pyromanik> ?
19: [00:06:00] <Pyromanik> that's awesome
20: [00:06:00] <Pyromanik> ha, I only wish
21: [00:06:00] <azureKnight> Kidding.
22: [00:06:00] * azureKnight thinks Pyromanik is one of those hackers???
23: [00:06:00] * DigNZ quit (Remote host closed the connection)
24: [00:06:00] * DigNZ has joined #silverstripe
25: [00:06:00] <Pyromanik> is it like http://www.something.com/
26: [00:07:00] <azureKnight> Anyways. Gotta go.
27: [00:07:00] <Pyromanik> :>
28: [00:07:00] <azureKnight> Thanks for the help, gang
29: [00:07:00] <Pyromanik> Bye
30: [00:07:00] * azureKnight quit (Quit: azureKnight)
31: [00:12:00] <irogue> Pyromanik: ya, like that but "penis"
32: [00:12:00] * PokPok quit (Ping timeout: 258 seconds)
33: [00:19:00] <Pyromanik> hilarious.
34: [00:27:00] * DigNZ quit (Remote host closed the connection)
35: [00:27:00] * DigNZ has joined #silverstripe
36: [00:37:00] * Bollig|DesignCty has joined #silverstripe
37: [00:44:00] <elgrodo> irogue: Shame the hackers don't know about the 'dicks' gem for ruby https://github.com/martinemde/dicks :)
38: [00:46:00] <spronk> Adria Richards will come and get you fired for those comments
39: [00:46:00] <spronk> CAREFUL NOW
40: [00:48:00] <irogue> open image in new tab -> notice the url -> I KNOW WHAT CMS YOU USE
41: [00:48:00] <irogue> http://www.stackit.co.nz/assets/ImagePanels/_resampled/croppedimage940545-IMG3160.jpg
42: [00:48:00] <irogue> heh, copying an image from a web page
43: [00:49:00] <irogue> one of yours, Pyromanik? :P
44: [00:49:00] <simon_w> Woo, bigger one! http://www.stackit.co.nz/assets/ImagePanels/IMG3160.jpg
45: [00:50:00] <lewellyn> (i still find it baffling that ruby has managed to find a place in enterprise deployments.)
46: [00:50:00] <lewellyn> elgrodo: can you use it with hookers and cocaine?
47: [00:51:00] <Pyromanik> irogue, wut?
48: [00:52:00] <Pyromanik> stackit.co.nz? nup, not ours.
49: [00:53:00] <irogue> heh
50: [00:53:00] <irogue> they're in chch and site's in SS, thought it could be :P
51: [00:58:00] <Pyromanik> no link in footer either. dunno who did it
52: [00:58:00] <Pyromanik> nup
53: [00:59:00] <Pyromanik> could be someone else
54: [00:59:00] <Pyromanik> could be pxl.co.nz
55: [01:00:00] <Pyromanik> he designed someone built.
56: [01:00:00] <Pyromanik> could be collaborative
57: [01:03:00] <spronk> http://davidcraig.co.nz/clients/stackit/
58: [01:06:00] * DigNZ quit (Remote host closed the connection)
59: [01:06:00] * DigNZ has joined #silverstripe
60: [01:06:00] * DigNZ has joined #silverstripe
61: [01:10:00] <Pyromanik> supersleuth spronk
62: [01:11:00] <Pyromanik> :<
63: [01:11:00] <Pyromanik> why is include order broken for Requirements
64: [01:11:00] <Pyromanik> require css()
65: [01:11:00] <Pyromanik> require themedCSS()
66: [01:11:00] <Pyromanik> themed stuff gets dumped in before unthemed stuff :<
67: [01:21:00] <irogue> http://108.166.56.218/
68: [01:21:00] <irogue> Pyromanik: for your viewing pleasure
69: [01:29:00] <lewellyn> oh i was hoping it was dprk television
70: [01:39:00] * mobiusnz quit (Quit: Leaving.)
71: [01:52:00] <irogue> our customers know us too well, they keep dropping off booze
72: [01:52:00] <irogue> https://dl.dropboxusercontent.com/u/4618071/fridge.jpg
73: [01:52:00] * UncleCheese has joined #silverstripe
74: [01:53:00] <lewellyn> bourbon and cola in a can? :/
75: [01:54:00] <irogue> yes...
76: [01:56:00] <Pyromanik> lewellyn, you say'n you don't have JD & Cola premix in the states?
77: [01:56:00] <Pyromanik> hahahaha
78: [01:56:00] <Pyromanik> DIRTY DIESELS irogue !
79: [01:56:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
80: [01:56:00] <Pyromanik> ROFL
81: [01:57:00] <Pyromanik> lewellyn, but you must have things like that right?
82: [01:57:00] <Pyromanik> you know it's gonna be a rough night when you've got deezeys in the fridge
83: [01:57:00] <lewellyn> Pyromanik: i wouldn't know. i don't drink jack daniel's period.
84: [01:57:00] <lewellyn> i wouldn't know. i tend to avoid low-end alcohol.
85: [01:58:00] <Pyromanik> (non descript alcohol)
86: [01:58:00] <Pyromanik> JD & Cola in NZ tastes more like postmix cola without water, and a splash of alcohol.
87: [01:58:00] <Pyromanik> also, can't blame you. Not only is the alcohol low end, the mixer used is usually f'n terrible.
88: [01:59:00] <lewellyn> if i was going to go buy a bottle of bourbon at this moment, it would be this. http://www.bevmo.com/Shop/ProductDetail.aspx?ProductID=35323&N=40+4294966548&No=0&area=spirits&ShowAll=true&Ns=Name%7c0&Ne=5
89: [01:59:00] <Pyromanik> ginger beer looks all G though irogue
90: [02:00:00] <Pyromanik> looks fancy
91: [02:01:00] <lewellyn> seems all they ever see down there is cuervo
92: [02:01:00] <Pyromanik> one thing one must understand about NZ's booze culture is that people don't care. The only shit we get in this country is the mainstream shit unless you're willing to pay through the nose, at which point you're a snobby prick.
93: [02:01:00] <irogue> Pyromanik: yeah, customer dropped them off :-P
94: [02:01:00] <irogue> wouldn't be my choice of premixed
95: [02:01:00] <irogue> not that i like premixed anyway
96: [02:01:00] <lewellyn> Pyromanik: yeah. i took an aussie on a tequila tasting night some months ago.
97: [02:01:00] <Pyromanik> lewellyn, about the only tequila one can get is Jose Cuervo.
98: [02:01:00] <Pyromanik> yep
99: [02:02:00] <lewellyn> irogue: cazadores? herradura?
100: [02:02:00] <Pyromanik> up until recently only ever the gold stuff too
101: [02:02:00] <irogue> as far as cheap bourbons go, McKenna rules
102: [02:02:00] <irogue> Pyromanik: your liquor stores suck :-P
103: [02:02:00] <Pyromanik> irogue, nz wide buddy.
104: [02:02:00] <lewellyn> i tossed in the overpriced, but way too pricey, patron at one point. it tasted like ass after all the good ones :)
105: [02:02:00] <irogue> Pyromanik: my liquor store has an entire shelving unit of tequila
106: [02:02:00] <Pyromanik> irogue, Oh, some do.
107: [02:02:00] <Pyromanik> for sure
108: [02:03:00] <irogue> Pyromanik: yeah, i don't go to mainstream brands, they're all overpriced
109: [02:03:00] <Pyromanik> just the mainstream stuff only ever stocks mainstream crap.
110: [02:03:00] <irogue> no idea, i don't drink the stuff (well, okay, sometimes it happens toward the end of a long night in town...)
111: [02:03:00] <irogue> so don't pay attention to brands
112: [02:03:00] <Pyromanik> JK, LL, SL, etc.
113: [02:03:00] <Pyromanik> err, LK
114: [02:03:00] <Pyromanik> liquor king, liquorland, superliquor
115: [02:03:00] <lewellyn> irogue: the good tequilas, you drink them exclusively all night. they're really nice booze.
116: [02:03:00] <irogue> only go to small indian/asian liquor stores, they rock
117: [02:05:00] <irogue> my store doesn't have a website but i used to go to this one (they were close to where my office used to be)
118: [02:05:00] <irogue> http://www.topshelfliquor.co.nz/estore/category/tequila.aspx
119: [02:06:00] <Pyromanik> Henry's has some good stuff, for a chain store.
120: [02:06:00] <Pyromanik> irogue, yeah. Independent ones are less common, but usually have a better range of top shelf stuff.
121: [02:06:00] <Pyromanik> We used to have a good one in town.
122: [02:06:00] <Pyromanik> Bettys
123: [02:06:00] <Pyromanik> until eq
124: [02:06:00] * lewellyn looks to see what they have he'd drink ;)
125: [02:07:00] <Pyromanik> it was pricey but good.
126: [02:07:00] <Pyromanik> We used to have entire bar devoted to Vodka
127: [02:07:00] <lewellyn> herradura, hijos de villa, and that's really about it.
128: [02:07:00] <lewellyn> that collection is all the pricey crap that people buy to be trendy, pretty much :/
129: [02:07:00] <Pyromanik> and run by real Russians.
130: [02:08:00] <Pyromanik> unless you're trying to get something like whisky
131: [02:08:00] <Pyromanik> complete with thick accents and everything.
132: [02:08:00] <Pyromanik> lewellyn, yeah, exactly.
133: [02:08:00] <lewellyn> Pyromanik: that reminds me. i need to go find a bottle of Chopin Potato locally this weekend.
134: [02:08:00] <Pyromanik> if it's not mainstream garbage like JD's & Cuervo, it's stuff like that.
135: [02:08:00] <Pyromanik> usually
136: [02:08:00] <Pyromanik> liquor selections in NZ blow.
137: [02:09:00] <Pyromanik> most liquor stores have a small selection, but then there's whiskygalore.co.nz
138: [02:10:00] * guci0 quit (Ping timeout: 245 seconds)
139: [02:14:00] <Pyromanik> gosh
140: [02:14:00] <irogue> Pyromanik: must be an island thing
141: [02:14:00] <Pyromanik> you're the island.
142: [02:14:00] <Pyromanik> this is the mainland.
143: [02:14:00] <irogue> we probably have 10x as many independant ones as chain ones
144: [02:14:00] <Pyromanik> didn't you know?
145: [02:14:00] <Pyromanik> irogue, more like an Auckland thing.
146: [02:15:00] <Pyromanik> I have to say even with independents they often have the same rubbish.
147: [02:15:00] <irogue> hamilton had mostly "independant chains"
148: [02:15:00] <Pyromanik> the upper tier stuff is still harder come by.
149: [02:16:00] <irogue> yeah, tbh even the independant ones in hams mostly still sold shite
150: [02:16:00] <irogue> just auckland snobbery being an upside for once
151: [02:19:00] <Pyromanik> mmm, also helps that it has a port close by and is a major import hub.
152: [02:19:00] <irogue> yeah
153: [02:21:00] <irogue> pokey little shop, fuckall beer or wine in there, but sooo much high quality spirits
154: [02:21:00] <irogue> that "top shelf liquor" place is pretty much what it describes
155: [02:22:00] <lewellyn> i want to make applejack smoothies :D
156: [02:22:00] <lewellyn> hm. i suddenly want a bottle of applejack.
157: [02:36:00] * mobiusnz has joined #silverstripe
158: [02:40:00] * mobiusnz1 has joined #silverstripe
159: [02:41:00] * o3d has joined #silverstripe
160: [02:42:00] * mirrors has joined #silverstripe
161: [02:42:00] * mobiusnz quit (Ping timeout: 258 seconds)
162: [02:43:00] <o3d> in ss3, trying to add a custom action to instance of modeladmin, but don't know how to link that up to a controller 'linked up' to that modeladmin instance?
163: [02:43:00] <o3d> hi ppl
164: [02:43:00] <Pyromanik> o3d, are you trying to add it to modeladmin?
165: [02:44:00] <ss23> simon_w: Maybe indexes aren't being put in ram? Tried checking if mysql wants more ram for that kind of stuff?
166: [02:44:00] <o3d> correct, inside getEditForm
167: [02:44:00] <Pyromanik> or trying to add one IN modeladmin?
168: [02:44:00] <Pyromanik> well
169: [02:44:00] <ss23> simon_w: Does explain show it using the index at all? Maybe that table just has way too many indexes on it so its' got a big hit updating it? It is innodb right? CAuse if not, maybe it's just hitting locks whenever it tries to update?
170: [02:44:00] <Pyromanik> the edit form returns a form.
171: [02:44:00] * mobiusnz has joined #silverstripe
172: [02:44:00] <Pyromanik> generally from the model you're admining's getCMSFields.
173: [02:45:00] <ss23> There now I'm out of suggestions.
174: [02:45:00] <Pyromanik> o3d, I think you'd better explain what it is that you're trying to do.
175: [02:46:00] <simon_w> ss23, UPDATE "Member" SET "LastVisited" = '2013-04-12 02:39:04' WHERE "ID" = 1372;
176: [02:46:00] <Pyromanik> I can't really help you as it is.
177: [02:46:00] <simon_w> Hits the key, the entire database is in RAM
178: [02:46:00] <mirrors> hey I am using the cmsworkflow module and I add an iframe in the content in the admin and request publication...when I view the content area in the workflow tab (which shows the differences between the old version and the current version) the src of the iframe is modified....it goes from http://absolutelink.com.au to http://absolutielink.com.au/http://absolutelink.com.au.......so I think SilverStripe thinks the link is a relat
179: [02:47:00] <Pyromanik> in modeladmin
180: [02:47:00] <Pyromanik> or something like that
181: [02:47:00] <o3d> i had this working well in 2.4.x, but seems a little different in 3.x
182: [02:47:00] <Pyromanik> if you're using 3.1 I think it's possible
183: [02:47:00] <Pyromanik> getActions
184: [02:47:00] <Pyromanik> that's not inside editform
185: [02:47:00] <Pyromanik> o3d, oh
186: [02:47:00] * mobiusnz1 quit (Ping timeout: 258 seconds)
187: [02:47:00] <o3d> in layman's terms: trying to add a button on the CustomModelAdmin section inside cms - basically want to perform an action related to data objects managed inside that modeladmin e.g. doSendEmail
188: [02:48:00] <Pyromanik> you managed to add custom buttons to modeladmin in 2.4?
189: [02:48:00] <Pyromanik> if not... probably wouldn't try it.
190: [02:48:00] <o3d> ic
191: [02:48:00] <Pyromanik> I know I did.
192: [02:48:00] <Pyromanik> did you drill holes in your head when you did it? xD
193: [02:49:00] <o3d> yes, by using a custom controller linked inside the modeladmin :P
194: [02:50:00] <o3d> but that approach has been updated since 3.0
195: [02:50:00] <o3d> then with a nasty hack got the button done inside a js file on init()
196: [02:50:00] <o3d> inside modeladmin, something like this: public static $managed_models = array( 'CustomDataObject' => array('record_controller' => 'CustomDataObjectModelAdmin_RecordController') );
197: [02:51:00] <ss23> simon_w: innodb?
198: [02:51:00] <o3d> inside getEditForm, i can get the button to appear by doing this: $form->Actions()->push(FormAction::create('doCustomAction', 'Custom Action'));
199: [02:52:00] <o3d> but getting confused when it gets to the controller for modeladmin, $form->Actions()->push(FormAction::create('doCustomAction', 'Custom Action'));
200: [02:52:00] <mirrors> So i have debugged the code that is meant to be displayed in the admin area before it is rendered. It is correct...then when it is rendered, it is rendered incorreclty
201: [02:53:00] <Pyromanik> o3d, because that's creating an action on the model
202: [02:53:00] <Pyromanik> or essentially 'on' the model.
203: [02:54:00] <Pyromanik> to do with the workflow module update
204: [02:54:00] <o3d> just need to link it up to a controller (which currently doesn't exist)
205: [02:54:00] <Pyromanik> o3d, look up the 3.1 changelog
206: [02:54:00] <Pyromanik> there's a thread in the dev list too
207: [02:54:00] <Pyromanik> about updating how LaM actions are added.
208: [02:54:00] * mobiusnz quit (Quit: Leaving.)
209: [02:54:00] <o3d> http://doc.silverstripe.org/framework/en/3.0/changelogs/3.0.0
210: [02:55:00] <o3d> that link describes to use a $collection_controller_class
211: [02:55:00] <o3d> thanks for the help anyways :)
212: [02:55:00] <Pyromanik> o3d, I haven't done anything like this in 3.0 yet, so I can't really help
213: [02:55:00] <o3d> and links to the modeladmin (http://doc.silverstripe.org/framework/en/reference/modeladmin) docs, but no reference there
214: [02:55:00] <Pyromanik> but as controllers are essentially just links, you could make your own and manually code the action for the button
215: [02:55:00] <Pyromanik> links/urls
216: [02:56:00] * mobiusnz has joined #silverstripe
217: [02:56:00] <o3d> i will give that a go thanks
218: [02:56:00] <Pyromanik> modeladmin itself is a controller
219: [02:59:00] <simon_w> ss23, of course
220: [03:00:00] * mobiusnz quit (Client Quit)
221: [03:06:00] <mirrors> if I debug::show(thecontent); I can see the url of my iframe has changed
222: [03:06:00] <mirrors> however if I debug::show(thecontent); die(); I the url of my iframe has not changed
223: [03:07:00] <mirrors> so I have no idea where it could be changed
224: [03:13:00] <ss23> :<
225: [03:13:00] <ss23> simon_w: Last suggestion is strace I guess...
226: [03:13:00] <ss23> Hard to understand if you don't know mysql internals though
227: [03:13:00] <simon_w> Better idea:
228: [03:13:00] <simon_w> Home time! :D
229: [03:15:00] * simon_w quit (Quit: This computer has gone to sleep)
230: [03:17:00] * cloph_away has joined #silverstripe
231: [03:19:00] * cloph_away1 quit (Ping timeout: 260 seconds)
232: [03:30:00] * mobiusnz has joined #silverstripe
233: [03:32:00] * FrozenFire quit (Read error: Connection reset by peer)
234: [03:34:00] * FrozenFire has joined #silverstripe
235: [03:36:00] * mobiusnz quit (Ping timeout: 256 seconds)
236: [03:38:00] * jamine has joined #silverstripe
237: [03:40:00] <jamine> Hi pepz..how to show the removed tab on getEditForm?
238: [03:42:00] * mobiusnz quit (Read error: Connection reset by peer)
239: [03:42:00] * mobiusnz1 has joined #silverstripe
240: [03:42:00] * mobiusnz has joined #silverstripe
241: [03:45:00] * tankr has joined #silverstripe
242: [03:47:00] <Pyromanik> jamine, can you please elaborate?
243: [03:53:00] <jamine> After creating a record, I need to show the remove tab again on the edit form..
244: [03:54:00] <jamine> I have done this because of the ManyManyList::add() can't be called until a foreign ID is set ISSUES
245: [03:55:00] <simon_w|air> jamine, so only remove it when !$this->ID?
246: [03:57:00] <jamine> and when editing should show the tab again
247: [03:57:00] <jamine> should only remove the tab if adding a new record
248: [03:58:00] <simon_w|air> If you only remove with creating, you don't have to show it again when editing
249: [04:15:00] <Zauberfisch> good morning
250: [04:22:00] <simon_w|air> Nope, too early for that
251: [04:25:00] * UncleCheese quit (Quit: UncleCheese)
252: [04:28:00] * UncleCheese has joined #silverstripe
253: [04:37:00] * jamine quit (Ping timeout: 245 seconds)
254: [04:45:00] <mirrors> if I debug::show(thecontent); I can see the url of my iframe has changed
255: [04:45:00] <mirrors> hey I am using the cmsworkflow module and I add an iframe in the content in the admin and request publication...when I view the content area in the workflow tab (which shows the differences between the old version and the current version) the src of the iframe is modified....it goes from http://absolutelink.com.au to http://absolutielink.com.au/http://absolutelink.com.au.......so I think SilverStripe thinks the link is a relat
256: [04:46:00] <mirrors> however if I debug::show(thecontent); die(); The url of my iframe has not changed
257: [04:46:00] <mirrors> so I have no idea where it could be changed
258: [04:47:00] <simon_w|air> mirrors, so what happens if you set it to http://absolutelink.com.au/?
259: [04:47:00] * willr_ quit (Quit: willr_)
260: [04:52:00] <mirrors> simon_w|air: the same thing...the reponse from the server says http://absolutelink.com.au/ but somehow it is rendered as http://absolutelink.com.au/
261: [04:53:00] <simon_w|air> And does this happen without the cmsworkflow module?
262: [04:53:00] <mirrors> http://absolutelink.com.au/http://absolutelink.com.au/ *
263: [04:53:00] * DigNZ quit (Quit: DigNZ)
264: [04:54:00] * Zauberfisch quit (Remote host closed the connection)
265: [04:54:00] <mirrors> yes
266: [04:54:00] <mirrors> it happens in the page version history area aswell
267: [04:56:00] <mirrors> SS 2.4 i should also add
268: [05:04:00] * mobiusnz1 quit (Ping timeout: 260 seconds)
269: [05:04:00] * mobiusnz has joined #silverstripe
270: [05:07:00] * Pyromanik quit (Quit: Leaving)
271: [05:13:00] * perverse has joined #silverstripe
272: [05:13:00] * mobiusnz1 has joined #silverstripe
273: [05:14:00] * nickmolhoek1 quit (Quit: nickmolhoek1)
274: [05:14:00] <perverse> hey guys - is it still possible in 3.x to use methods on dataobjects as summary_fields?
275: [05:14:00] <simon_w|air> Yes
276: [05:14:00] <perverse> i.e i have static $summary_fields = array('ModelAdminThumb'); and a method public function getModelAdminThumb() {} that returns an <img> tag for that thumbnail
277: [05:15:00] <perverse> is that the way to achieve it?
278: [05:15:00] <perverse> I have that set up at the moment and am getting [User Error] Uncaught Exception: Unable to traverse to related object field [ModelAdminThumb] on [InstagramFeature]
279: [05:16:00] <perverse> (instagramfeature being the dataobject, ofc)
280: [05:16:00] * mobiusnz quit (Ping timeout: 252 seconds)
281: [05:19:00] <simon_w|air> perverse, in what context?
282: [05:19:00] <perverse> modeladmin context
283: [05:20:00] <simon_w|air> Ah, building the search fields
284: [05:20:00] <perverse> hmm, and the summary fields count as search fields?
285: [05:20:00] <perverse> yup yup
286: [05:20:00] <simon_w|air> Yeah, you can't have methods in the search fields
287: [05:20:00] <perverse> sorry, should have specified that
288: [05:21:00] <jamine> thank you simon for the idea of !this->ID..hehehe
289: [05:21:00] * jamine has joined #silverstripe
290: [05:21:00] <perverse> I don't have any search fields declared at the moment, if i declare them explicitly ommiting the method, should it sovle the issue?
291: [05:21:00] <perverse> solve*
292: [05:21:00] <simon_w|air> yes
293: [05:21:00] <perverse> awesome, thanks man
294: [05:23:00] <perverse> hmm ok, that worked awesome simon_w|air thanks, but it's returning my methods <img> html tag as plaintext in the field, is there a way I can get around that?
295: [05:23:00] <simon_w|air> probably a HTMLText
296: [05:23:00] <simon_w|air> perverse, return an object
297: [05:24:00] <perverse> makes sense
298: [05:24:00] <perverse> ok cool
299: [05:26:00] <perverse> wow... so much new stuff in here since I last got a good crack at SS
300: [05:26:00] <perverse> fuck yeah that works awesome (i used HTMLValue, which is also new)
301: [05:26:00] <perverse> loving all the changes
302: [05:26:00] * Shrike_Finland has joined #silverstripe
303: [05:28:00] * Zauberfisch has joined #silverstripe
304: [05:30:00] * Zauberfisch quit (Read error: Connection reset by peer)
305: [05:31:00] * Zauberfisch has joined #silverstripe
306: [05:31:00] * Zauberfisch has joined #silverstripe
307: [05:31:00] * Error404NotFound has joined #silverstripe
308: [05:31:00] * Zauberfisch quit (Remote host closed the connection)
309: [05:36:00] <mirrors> I FINALLY found it.........there is a function in LeftandMain.js that does this
310: [05:37:00] <mirrors> incase anyone is interested
311: [05:37:00] <mirrors> and will add the baseHref even if you are using an absolute link as the src
312: [05:37:00] <mirrors> rightHTML = rightHTML.replace(/(<iframe[^>]*src=")([^"]+)("[^>]*>)/g, '$1' + baseHref() + '$2$3');
313: [05:40:00] * mobiusnz has joined #silverstripe
314: [05:40:00] * UncleCheese quit (Quit: UncleCheese)
315: [05:40:00] * Zauberfisch_ has joined #silverstripe
316: [05:40:00] * Zauberfisch quit (Read error: Connection reset by peer)
317: [05:43:00] * mobiusnz1 quit (Ping timeout: 252 seconds)
318: [05:45:00] * Zauberfisch_ quit (Ping timeout: 256 seconds)
319: [05:45:00] * mobiusnz quit (Ping timeout: 252 seconds)
320: [05:53:00] * jamine quit (Ping timeout: 245 seconds)
321: [06:11:00] * Vogels has joined #silverstripe
322: [06:14:00] <Vogels> at least it is moring in the netherlands :p
323: [06:14:00] <Vogels> Morning
324: [06:15:00] <Vogels> does anyone has time on there hands to built a SS website
325: [06:15:00] <Vogels> rest is up to you
326: [06:15:00] <Vogels> only a design (photoshop file) will be available
327: [06:21:00] <ss23> Vogels: How much are you willing to pay?
328: [06:21:00] <ss23> Vogels: If it's a simple site with a lot of pay, I might be interested
329: [06:22:00] * tankr quit (Quit: Leaving.)
330: [06:22:00] * ARNHOE has joined #silverstripe
331: [06:23:00] <Vogels> but like everyone else i'm not willing to pay a lot :p
332: [06:23:00] <Vogels> just enough
333: [06:23:00] <Vogels> lol
334: [06:23:00] <Vogels> the first thing is true
335: [06:24:00] <ss23> Vogels: How much is not a lot? If it's just a simple site (that is, fairly non-interactive, just needs to display content a user puts into the CMS, won't need any custom coding really) I wouldn't expect a lot
336: [06:24:00] <ss23> Vogels: Got a preview of the site to show complexity?
337: [06:28:00] * mrzero quit (Read error: Connection reset by peer)
338: [06:29:00] * mrzero quit (Changing host)
339: [06:29:00] <ss23> Vogels: (Can take it to PM if you like)
340: [06:29:00] * mrzero has joined #silverstripe
341: [06:29:00] * mrzero has joined #silverstripe
342: [06:32:00] <Vogels> sorry ss23
343: [06:33:00] <Vogels> i'm already searching for a willing coder who has time
344: [06:33:00] <Vogels> had a phone call
345: [06:33:00] <Vogels> i still have to make the design
346: [06:34:00] <Vogels> couse last time it took me 3 weeks before i found someone with SS experience
347: [06:34:00] <ss23> I have time for simple stuff. I can normally get a design to HTML/CSS in a day, and if the silverstripe theming is simple, it should be fine
348: [06:34:00] * zfmf has joined #silverstripe
349: [06:34:00] <ss23> Vogels: But any idea for price range?
350: [06:39:00] <perverse> modeladmin context
351: [06:39:00] <perverse> what would i return from a GridFieldButton's handleAction() method in order to simply refresh the gridfield?
352: [06:41:00] <perverse> GridField_ActionProvider rather
353: [06:45:00] <perverse> you around simon_w|air?
354: [06:46:00] * mirrors quit (Ping timeout: 245 seconds)
355: [06:58:00] * zfmf quit (Read error: Connection reset by peer)
356: [06:58:00] * Vogels quit (Ping timeout: 245 seconds)
357: [06:58:00] * zfmf has joined #silverstripe
358: [06:59:00] * zfmf has joined #silverstripe
359: [06:59:00] * zfmf quit (Remote host closed the connection)
360: [07:00:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
361: [07:00:00] * joelpittet is now known as joelpittet|zzz
362: [07:09:00] * Error404NotFound has joined #silverstripe
363: [07:10:00] * Marvanni has joined #silverstripe
364: [07:10:00] <Marvanni> Hi
365: [07:11:00] <Marvanni> Hoe can I force a redirect to download that file after form submission?
366: [07:11:00] <Marvanni> I have added an extra FormAction to a SS 3 gridfield that generates a file.
367: [07:15:00] * tankr has joined #silverstripe
368: [07:15:00] * tankr quit (Client Quit)
369: [07:22:00] * Zauberfisch has joined #silverstripe
370: [07:23:00] * priithansen has joined #silverstripe
371: [07:30:00] * Zauberfisch quit (Read error: Connection reset by peer)
372: [07:31:00] <azureKnight> SS of course, SIlly.
373: [07:31:00] <azureKnight> I have a many_many to belongs_many_many relationship going.
374: [07:31:00] <azureKnight> Got a strange error.
375: [07:31:00] <ss23> lol
376: [07:31:00] <ss23> Depends what the chat is about!
377: [07:31:00] <azureKnight> Anybody around for a chat? :)
378: [07:31:00] * azureKnight has joined #silverstripe
379: [07:31:00] * Zauberfisch has joined #silverstripe
380: [07:32:00] <azureKnight> And, I'm using a CheckboxSetField to try and add the belongs_many_many to the many_many
381: [07:33:00] <g4b0> hi all
382: [07:33:00] * g4b0 has joined #silverstripe
383: [07:33:00] <azureKnight> For the most part it works, but when you try and check any of the fields before creating/saving, it just gives you a empty space.
384: [07:33:00] <azureKnight> Really?
385: [07:33:00] <ss23> simon_w|air: Care you weigh in, if you're here?
386: [07:33:00] <azureKnight> Reeeaaaallly~?
387: [07:33:00] <ss23> iirc simon_w|air said it was fixed in 3.1
388: [07:33:00] <ss23> azureKnight: Someone talked about this last night, iirc. Was that you?
389: [07:33:00] <azureKnight> And Yo g4b0
390: [07:33:00] <azureKnight> No error, no nothing.
391: [07:33:00] <ss23> moin g4b0
392: [07:35:00] <azureKnight> Hmm, that's interesting though.
393: [07:35:00] * ARNHOE quit (Remote host closed the connection)
394: [07:35:00] * Zauberfisch quit (Read error: Connection reset by peer)
395: [07:35:00] <azureKnight> Took me forever to figure out this relationship stuff, so you can imagine the look I had when it suddenly didn't work when you select the checkboxes initially.
396: [07:36:00] * Zauberfisch has joined #silverstripe
397: [07:36:00] <azureKnight> http://i0.kym-cdn.com/photos/images/original/000/199/693/disgusted-mother-of-god.png?1321272571
398: [07:37:00] <azureKnight> Cheers ss23
399: [07:37:00] <ss23> Let me pull up my logs for you
400: [07:38:00] <ss23> azureKnight: https://gist.github.com/ss23/5370237
401: [07:38:00] <azureKnight> Woah.
402: [07:39:00] <azureKnight> Yeah. Talk about timing.
403: [07:39:00] <ss23> azureKnight: The forum post specifically sounds like your issue
404: [07:40:00] <azureKnight> In 3.0.1 it still doesn't add them.
405: [07:40:00] * perverse quit (Ping timeout: 256 seconds)
406: [07:40:00] <azureKnight> However.
407: [07:40:00] * Zauberfisch quit (Ping timeout: 260 seconds)
408: [07:41:00] <azureKnight> If that's the case, it'd be great if we could make it disabled like the UploadField etc.
409: [07:41:00] <azureKnight> It saves without a problem, but still need to be added post initial save.
410: [07:42:00] <azureKnight> If I had a red bull I'd definitely be able to think better right now??? :<
411: [07:47:00] <azureKnight> I wonder if there's anyway to use the MultiTreeselectField instead.
412: [07:51:00] * maknz has joined #silverstripe
413: [07:51:00] <azureKnight> Whoops. Wrong button.
414: [07:51:00] * azureKnight has joined #silverstripe
415: [07:51:00] * azureKnight has left #silverstripe
416: [07:52:00] * azureKnight quit (Quit: azureKnight)
417: [07:52:00] <azureKnight> How's everybody else?
418: [07:52:00] * azureKnight has joined #silverstripe
419: [08:04:00] * kinglozzer has joined #silverstripe
420: [08:06:00] * osterlaus has joined #silverstripe
421: [08:08:00] * ARNHOE has joined #silverstripe
422: [08:11:00] <kinglozzer> If I programatically add & publish pages in a LeftAndMain extension, they don't show in the SiteTree until a hard refresh. Any way to force them to show? I.e. reload the pages list?
423: [08:11:00] * ^pH- has joined #silverstripe
424: [08:15:00] * ^pH quit (Ping timeout: 276 seconds)
425: [08:19:00] * gelignite has joined #silverstripe
426: [08:30:00] * priithansen quit (Quit: priithansen)
427: [08:31:00] * waveydave has joined #silverstripe
428: [08:31:00] * priithansen has joined #silverstripe
429: [08:49:00] * chillu has joined #silverstripe
430: [08:55:00] * chillu quit (Quit: chillu)
431: [08:56:00] <svandragt> Has anyone written a a SilverStripe standard for phpcs (code sniffer)? the function method naming guidelines for example are incompatbile with any standard I've tried so far.
432: [08:59:00] * osterlaus quit (Quit: Leaving.)
433: [09:09:00] * lx-berlin has joined #silverstripe
434: [09:11:00] * g4b0 quit (Ping timeout: 258 seconds)
435: [09:16:00] * svandragt quit (Quit: Instantbird 1.3 -- http://www.instantbird.com)
436: [09:16:00] * Error404NotFound quit (Ping timeout: 258 seconds)
437: [09:29:00] * Error404NotFound has joined #silverstripe
438: [09:34:00] * Error404NotFound quit (Ping timeout: 255 seconds)
439: [09:44:00] * svandragt has joined #silverstripe
440: [10:06:00] * feejin has joined #silverstripe
441: [10:13:00] * Error404NotFound has joined #silverstripe
442: [10:19:00] <kinglozzer> Is there something special about CMSSettingsController? My LeftAndMain extension won't use the correct template if I extend LeftAndMain, but will if I extend CMSSettingsController. I'm not missing any methods from there..
443: [10:25:00] <kinglozzer> In fact it just ignores my templates entirely. $controller->getTemplatesWithSuffix() is searching for the correct template names, the templates exist, I've done a flush, just being ignored :/
444: [10:27:00] * zfmf has left #silverstripe
445: [10:32:00] <kinglozzer> Fixed and ready to smash my face against the desk. Despite the CMSSettingsController templates being in /templates/includes, my template needs to be in /templates, not /templates/includes.
446: [10:32:00] * spronk2 has joined #silverstripe
447: [10:33:00] <simon_w|air> ss23, azureKnight, yup, fixed in 3.1
448: [10:33:00] <simon_w|air> Well, worked around
449: [10:33:00] * SightUnseen has joined #silverstripe
450: [10:34:00] * SightUnseen has left #silverstripe
451: [10:35:00] <simon_w|air> svandragt, you're not going to be able. phpcs won't be able to detect the difference between an action method, a template method or some other method
452: [10:36:00] <elgrodo> perverse: Not quite what you are looking for but might offer some clues, a gridfield periodic refresher https://github.com/silverstripe-labs/silverstripe-gridfieldajaxrefresh
453: [10:40:00] <svandragt> simon_w|air: through but 99% coverage would be better than 0%
454: [10:42:00] * azureKnight quit (Quit: azureKnight)
455: [10:46:00] * azureKnight has joined #silverstripe
456: [10:46:00] * azureKnight quit (Client Quit)
457: [10:47:00] <simon_w|air> svandragt, those all have different requirements. You'll only be able to sniff static methods
458: [10:47:00] <lx-berlin> can someone tell me if this should be done in a different way in SS ? It works but somehow i get the idea that this is not best practise: http://sspaste.com/paste/show/5167e5ff6d369
459: [10:48:00] <svandragt> simon_w|air: sounds like you tried then gave up :)
460: [10:48:00] <simon_w|air> svandragt, no, I thought about it before trying. Saved me some effort :p
461: [10:50:00] <svandragt> simon_w|air: hehe guess we'll see how far I'm getting
462: [10:55:00] <simon_w|air> lx-berlin, well, filter() doesn't really let you apply a WithinRangeFilter. You could try something like http://sspaste.com/paste/show/5167e7fa80b2f if you really want to use a WithinRangeFilter, though what you've got is fine
463: [10:56:00] <lx-berlin> thanks simon_w|air. that looks interesting. I didnt know ->alterDataQuery
464: [10:58:00] <simon_w|air> Well, it is sort of a more advance method
465: [10:58:00] <ss23> simon_w|air: "call *%edx" in gdb just means "call the address in edx", so if edx = 0x804, it'd be just like "call 0x804", right?
466: [10:58:00] <lx-berlin> yes, looks professional :)
467: [10:58:00] * lx-berlin is afk
468: [10:59:00] <svandragt> simon_w|air: even SiteTree violates coding guidelines such as line length > 120
469: [11:00:00] <simon_w|air> ss23, give it a go? I haven't really used registrars much in gdb
470: [11:01:00] <ss23> :<
471: [11:01:00] <simon_w|air> svandragt, yes, the sniffs are allowed to fail, so no one checks them
472: [11:01:00] <simon_w|air> Is rather annoying, after all the efforts
473: [11:01:00] <simon_w|air> ss23, well, is it calling the address? Just not updating the stack?
474: [11:01:00] <ss23> It's not working, kind of
475: [11:01:00] <ss23> but np
476: [11:02:00] <ss23> ;_;
477: [11:02:00] <ss23> segfault, but I think tis user error
478: [11:02:00] <ss23> Yeah, is next line..
479: [11:05:00] <ss23> nn, simon_w|air
480: [11:05:00] <ss23> It'll be good when I get it working, that's for sure!
481: [11:05:00] <ss23> I'mtrying
482: [11:05:00] <ss23> :<
483: [11:05:00] <simon_w|air> Well, enjoy your ASM
484: [11:05:00] <simon_w|air> right now, is bed times :)
485: [11:05:00] <simon_w|air> If it's still broken in the morning, I may be able to help
486: [11:05:00] * ARNHOE quit (Remote host closed the connection)
487: [11:29:00] * mobiusnz has joined #silverstripe
488: [11:30:00] * Error404NotFound quit (Ping timeout: 258 seconds)
489: [11:42:00] * mobiusnz quit (Quit: Leaving.)
490: [11:42:00] * Error404NotFound has joined #silverstripe
491: [11:47:00] * feejin quit (Remote host closed the connection)
492: [11:47:00] * feejin has joined #silverstripe
493: [11:53:00] * feejin quit (Remote host closed the connection)
494: [11:54:00] * feejin has joined #silverstripe
495: [12:07:00] * UndefinedOffset has joined #silverstripe
496: [12:12:00] * mobiusnz has joined #silverstripe
497: [12:21:00] * mobiusnz quit (Ping timeout: 252 seconds)
498: [12:22:00] * feejin quit (Remote host closed the connection)
499: [12:22:00] * feejin has joined #silverstripe
500: [12:22:00] * ARNHOE has joined #silverstripe
501: [12:27:00] * Error404NotFound quit (Ping timeout: 258 seconds)
502: [12:29:00] * UncleCheese has joined #silverstripe
503: [12:29:00] <svandragt> simon_w|air: in case you're interested into my limited progress https://github.com/svandragt/phpcs-silverstripe
504: [12:31:00] * Zauberfisch has joined #silverstripe
505: [12:34:00] * Zauberfisch quit (Read error: Connection reset by peer)
506: [12:35:00] * dangerdan has joined #silverstripe
507: [12:40:00] * Error404NotFound has joined #silverstripe
508: [12:46:00] <ARNHOE> simon_w|air: I think I should tell you about this error, http://test.brancom.nl/flameteq/www/. I use a _ss_environment.php to direct to the silverstripe-cache folder other's I even get more errors, but I can get rid of this error by going live mode. But isn't this a weird error?
509: [12:47:00] * mobiusnz has joined #silverstripe
510: [12:48:00] <ARNHOE> simon_w|air: also there is no such file in those folders
511: [13:02:00] * o3d quit (Ping timeout: 245 seconds)
512: [13:03:00] * dangerdan quit (Ping timeout: 245 seconds)
513: [13:07:00] * kinglozzer quit (Remote host closed the connection)
514: [13:08:00] <feejin> Soooo, TinyMCE 4.
515: [13:09:00] * kinglozzer has joined #silverstripe
516: [13:15:00] * Error404NotFound quit (Read error: Connection reset by peer)
517: [13:16:00] * Error404NotFound has joined #silverstripe
518: [13:19:00] <UndefinedOffset> feejin cool... but somehow i doubt it'll make 3.1 :P
519: [13:20:00] <feejin> :)
520: [13:20:00] <feejin> And why not? I'm sure someone can just drop it in and tweak a couple of bits
521: [13:20:00] <UndefinedOffset> poke chillu (though i don't see him here today) he'd answer why, my hunch is they're trying to stabalize things for RC1
522: [13:21:00] <feejin> TinyMCE 3 has served us well so far, it can wait for 3.2. Would rather see 3.1 released so one of our projects doens't have to go live on a beta ;)
523: [13:22:00] <UndefinedOffset> ya hear hear, i usually avoid doing sites going live on anything other than a stable release (i.e. 3.0)
524: [13:24:00] * ARNHOE quit (Remote host closed the connection)
525: [13:30:00] <feejin> The new TinyMCE upload stuff is good, would probably mean some heavy modifications to HTMLEditorField if they wanted to keep it though. I'll leave it to the pro's, I could reskin it though :)
526: [13:33:00] * Shrike_Finland quit (Quit: Leaving.)
527: [13:42:00] * UncleCheese quit (Quit: UncleCheese)
528: [13:43:00] * dangerdan has joined #silverstripe
529: [13:44:00] <dangerdan> how do you validate more than just required fields with getcmsvalidator?
530: [13:58:00] <kinglozzer> dangerdan: I believe you need to extend validator if you need custom validation
531: [14:00:00] <kinglozzer> dangerdan: Or I think you can override DataObject->validate(): http://doc.silverstripe.org/framework/en/topics/datamodel#validation-and-constraints
532: [14:08:00] <svandragt> dangerdan: https://github.com/lx-berlin/NetefxValidator
533: [14:10:00] * Nivery has joined #silverstripe
534: [14:13:00] * Shrike_Finland has joined #silverstripe
535: [14:17:00] * ARNHOE has joined #silverstripe
536: [14:25:00] * zfmf has joined #silverstripe
537: [14:39:00] * zfmf quit (Remote host closed the connection)
538: [14:43:00] * zfmf has joined #silverstripe
539: [14:44:00] * zfmf quit (Remote host closed the connection)
540: [14:45:00] * zfmf has joined #silverstripe
541: [14:51:00] * osterlaus has joined #silverstripe
542: [14:51:00] <osterlaus> hi folks!
543: [14:52:00] <osterlaus> does anybody know a way to get the currently entered content from a htmleditorfield using javascript?
544: [14:57:00] * ARNHOE quit (Remote host closed the connection)
545: [15:07:00] * svandragt quit (Remote host closed the connection)
546: [15:07:00] * Shrike_Finland quit (Quit: Leaving.)
547: [15:09:00] * ARNHOE has joined #silverstripe
548: [15:09:00] * joelpittet|zzz quit (Remote host closed the connection)
549: [15:21:00] <feejin> osterlaus http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.getContent - though not sure how you'd add a button into SS for doing it
550: [15:25:00] * UndefinedOffset quit (Read error: Connection reset by peer)
551: [15:27:00] <osterlaus> thanks, feejin! the problem is the following: i'd like to do some self-written validation on a htmleditorfield using js....
552: [15:28:00] <feejin> does it need to be done with js? or could you do it onBeforeWrite?
553: [15:28:00] <osterlaus> and currently its already killing me to find some kind of onchange-handler to hook into tinymce...
554: [15:30:00] <feejin> How about this? http://www.tinymce.com/wiki.php/API3:event.tinymce.Editor.onChange
555: [15:33:00] <osterlaus> it should be done client-side only :(
556: [15:33:00] <osterlaus> ....and in silverstripe, so its not so easy to add some pure js code
557: [15:36:00] * g4b0 has joined #silverstripe
558: [15:36:00] * catcher has joined #silverstripe
559: [15:37:00] <g4b0> why does SS reply with 403 Forbidden for each HTTP 1.0 request?
560: [15:50:00] <g4b0> it was a bad .htaccess entry
561: [15:50:00] <g4b0> just solved by myself :)
562: [15:50:00] <g4b0> bye
563: [15:50:00] * g4b0 quit (Quit: Sto andando via)
564: [15:55:00] * dangerdan quit (Quit: Page closed)
565: [16:00:00] <kinglozzer> osterlaus: JS in SilverStripe is easy once you understand how Entwine works. Would you be validating 'on blur'?
566: [16:04:00] <osterlaus> kinglozzer: yeah, that would be enough for me
567: [16:04:00] * Nivery quit (Quit: Nivery)
568: [16:05:00] <kinglozzer> Put that in a .js file, then include it in your getCMSFields() function using Requirements::javascript('path/to/somefile.js');
569: [16:05:00] <kinglozzer> osterlaus: Simple example: http://pastie.org/7465634
570: [16:06:00] <osterlaus> sorry, that does not work :(
571: [16:06:00] <osterlaus> i added a window.alert() in the blur-function, without effect
572: [16:07:00] <kinglozzer> osterlaus: Yeah that'll be because the MCE field is in an iFrame, and that example is just doing onblur for the hidden input
573: [16:07:00] <kinglozzer> It was just an example of how entwine can work
574: [16:07:00] <osterlaus> okay, and how can i react to changes in the editor? reacting to *any* changes is not that difficult ;)
575: [16:07:00] <osterlaus> a dirty hack: ssTinyMceConfig.handle_event_callback = "myHandleEvent";
576: [16:08:00] <osterlaus> it's ugly... but this workaround seems sufficient for me
577: [16:08:00] <kinglozzer> Can't really advise on mce stuff, not had any experience with it before
578: [16:08:00] <osterlaus> so: myHandleEvent will be called ony any events within tinymce, like clicks, text changes,...
579: [16:09:00] <kinglozzer> http://www.tinymce.com/wiki.php/Configuration:handle_event_callback
580: [16:09:00] <kinglozzer> osterlaus: Does myHandleEvent() have any parameters?
581: [16:09:00] <kinglozzer> Anyway, I'm out
582: [16:09:00] <kinglozzer> osterlaus: Perhaps you can use e.type to ignore it unless it's what you want
583: [16:10:00] * kinglozzer quit (Remote host closed the connection)
584: [16:10:00] <osterlaus> thanks for your help
585: [16:12:00] * osterlaus quit (Quit: Leaving.)
586: [16:20:00] * lx-berlin has left #silverstripe
587: [16:34:00] * catcher quit (Ping timeout: 276 seconds)
588: [16:34:00] * catcher has joined #silverstripe
589: [16:35:00] * feejin quit (Remote host closed the connection)
590: [16:58:00] * waveydave has left #silverstripe
591: [17:43:00] * ^pH has joined #silverstripe
592: [17:46:00] * ^pH- quit (Ping timeout: 276 seconds)
593: [17:47:00] * ARNHOE quit (Remote host closed the connection)
594: [18:35:00] * Shrike_Finland has joined #silverstripe
595: [18:52:00] * dd has joined #silverstripe
596: [18:52:00] <dd> hello
597: [18:53:00] <dd> is there a way to split a checkboxsetfield up into 3 groups for displaying in the CMS?
598: [18:53:00] <dd> i tried making 3 new CheckboxSetFields but I can't if they all have the same relation name
599: [19:12:00] * dd quit (Quit: Page closed)
600: [19:15:00] * Shrike_Finland quit (Quit: Leaving.)
601: [19:15:00] <catcher> doesn't SS have something available to the template that will truncate text?
602: [19:22:00] * Shrike_Finland has joined #silverstripe
603: [19:31:00] * UncleCheese has joined #silverstripe
604: [19:43:00] * ARNHOE has joined #silverstripe
605: [19:44:00] * ARNHOE quit (Remote host closed the connection)
606: [19:55:00] * zfmf has left #silverstripe
607: [20:06:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
608: [20:07:00] * gelignite has joined #silverstripe
609: [20:23:00] * SightUnseen has joined #silverstripe
610: [20:26:00] * SightUnseen has left #silverstripe
611: [20:35:00] * azureKnight has joined #silverstripe
612: [20:46:00] * ^pH- has joined #silverstripe
613: [20:47:00] * ARNHOE has joined #silverstripe
614: [20:48:00] * ARNHOE quit (Remote host closed the connection)
615: [20:49:00] * ^pH quit (Ping timeout: 276 seconds)
616: [20:54:00] * joelpittet has joined #silverstripe
617: [20:54:00] <azureKnight> Any of you guys ever used ExpressionEngine?
618: [21:00:00] <azureKnight> A client is contemplating using it. I'm trying to lead them to stick with SS.
619: [21:01:00] * UncleCheese quit (Quit: UncleCheese)
620: [21:17:00] * priithansen quit (Quit: priithansen)
621: [21:25:00] <FrozenFire> azureKnight, I have.
622: [21:25:00] <FrozenFire> If your client decides to use it, bail.
623: [21:25:00] <FrozenFire> Not even exaggerating
624: [21:26:00] <catcher> FrozenFire, what's wrong with it?
625: [21:26:00] <FrozenFire> It is quite possibly the worst outcome you could encounter.
626: [21:27:00] <FrozenFire> The code is in the database.
627: [21:27:00] <FrozenFire> Ever single thing is in the database in a proprietary format.
628: [21:27:00] <FrozenFire> Templates? In the database.
629: [21:27:00] <FrozenFire> It is completely unmaintainable.
630: [21:27:00] <catcher> haven't used it, or talked to anyone who has
631: [21:28:00] <azureKnight> And yeah, I've been noticing these "channels" and such, and thinking to myself, "Where do I make my objects?!"
632: [21:28:00] <catcher> does their ui give you a code editor? Or does try to be point & click programming?
633: [21:28:00] <azureKnight> I've been reading up on it in their docs etc.
634: [21:28:00] <FrozenFire> I don't really recall. I only ever once encountered it in the wild.
635: [21:28:00] <FrozenFire> All edited through their UI
636: [21:28:00] <FrozenFire> Which sucks.
637: [21:28:00] <catcher> oh wow
638: [21:29:00] <FrozenFire> Because we couldn't derive anything meaningful from the existing sources.
639: [21:29:00] <FrozenFire> And the result of that project was to wget mirror the site and rebuild it in SS
640: [21:40:00] <FrozenFire> Hrmm, Image really needs a file data method.
641: [21:40:00] <FrozenFire> Well, File does
642: [21:41:00] <azureKnight> I'm wondering if I can apply the way that File has you save it after you create to a CheckboxSetField.
643: [21:42:00] <FrozenFire> Wat
644: [21:42:00] <azureKnight> Because I have a many_many to belongs_many_many
645: [21:43:00] <azureKnight> And I'm letting the belongs_many_many show up as a checkboxsetfield on the many_many
646: [21:43:00] <azureKnight> But every time I do the initial "create", it doesn't actually allow for those items to write. You'd have to "create" then select the checkboxes, then save.
647: [21:48:00] <azureKnight> Should I explain it a bit better?
648: [21:52:00] <azureKnight> Pretty much, Calendar has many_many Events, and Events belongs_many_many Calendar. I'm having Calendar grab the Events via a CheckboxSetField. But, if you try and check any of the Events and click Create, it gives a blank page (3.0.5) and in 3.1 it saves everything but the CheckboxSetField
649: [22:03:00] * azureKnight feels the wind rustle.
650: [22:04:00] <azureKnight> Or maybe I need to just force it to write on the initial create??? Hmmm...
651: [22:11:00] <azureKnight> Yeah, in 3.1 it actually saves the object, but it leaves those blank.
652: [22:11:00] <simon_w|air> Hmm, that it's not saving in 3.1 is a buggy
653: [22:11:00] <azureKnight> Aha! ss23 told me that you answered a similar question yesterday.
654: [22:16:00] <simon_w|air> Well, yeah. I did write the UnsavedRelationList stuff
655: [22:17:00] <azureKnight> Ah.
656: [22:17:00] <azureKnight> Any suggestions for a quickfix?
657: [22:19:00] <FrozenFire> How heavily tied is DataObject to SQL?
658: [22:19:00] <FrozenFire> Anyone used DataObjectInterface to implement their own shit?
659: [22:20:00] <FrozenFire> I'd like to start shifting some library stuff from using a custom model to using the DataObjectInterface model
660: [22:21:00] <FrozenFire> Bugger
661: [22:21:00] <simon_w|air> Well, DataObject is heavily tied to SQL. DataObjectInterface shouldn't be
662: [22:21:00] <simon_w|air> azureKnight, find the bug and fix it?
663: [22:21:00] <FrozenFire> http://api.silverstripe.org/master/source-class-DataObjectInterface.html#17-25
664: [22:21:00] <FrozenFire> Meh, seems it is.
665: [22:21:00] <azureKnight> Aye aye Captain!
666: [22:22:00] <simon_w|air> FrozenFire, nope. Just written like it is.
667: [22:23:00] <FrozenFire> I basically have a SOAP API which I want to map to filters and shit
668: [22:23:00] <simon_w|air> And DataObjectInterface should probably include a ::get() too
669: [22:24:00] * FrozenFire wonders when SS will move its version requirement up to 5.4
670: [22:25:00] <FrozenFire> I'm just stuck on 5.3 for a variety of reasons.
671: [22:25:00] <FrozenFire> Traits.
672: [22:25:00] <FrozenFire> Traits everywhere.
673: [22:25:00] <azureKnight> Lol.
674: [22:25:00] <FrozenFire> Traits are so under-used.
675: [22:25:00] <FrozenFire> I don't think I've ever written one, but I *know* how useful they would be.
676: [22:25:00] <FrozenFire> I'm so eager for that.
677: [22:26:00] <FrozenFire> I want a RecordFields trait
678: [22:26:00] <simon_w|air> Short array notation!
679: [22:27:00] * simon_w has joined #silverstripe
680: [22:27:00] <FrozenFire> Or maybe just call that ActiveRecord. :P
681: [22:27:00] <FrozenFire> Which implements the ActiveRecord pattern
682: [22:28:00] * FrozenFire wonders what the performance loss would be to move things like the ActiveRecord pattern into Extensions
683: [22:28:00] <FrozenFire> As a prelude to converting them to traits
684: [22:28:00] <FrozenFire> And convert Versioned into History and Staged
685: [22:28:00] * azureKnight digs through the framework folder
686: [22:28:00] * simon_w|air quit (Quit: This computer has gone to sleep)
687: [22:29:00] <FrozenFire> And instead of having a SiteTree common point of descent, make that into a DataExtension/Trait
688: [22:30:00] <FrozenFire> So DataObjects can *actually* be pages.
689: [22:30:00] <FrozenFire> :P
690: [22:30:00] * FrozenFire is just mentally masturbating at this point
691: [22:32:00] * priithansen has joined #silverstripe
692: [22:33:00] <azureKnight> Maybe I'm writing my field wrong?
693: [22:33:00] <FrozenFire> Probably
694: [22:34:00] <FrozenFire> Duh, even
695: [22:34:00] <catcher> why does onAfterWrite infinite loop when I: parent::onAfterWrite(), $this->title = $this->id, $this->write(); ?
696: [22:34:00] <FrozenFire> catcher, Due
697: [22:34:00] <catcher> I need after, or else ID is 0
698: [22:34:00] <azureKnight> CheckboxSetField::create('Events', 'Events', DataList::create('Event')->map('ID', 'Title'))
699: [22:34:00] <simon_w> catcher, what does write() call?
700: [22:34:00] <catcher> ha
701: [22:34:00] <FrozenFire> I think you want onBeforeWrite
702: [22:34:00] <simon_w> and drop the write()
703: [22:35:00] <FrozenFire> Use a getter
704: [22:35:00] <FrozenFire> No
705: [22:35:00] <catcher> ah, that'll work
706: [22:35:00] <FrozenFire> public function getTitle() { return $this->getField("Title")?:$this->ID; }
707: [22:37:00] * azureKnight quit (Quit: azureKnight)
708: [22:37:00] <azureKnight> Gotta bounce. Ttyl.
709: [22:38:00] <catcher> though then the title won't be written to the db
710: [22:39:00] <catcher> not 'til the second save, anyway
711: [22:40:00] <simon_w> And?
712: [22:48:00] * mobiusnz quit (Quit: Leaving.)
713: [22:49:00] * mobiusnz has joined #silverstripe
714: [22:50:00] <FrozenFire> Are you searching by Title?
715: [22:50:00] <FrozenFire> If so, are you really going to care if it fails to make integer matches on Title?
716: [22:57:00] <catcher> Nah, it's not a big deal functionally, just bugs me to see a bunch of null fields in my db.
717: [22:59:00] * priithansen quit (Quit: priithansen)
718: [23:01:00] * simon_w quit (Read error: Connection reset by peer)
719: [23:02:00] <simon_w> Aww, wasn't fast enough that time
720: [23:02:00] * simon__w has joined #silverstripe
721: [23:02:00] * simon__w is now known as simon_w
722: [23:03:00] <simon_w> catcher, so just stop looking in the datavase
723: [23:04:00] <catcher> simon_w, that's exactly what I did, and I feel better already.
724: [23:09:00] * willr_ has joined #silverstripe
725: [23:09:00] * willr_ has joined #silverstripe
726: [23:09:00] * willr_ quit (Changing host)
727: [23:09:00] <simon_w> "Responsive design has won that battle", "making native app development very similar to rich HTML5 application development"
728: [23:09:00] <simon_w> Oh UncleCheese, you crack me up
729: [23:15:00] * mobiusnz quit (Quit: Leaving.)
730: [23:25:00] * azureKnight has joined #silverstripe
731: [23:40:00] * Error404NotFound quit (Ping timeout: 258 seconds)
732: [23:41:00] * Error404NotFound has joined #silverstripe
733: [23:42:00] * catcher quit (Quit: Leaving)

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