#silverstripe IRC Log

IRC log for 22 August 2013

All timestamps are in UTC.

1: [00:01:06] <supernovah> I just ctrl-z'd back through like 1000 changes and found the x at the top like you suggested but why the heck did it just show up now
2: [00:01:32] <spronk> http://www.stuff.co.nz/life-style/9073472/Dr-Phils-bizarre-rape-tweet
3: [00:01:36] <spronk> how is that a fucking rape tweet!?
4: [00:03:35] <ss23> wtf
5: [00:03:38] <ss23> idk
6: [00:03:52] <ss23> The idea that somehow being drunk means that sex is suddenly off limits seems messed up
7: [00:04:07] <ss23> idek
8: [00:04:15] <ss23> rage @ the rape-culture-culture these days
9: [00:04:37] <Pyromanik> guzzlefry: solved my issue. Successfully implemented an iterator sexup
10: [00:04:47] <guzzlefry> oh, nice
11: [00:05:30] <Pyromanik> rofl @ picture.
12: [00:05:46] <Pyromanik> No always means no, drunk or not.
13: [00:06:12] <Pyromanik> soon all teenagers will have to carry around consent forms in their back pocket next to the condoms.
14: [00:06:40] <Pyromanik> get it stamped and signed beforehand, use phone for photographic evidence, etc.
15: [00:06:43] <Pyromanik> :<
16: [00:07:18] <Pyromanik> I mean if the woman is clearly unable to make rational decisions anymore... then that's a no go IMO.
17: [00:07:34] <Pyromanik> But if you've been drinking and still with it...
18: [00:07:41] <Pyromanik> why not? Sex isn't bad. Rape is.
19: [00:07:56] <atmos> well, what if you're both drunk?
20: [00:08:03] <atmos> why just the girl?
21: [00:08:27] <ss23> Because everyone knows that it's only girls who get raped, atmos :D
22: [00:08:29] <atmos> "if you're both drunk, is it OK to have sex with each other?" YES.
23: [00:08:37] <Pyromanik> atmos: haha, I was watching a youtube drink about chicks spiking fellas drinks
24: [00:08:41] <spronk> sigh
25: [00:08:45] <Pyromanik> no one gave a shit.
26: [00:08:49] <spronk> want to punch people like that journalist in the face very hard.
27: [00:08:54] <Pyromanik> then I thought about it a bit
28: [00:09:05] <ss23> spronk: yes, as well as the idiots on twitter
29: [00:09:14] <Pyromanik> if a guy spikes a chicks drink, it's pretty much assumed to be for rape.
30: [00:09:29] <Pyromanik> if a chick spikes a guys drink, pretty hard to have sex while he's passed out.
31: [00:09:38] <Pyromanik> so it's for robbery usually.
32: [00:09:50] <Pyromanik> in reality they're two VERY different crimes.
33: [00:10:58] <ss23> I'm sure a combination of viagra and roofies would make it possible
34: [00:10:59] <ss23> Well not sure
35: [00:11:02] <ss23> but I imagine it would be possible
36: [00:13:03] <spronk> i found the best part of the article was where she claims it's not up to the public to decide what rape is
37: [00:13:13] * spronk laughs
38: [00:13:22] <spronk> hmm
39: [00:13:26] <spronk> is viagra like
40: [00:13:30] <spronk> uncontrollable erection?
41: [00:13:39] <spronk> or... you still have to be turned on to get hard? :P
42: [00:13:45] <atmos> spronk: depends
43: [00:13:47] <spronk> because if the former, seems like easy rape
44: [00:14:09] <spronk> roofies, viagra, climb on and go to down
45: [00:14:37] <atmos> spronk: I think its performance as a drug is greatly diminished by lots of other factors, alchohol and drugs included
46: [00:14:50] <spronk> hmm
47: [00:14:59] * swordsmanz has joined #silverstripe
48: [00:16:10] <supernovah> How do you set and edit an attribute of a formField element (as in its html attributes)
49: [00:16:18] * zippy__ quit (Ping timeout: 268 seconds)
50: [00:17:13] <kerosene> dr. phil, therapist at large
51: [00:17:35] <atmos> *slowclap*
52: [00:20:38] <spronk> :D
53: [00:21:30] <supernovah> Is it possible?
54: [00:21:36] * Stomach quit (Quit: Leaving.)
55: [00:21:43] <supernovah> ViewableData and formField don't seem to have any related function
56: [00:23:50] <spronk> supernovah: pretty sure you can set it...
57: [00:24:12] <supernovah> I want to set for example, the onchange attribute
58: [00:24:21] <supernovah> without having to create external JS and the like
59: [00:24:26] <spronk> supernovah: setAttribute
60: [00:24:27] <spronk> ()
61: [00:24:43] <supernovah> this is 2.4, that doesn't show up in the api
62: [00:24:43] <spronk> also, be careful with doing that sorta thing
63: [00:24:48] <supernovah> why
64: [00:25:01] <supernovah> form validation or something?
65: [00:26:42] <spronk> nah
66: [00:26:44] <spronk> accessibility
67: [00:28:40] * supernovah_ has joined #silverstripe
68: [00:30:29] * supernovah quit (Ping timeout: 268 seconds)
69: [00:30:37] * supernovah_ is now known as supernovah
70: [00:33:59] * DesignCity has joined #silverstripe
71: [00:37:03] * willr_ has joined #silverstripe
72: [00:37:20] * willr quit (Ping timeout: 256 seconds)
73: [00:37:20] * willr_ is now known as willr
74: [00:39:02] * wmk quit (Ping timeout: 256 seconds)
75: [00:39:25] * wmk has joined #silverstripe
76: [00:39:38] <atmos> oh god http://www.stuff.co.nz/business/farming/agribusiness/9066701/Deformed-calf-pretty-unusual
77: [00:40:05] <simon_w> Bah, it's raining
78: [00:41:54] * Stomach has joined #silverstripe
79: [00:42:10] <ss23> looks fine here!
80: [00:44:42] <supernovah> 2.4 is killing me lol
81: [00:44:47] <supernovah> Forms are so limited zzz
82: [00:54:28] * howardgrigg has joined #silverstripe
83: [00:54:44] * LoveDuckie quit (Ping timeout: 256 seconds)
84: [00:59:02] * howardgrigg quit (Ping timeout: 264 seconds)
85: [01:04:43] * DesignCity quit (Quit: DesignCity)
86: [01:08:51] * marcel_ quit (Ping timeout: 250 seconds)
87: [01:08:52] * mdowton quit (Ping timeout: 264 seconds)
88: [01:09:55] * mdowton has joined #silverstripe
89: [01:15:04] * zippy__ has joined #silverstripe
90: [01:15:11] * chrisrio has joined #silverstripe
91: [01:15:13] * spronk has left #silverstripe
92: [01:15:19] * zippy__ quit (Client Quit)
93: [01:15:48] * zippy__ has joined #silverstripe
94: [01:16:10] * spronk has joined #silverstripe
95: [01:16:33] <chrisrio> hey gents if I extend model admin and define a custom model_importer..
96: [01:16:48] <chrisrio> where do I put my custom importer code? ;P (does it need to go anywhere special other than /code)?
97: [01:17:14] <chrisrio> core ModelAdmin isnt finding my customer importer.
98: [01:18:39] <chrisrio> Heh - don't mind me. You've got to flush before it'll find it apparently. :P
99: [01:21:50] * Stomach quit (Quit: Leaving.)
100: [01:23:05] <Pyromanik> wtfballs - $HTMLText.LimitWordCount(18) dumps image alts and some random link info I can't even see where it's come from into the output
101: [01:30:51] <zippy__> chrisrio: you have to flush before it'll find it
102: [01:31:18] <zippy__> Pyromanik: a retarded browser extension messing with the output?
103: [01:31:27] <irogue> wh0oa, dat some srs rain outside
104: [01:31:53] <zippy__> been noticing more and more spam the past few days...
105: [01:39:30] * meinemuddi has joined #silverstripe
106: [01:43:11] * UncleCheese quit (Quit: UncleCheese)
107: [01:43:21] <chrisrio> cheer zippy__
108: [01:43:27] <zippy__> .;-)
109: [01:45:25] * Stomach has joined #silverstripe
110: [02:00:04] <Pyromanik> zippy__: nah, it's the limitwordcount, there's nothing special in the templates.
111: [02:00:09] <Pyromanik> it's not stripping tags first
112: [02:00:16] <Pyromanik> basically
113: [02:00:19] <simon_w> Is that one of those non-XML safe ones?
114: [02:00:21] <Pyromanik> or doing some kind of werid replacement.
115: [02:00:28] <Pyromanik> simon_w: unsure.
116: [02:00:32] <Pyromanik> good thing to check on though
117: [02:01:11] * Stomach quit (Quit: Leaving.)
118: [02:04:52] <Pyromanik> simon_w: yeh, not XML Safe.
119: [02:05:08] * ss23 beeps
120: [02:05:12] <ss23> simon_w: Had lunch I presume?
121: [02:05:21] <simon_w> ss23, yes
122: [02:05:24] <Pyromanik> you and your crazy late lunches
123: [02:06:10] <atmos> I can't even function if I leave lunch till after 1pm
124: [02:07:10] <Pyromanik> sadface, LimitWordCountXML didn't fix :<
125: [02:07:24] <Pyromanik> atmos: ha, I can't even function after lunch.
126: [02:07:43] <simon_w> I get to build a quad-state permissions system!
127: [02:07:44] <simon_w> Woo!
128: [02:08:14] <atmos> 3-4pm is my best time, outside of that I should be monitored closely for code bugs
129: [02:08:34] <simon_w> My best times: 8-10, 20-22
130: [02:10:50] <Pyromanik> simon_w: quad-state?
131: [02:11:02] <ss23> Pyromanik: Late lunch best :D
132: [02:11:09] <ss23> I want lunch now tbh
133: [02:11:13] <ss23> Wonder what to get...
134: [02:11:26] <simon_w> Pyromanik, unknown, yes, no, pending
135: [02:11:27] <Pyromanik> Subway!
136: [02:11:32] <ss23> I had subway!
137: [02:11:37] <ss23> I don't really want more subway
138: [02:11:43] <Pyromanik> Too bad!
139: [02:11:43] <simon_w> I had a tuna & sweetcorn sammich!
140: [02:12:00] <simon_w> And now I'm finishing it off with a Mac's Green Apple
141: [02:12:04] <simon_w> Delicious :)
142: [02:12:07] <Pyromanik> :>
143: [02:12:12] <Pyromanik> I had pie
144: [02:12:15] <Pyromanik> like a fatso
145: [02:12:25] <Pyromanik> and sandwich and V granite
146: [02:12:29] <Pyromanik> V Granite so good.
147: [02:12:35] * simon_w is supposed to be bringing packed lunches
148: [02:13:06] <Pyromanik> servicingIconLarge \"back2\"/our-services/ Actual content starts here
149: [02:13:10] <Pyromanik> What do?
150: [02:13:22] <Pyromanik> y u do dis 2 me limitwordcount ?
151: [02:13:24] <simon_w> Better strip_tags()?
152: [02:13:28] <ss23> ew, simon_w!
153: [02:13:29] <ss23> GROSS
154: [02:13:37] <ss23> I could buy like 6 cheeseburgers...
155: [02:13:37] <simon_w> Try .NoHTML.LimitWordCount?
156: [02:13:37] <ss23> hmm
157: [02:13:38] <ss23> or subway
158: [02:13:46] <ss23> think I'll go with 4 cheeseburgers
159: [02:13:49] <Pyromanik> simon_w: sounds pretty legit
160: [02:13:53] <ss23> no, 6!
161: [02:14:11] <Pyromanik> I'm never sure how much chaining one can do because some return plain strings while other methods return an actual object like they should
162: [02:14:27] <simon_w> Pyromanik, strings get turned into Text objects
163: [02:14:50] <Pyromanik> oh what/
164: [02:14:57] <Pyromanik> I just don't even... how/
165: [02:15:04] <Pyromanik> ffff work you silly shift key
166: [02:15:05] <Pyromanik> ?
167: [02:15:24] <irogue> Pyromanik: just moved chip repo to an Org, could you quickly make sure you still have pull access to it?
168: [02:15:40] <Pyromanik> irogue: not right now soz :<
169: [02:16:01] <Pyromanik> hmm, alright
170: [02:17:30] <Pyromanik> irogue: now I have account contexts
171: [02:17:51] * Stomach has joined #silverstripe
172: [02:18:01] <Pyromanik> irogue: I can still access, I assume that means I can still push or whatevers (will do PR anyways)
173: [02:19:31] <Pyromanik> thanks simon_w, that worked a treat.
174: [02:19:45] <Pyromanik> is that an SSViewer thing that automagics strings to StringFields?
175: [02:19:58] <simon_w> yeah
176: [02:20:01] <Pyromanik> or uhh, text I guess it would be
177: [02:20:04] <simon_w> Well, ViewableData
178: [02:20:10] <Pyromanik> hmm
179: [02:20:11] <simon_w> but only SSViewer uses it
180: [02:20:17] <Pyromanik> it's a kind of magic.
181: [02:20:24] <Pyromanik> I might have to look and see how that happens
182: [02:20:26] <Pyromanik> one deay
183: [02:20:27] <Pyromanik> day*
184: [02:20:53] <Pyromanik> ah who am I kidding, I'm going to do it now
185: [02:22:47] <Pyromanik> what am I looking at/for simon_w ? how does this magic trickery happen?
186: [02:23:07] <simon_w> obj()
187: [02:23:13] <simon_w> ?showtemplate=1
188: [02:23:15] <ss23> oh yeah
189: [02:23:17] <ss23> 5 hcheseburgers
190: [02:23:18] <ss23> the lunch of men.
191: [02:23:31] <Pyromanik> 10 cheeseburgers in 20 mins
192: [02:23:32] <Pyromanik> go go go
193: [02:23:55] <Pyromanik> or 15 maybe, I forget the original time.
194: [02:24:31] <ss23> lol
195: [02:24:32] * UncleCheese has joined #silverstripe
196: [02:24:33] <ss23> I couldn't do it
197: [02:24:38] <ss23> I barely can eat 5 quickly
198: [02:24:40] <Pyromanik> yeh, only one did
199: [02:24:48] <Pyromanik> and it took them more like 30 mins
200: [02:24:59] <Pyromanik> but one thing's for sure
201: [02:25:23] <Pyromanik> the bird who claimed she could do it certainly didn't make it past 6.
202: [02:25:38] <Pyromanik> the reason for the challenge originating
203: [02:36:36] <irogue> Pyromanik: yeah, you have pull-only, so you'll just do PR when you're done :)
204: [02:45:16] <ss23> simon_w: MrAatch == James from your place
205: [02:55:00] * howardgrigg has joined #silverstripe
206: [02:59:52] * howardgrigg quit (Ping timeout: 264 seconds)
207: [03:12:26] * travis-ci has joined #silverstripe
208: [03:12:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#846 (loadfragment - 33b7dea : Mateusz Uzdowski): The build passed.
209: [03:12:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/33b7dea57e75
210: [03:12:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10479128
211: [03:12:27] * travis-ci has left #silverstripe
212: [03:21:48] <atmos> oh good, showInReport(return false;} doesn't work
213: [03:27:13] <Pyromanik> atmos: lies, it works perfectly.
214: [03:27:24] <Pyromanik> It's just probably not being called :F
215: [03:28:09] <ss23> Guys, why is my $BaseHref like www.(the real site here)
216: [03:28:14] <ss23> The www is messing it up :<
217: [03:28:33] * cloph_away has joined #silverstripe
218: [03:28:45] * cloph quit (Ping timeout: 245 seconds)
219: [03:35:44] <Pyromanik> ss23: Director::forceWWW() ?
220: [03:35:53] <Pyromanik> (check _config.php)
221: [03:36:22] <ss23> naw, but *shrug*
222: [03:36:40] <ss23> Think it's to do with the _ss_enviornment
223: [03:36:47] <ss23> complex site setup anywa,y I'll make sminnee fix it :D
224: [03:37:04] <ss23> ss23, getting into your puppets, bringing down your servers, and getting other people to fix~ :D
225: [03:38:33] * batbadger has joined #silverstripe
226: [03:42:58] <batbadger> i've been trying to get a form working, following this http://doc.silverstripe.com/framework/en/topics/forms i'm not a total SS noob, anyway i'm not enntirely sure how to debug what is wrong, it just 'doesn't seem to do anything' when i submit the form, the action defined with new FieldList(FormAction::create("submitenquiry")->setTitle("Send enquiry")) never seems to call the form instances public function submitenquiry(array $data, Form $form)
227: [03:43:08] <batbadger> i know this is a bit ambiguous but i'm at a loss
228: [03:43:53] <simon_w> batbadger, can you pastie your code?
229: [03:45:10] <batbadger> also, the submit button is attempting to navigate to route/MyContactForm http://bpaste.net/show/F9zVZS3ywxlmPximyMJK/
230: [03:45:26] <simon_w> That's expected
231: [03:45:43] <batbadger> i think i'm missing something, i've reread the tutorial a bunch of times
232: [03:45:45] * aznain has joined #silverstripe
233: [03:46:25] <simon_w> return new ContactForm($this, 'MyContactForm'); should be return new ContactForm($this, 'ShowContactForm');
234: [03:46:44] <simon_w> or just return new ContactForm($this, __FUNCTION__);
235: [03:46:46] <batbadger> so name is basically action
236: [03:46:56] <simon_w> Yes
237: [03:47:50] <batbadger> next thing is i don't understand the relationship between FormAction and the validation method
238: [03:48:21] <batbadger> as it stand it isn't being called
239: [03:48:46] <simon_w> There isn't one. Validation happens before anything to do with FormActions
240: [03:50:12] <batbadger> so what i don't understand is when my submit button is clicked, what happens to generate the appropriate values for the template error elements
241: [03:50:32] * atmos quit (Quit: Page closed)
242: [03:52:06] <aznain> Hi! Can I use blog module with SS 3.0.5 ?
243: [03:52:09] <simon_w> The form loads the data, calls the RequiredFields validator, which stores the error messages against the field names in the session and redirects back. On re-displaying, these error messages are loaded back from the session and are passed to the FormField by the setError() method
244: [03:52:23] <simon_w> aznain, yes, just make sure you get the 3.0 version rather than the 3.1 version
245: [03:53:59] <batbadger> so it says in the docsm http://api.silverstripe.org/3.0/class-FormAction.html that $action has a defined controller member, this differs from the member we are defining when we set $name above to __FUNCTION__ ?
246: [03:54:06] <batbadger> that's the bit i'm confused about i guess
247: [03:54:11] <aznain> @simon_w: Thanks. Let me try
248: [03:55:05] <simon_w> batbadger, the name of the form is the name of a method that returns an instance of the form (so that validation and processing can happen). The name of the FormAction is the action that the Form calls if it passes validation and that button was clicked
249: [03:55:21] <batbadger> ok cool
250: [03:57:28] <chrisrio> is there a CsvBulkLoader callback I could use to publish my object?
251: [03:57:47] <chrisrio> it's writing to the DB like a boss, but I need to change stage as well..
252: [03:58:05] <simon_w> chrisrio, subclass and override the process method
253: [03:58:09] <chrisrio> kk
254: [03:58:11] <chrisrio> cheers simon_w
255: [03:58:19] * trent001 has joined #silverstripe
256: [04:00:09] <Pyromanik> batbadger: for a start you don't need to set the title in a separate call, FormAction::create('callbackName', 'Title') works just as well.
257: [04:00:19] <Pyromanik> not that it's very important
258: [04:00:29] <trent001> Hey all have been doing some googling and I see there will be a "Show children as list" option in 3.1 to stop the site tree view for certain thing eg. blog etc. I was wondering if anyone had any luck implementing this in 3.0 I could really use in in a project I am woking on at the mo. Cheers
259: [04:00:36] <Pyromanik> make sure that the Form is passed the correct controller
260: [04:01:53] <Pyromanik> Forms submit to themselves, validate, and if everything is good it calls the function specified by the action
261: [04:02:06] <Pyromanik> otherwise they set errors in the session and redirect back.
262: [04:02:08] <batbadger> cheers Pyromanik, thanks a lot
263: [04:02:34] <Pyromanik> __FUNCTION__ is a shortcut in PHP for the name of the currently executing function.
264: [04:02:43] <batbadger> yeah i understand
265: [04:02:51] <Pyromanik> cool
266: [04:03:54] <batbadger> so by default i assume it's validating against requiring all fields, but i'm still not getting a message coming up in my form (head of template like so: http://bpaste.net/show/26SnJYRLbFf7eoIPsumt/) saying anything about fields i haven't filled in
267: [04:04:39] <Pyromanik> so basically you pass Form constructor a controller so it can get $Link, and the string of the function name that returns the form so it can set the action on the $Link. This is where the <form action="ControllerLink/FormMethod"> comes from in your HTML.
268: [04:05:34] <Pyromanik> Fields validate their own input, but you can (optionally) pass a form validator to do extra things, eg RequiredFields ensures that the field names listed have values.
269: [04:06:26] * zippy__ quit (Ping timeout: 256 seconds)
270: [04:06:29] <simon_w> trent001, I'm fairly sure that was in 3.0 before the tree was
271: [04:06:42] <batbadger> okay that makes sense
272: [04:07:34] <Pyromanik> batbadger: the Form overall message section is seldom used. Fields are responsible for displaying their own errors... it's likely if you're not seeing them that you've forgotten to have this in your custom template.
273: [04:08:42] <batbadger> yeah i think i was getting confused as '$name' is a bit of a blasé kind of variable, where as now i've made it in my own code $controllerMethodName it's a bit more obvious what is going on
274: [04:09:04] <batbadger> ok cool, i've just found a page in the api docs i overlooked so i'll read through that
275: [04:09:17] <Pyromanik> batbadger: https://github.com/silverstripe/silverstripe-framework/blob/3.1/templates/forms/FormField_holder.ss
276: [04:09:21] <Pyromanik> is the default
277: [04:09:45] <Pyromanik> for a field
278: [04:09:47] <Pyromanik> that is
279: [04:09:51] <batbadger> ahh cool
280: [04:10:06] <Pyromanik> you see there <% if Message %>
281: [04:10:20] <Pyromanik> which is where validation comes into it
282: [04:12:16] <trent001> Strange I couldn't see anything in the docs about that feature for 3.0. Found link for 3.1 here :) http://doc.silverstripe.org/framework/en/3.1/changelogs/beta/3.1.0-beta3
283: [04:12:48] <batbadger> ok so lets say i have a Firstname field in my field list
284: [04:12:58] <Pyromanik> ok
285: [04:13:14] <Pyromanik> trent001: docs are more of a rough guideline...
286: [04:13:17] <batbadger> right now i'm getting $Fields.dataFieldByName(Firstname) to get the actual input element
287: [04:13:25] <Pyromanik> right
288: [04:13:27] <batbadger> but i'm not sure how i would get any messages associated with it
289: [04:13:32] <batbadger> i.e. fill it out
290: [04:13:33] <trent001> Nice :)
291: [04:13:47] <Pyromanik> <% with Fields.dataFieldByName(Firstname) %>
292: [04:14:00] <Pyromanik> then use the template I linked earlier
293: [04:14:05] <batbadger> ahh
294: [04:14:28] <Pyromanik> or
295: [04:14:30] <Pyromanik> for default
296: [04:14:42] <Pyromanik> $Fields.dataFieldByName(Firstname).FieldHolder
297: [04:14:46] <Pyromanik> will probably do it
298: [04:15:09] <Pyromanik> but I assume you're trying to customise for the sake of some kind of grid system.
299: [04:15:39] <batbadger> yeah i have a massive bit of html css here that the designer made
300: [04:15:43] <Pyromanik> at which point I feel obliged to notify you about $form->addExtraClass('grid_3_4');
301: [04:15:44] <batbadger> and am trying to just slot in appropriate data
302: [04:15:51] <batbadger> yeah i saw that before
303: [04:16:03] <Pyromanik> err, sorry $formfield
304: [04:17:00] <chrisrio> extention of CsvBulkLoader .. $columnMap... I want to do something like this.... 'CommonName, BotanicalName' => '->setProductName'
305: [04:17:13] <chrisrio> crossing the streams yes/no
306: [04:18:08] <chrisrio> hrm.. nevermind I can probably knock that out another way.
307: [04:18:47] <Pyromanik> chrisrio: +2 for ghostbusters reference.
308: [04:19:22] <chrisrio> Pyromanik: Egon will rage if I just map CommonName and BotanicalName to the same function, check to see if its ALREADY been set, and if not set it.
309: [04:19:25] <chrisrio> thats just uggers.
310: [04:19:37] <chrisrio> and not as in boots.
311: [04:19:44] <chrisrio> although theyre ugly too.
312: [04:23:07] <Pyromanik> I think we could seriously clean up the gene pool if ugg boots were suddenly found to cause sterility.
313: [04:24:59] <chrisrio> Pyromanik: we're going to need a name for the LLC.
314: [04:25:35] * trent001 quit (Remote host closed the connection)
315: [04:26:09] <Pyromanik> ungg
316: [04:26:31] <chrisrio> Solid.
317: [04:27:10] <ss23> Solid. Solid as a rock.
318: [04:27:24] <simon_w> What sort of rock?
319: [04:27:25] <Pyromanik> hope your rock isn't made of talc.
320: [04:27:33] <Pyromanik> or pumice.
321: [04:28:13] <chrisrio> haha
322: [04:28:25] <chrisrio> good times.
323: [04:29:26] <batbadger> cheers Pyromanik
324: [04:29:33] <Pyromanik> sort it out batbadger ?
325: [04:30:04] <Pyromanik> oh punctuation, you so important.
326: [04:30:09] <Pyromanik> cf:
327: [04:30:13] <Pyromanik> sort it out batbadger !
328: [04:30:29] <batbadger> haha
329: [04:30:33] <Pyromanik> the difference between :D and >:@
330: [04:30:57] <batbadger> yeah man, the key bits were FieldList and how the name variable was working
331: [04:31:06] <batbadger> plus reading the right version of the manual
332: [04:31:13] <batbadger> hurrdurr
333: [04:31:44] <Pyromanik> wew, 56 CNAMEs and counting.
334: [04:32:00] <ss23> Almost 57 :OI
335: [04:32:05] <Pyromanik> almost.
336: [04:39:53] <Pyromanik> boom, 57
337: [04:45:24] * atmos has joined #silverstripe
338: [04:46:09] <atmos> am I not calling showInReports() correctly here? http://sspaste.com/paste/show/5215967d59bec
339: [04:46:41] <atmos> it doesn't seem to prevent the value form appearing
340: [04:48:26] <Pyromanik> atmos: no idea.
341: [04:48:31] <Pyromanik> haven't really ventured into reports
342: [04:49:57] <atmos> Pyromanik: :(
343: [04:55:38] * howardgrigg has joined #silverstripe
344: [05:00:35] * howardgrigg quit (Ping timeout: 268 seconds)
345: [05:01:06] * nickmolhoek quit (Quit: nickmolhoek)
346: [05:01:16] <atmos> Pyromanik: BOOM
347: [05:01:51] <atmos> looks like the form was overriding that function
348: [05:02:38] <batbadger> hey guys, my form when failing validation doesn't seem to repopulate the fields with their previous data
349: [05:03:05] <Pyromanik> batbadger: it's not saving them in session, or isn't fetching the session info
350: [05:03:17] <Pyromanik> or the names are wrong, or something
351: [05:03:23] <batbadger> okay
352: [05:03:48] <Pyromanik> from the top of my head (so probably not correct) it saves them FormName.fields.message
353: [05:03:51] <Pyromanik> or something like taht
354: [05:03:56] <Pyromanik> can't remember
355: [05:04:08] <Pyromanik> but it depends on names heavily
356: [05:04:19] <Pyromanik> hometime
357: [05:04:27] * Pyromanik quit (Quit: leaving)
358: [05:11:28] * DigNZ quit (Quit: DigNZ)
359: [05:12:28] <ss23> Goddam it, people keep editing their fucking files on production and it fucks up when I want to make changes :/
360: [05:13:27] <simon_w> And then you have to Skype mandrew to use his FTP access to fix it all for you?
361: [05:13:43] <ss23> haha
362: [05:13:47] <ss23> simon_w: I have access to puppet now
363: [05:13:51] <simon_w> I HAD IT WORSE!
364: [05:13:52] * ss23 adds himself as root to every user
365: [05:13:52] <ss23> :D
366: [05:17:44] * DigNZ has joined #silverstripe
367: [05:17:49] * DigNZ quit (Client Quit)
368: [05:18:07] <simon_w> Hmm, do I go for another 12 hour day today...
369: [05:25:55] * Jayden90 quit (Quit: Jayden90)
370: [05:31:27] * chrisrio quit (Ping timeout: 250 seconds)
371: [05:41:54] * swordsmanz quit (Quit: ooh ponies kinkeyyy)
372: [05:51:02] <simon_w> Home time!
373: [05:59:01] * UncleCheese quit (Quit: UncleCheese)
374: [06:18:20] * willr quit (Quit: willr)
375: [06:28:47] * Stomach quit (Quit: Leaving.)
376: [06:37:01] * simon_w|air quit (Quit: Leaving)
377: [06:56:03] * howardgrigg has joined #silverstripe
378: [06:59:39] * simon_w|air has joined #silverstripe
379: [07:00:50] * howardgrigg quit (Ping timeout: 264 seconds)
380: [07:20:57] * swordsmanz has joined #silverstripe
381: [07:21:40] * mdowton quit (Quit: The computer fell asleep)
382: [07:28:15] <wmk> githubs 500 error is funny; the graphics react on mouse movements...
383: [07:28:30] <wmk> though it's not funny i cannot clone right now...
384: [07:28:49] * Pyromanik__ has joined #silverstripe
385: [07:32:38] * ARNHOE has joined #silverstripe
386: [07:40:34] <ss23> lol wmk
387: [07:40:43] <ss23> wmk: Yeah, it's pretty cool, all done with CSS too iirc?
388: [07:40:45] <ss23> JS maybe
389: [07:40:54] <ss23> 404 is the same :D
390: [07:42:27] <simon_w|air> Isn't git supposed to mean that keep using it without access to the repository?
391: [07:43:54] <simon_w|air> What's with the tech industry and SPFs?
392: [07:44:25] * chillu has joined #silverstripe
393: [07:44:30] * nickspiel quit (Ping timeout: 264 seconds)
394: [07:44:42] <ss23> simon_w: What is SPF in this context?
395: [07:44:51] <simon_w|air> Single Point of Failure
396: [07:45:51] <simon_w|air> There seems to be a lot of them and most of them have rather poor track records with not failing
397: [07:46:29] <ss23> simon_w: You seem to hate the tech industry more than most people in it
398: [07:48:17] <simon_w|air> Doesn't help that it's supposed to be full of smart people, then turns around and constantly does stupid thing after stupid thing
399: [07:49:27] <ss23> I don't think I know many smart people in the tech industry, and I don't think other industries I'm aware of are significantly better
400: [07:50:11] * howardgrigg has joined #silverstripe
401: [07:53:37] * Marvanni has joined #silverstripe
402: [07:57:47] * Marvanni quit (Ping timeout: 246 seconds)
403: [08:00:22] <Pyromanik__> Sun Protection Factor!
404: [08:01:28] <Pyromanik__> In any industry there's that balance between doing it right and doing it quickly.
405: [08:01:34] <ss23> lol
406: [08:02:49] <Pyromanik__> Most people look at up front costs. Which is why quick is often the option chosen.
407: [08:03:58] <Pyromanik__> Especially if you're supporting clients who claim that their business is going to fall over because they missed out on an hours worth of website uptime, for which on average they get 0.000001 enquiry through in that time.
408: [08:07:33] * kinglozzer has joined #silverstripe
409: [08:18:05] * Marvanni has joined #silverstripe
410: [08:25:46] * zippy__ has joined #silverstripe
411: [08:28:56] * travis-ci has joined #silverstripe
412: [08:28:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#851 (3.1 - aa9403b : Ingo Schommer): The build passed.
413: [08:28:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4af619e5a024...aa9403b5b093
414: [08:28:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10485085
415: [08:28:56] * travis-ci has left #silverstripe
416: [08:30:26] * zippy__ quit (Client Quit)
417: [08:34:21] * zfmf1 has joined #silverstripe
418: [08:44:04] * LoveDuckie has joined #silverstripe
419: [08:47:53] * kinglozzer quit (Remote host closed the connection)
420: [08:59:40] * M1r has joined #silverstripe
421: [09:01:23] <M1r> SS sites are very slow on first load for the day, I guess it has to do with cacheing..but are there workarounds?
422: [09:03:06] <ss23> M1r: Do you delete the cache or something? In general, that's a product of how servers work
423: [09:03:22] <ss23> M1r: That is, if a resource (e.g. the webserver) isn't being used, it'll get slower kind of thing... in general
424: [09:03:55] <ss23> M1r: I mean, the simpliest way, if its first load of the day, would be to have a cron script or something that just makes a request every hour or something, so chances are that it'll be fast when a real user wants to load it?
425: [09:04:29] <M1r> No i don´t delete cache ..but isn´t there a cache lifecycle that clears automatically
426: [09:05:56] <M1r> and cron script is a good idea :)
427: [09:06:38] * violetina2 has joined #silverstripe
428: [09:06:42] <ss23> M1r: There possibly is, I haven't looked sorry
429: [09:07:48] <violetina2> when i login and try login as someone else , i get to /stripe/page-not-found/LoginForm ? any idea about that?
430: [09:08:03] <ss23> weird, violetina2
431: [09:08:08] <ss23> no idea sorry :O
432: [09:09:54] <violetina2> seems same as http://www.silverstripe.org/general-questions/show/23659
433: [09:16:50] <wmk> simon_w, ss23, well, when capistrano wants to checkout some submodules from github and github isn't available then it's a SPF. Should move some submodules to be managed via composer. At least the 500 on github was just a short time.
434: [09:17:36] <simon_w|air> wmk, having them in composer won't help
435: [09:18:02] <wmk> afaik capistrano caches from the last deploy
436: [09:18:16] <ss23> It caches often ,but not always
437: [09:18:26] <wmk> so when i didn't update composer dependencies (just my own code) it should work
438: [09:19:12] <wmk> btw, how do you guys develop html email templates?
439: [09:19:37] <simon_w|air> That sounds like Mark's job
440: [09:19:46] <simon_w|air> Though he mostly does it in a browser
441: [09:20:30] <simon_w|air> Zauberfisch, ss23, just install postfix and be done with it :p
442: [09:20:51] <wmk> is there already a possibility to send emails html output to a browser?
443: [09:21:42] <simon_w|air> Yes. It's called renderWith() and echo (or return, or some other way of getting strings to the browser)
444: [09:22:11] * kinglozzer has joined #silverstripe
445: [09:22:59] <ss23> simon_w: that's worse than any option!
446: [09:23:00] <wmk> just found a method Email::debug() which might do the job
447: [09:24:21] * micmania1 has joined #silverstripe
448: [09:29:54] * joern__ has joined #silverstripe
449: [09:30:06] * joern__ has left #silverstripe
450: [09:32:10] * joern___ has joined #silverstripe
451: [09:41:09] * M1r quit (Quit: Page closed)
452: [09:48:31] * Error404NotFound has joined #silverstripe
453: [10:10:31] * r3v3rb has joined #silverstripe
454: [10:12:47] <r3v3rb> hi all, I have a checkboxfield that if left unchecked on the page isn't getting submitted so my script fails with: Undefined index: checkboxfield - shouldn't the checkbox return a value of null or 0 if unchecked?
455: [10:14:01] <micmania1> no, it doesn't show. You should check that it exists. If it exists it has been checked.
456: [10:14:41] <r3v3rb> micmania1: gotcha
457: [10:16:10] * lobarvaz has joined #silverstripe
458: [10:20:52] * r3v3rb quit (Ping timeout: 264 seconds)
459: [10:22:40] * NitinShah has joined #silverstripe
460: [10:26:20] * Rojod is now known as rojod
461: [10:26:39] <NitinShah> I am using ss3.1 and have added a function to enable rss on my website. Sitelink short code is not getting converted to the appropriate link on the Rss page. Any suggestions as to what I need to do?
462: [10:29:43] * zippy__ has joined #silverstripe
463: [10:30:41] <howardgrigg> NitinShah: looks like it's a bug https://github.com/silverstripe/silverstripe-framework/pull/1798
464: [10:30:44] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
465: [10:36:12] <NitinShah> Any solutions?
466: [10:37:45] <micmania1> You could create a quickfix for now until it gets resolved in the core.
467: [10:37:52] <micmania1> I think I done the same thing for search for a 2.4 site.
468: [10:38:39] <micmania1> I created a DataExtension which extended HTMLText then created my own method (ie parseShortcodes)
469: [10:39:12] <micmania1> parseShortcodes would then parse the shortcodes and return the default (ie $this->RAW (I think this is right))
470: [10:39:40] <micmania1> so in your template you'd call .parseShortcodes
471: [10:40:20] <micmania1> I'm not sure how that would work in RSS though
472: [10:42:55] <howardgrigg> I made my own RSS template for a podcast feed
473: [10:48:33] <NitinShah> Any codes that you can share, am new to siverstripe and am still trying to figure it out
474: [10:58:04] * Pyromanik__ has left #silverstripe
475: [11:09:25] <joern___> Hey, is there any option to create indexes on many_many_extraFields?
476: [11:28:16] * howardgrigg quit (Remote host closed the connection)
477: [11:36:45] * nmshah has joined #silverstripe
478: [11:39:18] * NitinShah quit (Ping timeout: 240 seconds)
479: [11:41:07] * nmshah quit (Client Quit)
480: [11:42:03] * NitinShah has joined #silverstripe
481: [11:43:01] <NitinShah> Any suggestions for code examples to display rss with shortcode link parsed correctly
482: [11:46:44] <wmk> NitinShah, loop through your DataList and parse the $Content.
483: [11:47:11] <wmk> shortcoeds and rss is a known bug in silverstripe framework
484: [11:50:58] * zippy__ quit (Ping timeout: 241 seconds)
485: [11:51:46] <NitinShah> wmk, Can you help with some codes as I am new to silverstripe and am still trying to figure this out
486: [11:54:35] <ss23> Anyone around to review some opensource changes for me? simon_w / Zauberfisch / chillu ? (Very minor changes, I'm just nervous about merging :P) https://github.com/silverstripe-labs/silverstripe-dms/pull/20
487: [12:05:33] <NitinShah> I just checked the silverstripe.org/blog/rss and the shortcodes link seem to be working as expected on it. So there would be some solution right?
488: [12:09:41] * UndefinedOffset has joined #silverstripe
489: [12:23:35] * ARNHOE quit (Remote host closed the connection)
490: [12:28:05] <wmk> NitinShah, if you say in blogmodule it works you'll have to check the method in blogcontroller that generates it
491: [12:29:14] <NitinShah> wmk, It is not working in the blogmodule on my site but seems to be working on the one at silverstripe.org
492: [12:30:10] <wmk> hmm
493: [12:30:33] <wmk> or the blog runs an older version of silverstripe.... dunno.
494: [12:31:18] <wmk> but it's night in new zealand right now...
495: [12:36:53] * swordsmanz quit (Quit: ooh ponies kinkeyyy)
496: [12:37:09] <wmk> i'd do something like foreach ($myDataList as $item) { $item->Content = $item->dbObject('Content')->forTemplate(); }
497: [12:38:09] <wmk> $item->dbObject('Content') returns the HTMLText object, and forTemplate() will parse the stuff. See API docs /code of HTMLText
498: [12:38:20] <wmk> NitinShah, hope that helps
499: [12:38:40] <NitinShah> I would try to work with this and see how it goes from there
500: [12:39:13] <wmk> of course fixing the issue would be better *G*
501: [12:39:51] <NitinShah> wmk, thank you. Also after how much time should I come on IRC to connect with people working on core?
502: [12:49:04] * osterlaus has joined #silverstripe
503: [13:16:41] <wmk> NitinShah, what do you mean "after how much time" ??
504: [13:17:10] * Guits has joined #silverstripe
505: [13:17:51] <Guits> Is there a way to only have certain users access to certain files on the frontend(Assets)
506: [13:18:17] * DesignCity has joined #silverstripe
507: [13:19:21] * NitinShah quit (Ping timeout: 240 seconds)
508: [13:39:35] * r3v3rb has joined #silverstripe
509: [13:40:39] <r3v3rb> another quick question, I am integrating the framework into an existing site - I need to keep the / of the site as the original index.html - is there an override or do I need to hack the .htacess file?
510: [13:41:33] * aznain quit (Ping timeout: 250 seconds)
511: [13:42:27] <micmania1> r3v3rb, I'd just hack the htaccess for something like that.
512: [13:42:38] <r3v3rb> micmania1: any ideas then?
513: [13:42:52] <r3v3rb> I tried and lost everything SS related :P
514: [13:43:02] <micmania1> DirectoryIndex index.html index.php
515: [13:43:33] <micmania1> That will tell it to look at index.html first
516: [13:44:16] <micmania1> Guits, checkout SS_HTTPResponse::send_file(). you'll need some custom work but that's probably a good place to start.
517: [13:45:24] <micmania1> r3v3rb, you could also just create a custom page type and put your tempalte in there.
518: [13:45:50] <Guits> micmania1 ..is that not for content generated files?
519: [13:45:59] <Guits> I need user access on asset files
520: [13:46:43] <r3v3rb> micmania1: I tried the DirectoryIndex it made no difference :( I don't really want to move the rest of the site to SS templates as it is being developed by another developer n Brazil and I don't want the headache when he updates his pages
521: [13:46:55] <micmania1> Guits: oh sorry, yeah. I misunderstood.
522: [13:48:38] <micmania1> are you putting it at the beginning of your file?
523: [13:49:33] <r3v3rb> micmania1: before the rest of the htaccess - no I had it at the end!
524: [13:49:37] <kinglozzer> Is there any alternative to handling many_many relations via a checkboxsetfield?
525: [13:50:56] <r3v3rb> hey kinglozzer hows norwich ?
526: [13:51:37] <micmania1> kniglozzer, I think you can use ListboxField
527: [13:51:39] <kinglozzer> Same as always :P
528: [13:53:43] <kinglozzer> Thanks micmania1, I'd overlooked that!
529: [13:53:52] <kinglozzer> How's things where you are r3v3rb?
530: [13:54:06] <r3v3rb> kinglozzer: in spain at the mo working
531: [13:54:12] <kinglozzer> Nice
532: [13:54:26] <r3v3rb> kinglozzer: expensive, having to use my mobile internet
533: [13:54:43] <kinglozzer> Ah that sucks, no free wifi?
534: [13:55:06] <r3v3rb> had to come and fix something for the mother-in-law at her farmhouse. wife & kids still at home
535: [13:55:39] <r3v3rb> so grabbed phone/laptop and flew thinking three days max, no need for internet - work was quiet
536: [13:56:00] <r3v3rb> then I get a phone call, can I produce a custom sagepay integration in two days...
537: [13:57:27] <r3v3rb> been here for four days now, mother-in-law = fixed, sagepay = 99% finished bar site not redirecting / to framework/main.php :\
538: [13:57:57] <r3v3rb> once I fix that I'm getting a flight home and finishing the SP in the UK with wifi
539: [14:01:24] <kinglozzer> Ah cool :) htaccess?
540: [14:01:50] <kinglozzer> Which type of sagepay integration is it? I've had to do 'form integration', hated that :P
541: [14:02:58] * violetina2 quit (Remote host closed the connection)
542: [14:05:36] * cloph_away is now known as cloph
543: [14:11:15] * travis-ci has joined #silverstripe
544: [14:11:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#858 (master - 5249664 : Ingo Schommer): The build has errored.
545: [14:11:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8092dfa3d5df...52496648338b
546: [14:11:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10496598
547: [14:11:16] * travis-ci has left #silverstripe
548: [14:12:18] <r3v3rb> kinglozzer: its sagepay server-inframe
549: [14:12:38] <r3v3rb> and yes been playing with the htaccess but no success yet :(
550: [14:13:07] <kinglozzer> :( mod_rewrite installed?
551: [14:13:17] <r3v3rb> yeh, of course ;)
552: [14:17:40] <r3v3rb> I gtg, bbl
553: [14:17:43] * r3v3rb quit (Quit: r3v3rb)
554: [14:23:50] * NitinShah has joined #silverstripe
555: [14:25:32] * ARNHOE has joined #silverstripe
556: [14:37:23] * NitinShah quit (Ping timeout: 241 seconds)
557: [14:49:41] * abitran_ quit (Ping timeout: 248 seconds)
558: [15:23:36] * violetina has joined #silverstripe
559: [15:30:36] <Marvanni> hmzzz.... if I put %2f (encoded forward slash) in the url I get a white page not found instead of the Silverstripe 404 error
560: [15:33:15] <kinglozzer> Marvanni: You're hitting apache's 404 page instead of the SilverStripe one
561: [15:33:45] * NobrainerWeb has joined #silverstripe
562: [15:34:33] <kinglozzer> You can only urlencode stuff as part of a query string I think
563: [15:36:24] * catcher has joined #silverstripe
564: [15:38:18] <NobrainerWeb> Can someone help me with Searching in multiple columns on a joined DataObject? http://www.sspaste.com/paste/show/52162e5303288
565: [15:41:02] <micmania1> NobrainerWeb, you're not including the Skill table in your query which is why you're getting the error
566: [15:41:42] <NobrainerWeb> micmania1: ok, and how do i do that?
567: [15:42:05] <kinglozzer> Add another join
568: [15:42:17] <micmania1> Just like your left join but for the Skill table.
569: [15:42:37] <kinglozzer> ->leftJoin("Skill", "\"Practitioner_Skills\".\"SkillID\" = \"Skill\".\"ID\"")
570: [15:43:47] <NobrainerWeb> Wuhhuuu :-)
571: [15:44:30] <NobrainerWeb> Thank you guys
572: [15:45:45] <kinglozzer> No problem :)
573: [15:51:42] * NobrainerWeb quit (Quit: NobrainerWeb)
574: [16:05:10] * joern___ quit (Quit: joern___)
575: [16:13:44] * DesignCity quit (Quit: DesignCity)
576: [16:15:38] * DesignCity has joined #silverstripe
577: [16:18:52] * travis-ci has joined #silverstripe
578: [16:18:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#860 (3.1 - b404e55 : Ingo Schommer): The build passed.
579: [16:18:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/eb311691be7c...b404e55533a5
580: [16:18:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10501320
581: [16:18:53] * travis-ci has left #silverstripe
582: [16:24:56] * kinglozzer quit (Remote host closed the connection)
583: [16:29:42] * chillu quit (Quit: chillu)
584: [16:31:13] * chillu has joined #silverstripe
585: [16:36:38] * DesignCity quit (Quit: DesignCity)
586: [16:47:20] * lobarvaz quit (Remote host closed the connection)
587: [16:57:49] * micmania1 quit (Quit: Leaving)
588: [17:11:10] * zfmf1 has left #silverstripe
589: [17:12:47] * osterlaus quit (Quit: Leaving.)
590: [17:14:45] * Guits quit (Quit: Leaving)
591: [17:19:28] <catcher> what's the best way to get a particular field's list of enum vals in 3.x?
592: [17:23:06] <catcher> looks like dbObject still works.
593: [17:24:36] * chillu quit (Quit: chillu)
594: [17:32:49] <guzzlefry> How do I display a form message when I'm using a form template?
595: [17:33:05] <guzzlefry> I have <% if $Message %>$Message<% end_if %> in there.
596: [17:34:48] <guzzlefry> I suspect the problem is with my action...
597: [17:35:32] <guzzlefry> $this->setMessage("Test Error", "bad"); Controller::curr()->redirectBack();
598: [17:42:48] <catcher> guzzlefry, try $this->sessionMessage('test', 'bad'); instead
599: [17:45:35] <guzzlefry> catcher: Thanks!
600: [17:45:40] <catcher> np
601: [17:45:55] <guzzlefry> Now..why are all of the examples using setMessage()? :P
602: [17:50:13] * chillu has joined #silverstripe
603: [18:04:53] * Mayzie quit (Ping timeout: 248 seconds)
604: [18:06:59] * Mayazcherquoi has joined #silverstripe
605: [18:08:27] <catcher> guzzlefry, which examples do? IIRC, setMessage works as expected, but doesn't persist across page loads (hence actions/redirects needing the session)
606: [18:09:58] <guzzlefry> ah, okay, that makes more sense.
607: [18:14:54] * abitran has joined #silverstripe
608: [18:26:33] <guzzlefry> Does silverstripe autotrim textfields in form data?
609: [18:32:11] <UndefinedOffset> guzzlefry mysql would if the field length is too long, that said textfields have a parameter to allow you to set the maximum length (4th param in the TextField constructor)
610: [18:32:47] <guzzlefry> oh sorry, I wasn't specific.
611: [18:32:59] <guzzlefry> UndefinedOffset: I was referring to trimming any trailing whitespace.
612: [18:33:05] <UndefinedOffset> ohhhhhhhhhhhhh
613: [18:33:15] <UndefinedOffset> then no it doesnt
614: [18:33:42] <UndefinedOffset> your best bet is to do it in onBeforeWrite() or in your form handler unfortunatly
615: [19:05:39] * ARNHOE quit (Remote host closed the connection)
616: [19:08:23] * SightUnseen has joined #silverstripe
617: [19:09:58] * SightUnseen has left #silverstripe
618: [19:10:45] <guzzlefry> Is there a batch publish function in SS 2.4?
619: [19:12:53] * chillu quit (Quit: chillu)
620: [19:13:15] <guzzlefry> nevermind
621: [19:13:25] <guzzlefry> There's a giant button that says "Batch actions" ;)
622: [19:14:09] * r3v3rb has joined #silverstripe
623: [19:14:16] * chillu has joined #silverstripe
624: [19:15:08] <r3v3rb> how can I send an HTTP response to a post received to a specified URL ?
625: [19:21:39] * rojod is now known as Rojod
626: [19:27:59] * r3v3rb quit (Ping timeout: 246 seconds)
627: [19:29:25] <guzzlefry> Can anyone confirm that Email::getAdminEmail() is deprecated?
628: [19:30:06] <guzzlefry> Possible that my IDE is just goofing.
629: [19:57:04] <simon_w> Why don't you have a look?
630: [20:00:17] <guzzlefry> simon_w: I did. Going to dig around in the IDE now.
631: [20:00:33] <simon_w> And did you see it's actually deprecated?
632: [20:01:31] <guzzlefry> no
633: [20:02:19] <guzzlefry> The IDE is saying that's it's deprecated in 3.2. :P
634: [20:02:56] <simon_w> Yes, I know what it's done as
635: [20:03:06] <simon_w> It's still deprecated, just only soft deprecated in 3.1
636: [20:03:47] <guzzlefry> Okay, I was looking at the api.silverstripe.org docs and didn't see anything. So I was rather confused.
637: [20:12:28] * DigNZ has joined #silverstripe
638: [20:12:30] * DigNZ quit (Read error: Connection reset by peer)
639: [20:12:43] * DigNZ has joined #silverstripe
640: [20:13:42] * simon_w quit (Quit: Leaving)
641: [20:19:44] * r3v3rb has joined #silverstripe
642: [20:22:16] <r3v3rb> not sure if anyone can help but I need to send a response to a post from a payment gateway. What would be the best way to send it via silverstripe - I have a function that receives the post and have the switch setup to write to a log file so I know the 'posts' are being received
643: [20:23:42] <r3v3rb> the documents state: Before writing the three fields above to the Response object of the POST, please ensure you clear your response
644: [20:23:42] <r3v3rb> buffer to remove any header code, comments or HTML. The Server is expecting “Status=” to be the first characters in the
645: [20:23:43] <r3v3rb> response.
646: [20:34:04] * UndefinedOffset quit (Quit: Leaving.)
647: [20:35:09] <r3v3rb> not to worry - I fixed it by sending the resonse in the response body not as headers ! lol
648: [20:35:12] <r3v3rb> my bad
649: [20:35:16] * r3v3rb quit (Quit: r3v3rb)
650: [20:38:22] * mobiusnz has joined #silverstripe
651: [20:38:28] <mobiusnz> morning
652: [20:39:11] <guzzlefry> SMTPMailer seems to not..work. :P
653: [20:39:26] <mobiusnz> is there a relatively easy way to add action buttons in modeladmin?
654: [20:39:33] <guzzlefry> Oh, I bet I know what I'm doing wrong. And it's relatively stupid.
655: [20:39:55] <mobiusnz> eg to resend details via email?
656: [20:42:56] * Pyromanik has joined #silverstripe
657: [20:44:53] * nickmolhoek has joined #silverstripe
658: [20:44:54] <Pyromanik> :<
659: [20:44:54] * nickmolhoek quit (Read error: Connection reset by peer)
660: [20:45:03] <Pyromanik> :>
661: [20:45:08] * nickmolhoek has joined #silverstripe
662: [20:45:54] * coldblooded01 has joined #silverstripe
663: [20:46:48] <guzzlefry> ...what happened? :P
664: [20:48:05] * chillu quit (Quit: chillu)
665: [20:51:15] * Stomach has joined #silverstripe
666: [20:52:29] * UncleCheese has joined #silverstripe
667: [20:56:22] <mobiusnz> hey, how do I take advantage of this method? $this->extend('updateEditForm', $form);
668: [20:56:58] <mobiusnz> I've put public function updateEditForm(&$form) { Debug::show($form); die(); } in my class that extends modeladmin but nothing happens
669: [20:59:05] <Pyromanik> guzzlefry: that's shorthand for "And then I was back at work... But at least it's Friday!"
670: [20:59:35] <Pyromanik> mobiusnz: you have to apply the decorator
671: [20:59:42] <Pyromanik> oh
672: [20:59:45] <Pyromanik> yeah
673: [21:00:00] <Pyromanik> "in my class that extends modeladmin" - this is what's wrong.
674: [21:00:03] <mobiusnz> ah
675: [21:00:04] <Pyromanik> it's for extensions.
676: [21:00:04] <mobiusnz> ok
677: [21:00:31] <mobiusnz> so I should just override getEditForm?
678: [21:00:41] <Pyromanik> if you have a subclass just redefine EditForm in such a manner: parent::EditForm();
679: [21:00:47] <Pyromanik> probably yeh.
680: [21:00:53] <Pyromanik> treat it like getCMSFields on a model.
681: [21:01:10] <Pyromanik> as opposed to updateCMSFields on a DataExtension.
682: [21:01:54] <mobiusnz> true that
683: [21:02:03] <mobiusnz> hmm, the editform doesn't seem to contain the actions
684: [21:06:40] * zippy__ has joined #silverstripe
685: [21:06:53] * zippy__ quit (Client Quit)
686: [21:07:20] * zippy__ has joined #silverstripe
687: [21:07:30] <zippy__> Morning
688: [21:09:04] * Stomach quit (Quit: Leaving.)
689: [21:12:08] <mobiusnz> is there a SS3 version of this tutorial round somewhere? http://www.ssbits.com/tutorials/2011/add-a-duplicate-button-to-model-admin/
690: [21:14:09] * Stomach has joined #silverstripe
691: [21:16:16] * simon_w has joined #silverstripe
692: [21:22:01] <AlphaCactus> mobiusnz: we extended GridFieldDetailForm and GridFieldDetailForm_ItemRequest to accomplish that. it isn't pretty.
693: [21:23:30] <mobiusnz> AlphaCactus: yeah, just found something that does that
694: [21:23:41] <mobiusnz> https://github.com/silverstripe/silverstripe-framework/pull/526#issuecomment-9468294
695: [21:24:48] <mobiusnz> sweet, at least I've managed to get the button to show. Now to get the function to work!
696: [21:31:54] * NitinShah has joined #silverstripe
697: [21:32:30] <Pyromanik> mobiusnz: I believe it's EditActions or something like that
698: [21:32:43] <mobiusnz> Pyromanik: yeah I've got it sorted now
699: [21:33:00] <Pyromanik> mobiusnz: if you're using 3.1 the buttons api is altered to make adding things easy.
700: [21:33:11] <Pyromanik> dunno much about it though
701: [21:33:20] <Pyromanik> also
702: [21:33:31] <Pyromanik> dat feels when you git init --bare arepo.git
703: [21:33:46] <Pyromanik> then git clone path/to/arepo.git
704: [21:34:09] <Pyromanik> then make changes, add, commit, git push "I REFUSE TO PUSH BECAUSE WORKING TREES AND STUFF MAN"
705: [21:34:12] <Pyromanik> umm
706: [21:34:18] <Pyromanik> BARE REPO GIT
707: [21:34:22] <Pyromanik> WTF U ON?
708: [21:34:30] <Pyromanik> :<
709: [21:36:36] <mobiusnz> reasonably straightforward in the end… http://pastie.org/8260924
710: [21:38:36] * NitinShah quit (Ping timeout: 240 seconds)
711: [21:40:37] * zagoodwin has joined #silverstripe
712: [21:48:15] <priithansen> mobiusnz: I think something like this is the 3.1 way http://www.sspaste.com/paste/show/5216860195bec
713: [21:51:42] <mobiusnz> oh yeah, that's certainly more simple
714: [21:56:45] * travis-ci has joined #silverstripe
715: [21:56:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#861 (3.1 - 137aa53 : Mateusz Uzdowski): The build passed.
716: [21:56:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b404e55533a5...137aa5315614
717: [21:56:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10513765
718: [21:56:46] * travis-ci has left #silverstripe
719: [22:09:56] * pippy_ has joined #silverstripe
720: [22:12:13] * pippy quit (Ping timeout: 245 seconds)
721: [22:14:42] <UncleCheese> internet it out again
722: [22:14:43] <UncleCheese> w00t
723: [22:14:47] <UncleCheese> vodafone rocks
724: [22:14:51] <ss23> what?
725: [22:14:53] <ss23> internet it out?
726: [22:14:57] <ss23> Is that like walking it out? :P
727: [22:15:01] <UncleCheese> 3rd time in three weeks that we'll wait 3 days for a tech to come fix it
728: [22:15:23] <UncleCheese> i told them i don't know anyone whose internet is out this often, and if they don't get a tech to my house by noon, i'm cancelling my service
729: [22:15:26] <ss23> UncleCheese: Looks like at least a few places in NZ are having international connectivity issues atm
730: [22:15:30] * violetina quit (Remote host closed the connection)
731: [22:15:33] <UncleCheese> because i'm paying for something that's off more than it's on
732: [22:15:37] * nickspiel has joined #silverstripe
733: [22:15:39] <UncleCheese> she said there are no outages
734: [22:15:59] <ss23> FWIW, they never know when there is
735: [22:16:00] <ss23> :P
736: [22:16:13] * micmania1 has joined #silverstripe
737: [22:16:16] <UncleCheese> ok
738: [22:16:27] <ss23> It's too high up the chain for an ISP to know
739: [22:16:30] <UncleCheese> hello, Wellington. Anyone else having internet connectivity issues?
740: [22:16:44] <UncleCheese> didn't think so
741: [22:16:47] <ss23> lol
742: [22:16:50] <ss23> All of SilverStripe is, UncleCheese!
743: [22:16:59] <ss23> SiteHost is too - https://twitter.com/sitehostnz/status/370667307233595393
744: [22:17:01] <micmania1> UncleCheese, I think I just had a spot of deja vu
745: [22:17:22] <micmania1> Its as though you were having this problem last week...
746: [22:17:29] <ss23> Anyway, I don't mention it because I think you're wrong, UncleCheese, just saying that if it's just started recently and it's only international and not nat, it could be this!
747: [22:17:37] <ss23> JUST TRYING TO HELP MAN
748: [22:17:54] <UncleCheese> the last time the tech came out, he said the internet (and TV) were out because the cable was wrapped around the pole to tightly
749: [22:18:03] <UncleCheese> if that doesn't sound like someone talking out of his ass, i don't know what does
750: [22:20:50] <simon_w> Oh, you have TV with them too. There's your problem.
751: [22:23:26] * Liquide has joined #silverstripe
752: [22:24:56] <ss23> lol
753: [22:25:03] <ss23> I still lol at playing for TV
754: [22:25:26] * jsQuestion has joined #silverstripe
755: [22:28:55] <ss23> We have failed over our secondary international provider, which has resolved this issue. If you're still having problems please contact us.
756: [22:29:02] <ss23> yay for redundancy
757: [22:29:04] <ss23> No SPF here :D
758: [22:29:09] <jsQuestion> hey guys i'm trying to update an old legacy site that uses ss 2.4 with workflow/embargo. I copied over the cmsworkflow folder and now workflow works super well but the expiry fields aren't giving me anything. The text fields aren't rendering as date pickers just regular text fields and won't save text. I'm having a really hard time finding documentation to help me out of this situation. any...
759: [22:29:10] <jsQuestion> ...advice? do i need to mess around with the legacydatetimefields-module?
760: [22:29:14] <jsQuestion> http://imgur.com/dRLBqbg
761: [22:29:50] <simon_w> jsQuestion, you'll need to install it, yes
762: [22:30:53] <jsQuestion> simon_w, i'm having a hard time figuring out how- i'm sure it's because i'm such a massive noob. i copied over the folder but i'm not sure what(if anything ) i'm supposed to put into the _config file
763: [22:31:18] <simon_w> Nothing, just flush.
764: [22:35:15] <jsQuestion> simon_w, does the module need a specific name? flushing didn't appear to do anything
765: [22:35:21] <jsQuestion> the folder*
766: [22:35:31] * atmos quit (Quit: Page closed)
767: [22:35:48] <Pyromanik> jsQuestion: it won't do anythnig by itself, you much use the fields.
768: [22:35:51] <Pyromanik> must*
769: [22:36:22] <jsQuestion> Pyromanik: doesn't embargo try to use the fields?
770: [22:36:43] <Pyromanik> to install a module you copy it into your site folder, name it correctly, visit yoursite.tld/dev/build, then yoursite.tld/?flush=all (make sure you're logged in for both of these last 2 steps)
771: [22:36:47] <Pyromanik> jsQuestion: not sure.
772: [22:36:58] <Pyromanik> if so, then yes it should just work.
773: [22:39:36] <jsQuestion> Pyromanik: ah, it must be working ty
774: [22:40:37] * atmos has joined #silverstripe
775: [22:42:40] <micmania1> anybody know how often the api docs are generated?
776: [22:43:07] <atmos> If I want a form tha uses a differnent email template, I would just extend UserDefinedForm and use 'protected $ss_template = "SubmittedFormEmail";' right?
777: [22:43:46] <atmos> the form doesn't need any other extensions beyond a different email template
778: [22:45:39] <Pyromanik> micmania1: not sure.
779: [22:52:52] <atmos> Anyone?
780: [22:57:23] <atmos> http://www.sspaste.com/paste/show/5216964c53510 needs something else?
781: [22:57:46] <ss23> Was there a fix for the " Argument 1 passed to Composer\Installers\BaseInstaller::__construct() must implement interface Composer\Package\PackageInterface, none given,"?
782: [22:58:05] <micmania1> yeah, composer selfupdate :p
783: [22:58:17] <micmania1> worked for me anyway
784: [22:58:29] <ss23> sweeeet
785: [23:01:56] * chrisrio has joined #silverstripe
786: [23:03:25] * catcher quit (Quit: Leaving)
787: [23:23:57] * meinemuddi quit (Ping timeout: 250 seconds)
788: [23:26:30] <Pyromanik> atmos: I dunno, does it?
789: [23:27:11] <atmos> Pyromanik: apparently it did, yeah :P
790: [23:27:53] <Pyromanik> atmos: you probably need to tell UserForm's email action to actually use ApplicationForEmploymentForm_ApplicationForEmploymentEmail instead of Email (wtf, seriously, get better class names)
791: [23:28:17] <Pyromanik> :P
792: [23:28:37] <atmos> Pyromanik: yeah that was it - and agreed
793: [23:37:02] * nhorstmeier has joined #silverstripe
794: [23:37:48] <atmos> ... and with that one fix, 9 issues became 4
795: [23:38:30] <atmos> ss23: likely some work coming your way in September :D
796: [23:40:31] * zagoodwin quit (Quit: Textual IRC Client: www.textualapp.com)
797: [23:47:57] * atmos quit (Quit: Page closed)
798: [23:48:32] * zippy__ quit (Ping timeout: 260 seconds)
799: [23:48:50] * LoveDuckie quit (Ping timeout: 264 seconds)

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