#silverstripe IRC Log

IRC log for 21 August 2013

All timestamps are in UTC.

1: [00:00:01] <Pyromanik> sounds like you'll need to make a function to evaluate it and call that :<
2: [00:01:24] <helenclarko> I was worried that would be the case.
3: [00:01:46] <helenclarko> Im onto it now.
4: [00:01:46] * DesignCity quit (Quit: DesignCity)
5: [00:04:40] <atmos> ss23: interestingly, it works on dev XP
6: [00:04:45] <ss23> lol
7: [00:04:49] <ss23> hate those issues!
8: [00:12:33] <atmos> ss23: I had a look at the index and they are being completely rebuilt
9: [00:12:59] <atmos> I don't remember ever logging any changes to /fulltextsearch...
10: [00:13:02] <atmos> ffffff
11: [00:13:50] * willr quit (Quit: willr)
12: [00:15:40] * DigNZ quit (Quit: DigNZ)
13: [00:17:50] * Guest58515 quit (Ping timeout: 240 seconds)
14: [00:18:55] * Pigeon has joined #silverstripe
15: [00:18:58] * Pigeon is now known as Guest80129
16: [00:24:35] <atmos> ss23: hmmmm, when messing with the page/form in question, I get a 404 EditForm not found
17: [00:24:50] <ss23> Hmm? For search stuff? What? :O
18: [00:25:34] <atmos> ss23: well, when editing the page that is draft, and attempting to save draft
19: [00:25:49] <ss23> HMMMMM
20: [00:25:51] <atmos> ss23: the page that is showing up in search, when it shouldn't
21: [00:25:53] <ss23> atmos: Sounds like you broke it!
22: [00:26:10] * DigNZ has joined #silverstripe
23: [00:26:11] * DigNZ quit (Remote host closed the connection)
24: [00:26:25] * DigNZ has joined #silverstripe
25: [00:27:57] <Pyromanik> fuck
26: [00:28:01] <Pyromanik> member subclasses
27: [00:28:10] <atmos> ss23: :p I think Jean did, he built the the page type
28: [00:30:28] * LoveDuckie quit (Ping timeout: 256 seconds)
29: [00:31:31] <ss23> haha
30: [00:31:35] <ss23> Wasn't me :
31: [00:31:36] <ss23> :D
32: [00:45:36] * atmos quit (Quit: Page closed)
33: [00:49:25] * UncleCheese quit (Quit: UncleCheese)
34: [00:52:55] * Stomach quit (Quit: Leaving.)
35: [00:53:36] * atmos has joined #silverstripe
36: [00:53:49] <atmos> ss23: hmmmmm.... could it be there are too many fields on a form?
37: [00:53:57] <atmos> ss23: some sort of limit?
38: [00:54:20] <ss23> None artifically imposed that I'm aware of
39: [00:54:32] <ss23> (And the natural ones are probably very high, millions or more
40: [00:54:33] <ss23> )
41: [00:54:44] <atmos> ss23: ok
42: [01:08:45] * zippy__ has joined #silverstripe
43: [01:14:52] <ss23> simon_w: Did you want luuunch today?
44: [01:16:03] <simon_w> I suppose so
45: [01:16:11] <simon_w> Will get this class working first
46: [01:17:36] <ss23> np, I have work for a while at least
47: [01:19:56] * lewellyn quit (Ping timeout: 240 seconds)
48: [01:22:03] * supernovah has joined #silverstripe
49: [01:22:28] * lewellyn has joined #silverstripe
50: [01:22:36] <supernovah> Hey, if I have a control inside of an if block in a 2.4.10 template, does the if block work?
51: [01:22:52] <simon_w> Yes
52: [01:22:54] <supernovah> and can I use the same variable as an if block parameter elsewhere?
53: [01:23:04] <simon_w> Yes
54: [01:23:07] <supernovah> Ok cool thanks
55: [01:29:05] * UncleCheese has joined #silverstripe
56: [01:36:48] <helenclarko> Hey Pyromanik thanks for your help.
57: [01:36:48] * cloph is now known as cloph_away
58: [01:36:56] * Stomach has joined #silverstripe
59: [01:37:35] <helenclarko> Got it to work without writing a function.
60: [01:38:06] <Pyromanik> spronk: sad face.
61: [01:38:19] <Pyromanik> That faff about Opera being opera but with webkit engine was all talk.
62: [01:38:27] <Pyromanik> It's turned into chrome with a few extra bits.
63: [01:38:30] <Pyromanik> http://my.opera.com/ODIN/blog/?startidx=3
64: [01:39:20] <helenclarko> Turns out puting <% if Price == "0.00" %> doesnt work so well... It needed to be <% if Price == "0" %>.
65: [01:39:32] <Pyromanik> helenclarko: did I not mention to do that?
66: [01:39:46] <Pyromanik> Does <% if Price %><% else %> work?
67: [01:40:49] <spronk> mm:(
68: [01:41:02] <supernovah> How would you go about having a different template used based on a particular action in your url
69: [01:41:11] <helenclarko> Nope, because Price always exists. It defaults to 0.00. So you were right about it being a currency too.
70: [01:41:54] <Pyromanik> spronk: mmm, wrong link: http://my.opera.com/ODIN/blog/2013/07/02/introducing-opera-15-for-desktop-and-a-fast-release-cycle
71: [01:42:00] <Pyromanik> same article at top of page though
72: [01:42:25] <Pyromanik> It's just Chrome with a 'native' UI.
73: [01:42:33] <Pyromanik> which means they've ditched Qt I guess.
74: [01:44:03] <spronk> mm lol
75: [01:44:17] <Pyromanik> also seems like "committing to webkit" was a lie too. They're updating blink and pushing some things up to chromium... don't see anything pushed all the way up to WebKit though
76: [01:44:31] <spronk> mm
77: [01:44:39] <spronk> ive been using it a bit
78: [01:44:40] <Pyromanik> Super sadface.
79: [01:44:43] <spronk> it's pretty lacklustre
80: [01:44:48] <Pyromanik> Dragonfly seems dead too :<
81: [01:44:50] <Pyromanik> is it?
82: [01:45:06] <ss23> Pyromanik: They didn't say they would make an effort to commit to webkit, they said they can forsee some people commiting to both and patches going to both places
83: [01:45:18] <ss23> There wasn't a promise they would make an effort, rather the obsevation that patches would be applicable to both codebases
84: [01:45:27] <Pyromanik> ss23: original press release about switching ... yeah I suppose.
85: [01:45:29] <ss23> IF you read it ias "WE WILL COMMIT TO WEBKIT", that just means you read it wrong
86: [01:45:33] <ss23> BOOM
87: [01:45:38] * ss23 shoots a shotgun
88: [01:45:39] <Pyromanik> yeah, I didn't.
89: [01:45:50] <Pyromanik> but assumed as much. Wrongly.
90: [01:46:10] <Pyromanik> so basically "Opera becomes google, helps to dominate the world"
91: [01:46:31] <Pyromanik> the only feature I see that's cool is "Stash"
92: [01:48:39] <simon_w> supernovah, ClassName_action.ss
93: [01:49:09] * marcel_ has joined #silverstripe
94: [01:50:48] <supernovah> so shoul that be Class_Controller_action or Class_action
95: [01:51:07] <simon_w> What do your other ones look like?
96: [01:51:14] <simon_w> You're just sticking the _action on
97: [01:51:36] <supernovah> Well the actions are processed inside of the _Controller class
98: [01:51:47] <supernovah> When they are form actions
99: [01:51:54] <simon_w> So's the default flow
100: [01:52:25] <supernovah> And does the action need to be in allowed_actions?
101: [01:52:31] <simon_w> Yes
102: [01:53:27] <supernovah> Doesn't seem to work, still using the default template
103: [01:53:58] <simon_w> Are you using the actual action name? Or the form submission method name?
104: [01:54:02] <simon_w> Have you flushed?
105: [01:54:06] <simon_w> What are you returning?
106: [01:55:02] * Stomach quit (Quit: Leaving.)
107: [01:55:11] <supernovah> $this
108: [01:55:24] <supernovah> no it's just a name for a page I want a custom template on
109: [01:55:29] <Pyromanik> PageName_action.ss
110: [01:55:30] <supernovah> It's not related to forms in any way
111: [01:55:31] * Stomach has joined #silverstripe
112: [01:55:40] <simon_w> You need to return an array
113: [01:55:43] <supernovah> Yeah I tried that too
114: [01:55:47] <supernovah> An array of what
115: [01:55:51] <Pyromanik> array()
116: [01:56:26] <Pyromanik> though I'm pretty sure $this works too...
117: [01:56:29] <Pyromanik> or should
118: [01:56:35] <supernovah> Oh flush worked
119: [01:56:53] <supernovah> Strange that it needed flush even though changing it to renderwith(something else) was working
120: [01:57:08] <Pyromanik> because it wasn't in the cache
121: [01:57:15] <simon_w> *manifest
122: [01:57:16] <Pyromanik> renderWith finds the file explicitly
123: [01:57:19] <Pyromanik> yeah, that one.
124: [01:57:24] <Pyromanik> manifest is a cache of sorts :P
125: [01:57:35] <supernovah> You guys are SS dev's yes?
126: [01:57:42] <Pyromanik> well
127: [01:57:45] <Pyromanik> depends what you mean.
128: [01:57:49] <supernovah> For the company
129: [01:57:52] <Pyromanik> No.
130: [01:57:57] <simon_w> Nope
131: [01:58:51] <supernovah> Oh ok
132: [01:58:58] <supernovah> Had the impression you were
133: [01:59:04] <supernovah> Thanks for the help as always :) bb
134: [01:59:08] <ss23> I AM
135: [01:59:10] <ss23> wow
136: [01:59:11] <ss23> he left
137: [01:59:12] <ss23> ;___;
138: [01:59:34] <simon_w> ss23, four minutes
139: [01:59:53] <ss23> mmk
140: [02:01:04] <Pyromanik> late lunch!
141: [02:05:07] <atmos> Anyone got any ideas regarding a 404 error EditForm, that outputs this in the error log? http://www.sspaste.com/paste/show/52141f381e862
142: [02:05:55] * abitran_ has joined #silverstripe
143: [02:05:57] * abitran quit (Ping timeout: 248 seconds)
144: [02:08:26] * Pyromanik quit (Remote host closed the connection)
145: [02:10:07] * Pyromanik has joined #silverstripe
146: [02:10:08] <Pyromanik> ping
147: [02:11:43] <Pyromanik> atmos: looks like controller is defined wrong.
148: [02:12:13] <atmos> Pyromanik: for the particular page type?
149: [02:12:21] <Pyromanik> for your form.
150: [02:12:32] <atmos> Pyromanik: I'll take a look
151: [02:12:58] <Pyromanik> Form::create($ControllerInstance, $FormCreatorFunction, $fields, $actions[, $validator])
152: [02:14:49] <Pyromanik> also that input vars things is a bit weird. I'd have said infinite loop, but it's input vars.
153: [02:14:58] <Pyromanik> dunno if that's PHP input or function params
154: [02:16:10] <Pyromanik> hmm, atmos how big is this form?
155: [02:16:10] <Pyromanik> http://www.php.net/manual/en/info.configuration.php#ini.max-input-vars
156: [02:18:02] <atmos> Pyromanik: I did find a missing code block from the controller - checking that first
157: [02:18:11] <atmos> Pyromanik: the form is fairly big
158: [02:18:25] <Pyromanik> over 1000 named inputs?
159: [02:19:17] <spronk> yeah
160: [02:19:20] <spronk> over 1k
161: [02:19:21] <spronk> that's huueggg
162: [02:19:40] * Stomach quit (Quit: Leaving.)
163: [02:20:06] <Jayden90> Is there a better way do display a checkbox value in gridfield columns? I.E. instead of displaying "0" or "1" is shows "True" "False"
164: [02:20:32] <Jayden90> or "Yes" "No"
165: [02:20:40] <Pyromanik> FieldName.Nice
166: [02:21:25] <Pyromanik> or FieldName.NiceAsBoolean
167: [02:21:34] <Pyromanik> http://api.silverstripe.org/3.0/class-Boolean.html#_Nice
168: [02:21:40] <atmos> Pyromanik: no way, there are maybe 30 fields?
169: [02:22:23] <Pyromanik> atmos: your php is screaming that there are over 1000 superglobals
170: [02:22:32] <Pyromanik> check your header?
171: [02:22:48] <Jayden90> Pyromanik: My man!
172: [02:23:19] <Pyromanik> Jayden90: oddly enough though the last time I tried to use it I had to write a controller function that just returned that function's result. Dunno why.
173: [02:23:42] <atmos> Pyromanik: what exactly am I looking for?
174: [02:23:43] * helenclarko quit (Quit: Page closed)
175: [02:24:05] * Stomach has joined #silverstripe
176: [02:24:18] <Pyromanik> atmos: an F'n huuuuuuge POST:
177: [02:24:25] <Pyromanik> Data:
178: [02:24:32] <Pyromanik> whatever the header is that actually carries the data
179: [02:25:32] <atmos> OMG IT'S HUGE - KILL IT WITH FIRE
180: [02:25:50] <Pyromanik> I present to you, your problem.
181: [02:27:18] <atmos> So, like I mentioned before - there kind of IS a limit to the number of fields you can have on a form
182: [02:27:47] <Pyromanik> yes
183: [02:28:08] <Pyromanik> amazing what happens when you google log error ;)
184: [02:28:25] <atmos> Pyromanik: the thing is, when this site was on 2.4, no issues :P
185: [02:28:31] <atmos> for the same form
186: [02:29:56] <Pyromanik> well
187: [02:30:00] <Pyromanik> something has changed.
188: [02:31:06] <atmos> Pyromanik: ffffffffffff
189: [02:33:02] * Pyromanik shrugs
190: [02:35:34] <ss23> ffffff
191: [02:35:55] <ss23> atmos: Wasn't me who updated the site! :D
192: [02:36:38] <atmos> ss23: lol the form is no biggy, I'm just miffed on this draft content appearing in search
193: [02:37:20] <Pyromanik> there's a whole thing on how to stop that isn't there?
194: [02:37:43] * Stomach quit (Quit: Leaving.)
195: [02:37:52] <ss23> Pyromanik: Yes! But it's not working :D
196: [02:41:42] <atmos> Pyromanik: Yeah there is, and that was already implemented - and it still appears
197: [02:42:05] <atmos> ONLY this form I'm having issues with tthough
198: [02:48:47] * Stomach has joined #silverstripe
199: [03:03:08] * SightUnseen has joined #silverstripe
200: [03:03:18] * SightUnseen has left #silverstripe
201: [03:04:13] <zippy__> hmm
202: [03:04:14] <Pyromanik> :/
203: [03:04:16] <zippy__> popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
204: [03:05:44] <zippy__> after trying to handle Director::direct(/users/john/themes/default/css/style.css,DataModel)
205: [03:05:47] <zippy__> weird
206: [03:11:18] * priithansen quit (Quit: priithansen)
207: [03:29:01] * cloph has joined #silverstripe
208: [03:29:33] * cloph_away quit (Ping timeout: 264 seconds)
209: [03:53:08] * Jayden90 quit (Quit: Jayden90)
210: [03:53:55] <Pyromanik> urgh, that feeling when you remove an entire account instead of just an alias associated with it :<
211: [03:54:12] <spronk> derps
212: [03:54:17] <Pyromanik> mmm
213: [03:54:27] <Pyromanik> good ol' shit UI design
214: [03:56:13] <spronk> CPANNUL?
215: [03:56:19] <Pyromanik> Plesk
216: [03:56:22] <spronk> ooh
217: [03:56:22] <spronk> yeah
218: [03:56:24] <spronk> even worse lol
219: [03:56:37] <Pyromanik> nah, the UI is nice to look at... but so much derp in usability.
220: [04:01:16] * Jayden90 has joined #silverstripe
221: [04:09:09] <spronk> hmm
222: [04:09:12] <spronk> gys
223: [04:09:16] <spronk> treedropdownfield
224: [04:09:20] <spronk> for selecting a related page
225: [04:09:26] <spronk> but i want only certain page types to be selectable
226: [04:09:26] <spronk> how?
227: [04:13:22] <Pyromanik> Managed server ftw, restores on the way
228: [04:13:30] <Pyromanik> spronk: you don't.
229: [04:13:47] <spronk> yeah.... :<
230: [04:13:54] <spronk> alternative options?
231: [04:13:57] <Pyromanik> you DropdownField('BlahFaceID', 'Blah Face', BlahFace::get()->map())
232: [04:14:00] <spronk> yeah
233: [04:14:08] <spronk> buyt
234: [04:14:12] <Pyromanik> can't have a tree if they don't form a tree structure :p
235: [04:14:13] <spronk> when hundreds of entries..
236: [04:14:19] <Pyromanik> spronk: it searchables.
237: [04:14:23] <Pyromanik> by default, in CMS.
238: [04:14:24] <Pyromanik> iirc
239: [04:14:30] <Pyromanik> thanks to jquery.chosen
240: [04:18:50] * zippy__ quit (Ping timeout: 264 seconds)
241: [04:19:37] * atmos quit (Quit: Page closed)
242: [04:36:07] * DigNZ quit (Quit: DigNZ)
243: [04:42:28] * UncleCheese quit (Quit: UncleCheese)
244: [04:44:37] * Stomach quit (Quit: Leaving.)
245: [04:46:50] * DigNZ has joined #silverstripe
246: [04:46:52] * DigNZ quit (Remote host closed the connection)
247: [04:47:04] * mobiusnz has left #silverstripe
248: [04:47:05] * DigNZ has joined #silverstripe
249: [04:55:51] * DigNZ quit (Quit: DigNZ)
250: [04:58:16] * NitinShah has joined #silverstripe
251: [05:00:19] <Pyromanik> wotwotinthebot
252: [05:00:20] * Pyromanik quit (Quit: leaving)
253: [05:03:38] * robert_ has joined #silverstripe
254: [05:03:38] * robert_ quit (Changing host)
255: [05:03:38] * robert_ has joined #silverstripe
256: [05:10:10] <spronk> ss23: bunch of fucking hippies
257: [05:10:10] <spronk> :P
258: [05:12:06] <ss23> :D
259: [05:12:12] <ss23> They're the only party with sane views
260: [05:17:09] <spronk> then they fill themselves with insane hippies
261: [05:17:09] <spronk> so
262: [05:17:13] <spronk> credibility --> 0
263: [05:20:53] <ss23> If you're ignoring a parties policies, then you also have 0 credibility
264: [05:21:16] <ss23> "Well sure this party has sane views, only ever talks sense, and acutally isn't retarded, BUT HIPPIESS!!!!!!ONEONEONEONE!!!"
265: [05:21:38] * Stomach has joined #silverstripe
266: [05:22:26] * UncleCheese has joined #silverstripe
267: [05:38:00] * Stomach quit (Quit: Leaving.)
268: [05:51:57] * UncleCheese quit (Quit: UncleCheese)
269: [06:26:27] * batbadger has left #silverstripe
270: [06:30:59] * pippy_ has joined #silverstripe
271: [06:33:20] * pippy quit (Ping timeout: 260 seconds)
272: [06:43:45] * ARNHOE has joined #silverstripe
273: [06:44:51] * zfmf1 has joined #silverstripe
274: [06:46:23] * DesignerX has joined #silverstripe
275: [06:50:53] <DesignerX> hi, I have question about how to deal with "addresses" in a good system design. For example : In a realestate managment software, should I create a seperate table for addresses & have a has_one relation or have the Address fields on each object?
276: [06:51:23] * nmshah has joined #silverstripe
277: [06:54:50] * NitinShah quit (Ping timeout: 264 seconds)
278: [06:56:38] * nmshah quit (Ping timeout: 264 seconds)
279: [07:06:48] * sminnee quit (Quit: sminnee)
280: [07:17:41] * Jayden90 quit (Quit: Jayden90)
281: [07:27:09] * NitinShah has joined #silverstripe
282: [07:44:37] * pippy has joined #silverstripe
283: [07:47:56] * pippy_ quit (Ping timeout: 256 seconds)
284: [07:54:32] * chillu has joined #silverstripe
285: [08:02:51] * kinglozzer has joined #silverstripe
286: [08:11:40] * sam___ has joined #silverstripe
287: [08:11:42] <sam___> hi
288: [08:11:48] <sam___> facing a problem
289: [08:11:53] <sam___> in admin page
290: [08:12:27] <sam___> while linking a file to download
291: [08:12:29] <sam___> Failed to load resource: the server responded with a status of 500 (Error: "Bad RecordClassName '' and $baseClass not set" at line 2762 of C:\xampp\htdocs\SilverStripe\sapphire\core\model\DataObject.php) http://localhost/SilverStripe/index.php/admin/EditorToolbar/LinkForm/field/…rceValue=&SecurityID=a689af132fbfea671bc785a7105a824a42519cb1&locale=en_US
292: [08:13:00] <sam___> I dont have any blank class name in sitetree_live
293: [08:13:09] <sam___> please help
294: [08:13:19] * SightUnseen has joined #silverstripe
295: [08:13:23] * SightUnseen has left #silverstripe
296: [08:13:49] * DimiStripe has joined #silverstripe
297: [08:15:12] <sam___> Ajax.Request.Object.extend.request [VM] prototype.js (668):765 Ajax.Request.Object.extend.initialize [VM] prototype.js (668):740 (anonymous function) [VM] prototype.js (668):25 TreeDropdownField.ajaxGetTree [VM] TreeSelectorField.js (729):200 TreeDropdownField.showTree [VM] TreeSelectorField.js (729):125 TreeDropdownField.toggleTree [VM] TreeSelectorField.js (729):88 TreeDropdownField.edit_click [VM] TreeSelectorField.js (729):
298: [08:15:19] <sam___> detailed error
299: [08:15:22] <sam___> please help
300: [08:15:34] * NitinShah quit (Quit: Leaving)
301: [08:16:24] <DimiStripe> Hi guys, got 2.4, got two arrays of data with categories IDs and Styles IDs , need taking all products which belongs to these ids, without duplicates having in mind that Product<-many_many->category and product<-many_many->style . Is it possible wit SS2.4 native methods somehow ?
302: [08:17:11] <sam___> is there anybody faced such problem?
303: [08:24:32] * travis-ci has joined #silverstripe
304: [08:24:32] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#841 (3.1 - 4af619e : Ingo Schommer): The build has errored.
305: [08:24:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/abe09c79e54e...4af619e5a024
306: [08:24:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10442616
307: [08:24:32] * travis-ci has left #silverstripe
308: [08:26:59] * travis-ci has joined #silverstripe
309: [08:26:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#841 (3.1 - 4af619e : Ingo Schommer): The build has errored.
310: [08:26:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/abe09c79e54e...4af619e5a024
311: [08:26:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10442616
312: [08:26:59] * travis-ci has left #silverstripe
313: [08:30:51] * zippy__ has joined #silverstripe
314: [08:32:38] * sam___ quit (Ping timeout: 250 seconds)
315: [08:35:26] * lobarvaz has joined #silverstripe
316: [08:36:13] * Marvanni has joined #silverstripe
317: [08:42:24] * LoveDuckie has joined #silverstripe
318: [08:44:01] * simon_w|air has joined #silverstripe
319: [08:44:12] <simon_w|air> Yaaay, Packagist is 404ing!
320: [08:44:40] * simon_w|air <3s composer and single-point of failures!
321: [08:48:10] * DimiStripe quit (Quit: Page closed)
322: [08:53:59] * chillu quit (Read error: Connection reset by peer)
323: [08:54:13] * chillu has joined #silverstripe
324: [08:57:02] * FrozenFire quit (Ping timeout: 246 seconds)
325: [08:57:30] * jon-shape quit (Ping timeout: 245 seconds)
326: [08:59:23] * FrozenFire has joined #silverstripe
327: [09:00:08] * jon-shape has joined #silverstripe
328: [09:08:00] * micmania1 has joined #silverstripe
329: [09:35:33] <kinglozzer> Hmm. I'm ajax loading some images for a carousel, any way I can cache them on LastUpdated in the controller?
330: [09:35:51] <kinglozzer> Or cache the entire response or something?
331: [09:38:09] * supernovah has joined #silverstripe
332: [09:39:34] <simon_w|air> Well, you can set cache headers and stuff, though usually you'd just add those to the image files themselves rather than the list of what to get
333: [09:45:04] <kinglozzer> At the moment my response just returns a string containing the <img /> tags, figured it's probably quicker than rendering a template. I know nothing of setting cache headers, can I/how could I use LastUpdated with them?
334: [09:47:51] <kinglozzer> I could write the response to a file myself and work out whether to replace it using ->max('LastUpdated'), I guess I was just wondering if there's an API to do it as easily as <% cache %> in a template
335: [09:48:12] <supernovah> How do CodeIgniter and SS compare?
336: [09:49:01] <kinglozzer> simon_w|air: http://api.silverstripe.org/3.1/class-SS_Cache.html could I use that?
337: [09:49:34] <simon_w|air> kinglozzer, just stick it in a template and use partial caching
338: [09:50:48] <ss23> simon_w|air: I'm seriously wtfing over the idea that somehow this law being passed means you would move to Australia
339: [09:50:50] <ss23> How the hell is that even better
340: [09:50:51] <ss23> like
341: [09:50:53] <ss23> I'm just
342: [09:50:53] <ss23> idek
343: [09:51:04] * Guest80129 quit ()
344: [09:51:27] <simon_w|air> ss23, look at what I'm asking.
345: [09:53:59] <simon_w|air> And it's about moving my services
346: [09:54:45] * zippy__ quit (Ping timeout: 248 seconds)
347: [10:00:07] <kinglozzer> Well, partial caching and the SS_Cache API are both slower than just manually outputting the tags dynamically each time
348: [10:00:15] <kinglozzer> Who knew?
349: [10:01:45] * howardgr_ quit (Read error: Connection reset by peer)
350: [10:02:14] * howardgrigg has joined #silverstripe
351: [10:02:15] * priithansen has joined #silverstripe
352: [10:06:01] <simon_w|air> chillu, PDepend is rather slow ;) Hopefully just for the first time run, but I guess I'll find out
353: [10:06:15] <chillu> :/
354: [10:07:53] <simon_w|air> I'll also look into turning off the Inheritance Analyzer, which is the bit that's taking a rather long time
355: [10:11:41] * zippy__ has joined #silverstripe
356: [10:15:01] * Marvanni quit (Quit: Marvanni)
357: [10:23:40] * Rojod is now known as rojod
358: [10:25:27] <zippy__> supernovah: they are quite different
359: [10:42:08] * Marvanni has joined #silverstripe
360: [10:50:55] * howardgrigg quit (Remote host closed the connection)
361: [10:58:08] * Marvanni_ has joined #silverstripe
362: [10:59:19] * Marvanni quit (Ping timeout: 264 seconds)
363: [11:07:04] * Marvanni_ quit (Quit: Marvanni_)
364: [11:12:17] * MrGuits quit (Quit: Leaving)
365: [11:13:50] * Marvanni has joined #silverstripe
366: [11:23:49] * priithansen quit (Read error: Connection reset by peer)
367: [11:24:30] * priithansen has joined #silverstripe
368: [11:25:36] * chillu quit (Quit: chillu)
369: [11:28:01] * chillu has joined #silverstripe
370: [11:40:22] * DesignCity has joined #silverstripe
371: [12:01:20] * mdowton quit (Quit: The computer fell asleep)
372: [12:12:02] * UndefinedOffset has joined #silverstripe
373: [12:30:41] * joern_ has joined #silverstripe
374: [12:35:00] * zippy__ quit (Ping timeout: 245 seconds)
375: [12:51:12] * howardgrigg has joined #silverstripe
376: [12:54:20] * Marvanni quit (Quit: Marvanni)
377: [12:55:51] * howardgrigg quit (Ping timeout: 276 seconds)
378: [13:24:58] * Marvanni has joined #silverstripe
379: [13:44:52] * supernovah quit (Ping timeout: 264 seconds)
380: [14:01:42] <joern_> i'm playing with $many_many_extraFields in ss3.1 and can't figure out how i set the default value of the field.
381: [14:16:43] * UndefinedOffset quit (Ping timeout: 264 seconds)
382: [14:18:41] * rved has joined #silverstripe
383: [14:18:50] * DesignerX quit (Ping timeout: 264 seconds)
384: [14:19:57] * UndefinedOffset has joined #silverstripe
385: [14:51:49] * howardgrigg has joined #silverstripe
386: [14:53:35] * UndefinedOffset quit (Disconnected by services)
387: [14:53:35] * UndefinedOffset1 has joined #silverstripe
388: [14:56:01] * ARNHOE quit (Remote host closed the connection)
389: [14:56:29] * howardgrigg quit (Ping timeout: 256 seconds)
390: [14:57:38] * UndefinedOffset1 is now known as UndefinedOffset
391: [15:14:22] * Nivery has joined #silverstripe
392: [15:22:01] * DesignerX has joined #silverstripe
393: [15:24:48] <DesignerX> hi, How can I exclude a folder from being loaded into SS. I'v seen it soemhere where you add a file with the name "exclude_folder" ? cant remember the exact file name so if anyone knows it ?
394: [15:26:08] <kinglozzer> _manifest_exclude
395: [15:26:29] <DesignerX> ty
396: [15:28:08] * rved quit (Quit: rved)
397: [15:32:56] * chillu quit (Quit: chillu)
398: [15:36:56] * chillu has joined #silverstripe
399: [15:39:20] * joern_ quit (Quit: joern_)
400: [15:42:49] * zfmf1 has left #silverstripe
401: [15:43:07] * simon_w quit (Ping timeout: 264 seconds)
402: [15:44:08] * simon_w has joined #silverstripe
403: [15:45:57] * DesignCity quit (Quit: DesignCity)
404: [15:50:10] * zfmf1 has joined #silverstripe
405: [15:50:17] * zfmf1 has left #silverstripe
406: [16:04:21] * Marvanni quit (Quit: Marvanni)
407: [16:05:48] * kinglozzer quit ()
408: [16:25:49] * chillu quit (Quit: chillu)
409: [16:50:17] * chillu has joined #silverstripe
410: [16:52:20] * howardgrigg has joined #silverstripe
411: [16:56:40] * howardgrigg quit (Ping timeout: 245 seconds)
412: [17:00:17] * micmania1 quit (Quit: Leaving)
413: [17:05:26] * lobarvaz quit (Remote host closed the connection)
414: [17:14:54] * binman has joined #silverstripe
415: [17:21:33] * nickspiel quit (Ping timeout: 256 seconds)
416: [17:22:53] * nickspiel has joined #silverstripe
417: [17:41:48] * Nivery quit (Quit: Nivery)
418: [17:47:48] * chillu quit (Quit: chillu)
419: [17:49:21] * chillu has joined #silverstripe
420: [18:12:02] * micmania1 has joined #silverstripe
421: [18:18:17] * Nivery has joined #silverstripe
422: [18:29:19] * Nivery quit (Quit: Nivery)
423: [18:42:48] <micmania1> can anyone help with phpunit? I'm trying to run some tests for my module but I can't get it fully working after following the docs.
424: [18:43:22] <micmania1> When I run 'phpunit mysite/tests/MyFirstTest.php' it works fine
425: [18:43:43] <micmania1> but when I run 'phpunit mysite/tests' it says no tests found.
426: [18:52:03] <guzzlefry> micmania1: trailing slash maybe?
427: [18:52:32] * guzzlefry isn't familiar with PHPUnit at all. Just throwing guesses out there. :P
428: [18:52:41] <micmania1> guzzlefry, tried that too
429: [18:52:53] * howardgrigg has joined #silverstripe
430: [18:53:18] <guzzlefry> mysite/tests/* ?
431: [18:54:48] <micmania1> that looks better!
432: [18:55:07] <micmania1> It didn't pass through all my tests - just one but I'm trying it with flush=1 now
433: [18:55:53] * SightUnseen has joined #silverstripe
434: [18:55:57] * SightUnseen has left #silverstripe
435: [18:57:42] * howardgrigg quit (Ping timeout: 264 seconds)
436: [18:57:48] <micmania1> that's only running the first file in the dir
437: [18:59:05] <micmania1> thanks for the help though :)
438: [19:07:30] <guzzlefry> Is there a way to disable image resizing in the CMS?
439: [19:08:10] * MiniZeka has joined #silverstripe
440: [19:08:15] <MiniZeka> 'evening!
441: [19:08:38] * chillu quit (Quit: chillu)
442: [19:08:51] <MiniZeka> is there a chance to add two more params for routing (besides $ID and $OtherID) for each Controller?
443: [19:14:02] * violetina has joined #silverstripe
444: [19:14:36] <micmania1> MiniZeka, check out $url_handlers on Controller
445: [19:15:04] <micmania1> http://doc.silverstripe.com/framework/en/topics/controller
446: [19:17:12] <guzzlefry> gah
447: [19:17:21] <guzzlefry> Where are the options for HTMLEditorConfig listed?
448: [19:17:53] * joelpittet has joined #silverstripe
449: [19:18:39] <micmania1> I don't think they're all listed but you could take a look here: http://api.silverstripe.org/3.1/source-class-HtmlEditorConfig.html#68
450: [19:18:52] * Nivery has joined #silverstripe
451: [19:19:05] <simon_w|air> TinyMCE's wiki
452: [19:20:48] <micmania1> simon_w, does unit testing for modules work out of the box or do I have to set something up?
453: [19:21:12] <micmania1> so I'm trying phpunit mysite/tests/
454: [19:21:18] <micmania1> but its only running tests from 1 file.
455: [19:23:26] <guzzlefry> thanks simon
456: [19:24:10] <simon_w|air> micmania1, it works out of the box
457: [19:24:18] <simon_w|air> What are you naming your files?
458: [19:24:42] <micmania1> One is called FixtureTest.php and the other is LeagueTest.php. Class names match
459: [19:26:02] <guzzlefry> simon_w: Anyway to stop TinyMCE from stripping out the body of <script> tags?
460: [19:26:37] <simon_w|air> micmania1, and what are they extending?
461: [19:26:39] <simon_w|air> guzzlefry, yes
462: [19:27:02] <micmania1> SapphireTest. If I call them individually they work fine. But I can't get them all to run at once.
463: [19:27:18] <simon_w|air> Does sake dev/tests/module/mysite work?
464: [19:27:34] <guzzlefry> I'm allowing the script tags, which seems to work, but the element's content disappears. :/
465: [19:29:55] * catcher has joined #silverstripe
466: [19:31:56] <micmania1> That's it! Thanks.
467: [19:34:23] <catcher> I need a copy of a class for the purpose of maintaining an independent set of IDs, yet I want to be able to aggregate both sets of objects together for viewing. It seems subclassing won't work since IDs are maintained. Any ideas better than duplicating the code?
468: [19:41:57] * joelpittet quit (Remote host closed the connection)
469: [19:42:26] <micmania1> catcher you could get both sets of data then merge them.
470: [19:43:28] * chillu has joined #silverstripe
471: [19:45:35] * MiniZeka quit (Ping timeout: 250 seconds)
472: [19:46:55] <catcher> micmania1, I'm asking about the best way to structure the classes, I just hate to completely duplicate a class.
473: [19:47:34] <micmania1> You could pull out its functionality and create a DataExtension which you could then apply to each class.
474: [19:50:01] <catcher> micmania1, I like that idea, ty, now to see if I can pull it off without disrupting an already-running site with lots of the objects.
475: [19:57:47] <guzzlefry> oh goody, Firefox 23.0 implementing new security features that break website. :/
476: [19:58:29] * Bollig|DesignCty quit (Ping timeout: 248 seconds)
477: [19:58:55] * Bollig|DesignCty has joined #silverstripe
478: [20:00:29] <Nivery> good solution, mic… wasn't sure what i'd do to solve that
479: [20:18:59] <guzzlefry> So, added this: HtmlEditorConfig::get('cms')->setOption('valid_elements', "*"); to my _config.php.
480: [20:19:21] <guzzlefry> The editor seems to be stripping out any attributes to divs and script though. :/
481: [20:20:14] <guzzlefry> Any ideas on how to stop this?
482: [20:29:58] <simon_w> *[*]
483: [20:30:09] <simon_w> And maybe extended_valid_elements, or some such
484: [20:30:18] <guzzlefry> thanks, I'll try that.
485: [20:34:28] * UndefinedOffset quit (Quit: Leaving.)
486: [20:36:59] * pippy_ has joined #silverstripe
487: [20:38:36] * pippy quit (Ping timeout: 256 seconds)
488: [20:38:56] * nickmolhoek has joined #silverstripe
489: [20:38:57] * nickmolhoek quit (Remote host closed the connection)
490: [20:39:10] * nickmolhoek has joined #silverstripe
491: [20:39:51] * DigNZ has joined #silverstripe
492: [20:39:52] * DigNZ quit (Remote host closed the connection)
493: [20:40:06] * DigNZ has joined #silverstripe
494: [20:43:02] <guzzlefry> Still stripping tags out. I'm going to try disabling verify_html instead. :P
495: [20:44:15] * rojod is now known as Rojod
496: [20:52:28] <guzzlefry> Well, that just kills everything.
497: [20:53:13] * Pyromanik has joined #silverstripe
498: [20:53:16] <Pyromanik> urgh
499: [20:53:25] * howardgrigg has joined #silverstripe
500: [20:53:26] <Pyromanik> get site restored after accidentally removing the account
501: [20:53:26] <micmania1> Silverstripe isn't really built for theming is it?
502: [20:53:38] <Pyromanik> point of restore is moments after removal.
503: [20:53:43] <Pyromanik> fffffff
504: [20:54:28] <simon_w> micmania1, uh, yeah it is
505: [20:54:46] <simon_w> That's kinda the whole point of it
506: [20:54:53] <simon_w> Your content, your theme
507: [20:56:02] <micmania1> If you have 1 bootstrap theme and 1 non-boostrap theme on the same site, you can't render things properly without touching the PHP or making a total mess of the templates
508: [20:56:07] <guzzlefry> Which version of TinyMCE does SilverStripe 3.1 use?
509: [20:56:14] <Pyromanik> micmania1: stop using bootderp
510: [20:56:17] <Pyromanik> ?
511: [20:56:39] <simon_w> micmania1, you have two themes, and can't pick the right one?
512: [20:56:48] <Pyromanik> guzzlefry: check framework/thirdparty/tinymce
513: [20:56:50] <simon_w> guzzlefry, 3.something
514: [20:57:04] <simon_w> Maybe 3.8?
515: [20:57:09] <Pyromanik> micmania1: if you're using a JS library and have to touch PHP then you're probably doing it wrong.
516: [20:57:31] * howardgrigg quit (Ping timeout: 240 seconds)
517: [20:57:35] <micmania1> I'm build a product that I want to license out. Therefore the front end must be totally independant from the backend
518: [20:57:50] <micmania1> Whether its bootstrap or whatever, that's irrelevant.
519: [20:58:00] <Pyromanik> still not understanding your problem.
520: [20:58:17] <Pyromanik> you want users to be able to upload and define their own theme?
521: [20:58:26] <Pyromanik> define/set
522: [20:58:37] <micmania1> Different themes or front-end frameworks require different classes for things to work. Yep?
523: [20:59:05] <Pyromanik> entirely theme related.
524: [20:59:40] <micmania1> So if I build a form with PHP, things like classes are going to always be different for each framework.
525: [20:59:55] <Pyromanik> what I'm hearing at the moment is that you're blaming SS for Bootstrap requiring you to ugly up your templates with classes all over the show
526: [21:00:13] <Pyromanik> micmania1: that's why you don't use frameworks.
527: [21:00:19] <micmania1> Bootstrap is irrelevant. t could be anything.
528: [21:00:34] <micmania1> If I need to make 2 themes for the same backend things are going to be different.
529: [21:00:47] <simon_w> Not if you actually make them
530: [21:00:50] <Pyromanik> yes, but no matter the framework they REQUIRE your markup to follow a certain pattern.
531: [21:01:06] <Pyromanik> like bad jquery plugins requiring a defined html structure.
532: [21:01:37] <simon_w> Also, what's stopping you from just adding those classes in your templates?
533: [21:02:01] <micmania1> I could, but that kind of defats the point in the backend generation of forms.
534: [21:02:15] <Pyromanik> the classes one framework uses will be ignored by another.
535: [21:02:18] <Pyromanik> does it?
536: [21:02:33] <Pyromanik> view is completely disconnected from business logic.
537: [21:02:36] <simon_w> Backend generation does the structure and logic, you're doing the view
538: [21:02:39] <Pyromanik> which is the entire point.
539: [21:02:56] <simon_w> And, guess what? Your theme can override the templates that form fields use!
540: [21:03:18] <simon_w> And, using that, you can add your own classes!
541: [21:03:38] <micmania1> yeah, that's what I'm doing. So basically I just ignore all $AttributeHsTML calls and override them?
542: [21:03:49] <Pyromanik> and?
543: [21:03:54] <micmania1> HTML*
544: [21:04:28] <Pyromanik> I'm failing to see the problem here, other than that you're upset that you have to ignore $AttributesHTML
545: [21:04:39] <Pyromanik> is there something you need from it?
546: [21:04:58] <micmania1> maybe?
547: [21:05:24] * Stomach has joined #silverstripe
548: [21:05:46] <Pyromanik> you could maybe $Field.addExtraClass('classname')
549: [21:06:08] <micmania1> The problem with that is when new fields are added.
550: [21:07:00] <simon_w> What's that got to do with anything?
551: [21:07:40] <micmania1> If I hardcode that everywhere what do I do when new fields are added in the backend?
552: [21:08:05] <simon_w> It gets the extra class, just like every other field
553: [21:08:08] <micmania1> of course I can hardcode that in too but its hardly leveraging the framework.
554: [21:08:32] <simon_w> FormField_holder.ss
555: [21:08:33] * Nivery quit (Quit: Nivery)
556: [21:09:39] <micmania1> ah, I get you.
557: [21:11:06] <guzzlefry> Can't for the life of me get this TinyMCE stuff working. :P
558: [21:12:08] <simon_w> guzzlefry, well, you're trying to do things you really shouldn't be :p
559: [21:12:16] * zippy__ has joined #silverstripe
560: [21:12:22] <simon_w> Anyway, just use a TextField
561: [21:14:16] <guzzlefry> simon_w: It's going into the content. :/
562: [21:14:24] <simon_w> JavaScript?
563: [21:14:27] <simon_w> Doing it wrong
564: [21:14:36] <guzzlefry> It's some silly code that replaces a <div> with HTML5 video stuff.
565: [21:14:53] <simon_w> So why not just use a <video> tag to start with?
566: [21:14:59] <simon_w> Or short codes?
567: [21:15:04] <simon_w> Or generic JS?
568: [21:15:17] <guzzlefry> The script does auth stuff.
569: [21:15:20] <guzzlefry> Not really sure how it all works. :P
570: [21:17:01] <guzzlefry> It's a terrible video system that we're hopefully moving away from in the next few months.
571: [21:17:42] * UncleCheese has joined #silverstripe
572: [21:20:05] <guzzlefry> Do I need to flush everytime I change the HTMLEditorConfig stuff?
573: [21:23:03] <guzzlefry> Would SS itself be stripping out the tags?
574: [21:24:23] * willr has joined #silverstripe
575: [21:29:55] <Pyromanik> guzzlefry: possible but not likely.
576: [21:30:17] <Pyromanik> ContentNegotiator iirc does some tag formatting things, but in generally shouldn't really be modifying the source
577: [21:35:16] <Pyromanik> :< Director::forceWWW() is too crude
578: [21:35:22] <Pyromanik> breaks subdomains, etc.
579: [21:46:03] <Pyromanik> simon_w: how does $Pos work? It's stored on the List right, or is there some kind of iterator instance or something?
580: [21:46:50] <Pyromanik> or: I have a list of N items grouped by three (front end <% MultipleOf(3) %> used with .third + .item {clear: left})
581: [21:47:19] <Pyromanik> I wish to push the final row to the center if there are less than three items for that row
582: [21:47:50] <Pyromanik> I'm thinking I can just check if Pos is within 3 of count, and if count % 3 != 0
583: [21:48:08] <Pyromanik> but will require a list decorator or extension or something...
584: [21:48:25] <Pyromanik> do you know from the top of your head where I should be looking?
585: [21:52:37] * pippy has joined #silverstripe
586: [21:55:01] <guzzlefry> okay... http://bpaste.net/show/hgfTLEEaAsCrHpwIW9dB/ What am I doing dumb with this?
587: [21:55:04] * pippy_ quit (Ping timeout: 264 seconds)
588: [21:55:44] <Pyromanik> ah
589: [21:55:46] <Pyromanik> http://api.silverstripe.org/3.0/class-SSViewer_BasicIteratorSupport.html
590: [21:56:12] <Pyromanik> guzzlefry: HTMLText
591: [21:56:28] <Pyromanik> not important, but probably TextareaField too
592: [21:56:56] <guzzlefry> ah yeah, I wanted TextareaField. :P
593: [22:00:12] <Pyromanik> does one need to register their globals, or does manifest pick them up?
594: [22:00:19] <Pyromanik> assuming latter
595: [22:02:21] <guzzlefry> Does TextareaField automatically encode HTML entities?
596: [22:02:50] <Pyromanik> no
597: [22:02:52] <Pyromanik> I told you
598: [22:02:57] <Pyromanik> DB type HTMLText
599: [22:03:04] <Pyromanik> 09:56 < Pyromanik> guzzlefry: HTMLText
600: [22:03:06] <Pyromanik> ;)
601: [22:03:24] <guzzlefry> Well, I don't want it encoded.
602: [22:03:33] <Pyromanik> ...
603: [22:03:43] <guzzlefry> Trying to find a way around TinyMCE's not letting me use <script>.
604: [22:03:44] <Pyromanik> 09:55 < guzzlefry> okay... http://bpaste.net/show/hgfTLEEaAsCrHpwIW9dB/ What am I doing dumb with this?
605: [22:03:58] <Pyromanik> look at line 5.
606: [22:04:42] <Pyromanik> you want HTMLText, not Text.
607: [22:04:45] <guzzlefry> Pyromanik: You're welcome to come over here and hit me now. :P
608: [22:04:46] <guzzlefry> thanks
609: [22:04:50] <Pyromanik> :P
610: [22:05:19] <Pyromanik> I don't know where you are, but It's likely much further than I'm willing to go for the satisfaction of a slap.
611: [22:05:52] <guzzlefry> Florida, so probably.
612: [22:07:14] <Pyromanik> oh, sounds nice.
613: [22:07:30] <Pyromanik> Miami sounds like a great place to visit.
614: [22:08:51] <guzzlefry> I've never been actually. Closest I've gotten is Tampa. :P
615: [22:08:56] <guzzlefry> I'm northeast Florida.
616: [22:09:37] <zippy__> Morning
617: [22:09:50] <guzzlefry> morning zippy
618: [22:20:35] <guzzlefry> I need to grab $VideoScripts, run HTML decode on it, and then return to template. :/
619: [22:20:50] <guzzlefry> $this->VideoScripts in the model?
620: [22:21:34] <spronk> so
621: [22:21:38] <spronk> whos been spyed on already?
622: [22:22:36] <ss23> spronk: Given that it was already legal to be spied on, and it still is, and nothing has changed, probably everyone?
623: [22:22:52] <ss23> It makes me lol though, "wow NZ passed this bill! I'm going to move all my hosting to another 5eyes country!"
624: [22:23:49] <spronk> there's a biiiig difference in capabilities when comparing the GCSB to the SIS
625: [22:24:36] <Pyromanik> guzzlefry: yeh, should be the go.
626: [22:24:49] <spronk> SIS is all "Hey there Mr. Corner Dairy owner. Can 'ye please tell me if you have seen this man and what you overheard him say on the phone last week?!"
627: [22:25:05] <spronk> GCSB is all "HAX HAX HAX VIRUS VIRUS BACKDOOR LISTEN TO EVERYTHING SPAIII TAIIIMEE!!!"
628: [22:25:13] <Pyromanik> sif
629: [22:25:37] <Pyromanik> I like the part where people think that shit they put on the internet is private in the first place.
630: [22:26:10] <spronk> see, there are some things on the "internet" that should have a reasonable expectation of remaining private
631: [22:26:19] <spronk> like encrypted p2p conversations, for example
632: [22:27:02] <Pyromanik> but they're encrypted.
633: [22:27:09] <Pyromanik> how2listen?
634: [22:27:20] <Pyromanik> ss23: tell me how to hax the listens.
635: [22:27:26] <spronk> you've read this shit about weakened crytpography, right?
636: [22:27:33] * ss23 hax Pyromanik
637: [22:27:46] <spronk> SUBSEVEN!
638: [22:27:54] <Pyromanik> rofl
639: [22:28:01] <Pyromanik> backorifice!
640: [22:28:01] <ss23> spronk: GCSB doesn't need to spy on NZ citizens, they can get any other 5eyes to do it, then legally share info with them
641: [22:28:07] <spronk> yeah
642: [22:28:08] <spronk> sigh
643: [22:28:27] * Stomach quit (Quit: Leaving.)
644: [22:28:30] <spronk> every time i watch parliament tv a little piece of me dies
645: [22:28:34] <guzzlefry> http://bpaste.net/show/m2FE8KLFFP5RXS4ns65B/ Now...why won't getVideoScripts() work in template?
646: [22:28:39] <spronk> they're all such petulant little fucking children
647: [22:28:40] <ss23> This law changes some semantics and beaurocricy, but I'm not aware of any real world changes
648: [22:28:49] <ss23> BUT NZ OMG OMG GCSB, LETS MOVE HOSTING TO ANOTHER 5 EYES
649: [22:28:51] <ss23> AMIRITE GUISE?
650: [22:29:21] <spronk> there are some pretty complex issues going on that don't have public transparency
651: [22:29:30] <spronk> so there's no real knowledge about what exactly this bill will do
652: [22:29:42] <spronk> which is one of the big problems with it
653: [22:29:44] <spronk> but alas
654: [22:30:08] * spronk is just waiting for the day when laws are enforced automatically
655: [22:30:22] <spronk> you slandered the government in this email. $200 fine and 5 days home detention
656: [22:30:56] <guzzlefry> Like in Demolition Man?
657: [22:31:27] <Pyromanik> so long as they don't ban fluidal interchanges.
658: [22:31:38] <spronk> YES exactly like demolition man
659: [22:31:44] <spronk> also, elysium
660: [22:31:48] <spronk> recommend that if not seen.
661: [22:31:59] <spronk> more awesome weapons and explosions
662: [22:32:04] <Pyromanik> guzzlefry: it doesn't work because ...
663: [22:32:11] <Pyromanik> why don't you just change Text to HTMLText?
664: [22:32:24] <Pyromanik> you don't need a getter.
665: [22:32:33] <Pyromanik> but fyi it doesn't work because infinite loop
666: [22:33:14] <Pyromanik> $this->VideoScripts runs getVideoScripts which calls $this->VideoScripts which run getVideoScripts which calls $this->VideoScripts which... yeh.
667: [22:33:18] * violetina quit (Remote host closed the connection)
668: [22:33:27] <guzzlefry> oh so
669: [22:33:30] <Pyromanik> store the data as HTMLText.
670: [22:33:39] <Pyromanik> for the 8th time :<
671: [22:33:58] <guzzlefry> I tried that.
672: [22:34:07] <guzzlefry> But perhaps I should eat something, brain is giving up. :P
673: [22:34:13] <guzzlefry> I probably did something really stupid. >_>
674: [22:34:15] <Pyromanik> You can't have tried it properly.
675: [22:34:30] <Pyromanik> that's specifically what HTMLText and HTMLVarchar are for.
676: [22:38:32] <Pyromanik> cf. SiteTree, db Content => HTMLText
677: [22:45:04] * Jayden90 has joined #silverstripe
678: [22:47:36] <Pyromanik> I'm confused. Halp.
679: [22:47:38] <Pyromanik> http://api.silverstripe.org/3.0/source-class-SSViewer_BasicIteratorSupport.html#289
680: [22:47:42] <Pyromanik> This works.
681: [22:48:15] <Pyromanik> I have a very similar function that gives me Missing Param error.
682: [22:48:59] <Pyromanik> http://sspaste.com/paste/show/521542d2edb81
683: [22:49:32] <Pyromanik> called with $OffsetEnd(3) gives [Warning] Missing argument 1 for OffsetEnd::OffsetEnd()
684: [22:49:55] * catcher quit (Quit: Leaving)
685: [22:50:43] <Pyromanik> (3.0)
686: [22:52:58] * mdowton has joined #silverstripe
687: [22:53:05] <Pyromanik> ss23: :<
688: [22:53:09] <ss23> :<
689: [22:53:54] <guzzlefry> :<
690: [22:53:56] * howardgrigg has joined #silverstripe
691: [22:54:02] <Pyromanik> :s
692: [22:54:10] <zippy__> Are you actually passing 3, or are you using a object var like $OffsetEnd($Foo.Bar) or $OffsetEnd(Foo.Bar) ?
693: [22:54:19] <Pyromanik> actually passing 3
694: [22:54:27] <Pyromanik> I know scoping is bung in 3.0
695: [22:54:34] <zippy__> flushed?
696: [22:54:38] <Pyromanik> yeh
697: [22:54:41] <Pyromanik> just about to try typecasgin
698: [22:54:42] <zippy__> restarted 3 times?
699: [22:54:44] <Pyromanik> casting*
700: [22:54:56] <Pyromanik> zippy__: I even turned it off for 10 seconds
701: [22:55:46] <Pyromanik> dafuq
702: [22:55:54] <Pyromanik> Fatal error: Default value for parameters with a class type hint can only be NULL
703: [22:56:00] <Pyromanik> with public function OffsetEnd(integer $mod, integer $startIndex=1) {
704: [22:56:20] <Pyromanik> seems odd
705: [22:57:21] <zippy__> ah
706: [22:57:29] <Pyromanik> ?
707: [22:57:44] <zippy__> it's not something restarted because your class name and function name are the same (php 4 constructor) maybe call the function something else
708: [22:58:00] <Pyromanik> oh shit, yeah probably
709: [22:58:00] <Pyromanik> ffs
710: [22:58:04] <zippy__> *restarted = retarded
711: [22:58:34] * howardgrigg quit (Ping timeout: 256 seconds)
712: [22:59:04] <Pyromanik> gobble gobble gobble. What a fuck'n turkey.
713: [22:59:12] <zippy__> fixed?
714: [22:59:12] <Pyromanik> I take that back.
715: [22:59:18] <Pyromanik> [Warning] Missing argument 1 for Iterator_OffsetEnd::OffsetEnd()
716: [22:59:43] <Pyromanik> now I take that back.
717: [22:59:55] <Pyromanik> I'd removed the (3) from the template for testing.
718: [23:00:03] <zippy__> so all good?
719: [23:00:03] <Pyromanik> Turkey all round!
720: [23:00:08] <zippy__> :D
721: [23:00:11] <Pyromanik> thanks zippy__, my champion
722: [23:01:43] <Pyromanik> yusss
723: [23:02:39] <Pyromanik> boom, pefect working!
724: [23:02:53] <zippy__> sweet
725: [23:10:56] * Stomach has joined #silverstripe
726: [23:12:53] * DigNZ quit (Quit: DigNZ)
727: [23:22:54] * DigNZ has joined #silverstripe
728: [23:22:55] * DigNZ quit (Remote host closed the connection)
729: [23:23:05] * atmos has joined #silverstripe
730: [23:23:09] * DigNZ has joined #silverstripe
731: [23:23:28] * supernovah has joined #silverstripe
732: [23:23:43] <atmos> bah, is there anyway to get userform emails to format html?
733: [23:24:47] * DigNZ quit (Client Quit)
734: [23:27:04] <Pyromanik> atmos: eh?
735: [23:27:23] * chillu quit (Quit: chillu)
736: [23:28:53] <atmos> I have HTML field on a form, and the email sent out on submit does not format the HTML within that field.
737: [23:30:10] <atmos> Pyromanik: the field http://www.sspaste.com/paste/show/52154c73ab622 and the template http://www.sspaste.com/paste/show/52154c7f411d3
738: [23:31:54] <atmos> Pyromanik: and all the HTML tags are displayed as raw text like http://www.sspaste.com/paste/show/52154cd0dbcdb
739: [23:37:43] <simon_w> That's a good thing
740: [23:37:50] * DigNZ has joined #silverstripe
741: [23:39:07] <atmos> simon_w: that it looks like crap?
742: [23:40:53] <simon_w> That it's not rendering HTML
743: [23:43:30] <atmos> simon_w: but that's what I want to happen, when would displaying raw HTML in an email be a good thing?
744: [23:43:35] <atmos> not want*
745: [23:43:43] <atmos> feck
746: [23:43:48] <atmos> not what* :P
747: [23:43:58] <simon_w> When it comes from something that could be user input
748: [23:46:05] <atmos> simon_w: fair point, but the field does not allow user input, it simply displays that HTML
749: [23:52:25] <supernovah> Ugh I have a single x showing up before any html output on one action on this site
750: [23:52:31] <supernovah> how on earth do I find out where it comes from
751: [23:55:06] <guzzlefry> Move up the code until you find it?
752: [23:55:13] <simon_w> headers_sent()
753: [23:55:40] <supernovah> I mean it just appeared after an upload, I ctrl-z'd and flushed and it didn't go away
754: [23:55:57] <supernovah> It's an ascii X before <! DOCTYPE
755: [23:56:18] <simon_w> Yes, there's a X at the start/end of a file that shouldn't be there
756: [23:58:33] <Pyromanik> BOOM
757: [23:58:57] <guzzlefry> POW
758: [23:59:00] <guzzlefry> What happened? 0.o

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