#silverstripe IRC Log

IRC log for 23 September 2014

All timestamps are in UTC.

1: [00:08:43] <ss23> What to get for lunch...
2: [00:08:47] <ss23> I tell ya, being sick sux
3: [00:15:34] <hailwood> Hey guys, Where can I grab the code for this? https://www.cwp.govt.nz/guides/core-technical-documentation/document-converter-module/en (assuming it's open?)
4: [00:16:04] <ss23> hailwood: All the public CWP modules are on https://gitlab.cwp.govt.nz/public
5: [00:16:08] <ss23> Well
6: [00:16:09] <ss23> Some of them are
7: [00:16:17] <ss23> Some of them are on Github, and you have to be creative about where to find them
8: [00:16:20] <ss23> :D
9: [00:16:52] <hailwood> Found it :D https://gitlab.cwp.govt.nz/silverstripe/documentconverter
10: [00:17:06] <hailwood> Why is it that you always find the answer just after you ask someone else? lol
11: [00:17:08] <ss23> FYI though, I don't think it works outside of CWP without modifications
12: [00:17:57] <adrexia> hailwood - I think you need a subscription to get that module to work though
13: [00:18:34] <ss23> Docvert is free though I think
14: [00:18:36] <adrexia> there's some configuration needed, and the thing behind it is a paid service
15: [00:18:39] <ss23> So you just have to run it all yourself
16: [00:18:49] <adrexia> hmm, maybe
17: [00:19:01] <ss23> I've never looked into it. I don't even think clients use it do they?
18: [00:19:18] <adrexia> yeah, they do
19: [00:19:26] <ss23> Ah kk
20: [00:19:30] <hailwood> Hmm, I really wish our PM's would look more into these things before asking me to install them
21: [00:19:57] <adrexia> its one of those things we never really think about, but when they have big amounts of content to upload, it gets used
22: [00:20:45] <hailwood> What exactly is CWP?
23: [00:20:46] <ss23> lol hailwood, I hate that
24: [00:20:49] <ss23> "It's easy! Just do it!"
25: [00:20:59] <adrexia> hailwood, you might actually be able to set it up and run it yourself. but there will be some setup required
26: [00:21:00] <ss23> hailwood: Managed hosting for NZ government
27: [00:23:20] <Kingy> ss23: did you get some sleep last night? :P
28: [00:23:32] <ss23> Yeah, but still sick
29: [00:23:37] <ss23> Stupid cough/nasea, I tell ya
30: [00:23:46] <Kingy> + earthquakes lol
31: [00:23:57] <ss23> lol, luckily those don't spread viruses :P
32: [00:25:55] <hailwood> I didn't feel the earthquake at all haha
33: [00:26:13] <Kingy> eh i was practically awake anyway
34: [00:26:21] <Kingy> shook for a decent while
35: [00:26:47] <hailwood> I was awake :| Flatmate felt it and she was asleep but I didn't feel it at all
36: [00:27:14] <ss23> Whereabouts are you, hailwood?
37: [00:27:15] * simon_w has joined #silverstripe
38: [00:27:22] <ss23> In this building it was obvios
39: [00:27:25] <ss23> And it went on for ages
40: [00:27:34] <Kingy> i'm in feilding and I felt it
41: [00:27:40] <Kingy> my gf in masterton slept right through
42: [00:27:42] <Kingy> weird
43: [00:28:05] <ss23> I look at the earthquakes in that area for the past week
44: [00:28:13] <ss23> If we extrapolate out, we're ALL GOING TO DIE
45: [00:28:23] <simon_w|work> Oh, hello simon_w
46: [00:28:26] <ss23> 3-4 days ago, they were tiny
47: [00:28:34] <ss23> started getting big in the past day
48: [00:28:45] <simon_w|work> Bye bye simon_w
49: [00:28:51] * simon_w quit (Client Quit)
50: [00:28:58] <Kingy> ss23: wouldn't want to be living in Wellington
51: [00:29:41] <hailwood> I probably didn't feel it cause I'm in Napier
52: [00:29:46] <ss23> ah yep
53: [00:30:58] * jenniferaslan quit (Quit: jenniferaslan has left the room)
54: [00:32:42] * simon_w|work didn't feel it
55: [00:32:46] <simon_w|work> Can't have been big
56: [00:38:00] * veb is now known as veb_
57: [00:45:06] <ss23> lol
58: [00:51:48] <pippy_> http://iforce.co.nz/i/0knfufff.l1k.jpg
59: [00:52:12] <ss23> hahaha
60: [00:54:19] * joelpittet has joined #silverstripe
61: [00:56:37] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
62: [00:57:42] <simon_w|work> Dammit, need my own version of array_walk_recursive
63: [00:57:44] * antmas has joined #silverstripe
64: [00:57:56] <antmas> afternoon all :D
65: [00:58:18] <simon_w|work> Oh no, hide everyone!
66: [00:58:28] <antmas> :O
67: [00:58:49] <spronk> hmm
68: [00:58:50] <spronk> guys
69: [00:58:53] <ss23> afternoon antmas ^.^
70: [00:59:01] <antmas> ss23: howdy :D
71: [00:59:07] <spronk> getting a form to submit with an #anchor
72: [00:59:08] <spronk> how?
73: [00:59:37] <Colin[pi]> spronk: ask it nicely
74: [00:59:48] <spronk> tried that
75: [00:59:49] <spronk> it spat at me
76: [00:59:51] <Colin[pi]> HAI2U ANTMAS
77: [00:59:54] <Colin[pi]> spronk: CURSES
78: [00:59:56] <antmas> Colin[pi]: such a simon_w|work answer :D
79: [01:00:03] <Colin[pi]> lol
80: [01:00:07] <antmas> or pyro rather
81: [01:00:08] <antmas> :P
82: [01:00:17] <antmas> Colin[pi]: HAI2U
83: [01:00:35] <antmas> finally tracked down the issue with my workstation
84: [01:00:39] <antmas> bad SSD
85: [01:00:42] <antmas> or one of them anyway
86: [01:00:47] <Colin[pi]> :(
87: [01:01:05] <spronk> eesh
88: [01:01:09] <spronk> what were symptoms, antmas?
89: [01:01:29] <antmas> spronk: BSOD when loading certain programs
90: [01:01:32] <antmas> VS especially
91: [01:01:35] <spronk> dang
92: [01:01:37] <antmas> and during windows updates
93: [01:02:21] <antmas> I though I'd checked the disks, but it turns out I was checking the RAID controller only, and not individual SSDs :(
94: [01:02:30] <spronk> ah
95: [01:02:32] <spronk> lame
96: [01:02:38] <Colin[pi]> antmas: how old is the SSD?
97: [01:02:42] <antmas> so... I get a new PC :P
98: [01:02:48] <antmas> Colin[pi]: only a year
99: [01:02:52] <Colin[pi]> ouch
100: [01:02:53] <antmas> roughly
101: [01:02:54] <Colin[pi]> what brand?
102: [01:02:59] <antmas> HP
103: [01:03:07] <Colin[pi]> HP make SSDs?
104: [01:03:30] <antmas> oh the SSD brand?
105: [01:03:38] <Colin[pi]> yeah
106: [01:03:38] <antmas> http://www8.hp.com/us/en/campaigns/workstations/z420.html the box is a variant of this
107: [01:04:00] <simon_w|work> http://logs.simon.geek.nz/stats.php#angular
108: [01:04:04] <simon_w|work> Yay, I'm not top
109: [01:04:19] <Colin[pi]> simon_w|work: not far to climb :P
110: [01:04:37] <simon_w|work> Colin[pi], also, don't bother adding my accounts together :p
111: [01:04:37] <Colin[pi]> wow I'm number 5 speaker now? dang
112: [01:04:50] <spronk> so... anyone ever posted a form#withananchor?
113: [01:05:29] <spronk> you've overtaken me, Colin[pi]
114: [01:05:53] <spronk> probably a good thing, i seldom say anything of value in here :D
115: [01:06:06] <antmas> spronk: YOU don't? ;)
116: [01:06:24] <Colin[pi]> spronk: neither do I! ;P
117: [01:06:54] <Colin[pi]> so.. many.. alternative spellings of pyromanik
118: [01:07:49] <Colin[pi]> Pyzzik 1, Pyrnk 1, Pyclek 1, Pybembwk 1, Pyr_m_n_k 1, Pygrrk 1, Pymtngk 1
119: [01:08:23] <antmas> can probably assum everything other than Pyromanik is just drunk Pyromanik
120: [01:09:14] <antmas> hmmm I have a client asking about a new email server
121: [01:09:16] <antmas> suggestions?
122: [01:10:28] <spronk> lolmm]
123: [01:10:30] <spronk> and nightjar
124: [01:10:37] <ss23> antmas: google apps!
125: [01:10:38] <ss23> :D
126: [01:10:51] <Colin[pi]> +1
127: [01:11:01] <spronk> yeah
128: [01:11:02] <spronk> or outlook
129: [01:11:11] <spronk> ANYTHING BUT RUNNING IT YOURSELF
130: [01:11:19] <Colin[pi]> +1 x 1000
131: [01:11:23] <antmas> oh fuck running it myself
132: [01:11:27] <Colin[pi]> avoid like the plague
133: [01:11:36] <antmas> google apps?
134: [01:11:38] <antmas> hmmm
135: [01:11:59] <ss23> Costs money now
136: [01:12:03] <ss23> Microsoft has one now too
137: [01:12:07] <Colin[pi]> antmas: any client who wants email now I farm out through google apps
138: [01:12:16] <Colin[pi]> but year it's $5/account per month
139: [01:12:26] <Colin[pi]> or discounted per yearly payment or some shit
140: [01:12:35] <antmas> nice
141: [01:12:38] <Colin[pi]> used to be free :(
142: [01:12:40] <antmas> yeah it looks simple enough
143: [01:12:53] <Colin[pi]> antmas: yeah it's super easy to set up
144: [01:12:54] <Ryan-Toast> http://i.imgur.com/4xN57Ii.gif
145: [01:12:55] <ss23> free google apps aws awesome
146: [01:12:57] <ss23> was
147: [01:13:13] <antmas> might try that then
148: [01:13:26] <antmas> their current one falls over all the time and runs out space monthly :P
149: [01:13:35] <Colin[pi]> antmas: you can set up everything as a trial for 30 days I think, then they need payment
150: [01:15:17] <Colin[pi]> "city-hedading" "fotter"
151: [01:15:24] <Colin[pi]> this is why I like to write my own css/html
152: [01:15:30] <Colin[pi]> (client provided this template)
153: [01:15:48] <Colin[pi]> mumbai special I think
154: [01:15:57] <spronk> UGH
155: [01:16:02] <spronk> FUUCKKK YOUUUU zend_currency
156: [01:16:06] <spronk> getSymbol
157: [01:16:10] <spronk> doesn't actually return a symbol all the time
158: [01:16:14] <Colin[pi]> zend_currency: "Ok... ;("
159: [01:16:17] <spronk> i.e. if your locale is en_US
160: [01:16:19] <spronk> and then you ask for USD
161: [01:16:21] <spronk> it says $
162: [01:16:22] <spronk> but if you ask for NZD
163: [01:16:25] <spronk> it says NZ$
164: [01:16:28] <spronk> :@
165: [01:16:40] <hailwood> Well that's messed up
166: [01:17:12] <ss23> Obviously that's because US is the best
167: [01:17:48] <Colin[pi]> 'MURICA
168: [01:18:26] <spronk> well it does the same depending on your locale though
169: [01:20:06] <antmas> Colin[pi]: can you link it up with Outlook ok?
170: [01:20:32] <Colin[pi]> antmas: if you're aiming for microsofty stuff, might be better off with their equivalent
171: [01:20:49] <antmas> Colin[pi]: true
172: [01:21:15] <antmas> they only use Outlook as a client at the office though, and then they have iPhones out and about
173: [01:21:24] <antmas> so no Exchange type stuff
174: [01:21:27] <antmas> afaik
175: [01:21:51] <antmas> anyway, food tiems
176: [01:21:54] <antmas> times*
177: [01:22:11] * muskie9 has joined #silverstripe
178: [01:25:45] <spronk> oh wow
179: [01:25:47] <spronk> zend
180: [01:25:51] <spronk> you fuuuuucking idiots
181: [01:25:56] <spronk> <currency type="USD">
182: [01:25:56] <spronk> <symbol>US$</symbol>
183: [01:26:53] * UncleCheese has joined #silverstripe
184: [01:28:56] * UncleCheese quit (Client Quit)
185: [01:29:05] * UncleCheese has joined #silverstripe
186: [01:29:52] * azureRaven has joined #silverstripe
187: [01:30:02] <spronk> Colin[pi], i'm usng your IP address for testing, tyvm
188: [01:31:36] * azureRaven quit (Client Quit)
189: [01:39:11] * Colin[pi]-2 has joined #silverstripe
190: [01:39:37] * auto9_ quit (Read error: Connection reset by peer)
191: [01:40:03] * auto9_ has joined #silverstripe
192: [01:40:53] * Colin[pi] quit (Ping timeout: 240 seconds)
193: [01:48:25] * azureRaven has joined #silverstripe
194: [01:49:05] <Colin[pi]-2> :o
195: [01:49:11] * Colin[pi]-2 is now known as Colin[pi]
196: [01:53:37] * simon_w|work tracks Colin[pi] by his IP!
197: [01:53:59] <Colin[pi]> simon_w|work: dont mention IPs, my router is being a dick
198: [01:57:21] * Tanger has joined #silverstripe
199: [01:59:59] <spronk> http://iforce.co.nz/i/0knfufff.l1k.jpg
200: [02:00:13] <ss23> someone already posted, but yeah, lulz :P
201: [02:05:41] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
202: [02:18:28] <antmas> spronk: ss23 :O LOL
203: [02:23:17] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
204: [02:24:13] * joelpittet quit ()
205: [02:28:49] <antmas> man I should really document my stuff better :/
206: [02:28:57] <antmas> or more often rather
207: [02:33:11] <Stomach> at all!
208: [02:33:51] <antmas> my steps for deploying a sharepoint app are
209: [02:33:58] <antmas> 'Hit publish button'
210: [02:34:03] <antmas> 'make sure it works'
211: [02:34:13] <antmas> 'TODO add more detail here'
212: [02:34:22] <antmas> -_-
213: [02:37:26] <ss23> Hey that sounds like instructions to me
214: [02:38:22] <antmas> ss23: well, it is, but shitty ones
215: [02:38:51] <ss23> brawgh, I'm feeling worse this afternoon than yesterday afternooon :(
216: [02:39:15] <antmas> ss23: sick?
217: [02:39:45] <antmas> people here are getting sick again :/
218: [02:39:55] <antmas> coughing in meetings etc
219: [02:40:08] <ss23> yeah, sick
220: [02:40:09] <ss23> :(
221: [02:40:38] <antmas> ss23: :(
222: [02:41:24] <antmas> what happened to that nice mountain pic for ss.org?
223: [02:41:30] <antmas> I liked that one :D
224: [02:42:27] <ss23> idk man
225: [02:42:30] <ss23> I don't work on that site :O
226: [02:42:56] <antmas> ;__;
227: [02:43:04] <ss23> sorry
228: [02:43:04] <ss23> :(
229: [02:43:06] <ss23> i am snappy
230: [02:43:41] <antmas> everyone needs a holiday
231: [02:43:48] <antmas> i reckon
232: [02:43:54] <antmas> it's that time of the year
233: [02:45:50] <Colin[pi]> antmas: yep so feel the same way
234: [02:47:03] <antmas> this google apps email thing sounds awesome
235: [02:48:08] <ss23> I can't believe you've never used/seen google apps
236: [02:48:34] <simon_w|work> SPLIT THE ICE APART
237: [02:48:39] <simon_w|work> BEWARE THE FROZEN HEART
238: [02:49:13] <ss23> simon_w|work: psh, one of the worst songs
239: [02:49:25] * ss23 has joined #silverstripe
240: [02:49:31] <ss23> soz but do you wanan build a snowman is the best song
241: [02:49:59] <antmas> ss23: yeah I can't either
242: [02:50:19] <antmas> I mean, i've used some of the apps, just not the mail server
243: [02:51:32] <antmas> daylight savings this weekend?
244: [02:51:34] <antmas> :O
245: [02:52:22] <simon_w|work> BurgerFuel this weekend! :D
246: [02:53:26] <ss23> Burgerfuel EVERY DAY.
247: [02:53:34] <ss23> looks like it, antmas
248: [02:53:34] <ss23> oh
249: [02:53:38] <ss23> is this 1 hour extra sleep?
250: [02:53:44] <Ryan-Toast> ss23: no
251: [02:53:46] <Ryan-Toast> less
252: [02:53:52] <antmas> other way around?
253: [02:53:57] <ss23> fuckkkkk
254: [02:54:01] <antmas> gaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay
255: [02:54:20] <ss23> Problem is, 1 hour extra sleep is nothing, because i'm normaly coming in like 4-5 hours of sleep debt a night
256: [02:54:25] <ss23> so making that 3-4 is useless
257: [02:54:40] <ss23> but 1 hour less sleep makes it go from 6 hours sleep to 5 hours, which puts me over my critical threshold
258: [02:55:13] <simon_w|work> It's a Sunday. Just sleep for longer.
259: [02:55:23] <antmas> omg what time do you go to bed ss23 ?
260: [02:55:27] <simon_w|work> Seriously, adjusting by an hour is easy.
261: [02:55:39] <Ryan-Toast> ss23: you get to stay at the bars for an hour longer.
262: [02:55:48] <antmas> simon_w|work: it is, but not for kids :(
263: [02:56:26] <simon_w|work> antmas, get better kids :p
264: [02:56:30] <ss23> antmas: as early as I can, but I've been having really bad trouble sleeping lately
265: [02:56:46] <antmas> simon_w|work: it's toooo haaaaaard
266: [02:56:58] <antmas> ss23: :( I had that for years
267: [02:57:16] <ss23> NEEDS MOAR PILLS
268: [02:57:20] <simon_w|work> antmas, also, why do you think the DST changes are in school holidays?
269: [02:57:25] <antmas> PROTIP: drugs
270: [02:57:28] <simon_w|work> Makes it even easier!
271: [02:57:37] <antmas> simon_w|work: :P true
272: [02:58:11] <simon_w|work> Except that time they screwed with everything for some pointy ball crap
273: [02:59:40] <antmas> omg bing search is even LESS good at finding MS related things than Google
274: [03:04:37] <simon_w|work> Or, better at realising no one actually wants to find it :p
275: [03:06:30] <antmas> everyone wants to find it, it's just no one wants to create it :P
276: [03:13:38] * veb has joined #silverstripe
277: [03:15:54] * auto9_ quit (Ping timeout: 250 seconds)
278: [03:19:10] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
279: [03:19:35] <hailwood> Hey guys, I'll do some more research but I'm wondering if anyone has suggestions for a shop that we can hack around with - basically we need something that can show different products based on the users location (country) (we will deal with getting that location) Also the "products" aren't typical products, once the products are purchased we need to fire off to an API to generate some links (those links are what they are purchasing) and then display
280: [03:20:28] <ss23> When I needed to do something that simple (just purchase 'things' and do nothing really to do with other stuff after that) I wrote it from scratch
281: [03:20:31] <ss23> Only a day or two work
282: [03:21:03] <antmas> this^^^
283: [03:23:39] <spronk> hmm
284: [03:23:47] <spronk> does ss auto escape stuff in DataObject::get_one ?
285: [03:24:06] <ss23> Yes
286: [03:24:17] * UncleCheese has joined #silverstripe
287: [03:24:30] <spronk> so you can stick request params in there without SQLi?
288: [03:24:58] <ss23> Try it!
289: [03:24:58] <ss23> :D
290: [03:25:09] <ss23> You'd want to validate first, otherwise you'll get ugly as shit errors
291: [03:26:46] <simon_w|work> spronk, no
292: [03:28:53] <spronk> yeahh
293: [03:28:57] <spronk> i didn't believe ss23
294: [03:29:01] <spronk> so went looking at the code
295: [03:29:56] <spronk> but it does look like it passes through filter()
296: [03:30:02] <spronk> err
297: [03:30:04] <spronk> ->where
298: [03:30:45] <spronk> but
299: [03:30:57] <spronk> it only auto escapes where you do the => syntax
300: [03:31:15] <ss23> then why did you ask!
301: [03:31:21] <ss23> I wou;ld'hve had root on your boxes in no time
302: [03:31:22] <ss23> :(
303: [03:33:13] <spronk> yeah
304: [03:33:14] <spronk> ruh roh
305: [03:33:15] <spronk> site is vuln
306: [03:33:20] <spronk> just managed to get a list of all pages
307: [03:34:35] <spronk> award-name'%20OR%20''='
308: [03:37:07] <Zauberfisch> haha, ss23 getting people to build backdoors for him
309: [03:37:09] <Zauberfisch> nasty you
310: [03:37:50] <ss23> I thought it was
311: [03:37:51] <ss23> :(
312: [03:37:58] <ss23> On the plus side, maybe I can pop a bunch of stuff now
313: [03:37:58] <Zauberfisch> I hear exec() also auto escapes URL parameters
314: [03:38:01] <ss23> spronk: Wait, which site?
315: [03:38:02] <ss23> haha Zauberfisch
316: [03:38:03] <Zauberfisch> people should use that more often
317: [03:38:11] <spronk> ss23, can't tell you
318: [03:38:15] <spronk> fixing before you hax
319: [03:38:20] <ss23> lol
320: [03:38:23] <spronk> :P
321: [03:38:32] <ss23> I was meaning, not silverstripe.org right? :p
322: [03:39:04] * cloph_away has joined #silverstripe
323: [03:39:17] <spronk> oh, nah no
324: [03:39:24] <spronk> < <
325: [03:39:25] <spronk> > >
326: [03:39:38] * cloph quit (Ping timeout: 258 seconds)
327: [03:39:58] <simon_w|work> Yay, moved off Angular 1.0!
328: [03:40:11] <simon_w|work> The docs are more accurate now!
329: [03:41:23] <Stomach> <ng-good>
330: [03:43:09] <simon_w|work> Well, it's still horrible :p
331: [03:43:13] <simon_w|work> Just slightly less horrible
332: [03:43:27] <antmas> jeez
333: [03:43:41] * antmas finally reads stuff about DC's shit storm in Labour
334: [03:44:02] <antmas> that party has imploded :O
335: [03:46:59] <Zauberfisch> simon_w|work: not an angular fan?
336: [03:47:36] <Zauberfisch> I haven't used it myself, but a collegue of mine is just continuously going on about how great it is
337: [03:48:12] <antmas> anyone used Ember?
338: [03:48:54] <Zauberfisch> not enough to give feedback about it
339: [03:49:02] <spronk> tbh
340: [03:49:08] <spronk> while i think ember is a lot better
341: [03:49:12] <spronk> it also has some pretty big downsides
342: [03:49:27] <antmas> all of them do really
343: [03:49:31] <spronk> like, you've pretty much got to bind your app to the fate of ember
344: [03:49:40] <antmas> true
345: [03:49:45] <simon_w|work> Zauberfisch, it's nice in theory
346: [03:49:47] <antmas> and way less support for it too
347: [03:49:52] <simon_w|work> Then you try to do something
348: [03:49:53] <spronk> certainly isn't easy to write it in a way that lets you tear out ember later
349: [03:50:03] <simon_w|work> And it's all "Nope!"
350: [03:50:07] <spronk> and testing on angular is easier
351: [03:50:10] <UncleCheese> Zauberfisch angular < React
352: [03:50:21] <Zauberfisch> yeah, React sounds pretty nice
353: [03:50:30] <UncleCheese> yeah, it's really amazing
354: [03:50:46] <Zauberfisch> seen a talk about it, and it really looked promising
355: [03:50:53] <UncleCheese> all those other frameworks just try to reinvent all these core concepts that have existed in JS forever
356: [03:51:01] <simon_w|work> It's XHP for Javascript!
357: [03:51:05] <UncleCheese> and React just lets you write JS.. there's nothing to learn
358: [03:51:09] <UncleCheese> simon_w|work sorta, yeah
359: [03:51:14] <UncleCheese> the Virtual DOM
360: [03:51:34] <simon_w|work> UncleCheese, implementation details don't matter
361: [03:51:38] <UncleCheese> and you won't find a more testable framework.. everything is a composable component, so unit testing is a dream
362: [03:51:56] <simon_w|work> It's XHP for JS. That's all it is.
363: [03:51:58] <spronk> react has other problems
364: [03:52:11] <UncleCheese> oh?
365: [03:52:29] <Zauberfisch> topic change:
366: [03:52:31] <spronk> two way binding bro
367: [03:52:32] <UncleCheese> you mean the problem that it's hundreds of times faster than angular? yeha, that sucks
368: [03:52:33] <Zauberfisch> silverstripe installer
369: [03:52:44] <Zauberfisch> is there any documenation on the files that come with it?
370: [03:52:48] <UncleCheese> two way binding is one of the biggest clusterfucks
371: [03:52:51] * Kingy is now known as Kingy[a]
372: [03:52:56] <UncleCheese> that's a feature, not a shortcoming
373: [03:53:08] <Zauberfisch> what they do and what system/tool they are for?
374: [03:53:10] <spronk> it's only a feature because so few other frameworks have got it so very wrong
375: [03:53:19] <spronk> err
376: [03:53:20] <UncleCheese> it's a flawed concept
377: [03:53:20] <spronk> so many*
378: [03:53:29] <UncleCheese> data should only flow one direction
379: [03:53:37] <spronk> disagree
380: [03:53:40] <UncleCheese> when it flows in multiple directions, your application doesn't scale
381: [03:53:52] <UncleCheese> it's easy to say, oh, my little todo app has two-way binding.. that's cute
382: [03:54:16] <UncleCheese> but when you want to really scale something, try debugging an application that has 50 templates rendering all at once and data flowing in from dozens of different places
383: [03:55:01] <UncleCheese> two-way binding is a false promise
384: [03:55:17] <spronk> again, i disagree
385: [03:55:46] <spronk> to be fair
386: [03:55:49] <spronk> you can to 2wb with react
387: [03:55:59] <UncleCheese> yeah.. it's opt-in
388: [03:56:45] <spronk> also not sure how i feel about react in terms of... you can't exactly get an "integrator" to build much
389: [03:56:56] <UncleCheese> integrator?
390: [03:57:13] <spronk> someone that can html and css but not js
391: [03:57:29] <UncleCheese> well that's why they invented jsx
392: [03:57:30] <spronk> you know, the reason for .ss
393: [03:57:57] <spronk> yeah, but it's all intertwined with the js code
394: [03:58:02] * antmas quit (Quit: Page closed)
395: [03:58:21] <spronk> its entirely possible that i haven't seen a large enough well structured react app to have a proper opinion here, but all their examples are very couply between jsx and js
396: [03:58:30] <UncleCheese> yeah, that's a common reaction
397: [03:58:56] <Stomach> this is a react component: http://www.labonic.com/shop
398: [03:59:05] <UncleCheese> and i guess you have to question whether the idea of separating JS and HTML is an absolute truth
399: [03:59:06] <Stomach> running on SS
400: [03:59:33] <spronk> nice
401: [04:00:32] <spronk> i also don't really like the way that the server is now involved in the presentation
402: [04:01:00] <Stomach> spronk: Requirements
403: [04:01:01] <UncleCheese> all this abstraction has a lot of tradeoffs.. i think JS should be written in JS.. every time you add some new layer of abstraction, like a handlebars template, you cripple the power of Javascript
404: [04:01:02] <Stomach> :P
405: [04:01:22] <spronk> i think the "power" of js NEEDS to be crippled
406: [04:01:30] <spronk> it's a horribly contortionist language
407: [04:01:38] <spronk> no two developers ever implement anything the same way
408: [04:01:49] <UncleCheese> well that's not a criticism of the language
409: [04:01:53] <spronk> sure it is
410: [04:01:57] <spronk> you don't have this problem in python, for example
411: [04:02:01] <UncleCheese> you could make the same argument about PHP
412: [04:02:03] <UncleCheese> or python
413: [04:02:33] <UncleCheese> and CommonJS has brought a lot of standards into Javascript
414: [04:02:47] <spronk> i'd change "a lot" to "a few"
415: [04:02:57] <spronk> doing anything structured in js is still a wild west
416: [04:03:32] <Stomach> its all about learning how to do things the newest way for the 8th time this year :(
417: [04:03:36] <spronk> i mean, there's no concensus on how to "do" objects, there's no concensus on how to do encapsulation
418: [04:03:38] <UncleCheese> i think that's true in any language until you put down a framework
419: [04:03:52] <spronk> hmm, i don't know
420: [04:04:11] <spronk> js is easily the worst of the bunch
421: [04:04:16] <spronk> (of the reasonably common languages)
422: [04:04:40] <spronk> at least with i.e. java, you know that you're doing classical inheritance off the bat. you've got syntax for encapsulation
423: [04:04:40] <UncleCheese> must be doing something right, though.. it's the only browser language out there, and has been for like.. 20 years now :)
424: [04:05:03] <spronk> UncleCheese, i would argue that has noithing to do with javascript :)
425: [04:06:18] <spronk> i really like the REST api backend, fat client frontend approach
426: [04:06:25] <spronk> react complicates this
427: [04:06:35] <Stomach> spronk - how?
428: [04:07:01] * nikob quit (Ping timeout: 246 seconds)
429: [04:08:39] <spronk> maybe it's just how i
430: [04:08:41] <spronk> ve seen react used
431: [04:09:01] <spronk> but it semeed to rely a lot more on a bit of server fat than e.g. ember?
432: [04:10:02] <simon_w|work> spronk, all the FB talks on it have the server just returning JSON
433: [04:10:11] <spronk> maybe i should have a look
434: [04:10:14] <simon_w|work> So, the M part
435: [04:10:35] <simon_w|work> (Though FB has also ditched MVC cause it's kinda flawed)
436: [04:10:49] <spronk> yeahh
437: [04:10:51] <Stomach> MVVVVVVVC
438: [04:10:57] <spronk> mvc on the web is very wtf
439: [04:12:11] <simon_w|work> I've found that I'm writing much more MVVC-style code
440: [04:13:16] <spronk> hmm
441: [04:13:18] <spronk> exmaples?
442: [04:15:07] <simon_w|work> All the "controller" does is build the view. The view components get the model data and do stuff to it, rather than having the controller shape the data
443: [04:15:16] <simon_w|work> So the logic has moved out of the controllers
444: [04:18:16] <spronk> mm
445: [04:18:31] <simon_w|work> (This is also a pattern that works a lot better with SS than its MVC)
446: [04:19:17] <spronk> so your controller methods look like ??
447: [04:22:07] <simon_w|work> A get call, then a couple of high-level XHP components
448: [04:22:37] <spronk> got a code example?
449: [04:24:36] <simon_w|work> Trying to find a page where I don't just use the default controller behaviour...
450: [04:24:38] * auto9 has joined #silverstripe
451: [04:24:41] <spronk> heh
452: [04:25:24] <simon_w|work> So, this site doesn't actually have any
453: [04:25:27] <Colin[pi]> <spronk> mvc on the web is very wtf
454: [04:25:29] <Colin[pi]> ^ sure is
455: [04:25:33] <Colin[pi]> always has been
456: [04:25:53] <Colin[pi]> I saw a great article one time about how all the MVC on the web is essentially wrong
457: [04:26:10] <Colin[pi]> and that no one really knows how to do it correctly lol
458: [04:27:11] <simon_w|work> spronk, so https://git.simon.geek.nz/simon_w/xhp-viewer/blob/hack/code/XHPViewer.php#L23-36 is the default controller action
459: [04:27:38] <simon_w|work> The template gets passed the current page, and potentially some global context
460: [04:28:26] <spronk> interesting
461: [04:29:19] <simon_w|work> Do have some more complex code, but not that I can access from here
462: [04:29:50] <spronk> mm
463: [04:33:04] <simon_w|work> Oh, right
464: [04:33:07] <simon_w|work> The log's source
465: [04:33:12] <simon_w|work> http://logs.simon.geek.nz/source/www/index.php
466: [04:33:48] <spronk> so this is a ... "VC" ?
467: [04:35:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
468: [04:37:17] <simon_w|work> Something that's been retroactively turned into something kinda similar to a VC
469: [04:37:39] * Ryan-Toast quit (Quit: Ryan-Toast)
470: [04:40:33] <spronk> mm
471: [04:47:47] * Azure quit (Max SendQ exceeded)
472: [04:49:03] * Azure has joined #silverstripe
473: [04:53:34] * Olliepop quit (Ping timeout: 246 seconds)
474: [04:53:39] * Phlunk3 quit (Quit: Leaving)
475: [05:06:44] * veb has joined #silverstripe
476: [05:07:20] * micmania1 quit (Quit: micmania1)
477: [05:10:37] * micmania1 has joined #silverstripe
478: [05:14:33] * azureRaven has joined #silverstripe
479: [05:16:46] * willr quit (Quit: willr)
480: [05:16:47] * azureRaven quit (Client Quit)
481: [05:25:27] * veb_ has joined #silverstripe
482: [05:25:48] * Shrike_Finland has joined #silverstripe
483: [05:26:27] * veb quit (Ping timeout: 246 seconds)
484: [05:34:27] * hailwood quit (Ping timeout: 245 seconds)
485: [05:41:14] * veb_ is now known as veb
486: [05:41:16] * veb quit (Changing host)
487: [05:41:16] * veb has joined #silverstripe
488: [05:46:31] * Selay has joined #silverstripe
489: [05:49:02] * Shrike_Finland quit (Quit: Leaving.)
490: [05:52:31] * veb is now known as veb_
491: [06:03:57] * Shrike_Finland has joined #silverstripe
492: [06:12:04] * veb_ quit (Quit: preprocessor-irc-cli)
493: [06:15:13] <Colin[pi]> sure is quiet in here :o
494: [06:16:06] * Robke has joined #silverstripe
495: [06:18:00] <Robke> good morning, simple question for proffs ;) i have uplaod field, where i upload PDF. and in template i have <a href="$PDF.Link">Download PDF"</a>. my question is what im doing wrong, i want then i press the download link it will start downloading to your PC or Mobile device, not to open in the same window...?
496: [06:22:24] <simon_w|work> Robke, <a download href=...> is the closest you'll get without custom code
497: [06:22:31] <simon_w|work> (Won't work in IE or Safari)
498: [06:23:31] <Robke> hm... ok thanks :)
499: [06:24:01] <Robke> if someone will not be satisfied with this link, then i will make some custom code with help of ss forums :)
500: [06:24:03] <Robke> thanks
501: [06:28:15] <Selay> @Robke, <a target="_blank" href="$PDF.Link">Download PDF"</a> is fine as simple way and it will open in tab to download. for most of the cases it might be fine. But you can make a function in controller to force download once the link is clicked. You need to set php headers fto force download. In this case, the page will not reload or open a tab.
502: [06:28:20] * guci0 has joined #silverstripe
503: [06:28:22] <guci0> Hello World!
504: [06:29:06] <Robke> Selay: thank you :)
505: [06:29:31] <Selay> @Robke http://webdesign.about.com/od/php/ht/force_download.htm
506: [06:35:35] * zfmf has joined #silverstripe
507: [06:36:15] * veb has joined #silverstripe
508: [06:37:24] * Adesso has joined #silverstripe
509: [06:42:17] * micmania1 has left #silverstripe
510: [06:46:58] * auto9 quit (Read error: Connection reset by peer)
511: [06:48:20] * auto9 has joined #silverstripe
512: [06:51:47] * auto9_ has joined #silverstripe
513: [06:51:48] * auto9 quit (Read error: Connection reset by peer)
514: [06:55:36] * ARNHOE has joined #silverstripe
515: [06:59:50] * veb quit (Quit: preprocessor-irc-cli)
516: [07:04:43] * auto9__ has joined #silverstripe
517: [07:06:26] * veb has joined #silverstripe
518: [07:07:21] * auto9_ quit (Ping timeout: 260 seconds)
519: [07:15:48] * auto9 has joined #silverstripe
520: [07:16:41] * auto9__ quit (Ping timeout: 260 seconds)
521: [07:20:41] * Shrike_Finland quit (Quit: Leaving.)
522: [07:27:28] * Audlex has joined #silverstripe
523: [07:31:06] * deschebbs has joined #silverstripe
524: [07:32:42] <deschebbs> Hi, i tied to install googlesitemaps plugin vie composer and it destroyed my silverstripe installation.
525: [07:32:57] <deschebbs> it deleted cms and themes/simple
526: [07:33:46] <deschebbs> then it did a composer update
527: [07:33:48] <deschebbs> Updating composer/installers (dev-master b3bd071 => v1.0.18)
528: [07:34:02] <deschebbs> then there was a runtime exception
529: [07:34:44] <deschebbs> The .git directory is missing from /srv/www/htdocs/vhosts ...
530: [07:35:29] <deschebbs> i did a self update of composer
531: [07:35:32] <deschebbs> composer self-update
532: [07:35:52] <deschebbs> which ran through okay
533: [07:36:07] <deschebbs> the i did a
534: [07:36:09] <deschebbs> composer diagnose
535: [07:36:22] * lambo has joined #silverstripe
536: [07:36:32] <deschebbs> Checking composer.json: FAIL
537: [07:36:33] <deschebbs> name : is missing and it is required
538: [07:36:35] <deschebbs> description : is missing and it is required
539: [07:36:36] <deschebbs> No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
540: [07:36:38] <deschebbs> Checking platform settings: OK
541: [07:36:39] <deschebbs> Checking git settings: OK
542: [07:36:41] <deschebbs> Checking http connectivity: OK
543: [07:36:42] <deschebbs> Checking disk free space: OK
544: [07:36:44] <deschebbs> Checking composer version: OK
545: [07:37:02] <deschebbs> anybody has an idea what went wrong ?
546: [07:37:09] * ocmnt has joined #silverstripe
547: [07:37:18] <ocmnt> morning!
548: [07:37:36] <deschebbs> moin
549: [07:38:11] * Shrike_Finland has joined #silverstripe
550: [07:38:17] * Adesso thinks a composer init could help
551: [07:38:30] <deschebbs> hwat ist this?
552: [07:38:39] <deschebbs> ill check...
553: [07:38:54] <Adesso> your json file is missing.. it needs to be created
554: [07:39:02] <spronk> what does your composer.json look like?'
555: [07:39:04] <spronk> and
556: [07:39:09] <spronk> did you run it in the right directory
557: [07:39:24] <Adesso> [09:36] <deschebbs> Checking composer.json: FAIL
558: [07:40:31] * lambo quit (Ping timeout: 246 seconds)
559: [07:41:00] <Adesso> How can I get only 1 of the Related Objects to a page? Loop get's everything, is there like a get?
560: [07:41:04] <deschebbs> in vendor/composer/ there is a installed.json file
561: [07:41:28] <deschebbs> i run the omposer comands in the root directory of my silverstripe installation
562: [07:41:31] <Adesso> deschebbs, in the web-root of your site, there must also be a composer.json file
563: [07:41:39] <Adesso> got there, and run composer init
564: [07:41:49] <deschebbs> there is no such composer.json file in the root directory
565: [07:42:01] <Adesso> Web-Root ?
566: [07:42:26] <Adesso> \/var/www/yoursite/webroot
567: [07:42:41] <deschebbs> sorry! yes there is such a file but it only contains information concerning googlesitemaps pllugin
568: [07:43:14] <Adesso> then try validate
569: [07:43:16] <deschebbs> an other composer.json file resides in vendor/composer/installers
570: [07:43:33] * Adesso is not sure how to reconstruct the jason once it is deleted
571: [07:43:46] <Adesso> jason ... he he
572: [07:43:59] <deschebbs> ./composer.json is valid for simple usage with composer but has
573: [07:43:59] <Adesso> like the Horror movie
574: [07:44:00] <deschebbs> strict errors that make it unable to be published as a package:
575: [07:44:02] <deschebbs> See http://getcomposer.org/doc/04-schema.md for details on the schema
576: [07:44:03] <deschebbs> name : is missing and it is required
577: [07:44:05] <deschebbs> description : is missing and it is required
578: [07:44:06] <deschebbs> No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
579: [07:44:34] <Adesso> I would just do a update again...
580: [07:44:53] <deschebbs> self-update?
581: [07:45:04] <Adesso> That has been done
582: [07:45:07] * stnvh has joined #silverstripe
583: [07:45:12] <Adesso> composer is up to date , right
584: [07:46:28] <deschebbs> the updates gives
585: [07:46:29] * auto9 quit (Read error: Connection reset by peer)
586: [07:46:36] <deschebbs> [RuntimeException]
587: [07:46:37] <deschebbs> The .git directory is missing from /srv/www/htdocs/vhosts
588: [07:47:05] <deschebbs> /srv/www/htdocs/vhosts/mysite
589: [07:47:14] <deschebbs> is the directory
590: [07:47:39] <deschebbs> composer itself is up do date now, yes
591: [07:48:05] <deschebbs> so there is no .git directory. how do o get one?
592: [07:50:54] <Adesso> you don't need one ..
593: [07:50:59] <Adesso> did you install from a Zip ?
594: [07:51:00] * kinglozzer has joined #silverstripe
595: [07:51:28] * kinglozzer quit (Client Quit)
596: [07:51:43] * nonconformatevi has joined #silverstripe
597: [07:51:46] <deschebbs> well actiually, im not quite sure. but there are composer files in the installation
598: [07:51:57] <deschebbs> there is a directory structure like this
599: [07:52:11] <deschebbs> vendor/composer/installers ...
600: [07:53:36] <Adesso> in there must be a .git folder
601: [07:54:56] <deschebbs> there isnt
602: [07:55:32] <deschebbs> composer init asks to many questions. do i really have to do this?
603: [07:56:26] <deschebbs> arent there presets for silverstripe for the init comand?
604: [07:56:43] <deschebbs> yeah, im not a composer guru
605: [07:56:46] <Adesso> Like I said, I would just re-install it again..
606: [07:57:02] <deschebbs> how reinstall it? basic silverstripe installation?
607: [07:57:11] <deschebbs> what about my changes then?
608: [07:57:15] <Adesso> http://doc.silverstripe.org/framework/en/installation/composer
609: [07:57:27] <deschebbs> okay okay, i dig into the manuals
610: [07:57:30] <Adesso> do you have a Backup ?
611: [07:57:37] <deschebbs> i thought it might just be a click or so.
612: [07:57:54] <deschebbs> but if i really messed up everything
613: [07:58:00] <deschebbs> well then...
614: [07:58:23] <Adesso> if you create-project again.. it should not kill the stuff you did
615: [07:58:25] <deschebbs> yeah, i have a backup somewhere in a huge zip
616: [07:58:37] <Adesso> just re-install.. and maybe some of your DB entries will still be there ..
617: [07:58:50] <deschebbs> sounds grreat!
618: [07:58:59] <Adesso> If you made custom Files.. that should still be there
619: [07:59:14] * Adesso is not liable for any loss
620: [07:59:20] <deschebbs> i figures it deletes stuff it dont like
621: [07:59:47] <Adesso> I don't think composer is that agressive
622: [08:00:02] <deschebbs> but nasty somehow
623: [08:00:14] <deschebbs> my cms dissapeared
624: [08:00:22] <deschebbs> (the folder)
625: [08:00:35] * kinglozzer has joined #silverstripe
626: [08:01:15] <deschebbs> Adeso: well thanky anyways
627: [08:01:23] <deschebbs> thanks
628: [08:01:26] <Robke> very nice ss design... but where could i find simple SS development tutorial now? :D
629: [08:01:59] <Robke> ups... found :D
630: [08:05:04] * Stomach quit (Quit: bye)
631: [08:06:04] * Selay quit (Ping timeout: 246 seconds)
632: [08:09:32] * Pynomk has joined #silverstripe
633: [08:09:39] <Pynomk> Morena
634: [08:12:10] <spronk> deschebbs, you didn't override some files by unzipping something into the root dir?
635: [08:12:12] <spronk> sup P
636: [08:16:02] * simon_w|work quit (Remote host closed the connection)
637: [08:18:48] <deschebbs> i did not zip, i used composer
638: [08:19:27] <deschebbs> maybe i did the initial install from a zip, i cant really remember, too bad
639: [08:21:28] * UncleCheese has joined #silverstripe
640: [08:27:20] * willr has joined #silverstripe
641: [08:29:00] * ss31noob has joined #silverstripe
642: [08:40:47] * spronk2 has joined #silverstripe
643: [08:48:10] * g4b0_ has joined #silverstripe
644: [08:48:22] <Pynomk> 1919 lines of proceedural pdf drawing, interspersed with periodic on the fly calculations to draw up a calculation/profit sheet. HOW THE FUCK WHAT
645: [08:52:48] <Zauberfisch> Pynomk: haha. just imagine the fun debuging such a beauty
646: [08:52:48] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
647: [08:52:51] <Adesso> POP Quiz Question ..
648: [08:53:14] <Adesso> How do I get the first Related Object of a Relation Object to a Page in the Controller
649: [08:53:38] <Adesso> return DataObject::get('') ?
650: [08:54:59] <nonconformatevi> UncleCheese Hi, I've got a problem with Display Logic module when I use it with two gridfield. I want to see the second GridField when the first is not empty, but doesn't work. Is this possible whit Display Logic module? This is the code: http://pastebin.com/4sg1MFa9
651: [08:55:17] <Zauberfisch> Adesso: $this->data()->MyRelationName()->first() ?
652: [08:55:27] <Zauberfisch> nonconformatevi: he just left
653: [08:56:14] <Zauberfisch> nonconformatevi: but I don't think the display logic module is capeable of counting entries in a gridfield (just guessing though)
654: [08:57:11] <nonconformatevi> Zauberfisch: ok, thanks!
655: [08:57:16] * Shrike_Finland quit (Quit: Leaving.)
656: [08:58:48] <Adesso> Zauberfisch: in the Controller, $this->data()
657: [09:19:29] <Adesso> Zauberfisch ok works, now if I return this to the template, do I use control or with ?
658: [09:19:51] * Adesso actually is not 100% sure what control is for
659: [09:22:43] <kinglozzer> Adesso: That's why control is deprecated, because it's confusing :P
660: [09:22:50] <kinglozzer> Use <% loop %> or <% with %>
661: [09:23:43] <Adesso> so the nin the Template I woul just use <% with $this->data()->MyRelationName()->first() %>
662: [09:23:53] <Adesso> then in the
663: [09:24:27] <kinglozzer> Adesso: No, you'd use <% with SomeObject %>, then in your controller have: public function SomeObject() { return $this->data()->MyRelationName()->first(); }
664: [09:24:33] <kinglozzer> You can't use PHP in templates
665: [09:24:57] * Adesso read controller is depricated !!
666: [09:25:04] <Adesso> phew
667: [09:25:06] <kinglozzer> Although, it'd probably be better to use: <% with MyRelationName.First %>
668: [09:25:10] <Adesso> my head almost exploded
669: [09:25:47] <Adesso> this first function.. is part of what reffrence
670: [09:25:53] <Adesso> DataObject ?
671: [09:26:06] <Adesso> I would like to see the other functions
672: [09:26:16] <Adesso> first, last, limit, etc.
673: [09:26:40] <kinglozzer> Adesso: Those functions are on DataList: http://api.silverstripe.org/3.1/class-DataList.html
674: [09:26:49] <kinglozzer> A DataList is a list of DataObjects
675: [09:26:55] * Tanger quit (Quit: Tanger)
676: [09:26:56] * Adesso saves the URL ... thx
677: [09:29:18] * Tanger has joined #silverstripe
678: [09:29:42] <Pynomk> [09:52] <Zauberfisch> Pynomk: haha. just imagine the fun debuging such a beauty
679: [09:29:43] <Pynomk> NO
680: [09:29:51] <Pynomk> I've been doing just that for 2 days now :<
681: [09:30:08] <Robke> i need to write this in template: <% if $Pos % 2 == 0 %> do this <% else %> do another <% end_if %> ModulusOf(2) does not do what i exactly want
682: [09:30:11] <Robke> any suggestions
683: [09:30:27] <Pynomk> well... not debugging I guess. There's nothing particularly wrong with it... but I need to use the calculations elsewhere... which means I have to find all the obfuscated code that makes the on the fly calculations
684: [09:30:32] <Pynomk> it's not fun at all D:
685: [09:30:53] <Pynomk> Robke: modulusOf does do what you want
686: [09:30:56] <Pynomk> that or MultipleOf
687: [09:31:04] <Pynomk> one of the two :)
688: [09:31:09] <Robke> ok i will try
689: [09:31:10] <Robke> thanks
690: [09:31:11] <Robke> :/
691: [09:31:22] <Pynomk> Robke: try MultipleOf
692: [09:31:28] <Pynomk> sounds like it might be more what you're after.
693: [09:32:25] <Pynomk> [09:53] <Adesso> return DataObject::get('') ?
694: [09:32:34] <Pynomk> D: stahp! reading old tutorials :<
695: [09:32:46] <Pynomk> ObjectYouWant::get()->first()
696: [09:34:04] <Pynomk> and loop is for looping, with is for simple scope change (loop does both). Control is old & defunct code (not even in 3.1 iirc) that did both, depending on the context (give it a list it looped, give it a singular object it scope changed)
697: [09:34:49] <Pynomk> but as kinglozzer has pointed out, templates can dot notation traverse relations.
698: [09:35:02] <Pynomk> MyRelation.First, etc.
699: [09:35:28] <Pynomk> with MyManyRel.First, loop MyManyRel
700: [09:35:33] <Pynomk> no control!
701: [09:35:39] <Pynomk> control means you're out of it ;)
702: [09:43:33] <kinglozzer> Pynomk, Robke: Does ModulusOf even exist? Isn't it just Modulus(x) ?
703: [09:57:27] <Adesso> Pynomk, thanks ... sorry for the old code, I keep being fed by my Colluege that has old code..
704: [09:57:34] * Adesso builds a wall
705: [09:58:05] <Adesso> I still have to get the MyManyRel.First to work, but for now the Controller ref works perfect .
706: [09:59:31] <Adesso> or is it called ControllerMethods ?
707: [09:59:49] * Adesso has to get his Lingo up to speed as well
708: [10:00:52] <Pynomk> Adesso: slap your colleague
709: [10:01:13] * ss31noob quit (Ping timeout: 246 seconds)
710: [10:01:17] <Pynomk> Adesso: there are no methods in templates. You call properties on the currently in scope object.
711: [10:01:25] <Pynomk> these can be fields or methods.
712: [10:01:36] <Pynomk> when on a page, the currently in scope object is the controller.
713: [10:01:58] <Pynomk> Page_Controller is a bit of a special case where if it can't find a property or method on itself, it checks it's associated model.
714: [10:02:07] <Pynomk> so that can cause confusion.
715: [10:02:12] <Pynomk> I know it did me when I started out.
716: [10:02:21] <Pynomk> blurred the line between controller and model.
717: [10:03:13] <Pynomk> so anything you put in a template (eg $Name, <% loop $Relationship %>) is a thing on the in scope object.
718: [10:03:45] <Pynomk> ie $Name will be $this->Name, $Relationship will be $this->Relationship() (which will probably return a list of related things)
719: [10:07:57] * Adesso starts seeing the Whole picture now
720: [10:09:46] <Adesso> ...moving towards the light ;)
721: [10:16:03] <Robke> kinglozzer: i'm looping childs and i need that after 2 childs (3rd ant 4th child) will be displayed different from first two ones :)
722: [10:16:08] <Robke> how could i do that?
723: [10:17:55] <willr> Robke 3.0 adds support for <% if Pos > 2 %> I do believe
724: [10:18:39] <Robke> hm... but it wont help if pos = 5 :)
725: [10:18:52] <Robke> so the th element should be displayed like 1st and 2nd :)
726: [10:19:17] <willr> So just 3rd, 4th? if Pos == 3 || Pos == 4
727: [10:19:19] <Robke> *5
728: [10:19:27] * Adesso is also exactly there ... with the nth Obj
729: [10:19:31] <Robke> i have holder of news :)
730: [10:19:38] * Adesso takes out some popcorn ...
731: [10:19:49] <Robke> i dont know how much it will be created
732: [10:20:15] <Robke> but i need that
733: [10:20:33] <Robke> 1,2 ant 5.6 elements wpuold be displayed the same
734: [10:20:34] <willr> Or you could use Modulus. <% if Modulus(3) %>. http://doc.silverstripe.org/framework/en/2.4/reference/advanced-templates#modulus-and-multipleof
735: [10:20:43] <Robke> and 3-4 7-8 the same :)
736: [10:22:18] <willr> right well then some combination of modulus and multipleof are the two you want to use then.
737: [10:22:52] <Robke> hm... so how should it be written then? :) because my head isnt good at this point :)
738: [10:23:21] <willr> Are you just trying to add a css hook or doing custom templates, html as well
739: [10:23:32] * zfmf quit (Remote host closed the connection)
740: [10:23:33] * Tanger quit (Quit: Tanger)
741: [10:23:49] * Adesso looks at getRange
742: [10:24:25] <Robke> both i think :)
743: [10:24:55] <willr> The easily solution is to use Modulus to add a class to each item for columns 1-4 so the 5th item will start back at column 1
744: [10:25:40] <Robke> hm...
745: [10:29:55] * azureRaven has joined #silverstripe
746: [10:31:51] * azureRaven quit (Client Quit)
747: [10:37:07] * willr quit (Quit: willr)
748: [10:51:47] <Adesso> From a unrelated Page I want to get all the realted Objects to another page, and display it on the current Page. I get the ID of the Relation Page with ControllerName::get()->First()->ID
749: [10:52:17] * qlex has joined #silverstripe
750: [10:52:21] * qlex says hi
751: [10:52:28] <Adesso> How do I now get the DataList of that Page Related Objects ?
752: [10:52:44] <qlex> im trying to use silverstripe-smartchimp module in ss3+ but cant get past depreciated classes
753: [10:52:55] <qlex> also, can see that master branch is 2.4 compatibile
754: [10:53:09] <qlex> do you guys know of any development of this or similar module for newer silverstripe ?
755: [10:53:27] * Adesso eats some nuts
756: [10:54:14] <Adesso> over here.. I am the Chimp.. :P
757: [10:55:56] <kinglozzer> Adesso: $unrelatedPage = SomePage::get()->first(); $unrelatedPageObjects = $unrelatedPage->RelationName();
758: [10:56:25] <kinglozzer> Or if you're in template land: <% with List(SomePage).First %> <% loop $RelationName %> $Title <% end_loop %> <% end_with %>
759: [11:00:30] <Robke> is it possible to write for(i=1; i<10; i++) cicle in template?
760: [11:02:28] * Adesso just has to start thinking simpler ..
761: [11:02:37] <Adesso> thx kinglozzer
762: [11:03:00] * qlex is trying SilverChimp module now :)
763: [11:03:33] * Adesso has some more nutz
764: [11:04:38] <Adesso> I think it is time for Lunch ..
765: [11:07:34] * zfmf has joined #silverstripe
766: [11:08:32] <Colin[pi]> ok so say I have an extension that's adding a relation, what's the correct way to reference that relation from within an onBeforeWrite on the extension?
767: [11:08:42] <Colin[pi]> because $this->owner->Relation() it no likey
768: [11:13:54] * UncleCheese has joined #silverstripe
769: [11:19:42] * spronk2 quit (Quit: spronk2)
770: [11:19:46] <Pynomk> wholey fucking shit
771: [11:19:55] <Pynomk> just spent ALL morning figuring out why a sum was wrong.
772: [11:19:57] <Pynomk> TURNS OUT
773: [11:20:06] <Pynomk> MySQL doesn't follow the basic rules of math.
774: [11:20:19] <Pynomk> or maybe I don't.
775: [11:20:28] <Pynomk> tl:dr, not enough brackets.
776: [11:20:41] <Pynomk> complex sum FTL :<
777: [11:21:01] <Colin[pi]> mm I seem to recall MySQL being a tad retarded at OoO
778: [11:21:11] * spronk2 has joined #silverstripe
779: [11:23:02] <Pynomk> fuck'n... doing it for a single row (out of >33000), well over a second of computes :<
780: [11:26:55] <Pynomk> gawd. joining to the same table by way of deriving it first 4 times.
781: [11:27:09] <Pynomk> so bad :<
782: [11:28:56] <Pynomk> (different subsets of the same base table summed to give a single row and applied at different times to the main overall calculation)
783: [11:28:59] <Pynomk> just... gawd :<
784: [11:37:38] <Colin[pi]> wow things must be bad if I can't even get my debug.log working
785: [11:45:53] <Pynomk> debug your logs Colin[pi]
786: [11:45:55] <Pynomk> gosh
787: [11:46:16] <Pynomk> maybe SS is too bleeding edge for you
788: [11:46:40] <Pynomk> the only thing to do here is reverse engineer the logs
789: [11:46:53] <Colin[pi]> idgi
790: [11:47:05] <Colin[pi]> permissions are fine afaik, it's just not creating the log
791: [11:47:56] <Pynomk> http://logs.simon.geek.nz/index.php?date=2013-01-23#log_885508
792: [11:48:13] <Colin[pi]> LOL
793: [11:48:18] <Colin[pi]> I forgot about that
794: [11:48:38] <Pynomk> obviously, you were even there!
795: [11:48:40] <Pynomk> xD
796: [11:48:53] <Colin[pi]> I know... the reference went whoosh over my head
797: [11:49:01] <Colin[pi]> tbf, it was well over a year ago
798: [11:49:03] <Pynomk> go to sleep
799: [11:49:09] <Colin[pi]> I can't even remember what I had for breakfast!
800: [11:50:44] <ss23> reverse engineer the answer
801: [11:50:55] <ss23> also, I'm getting more sick as time goes on, not less sick. This is fucking bullshit I want a refund
802: [11:51:01] <ss23> Night guys wish me luck sleping WHILE I FEEL LIKE SHIT
803: [11:51:32] <Colin[pi]> GOOD LUCK
804: [11:54:20] <Pynomk> shit hardens up obver time.
805: [11:54:29] <Pynomk> so he should feel harder soon.
806: [11:54:49] <Pynomk> hopefully hard enough to man up and stop feeling like shit :>
807: [11:58:12] <Colin[pi]> oh colin you stupid fuck
808: [11:58:20] <Colin[pi]> 30 mins wasted, just figured out what it was
809: [11:58:23] <Colin[pi]> >_________<
810: [12:01:20] * Audlex quit ()
811: [12:03:06] <Colin[pi]> OH IT WORKS NOW HERP DERP
812: [12:11:16] * UndefinedOffset has joined #silverstripe
813: [12:12:38] <Adesso> kinglozzer when I use <% with List(SomePage).First %> in my Template, I get the related Objects, but when I use $unrelatedPage->RelationName() in my Controller nothing arrives ..
814: [12:12:45] <Adesso> I am guessing I need this List
815: [12:12:51] <Adesso> function
816: [12:13:53] <Robke> is it possible somehow in template to do like this? $Pos - 4?
817: [12:16:42] <Adesso> kinglozzer with $unrelatedPage = SomePage::get()->first(); $unrelatedPageObjects = $unrelatedPage->RelationName(); I get the right ID when I output $unrelatedPage->ID
818: [12:17:11] <Adesso> but the $unrelatedPageObjects is just empty... what am I missing ?
819: [12:22:41] * Shrike_Finland has joined #silverstripe
820: [12:23:17] * Shrike_Finland1 has joined #silverstripe
821: [12:23:44] * UncleCheese quit (Ping timeout: 260 seconds)
822: [12:25:41] * Adesso tries relation.... nope
823: [12:26:57] * Shrike_Finland quit (Ping timeout: 245 seconds)
824: [12:28:34] * Adesso tries $unrelatedPage->RelationName()->first() ... still nothing
825: [12:28:57] <Adesso> no wait..
826: [12:28:59] <Adesso> that works
827: [12:29:40] <Pynomk> [13:12] <Adesso> I am guessing I need this List [13:12] <Adesso> function
828: [12:29:47] * Adesso sees no list(), and as far as I know it is reserver for PHP
829: [12:29:51] <Pynomk> no, is hack for lazy devs
830: [12:30:10] <Pynomk> don't use
831: [12:30:35] <Adesso> well.. how else do I get the list of related Objects then ?
832: [12:30:37] <Pynomk> and it'll be provided by globals
833: [12:30:38] <Adesso> in the Controller
834: [12:30:49] <Pynomk> Adesso: well if they're related, $RelationName
835: [12:30:59] <Pynomk> in the controller: $this->RelationName()
836: [12:31:43] <Pynomk> or to be very specific about it (incase you ahve a function with the same name that does something else... even though that would be silly in most cases), $this->data()->RelationName()
837: [12:32:06] <Adesso> in this page they are not related .. thus it should be $unrelatedPage
838: [12:32:26] <Pynomk> well if it's not related, then you have to ClassName::get()->filter(...)
839: [12:32:29] <Adesso> getting the current page realtions are what you said ... this...
840: [12:32:52] <Adesso> filter...
841: [12:32:59] * Adesso tries it with a filter
842: [12:33:04] <Pynomk> getting the relations of an unrelated page... if you have the page already, then $thatPage->RelationName()
843: [12:33:05] * qlex has left #silverstripe
844: [12:33:22] <Pynomk> <% loop $List(...) %> is a hack for lazies.
845: [12:33:33] <Adesso> it works ..
846: [12:33:34] <Pynomk> and is template code, it's not using something directly related in PHP
847: [12:33:39] <Adesso> but I don't want to use it
848: [12:33:43] <Pynomk> yes it works, but ... yes. good.
849: [12:34:02] * Adesso likes the Controller with PHP better
850: [12:34:03] <Pynomk> it also only works because you have loose relations I guess.
851: [12:34:21] <Pynomk> that's simply getting the very first object out of every single one ever in your database.
852: [12:34:52] <Pynomk> [13:13] <Robke> is it possible somehow in template to do like this? $Pos - 4?
853: [12:34:52] <Pynomk> no
854: [12:35:44] <Pynomk> Adesso: I think you probably need to stop using 'related' in just an abiguious manner
855: [12:35:56] <Pynomk> it's confusing for us, and probably helping add to your own confusion too :<
856: [12:36:58] <Pynomk> $unrelatedPage means that that variable would be a page object of the type you're expecting.
857: [12:37:01] <Pynomk> etc.
858: [12:37:24] <Adesso> ok, then what do I say for a Page that has a DataObjects with a has_one setup ?
859: [12:37:47] <Adesso> if that is not a Relation.. what then ?
860: [12:38:08] <Pynomk> well, in that case there is a relation. But when you're talking about <% loop List(... %> then they're most certainly not related. Or maybe they are. It will get all of them, related or not.
861: [12:38:46] <Pynomk> but perhaps being more specific about the relation you're talking about :>
862: [12:38:48] <Pynomk> ie, instead of 'relation' perhaps 'the has one' or whatever
863: [12:38:51] <Adesso> ok... Well what I am trying to do is similar to what Robke is doing ..
864: [12:38:58] * UncleCheese has joined #silverstripe
865: [12:39:09] <Pynomk> what's Robke up to?
866: [12:39:09] * UncleCheese quit (Client Quit)
867: [12:39:28] <Adesso> HomePage, with a Lastest News Teaser thingy
868: [12:39:52] * UncleCheese has joined #silverstripe
869: [12:39:59] <Adesso> So I have a Artcle (Magazine) Page... and just need to display the latest 4 Articles
870: [12:40:05] <Pynomk> NewsItem::get()->sort('Created', 'DESC')->limit(3)
871: [12:40:08] * Shrike_Finland1 quit (Read error: Connection reset by peer)
872: [12:40:13] <Adesso> the 1st one is big... and the next 3 as small
873: [12:40:27] * Shrike_Finland has joined #silverstripe
874: [12:40:29] * UncleCheese quit (Client Quit)
875: [12:40:39] <Pynomk> <% if First %>class="bigger"<% end_if %>
876: [12:43:24] * Adesso tries to simplify ..
877: [12:43:43] <Pynomk> that is about as simple as it gets
878: [12:43:58] <Pynomk> HomePage doesn't have related news items. So you just get them.
879: [12:44:34] <Adesso> Article has_one > ArticleHoldingPage && belongs_many_many > LandingPages
880: [12:44:49] <Adesso> The HomePage is a LandingPage
881: [12:45:13] <Pynomk> public function NewestArticles() {return Article::get()->sort('Created', 'desc')->limit(3);} <% loop NewestArticles %> <% if First %> ... <% else %> <% end_if %> <% end_loop %>
882: [12:45:49] <Adesso> <Pynomk> HomePage doesn't have related news items. So you just get them.--- It Does
883: [12:46:06] <Pynomk> as I said to you once before, I probably woudn't bother with a relation for a landing page, since it simply lists every one ever (iirc you told me)
884: [12:46:28] <Pynomk> but since it does, just $this->RelationName()->sort('Created', 'desc')->limit(3)
885: [12:47:14] <Adesso> this only return the Articles related to the HomePage
886: [12:47:16] <Pynomk> the beauty of lazy loading is that you can modify the list (and thus in this case the query) before it actuall makes it.
887: [12:47:31] <Pynomk> Adesso: yes, because you are only wanting the ones on the home page.
888: [12:47:33] <Pynomk> as I said...
889: [12:47:37] <Pynomk> if it's not there, it's not related.
890: [12:47:41] <Adesso> no. :(
891: [12:47:47] <Pynomk> in which case it's time to ask... do you really want a relation?~
892: [12:47:51] <Pynomk> is there actually a point?
893: [12:48:08] <Pynomk> if landing page is supposed to have everything ever... then things aren't really related to it.
894: [12:48:24] <Pynomk> it's just an all encompassing holder.
895: [12:48:26] <Adesso> The point of the Homepage Article Relation, is so that it can be listed as a static article
896: [12:48:36] <Adesso> and changed when needed
897: [12:48:52] <Adesso> other Landing Pages will have there related Articles ..
898: [12:48:57] <Adesso> and they get updated ...
899: [12:49:01] <Adesso> whenever
900: [12:49:09] <Pynomk> well, in that case then you have a different usecase for your relation than explained (hence my bit about explianing your relations better ;) )
901: [12:49:18] <Adesso> All Articles are however in the Article Page
902: [12:49:26] <Pynomk> so, Article::get()-> ....
903: [12:49:28] <Pynomk> same deal.
904: [12:49:51] <Adesso> OK... step by step
905: [12:50:03] * Adesso tries Article::get.....
906: [12:50:12] * ss31noob has joined #silverstripe
907: [12:51:08] <ss31noob> hi guys, have a question.. in 2.4, manifest-main is automatically created in silverstripe-cache.. do you know what replaced this in 3.1? i cant find the same file..
908: [12:51:37] <Pynomk> if LandingPage only ever has articles listed on it from a set of child ArticleHolders, then Article::get()->filter('HolderPage', $this->Children()->column('ID'))->Sort('created', 'desc')->limit(3)
909: [12:51:56] <Pynomk> ss31noob: you shouldn't need that file.
910: [12:51:56] <Pynomk> ever.
911: [12:52:09] <Pynomk> everything in the cache folder is ignorable.
912: [12:52:10] <Pynomk> completely
913: [12:52:31] <Pynomk> unless you're having update issues, in which case delete the contents of the entire folder, and problem solved.
914: [12:53:11] <Pynomk> but to answer your question (maybe), cache folder will be in silverstripe-cache IF that folder exists. If not, it'll be in the generic temp dir.
915: [12:53:15] <Pynomk> eg /tmp
916: [12:55:35] <Adesso> Article::get() returns nothing
917: [12:55:37] <Adesso> ???
918: [12:55:46] <Pynomk> Article::get()
919: [12:55:54] <Pynomk> no other things applied.
920: [12:56:02] <Pynomk> ?
921: [12:56:04] <Adesso> just like this
922: [12:56:19] <Adesso> var_dump is also empty
923: [12:56:28] <kinglozzer> Adesso: Is it definitely Article? Not ArticlePage?
924: [12:56:34] <Pynomk> ^
925: [12:56:43] <Pynomk> should cause error if no class exists though kinglozzer
926: [12:56:51] <Adesso> No Error ..
927: [12:56:55] <Adesso> sec
928: [12:57:43] <Adesso> ArticleHolderPage::get() which is the, well Holding Page also has nothing
929: [12:58:05] <Pynomk> code plz
930: [12:58:16] <kinglozzer> Good point Pynomk
931: [12:58:17] <Adesso> let me update the bin ..
932: [13:00:37] <Adesso> http://pastebin.com/u/Adesso
933: [13:01:13] * lerni has joined #silverstripe
934: [13:01:18] <Adesso> The LandingPage_Controller has ArticleTeaserLeft_Newest that wrongly display the article related to it..
935: [13:01:28] <Adesso> but this just shows that the this thing works
936: [13:01:57] <kinglozzer> Adesso: does your template include $ArticleTeaserLeft_2to4 somewhere? Otherwise that function won't be called
937: [13:02:05] <Adesso> sec
938: [13:02:19] <Adesso> <% with ArticleTeaserLeft_2to4 %> is what I use
939: [13:02:40] <Pynomk> well that's why.
940: [13:02:49] <Pynomk> s/with/loop/
941: [13:03:05] <Pynomk> You're fetching a _list_
942: [13:04:02] * Adesso does a FacePalm
943: [13:04:17] <Adesso> so I just loop $Articles
944: [13:04:22] <Pynomk> yup
945: [13:04:27] <Adesso> Christ all mighty ..
946: [13:04:32] <Adesso> can someone please shoot me
947: [13:04:33] <Pynomk> each iteration will have you in the scope of the current item.
948: [13:04:43] <Adesso> and end this missery
949: [13:04:45] <Pynomk> with simply shifts scope.
950: [13:05:10] <Adesso> that now makes perfect sense ..
951: [13:05:16] <Pynomk> ie, if you'd done somethin glike <% loop Limit(1) %> then that might have worked xD
952: [13:05:22] * Adesso tries the loop
953: [13:05:22] * Shrike_Finland quit (Quit: Leaving.)
954: [13:05:36] <Pynomk> :>
955: [13:09:15] <Adesso> manno..
956: [13:09:28] <Adesso> why is it still empty..
957: [13:09:39] <Adesso> return Article::get();
958: [13:09:45] <Adesso> from the Controller
959: [13:09:57] <Adesso> in the function ArticleTeaserLeft_2to4()
960: [13:10:15] <Adesso> Template -> <% with ArticleTeaserLeft_2to4 %>
961: [13:10:27] <Adesso> && <% loop $Article %>
962: [13:10:36] <Adesso> and ... nuttin
963: [13:10:37] * Colin[pi] quit (Ping timeout: 245 seconds)
964: [13:10:42] <Adesso> :'(
965: [13:11:03] * Adesso thinks someone up there hates him
966: [13:12:51] <Adesso> I have no eveb added the 2 ss Pages ..
967: [13:13:59] * Adesso traces back his steps ..
968: [13:14:22] <Adesso> if the Laazy way used ArticleHolderPage for the List
969: [13:14:24] <kinglozzer> Adesso: <% loop ArticleTeaserLeft_2to4 %> $Title <% end_loop %>
970: [13:14:30] <Pynomk> Adesso: ...
971: [13:14:31] <Pynomk> ^^
972: [13:14:32] <kinglozzer> Not <% with ArticleTeaserLeft_2to4 %> <% loop Article %>
973: [13:14:38] <Pynomk> ^
974: [13:14:45] * wmk has joined #silverstripe
975: [13:14:49] <Pynomk> again, it's a _list_ not a single dataobject.
976: [13:14:56] <Adesso> hää
977: [13:14:57] * muskie9 has joined #silverstripe
978: [13:14:58] <wmk> gmorning
979: [13:15:00] <Adesso> :?
980: [13:15:02] <Pynomk> g'day
981: [13:15:07] <Adesso> servus
982: [13:15:08] <wmk> Pynomk, did you release the stuff?
983: [13:15:15] <wmk> Adesso, Habedieehre
984: [13:15:24] * Adesso keeps his trap for a minute
985: [13:15:35] <Pynomk> wmk: unfortunately not. I got really fuck'n angry at how shit the UK is insted, and went to bed mad.
986: [13:15:43] <wmk> ok
987: [13:15:46] <Pynomk> sorry
988: [13:15:51] <wmk> np
989: [13:15:53] <Pynomk> will get it done tonight, fo sho
990: [13:16:05] <Adesso> and now I am driving him nutz
991: [13:16:35] <Pynomk> better here than thinking about how the fuckign government threatens court action if you don't pay tax within a month
992: [13:16:50] <Pynomk> WHEN YOU'RE FUCKING OVERSEAS FOR TWO
993: [13:16:57] <Pynomk> cunts.
994: [13:17:27] <Pynomk> so instead of penalizing late payments, the demand the entire year's payment in full.
995: [13:17:34] * Adesso add looping over a function result list to the pile of new stuff SS can do ..
996: [13:17:40] <Pynomk> which is fucking retarded.
997: [13:17:41] * ARNHOE quit (Read error: Connection reset by peer)
998: [13:17:47] <Pynomk> nearly £1000
999: [13:17:50] * Adesso feels fucking retarded
1000: [13:18:01] <Pynomk> 7 days to pay TOOK TWO FOR LETTER TO ARRIVE
1001: [13:18:04] * ARNHOE has joined #silverstripe
1002: [13:18:17] <Pynomk> what if I was away on business?
1003: [13:18:35] <Pynomk> say like... how the letter wasn't addressed to me, but I opened it anyway which is an offence
1004: [13:18:48] <Pynomk> because the actual person is away on business
1005: [13:18:53] <Pynomk> has been the entire time.
1006: [13:19:01] <Pynomk> I fucking hate this country.
1007: [13:20:02] <Pynomk> sorry kinglozzer, but your government is so fucking uptight I hear they have to drill holes so it can shit.
1008: [13:20:04] <Adesso> tax is a bitch... in any country
1009: [13:20:21] <Pynomk> Adesso: yes, but they're particularly uptight about it here.
1010: [13:20:38] <Pynomk> and you get taxed for fucking _everything_
1011: [13:20:39] <Adesso> It#s a Royal pain..
1012: [13:20:43] <Pynomk> LOL
1013: [13:21:12] <Adesso> 7me has some bud's there that complain even louder than you
1014: [13:21:12] <kinglozzer> lol Pynomk, it's great ain't it?
1015: [13:21:19] <Pynomk> No.
1016: [13:21:31] <Adesso> Just pay the fuckers.. and get it done with...
1017: [13:21:36] <kinglozzer> And if you're overtaxed, it'll take them about a year to actually pay it back
1018: [13:21:42] <Pynomk> Wish I could.
1019: [13:21:43] <kinglozzer> If you get it back
1020: [13:21:53] <Adesso> Don't fight it.. it just makes it worse
1021: [13:22:02] <wmk> Pynomk, when a module provides a DO but no permissions for it, how to make it best an editor can create / edit it?
1022: [13:22:03] <Pynomk> Imma ring them and tell them that the lease holder has been out of the country for two weeks, what the fuck do they want?
1023: [13:22:34] <Pynomk> wmk: decorate and canEdit canView?
1024: [13:22:44] <Pynomk> idk. What do you mean by permissions?
1025: [13:23:09] <wmk> some modules implement PermissionProvider, so i can click permissions in security settings
1026: [13:23:56] <Adesso> Pynomk--- thanks a million, now it work.. and I think I can take it from here
1027: [13:24:07] * wmk thinks best would be forking and make it good...
1028: [13:24:51] <Pynomk> wmk: well permissions provider is a config thing iirc, just create an extension and apply it, which also provides the permissions
1029: [13:25:12] <Pynomk> iirc canView canEdit etc have hooks in them so you can extend
1030: [13:25:35] <Pynomk> so provide permissions and do the checks in the same file (dataextension)
1031: [13:25:54] <wmk> ok. 10x
1032: [13:26:21] <Pynomk> but yeah, long run, fork, edit & PR probably better. IDK
1033: [13:27:55] <kinglozzer> I have serious love for Injector rn
1034: [13:28:09] <kinglozzer> DMS is so fucking broken I needed to replace DMSUploadField completely
1035: [13:28:15] <kinglozzer> 3 lines in _config.yml later <3333
1036: [13:31:54] <Pynomk> kinglozzer: rn?
1037: [13:31:59] <Pynomk> right now?
1038: [13:32:03] <kinglozzer> Pynomk: aye
1039: [13:32:07] <Pynomk> but yeh, injector so <3
1040: [13:32:20] <Pynomk> although, I've noticed some issues when you subclass the class you're replacing.
1041: [13:32:29] <Pynomk> can't say when where how or why though.
1042: [13:33:00] <kinglozzer> Pynomk: Mm that's what I'm doing, has been fine so far though so fingers crossed
1043: [13:33:19] <Pynomk> yeh, idk what I was up to, but I remember there being an issue.
1044: [13:33:50] <Pynomk> probably soemthing to do with autoloader loading file not parent class file and thus unknown class issue... or something like that.
1045: [13:34:01] <Pynomk> i can't remember
1046: [13:34:23] <Pynomk> I just remember going "huh... I don't remember that being a thing..."
1047: [13:35:13] * g4b0_ quit (Ping timeout: 260 seconds)
1048: [13:45:01] * nonconformatevi quit (Quit: Sto andando via)
1049: [13:53:27] * g4b0_ has joined #silverstripe
1050: [14:01:25] * spronk2 quit (Quit: spronk2)
1051: [14:02:27] <kinglozzer> Man, titles for project managers get weirder and weirder
1052: [14:02:58] <kinglozzer> "Agile" I can cope with, but "ScrumMaster"?! Come on!
1053: [14:03:32] <kinglozzer> It sounds cool, I'll concede
1054: [14:03:36] <kinglozzer> Just... weird :P
1055: [14:07:14] * muskie9 is now known as _muskie9_
1056: [14:07:17] * _muskie9_ is now known as muskie9
1057: [14:10:50] * deschebbs quit (Quit: User terminated!)
1058: [14:11:50] * steveheyes has joined #silverstripe
1059: [14:11:57] <steveheyes> hey everyone :)
1060: [14:12:41] <steveheyes> i could do with some help if anyone can spare a few minutes?
1061: [14:12:58] <steveheyes> i’m using TinyMCE with tables and it’s inserting and saving fine
1062: [14:13:15] <steveheyes> but when I reload the page after saivng the page it strips out the tags to do with table.
1063: [14:13:30] <steveheyes> it’s in the database but not displaying in the TinyMCE editor
1064: [14:13:49] <steveheyes> I’m not overiding any valid_fields settings anywhere
1065: [14:14:05] <steveheyes> anyone got any ideas where I can look to fix my issue?
1066: [14:15:19] <kinglozzer> steveheyes: Is the HTML all valid? Like, you've not got an unclosed tag somewhere else in the TinyMCE field or anything?
1067: [14:15:27] <kinglozzer> I've never encountered that before :/
1068: [14:15:32] <steveheyes> i know, me neither
1069: [14:15:37] <steveheyes> i’ll have a look :)
1070: [14:16:14] <kinglozzer> I think it parses the HTML before loading (and before saving), so that _could_ cause it I guess
1071: [14:16:53] <steveheyes> it looks legit
1072: [14:18:19] <kinglozzer> steveheyes: As far as I know, this function is the only thing that parses the HTML before displaying it: https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/HtmlEditorField.php#L70-L95
1073: [14:18:19] <steveheyes> this is the HTML - http://www.sspaste.com/paste/show/54217c3e18fd7
1074: [14:18:53] <steveheyes> no other HTML
1075: [14:19:08] <steveheyes> ok. i’ll dig in with xdebug. see hwat I can find
1076: [14:20:15] <kinglozzer> steveheyes: Not much help, but that HTML works fine for me :P
1077: [14:20:32] <kinglozzer> It replaces the spaces with &nbsp;, but it works
1078: [14:20:34] <steveheyes> ok, well at least I know it’s something in my system then
1079: [14:20:44] <steveheyes> by system i mean set up
1080: [14:26:32] <wmk> steveheyes, i guess you'll have to define the allowed tags for tinymce
1081: [14:27:06] <steveheyes> ok, i got it working.
1082: [14:27:09] <steveheyes> I’m not sure how.
1083: [14:27:16] <steveheyes> I think I just needed a flush or something
1084: [14:27:31] <wmk> or that ;)
1085: [14:27:39] <steveheyes> *sigh* thanks for your help wmk and kinglozzer
1086: [14:28:37] <wmk> np
1087: [14:41:44] <ss31noob> is there a possibility to add a new option in the part of ss3 admin wherein you can do the Split Mode, Preview Mode, and Edit Mode ?
1088: [14:43:26] * Adesso quit (Quit: EOD)
1089: [14:52:12] <kinglozzer> ss31noob: In _theory_ it's possible, but it'd be very difficult
1090: [14:53:05] <kinglozzer> framework/templates/Includes/LeftAndMain_ViewModeSelector.ss contains the view options, you'd need to override that template to start with. After that, I've no idea
1091: [14:57:54] * UndefinedOffset quit (Quit: Leaving.)
1092: [14:58:30] * toddvalentine has joined #silverstripe
1093: [15:05:28] * dangerdan has joined #silverstripe
1094: [15:05:49] * steveheyes has left #silverstripe
1095: [15:08:01] <dangerdan> am i right in assuming that yml config files can configure properties on any given class? not just set properites on set classes?
1096: [15:08:05] * Otterpocket has joined #silverstripe
1097: [15:08:54] <dangerdan> i'm trying to use it to assign values to some statics on a class i have created, though it doesnt seem to be working. silverstripe is definitely reading the config file as the other rules are working fine
1098: [15:09:07] <Otterpocket> Am I right in thinking, methods in silverstripe can be either lower or uppercase?
1099: [15:14:13] * Shrike_Finland has joined #silverstripe
1100: [15:16:45] <Pynomk> dangerdan: don't even need classes.
1101: [15:16:58] <Pynomk> dangerdan: you don't assign values TO statics.
1102: [15:17:14] <Pynomk> statics create default values in the config.
1103: [15:17:17] <dangerdan> ok so how do i access the values?
1104: [15:17:28] <Pynomk> $this->config()->name
1105: [15:17:37] * ss31noob quit (Ping timeout: 246 seconds)
1106: [15:17:38] <dangerdan> right okay
1107: [15:17:42] <Pynomk> Config::inst()->get('name', 'key')
1108: [15:17:48] <Pynomk> something like that
1109: [15:18:15] <Pynomk> Otterpocket: methods can be any case in PHP. It's not an SS thing.
1110: [15:18:22] <dangerdan> so in the YML what should i be writing?
1111: [15:18:25] <dangerdan> Config:
1112: [15:18:26] <dangerdan> ?
1113: [15:18:28] <Pynomk> no
1114: [15:18:58] <Pynomk> I don't think you're getting the concept here because of the way things are naturally bound to classes.
1115: [15:19:14] <Pynomk> config is a system to itself.
1116: [15:19:52] <Pynomk> private statics are ... well private. You can't access them (from other classes). You cannot update them. You should not reference them (from within that class). Use the config system.
1117: [15:20:19] <dangerdan> yeah, so in the YML if i want to use the config system, i would use Config: and then set keys under that
1118: [15:20:21] <Pynomk> in anything that inherits from Object (most things in SS), config is bound to the object magically. $this->config() will get it.
1119: [15:20:27] <Pynomk> no
1120: [15:20:38] <dangerdan> oh okay
1121: [15:20:44] <Pynomk> WhateverYouWantBeItAClassOrNot:
1122: [15:20:48] <Pynomk> key: value
1123: [15:20:53] <dangerdan> got it
1124: [15:21:36] <Pynomk> http://doc.silverstripe.org/framework/en/trunk/topics/configuration
1125: [15:21:59] <Pynomk> dangerdan: specifically: http://doc.silverstripe.org/framework/en/trunk/topics/configuration#short-hand-access
1126: [15:24:32] <dangerdan> ok, my class is an extension, so because it doesnt inherit from object, do i need to just do Config::inst() ?
1127: [15:24:32] * zfmf quit ()
1128: [15:25:29] <Pynomk> yup
1129: [15:25:45] <Pynomk> or the static accessor if it's a config option from another class
1130: [15:27:07] <dangerdan> what do you mean sorry?
1131: [15:28:01] <dangerdan> i've got it working anyway so thanks
1132: [15:30:54] <Pynomk> well if you read the docs I linked...
1133: [15:31:08] <Pynomk> This also works statically: MyClass::config()->my_property; // getter MyClass::config()->my_property = 2; // setter
1134: [15:31:25] * Shrike_Finland quit (Quit: Leaving.)
1135: [15:31:52] <kinglozzer> Pynomk: Halp, server has slower to a crawl
1136: [15:32:06] <Pynomk> kinglozzer: reboot all the things
1137: [15:32:17] <Pynomk> then go home while it's coming back up.
1138: [15:32:28] <Pynomk> oh fuck, it's only 4:30, not 5:30
1139: [15:32:35] * dangerdan quit (Quit: Page closed)
1140: [15:32:36] <Pynomk> oh well, do it anyway
1141: [15:32:45] <kinglozzer> Pynomk: It's a managed one so I don't have access to reboot
1142: [15:32:54] <kinglozzer> I'd email them, but it'll take them a while to respond/do anything
1143: [15:33:02] <kinglozzer> Just trying to work out wtf is happen
1144: [15:33:22] * Robke quit (Ping timeout: 246 seconds)
1145: [15:33:38] <kinglozzer> Well, mysqld is using 5692m shared memory
1146: [15:33:54] <kinglozzer> That might have something to do with it
1147: [15:33:54] <Pynomk> service mysqld restart
1148: [15:33:59] <Pynomk> like I said...
1149: [15:34:02] <Pynomk> reboot all the things
1150: [15:34:07] * UndefinedOffset has joined #silverstripe
1151: [15:34:22] <kinglozzer> Pynomk: I can't reboot -_- they don't trust us with that..
1152: [15:34:23] <Pynomk> err, service restart mysqld
1153: [15:34:25] <Pynomk> whichever
1154: [15:34:34] <Pynomk> kinglozzer: not physically -.-
1155: [15:34:44] <kinglozzer> Which is why I'm advocating digitalocean :D
1156: [15:34:55] <kinglozzer> Pynomk: No, as in, we have no permissions on the server
1157: [15:34:57] <kinglozzer> like, at all
1158: [15:34:59] <Pynomk> restart all the daemons, whatever.
1159: [15:35:06] <Pynomk> oh, well then just ride it out.
1160: [15:35:10] <Pynomk> say there's ntohing you can do.
1161: [15:35:13] <Pynomk> problem solved.
1162: [15:35:20] <Pynomk> dust hands, bring up digital ocean again.
1163: [15:35:35] <Pynomk> doesn't UK data have to be hosted in the UK though?
1164: [15:35:44] <Pynomk> because... fucked up laws or some shit
1165: [15:35:58] <Pynomk> (actually I kinda don't mind that one)
1166: [15:36:01] <kinglozzer> Pynomk: DigitalOcean has UK servers
1167: [15:36:07] <Pynomk> oh yup, cool.
1168: [15:36:08] <Pynomk> LUCKY YOU
1169: [15:36:16] <Pynomk> NZ has no servers, anywhere :<
1170: [15:36:19] * jenniferaslan has joined #silverstripe
1171: [15:36:33] <Pynomk> there are NZ hosting cos, but they're all like £1000000000 a year
1172: [15:36:44] <Pynomk> err, month.
1173: [15:36:44] <Pynomk> whatever
1174: [15:36:49] <Pynomk> you get the idea
1175: [15:37:00] <Pynomk> maybe even weekley
1176: [15:38:23] <Pynomk> I did see one for $1 a day though... but you got the cluster slice equivalent of a raspberry pi.
1177: [15:40:07] <kinglozzer> lol Pynomk
1178: [15:40:44] <Pynomk> kinglozzer: where to see where digital ocean host?
1179: [15:41:08] <kinglozzer> Pynomk: Idk, that's what I was looking for. Nothing on frontend, but when I go to create a droplet the options are...
1180: [15:41:24] <kinglozzer> New York, Amsterdam, San Francisco, Singapore, London
1181: [15:41:42] * lerni quit (Remote host closed the connection)
1182: [15:41:46] <Pynomk> Singapore closest thing to home... not even an Aus.
1183: [15:42:05] <Pynomk> AWS has Aus. Rimu has Aus. Linode probably does too.
1184: [15:42:51] <Pynomk> But pretty much nothing has NZ :<
1185: [15:42:53] <kinglozzer> Mm, we looked at AWS but it's so expensive compared to others
1186: [15:43:08] <kinglozzer> And confusing as fuck
1187: [15:45:20] <Pynomk> lol, $38 a month for 2Gb rams, 4Gb disks, 15Gb traffics.
1188: [15:45:26] <Pynomk> GG NZ HOSTING
1189: [15:45:30] <Pynomk> (Rimu)
1190: [15:50:39] * steveheyes has joined #silverstripe
1191: [15:50:44] <steveheyes> hey all :)
1192: [15:51:04] <steveheyes> has anyone have any experience with oembed in SS3?
1193: [15:51:42] <steveheyes> I’m getting 500 errors whenever I am trying to add a Youtube/Flickr/Vimeo via the “From the web” tab?
1194: [15:51:51] <steveheyes> wondered if anyone experienced the same?
1195: [15:51:52] * g4b0_ quit (Quit: Sto andando via)
1196: [15:58:03] <steveheyes> anyone able to help? :)
1197: [16:00:44] <kinglozzer> steveheyes: Do you have curl enabled?
1198: [16:01:15] <kinglozzer> Also, check error logs to see what the actual error is
1199: [16:02:01] <steveheyes> i’ll check
1200: [16:02:19] <steveheyes> i pressume it is, but I didn’t actually build the vagrant box. My colluege did
1201: [16:11:39] <steveheyes> i think it is
1202: [16:12:49] <steveheyes> checking the errors now :)
1203: [16:12:57] <steveheyes> kinglozzer: thanks
1204: [16:13:24] <kinglozzer> steveheyes: what was it? :)
1205: [16:13:44] <steveheyes> kinglozzer: oh just thanking you for the help so far!
1206: [16:13:55] * micahsheets has joined #silverstripe
1207: [16:13:56] <kinglozzer> Oh :P thought you'd fixed it
1208: [16:14:10] <steveheyes> heh not yet ;)
1209: [16:15:45] * wmk quit (Ping timeout: 260 seconds)
1210: [16:17:10] <steveheyes> so I have curl installed and nothing in the logs :(
1211: [16:21:36] <steveheyes> I’m getting a curl error saying “Resolving timed out after 5531 milliseconds”
1212: [16:23:06] <kinglozzer> Hmm, connection is timing out after 5 seconds
1213: [16:23:32] <kinglozzer> Either there's an issue with the Oembed provider (i.e. YouTube or Vimeo's servers) or it's another server config issue
1214: [16:23:53] <kinglozzer> i.e. ports or something complicated I know nothing about :P
1215: [16:26:37] * Otterpocket quit (Quit: WeeChat 0.4.1)
1216: [16:31:38] <steveheyes> hmm, its defo something on my vagrant machine
1217: [16:31:43] <steveheyes> my dev site seems to work fine
1218: [16:42:39] <Pynomk> increase curl timeout limit
1219: [16:42:42] <Pynomk> or use curl from the cli
1220: [16:42:45] <Pynomk> see what happens
1221: [16:42:56] <Pynomk> but... can't help further sorry. Gotta go home!
1222: [16:42:58] * Pynomk quit ()
1223: [16:52:02] * ARNHOE quit ()
1224: [16:52:29] * lerni has joined #silverstripe
1225: [16:57:04] * lerni quit (Ping timeout: 250 seconds)
1226: [16:57:24] * steveheyes quit (Quit: steveheyes)
1227: [17:17:04] * muskie9 is now known as _muskie9_
1228: [17:17:06] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1229: [17:23:38] * UndefinedOffset quit (Quit: Leaving.)
1230: [17:30:14] * muskie9 has joined #silverstripe
1231: [17:34:40] * lerni has joined #silverstripe
1232: [17:38:44] * lerni quit (Remote host closed the connection)
1233: [17:40:18] * gelignite has joined #silverstripe
1234: [17:42:19] * lerni has joined #silverstripe
1235: [17:46:56] * lerni quit (Remote host closed the connection)
1236: [18:07:15] * azureRaven has joined #silverstripe
1237: [18:07:32] * CodeTrap has joined #silverstripe
1238: [18:08:46] * guci0 quit (Ping timeout: 246 seconds)
1239: [18:14:28] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1240: [18:51:00] * wmk has joined #silverstripe
1241: [18:59:14] * UndefinedOffset has joined #silverstripe
1242: [19:26:33] * wmk quit (Ping timeout: 260 seconds)
1243: [19:57:29] * Kingy[a] is now known as Kingy
1244: [20:00:31] * toddvalentine quit ()
1245: [20:10:10] * Olliepop has joined #silverstripe
1246: [20:13:53] * lerni has joined #silverstripe
1247: [20:16:15] * Stomach has joined #silverstripe
1248: [20:19:16] * lerni quit (Remote host closed the connection)
1249: [20:21:29] <Stomach> shaved heads are so refreshing
1250: [20:27:27] * UndefinedOffset quit (Quit: Leaving.)
1251: [20:31:58] * Ryan-Toast has joined #silverstripe
1252: [20:42:09] * micahsheets quit (Quit: micahsheets)
1253: [20:55:33] * azureRaven has joined #silverstripe
1254: [20:57:09] * Ryan-Toast quit (Quit: Ryan-Toast)
1255: [21:04:45] * Ryan-Toast has joined #silverstripe
1256: [21:06:44] * micmania1 has joined #silverstripe
1257: [21:09:23] * Phlunk3 has joined #silverstripe
1258: [21:16:28] * hailwood has joined #silverstripe
1259: [21:37:39] * UncleCheese has joined #silverstripe
1260: [21:40:05] * UncleCheese quit (Client Quit)
1261: [21:52:35] * UncleCheese has joined #silverstripe
1262: [21:55:57] <Stomach> good morning everybody
1263: [21:57:14] <adrexia> morning
1264: [21:57:52] <Ryan-Toast> OH GOD NEW DOTA PATCH ITS OUT, AND IT’S HUGE
1265: [21:58:52] <Stomach> yay! ?
1266: [21:58:55] <adrexia> It's too early in the day for all caps
1267: [21:59:01] <adrexia> I need more coffee
1268: [21:59:33] <adrexia> ...where is everyone. matmatt is the only ops?
1269: [22:01:12] <Stomach> ss23 is hiding out
1270: [22:01:19] * gelignite quit (Quit: http://bit.ly/nkczDT)
1271: [22:06:03] <Kingy> today is a good day to be working at home
1272: [22:06:23] * willr has joined #silverstripe
1273: [22:06:46] * willr quit (Changing host)
1274: [22:06:46] * willr has joined #silverstripe
1275: [22:10:46] * muskie9 is now known as _muskie9_
1276: [22:10:46] * _muskie9_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1277: [22:23:09] * BPower has joined #silverstripe
1278: [22:24:25] <BPower> UncleCheese: I'm using this module: https://github.com/burnbright/silverstripe-hasonefield -- it doesn't take BetterButtons into account, so the next/prev buttons cause trouble. Can you tell me how to disable them?
1279: [22:24:45] <BPower> Not globally, though.
1280: [22:26:58] <UncleCheese> on a per-dataobject basis, you can use getBetterButtonsUtils()
1281: [22:27:34] <UncleCheese> BPower https://github.com/unclecheese/silverstripe-gridfield-betterbuttons#creating-a-custom-action
1282: [22:33:17] <BPower> Hm.. Any possibility it's more flexible? I don't want do disable it entirely on this class (sometimes records in this class are has_many).
1283: [22:33:48] <BPower> I only want to disable it when it's a has_one
1284: [22:34:50] <BPower> I guess it's the other way around -- BetterButtons doesn't take into account that a gridfield could be based on a has_one relationship, not a *_many relationship.
1285: [22:34:55] <adrexia> I'm not sure the gridfield interface ever knows about the relation
1286: [22:35:20] <adrexia> (ie you get the same interface regardless)
1287: [22:36:34] <BPower> any thoughts, UncleCheese?
1288: [22:36:36] <adrexia> the interface is more about the dataobject, than the relation
1289: [22:37:04] <BPower> adrexia: not in the case of has_many or many_many
1290: [22:37:13] <adrexia> different edit form ?
1291: [22:37:21] <UncleCheese> Yeah, i guess I don't get what the issue is
1292: [22:37:30] <UncleCheese> what do you mean "disable it when it's a has_one?"
1293: [22:39:12] <BPower> UncleCheese: GridFields are generally used to display a list of has_many/many_many related objects. With the module I mentioned above, it's extending GridField to work with has_one<>belongs_to relationships.
1294: [22:39:43] <UncleCheese> ok
1295: [22:40:50] <BPower> BetterButtons allows you to navigate prev/next within the objects on the relationship. In ModelAdmin, this defaults to navigating through ALL objects.
1296: [22:42:27] <BPower> What's happening in my case is a "Promo" has_one "URL". Clicking to edit the URL object works. But in this view prev, next and new record has no place -- only one record is allowed via has_one.
1297: [22:43:20] <Stomach> BPower - you could check to see whether the parent id is of a class type which has a has one, then dynamically remove the prev/next buttons using the getBetterButtonsUtil that UncleCheese mentioned above
1298: [22:43:39] <UncleCheese> umm
1299: [22:43:48] <UncleCheese> that's if the record is already saved
1300: [22:44:01] <UncleCheese> but i guess that's ok, becuase prev/next shouldn't dispaly in create mode anyway
1301: [22:44:26] <UncleCheese> yeah, there you go..
1302: [22:44:51] <Stomach> the object in a has_one has knowledge of its parent on its second initial load, so it replaces dropdowns for has_many relations with the object its related it
1303: [22:45:00] <Stomach> dunno how that mechanism works, but its annoying sometimes
1304: [22:45:11] <UncleCheese> return ($this->HasOneRelation()->exists()) ? FieldList::create() : parent::getBetterButtonsUtils();
1305: [22:46:45] * azureRaven quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1306: [22:47:09] * azureRaven has joined #silverstripe
1307: [22:47:27] <BPower> I guess that works as a fine band-aid. Where can it be fixed for good, though?
1308: [22:47:52] <adrexia> does the has_one have its own editform?, or does it use the generic one?
1309: [22:48:57] * azureRaven quit (Read error: Connection reset by peer)
1310: [22:49:07] <adrexia> Unclecheese, could an object technically be a hasone relation and a has_many et al?
1311: [22:49:10] <BPower> BetterButtons should be modified to take relationship type into account
1312: [22:49:26] <UncleCheese> BPower what are you looking for be "fixed?"
1313: [22:49:43] <adrexia> Using a gridfield for has one is sort of a hack
1314: [22:49:45] <BPower> UncleCheese: See my last comment. Happy to submit a pull request if you can point me in the right direction.
1315: [22:50:23] <BPower> adrexia: please see the module this is in reference to: https://github.com/burnbright/silverstripe-hasonefield
1316: [22:50:34] <BPower> it's actually the nicest implementation I've found so far.
1317: [22:50:47] <UncleCheese> The issue has much less to do with BetterButtons than it does the monolithic GridFieldDetailForm_ItemRequest class
1318: [22:50:50] <adrexia> oh I see.
1319: [22:50:59] <adrexia> would be nice if it provided its own editform
1320: [22:51:01] <UncleCheese> BetterButtons is essentially a massive bandaid for that problem
1321: [22:51:08] <BPower> haha
1322: [22:51:13] <BPower> yay for bandaids
1323: [22:51:30] <UncleCheese> All grid fields serve a one-size-fits-all request handler for all edit and create requests
1324: [22:51:42] <adrexia> that ^
1325: [22:51:50] <adrexia> but you can override them
1326: [22:52:05] <UncleCheese> and if you look at what better buttons is doing, it's really ugly, but it saves you the trouble of doing all kinds of nasty shit to customise the editing UI
1327: [22:52:26] * joelpittet has joined #silverstripe
1328: [22:52:31] <BPower> Ok - Thanks a ton! I'll look more into it with the dev team later today when I see them. For now, I've got to get to the office or Shane'll be waiting for me!
1329: [22:52:43] <UncleCheese> oh you're an SS dude
1330: [22:53:09] <BPower> Nope.
1331: [22:53:10] <BPower> Marketo
1332: [22:53:14] <UncleCheese> oh wow
1333: [22:53:19] <UncleCheese> yay for sales and leads!
1334: [22:53:50] <BPower> haha I'll be speaking casually tonight at the Sydney meetup.
1335: [22:54:14] <BPower> gotta run. thanks again! peace!
1336: [22:58:44] * joelpittet quit (Remote host closed the connection)
1337: [22:59:13] * BPower quit (Ping timeout: 272 seconds)
1338: [22:59:18] * joelpittet has joined #silverstripe
1339: [23:06:05] * simon_w|work has joined #silverstripe
1340: [23:08:27] * joelpitt_ has joined #silverstripe
1341: [23:08:40] * joelpitt_ quit (Remote host closed the connection)
1342: [23:09:19] * joelpitt_ has joined #silverstripe
1343: [23:11:19] * joelpittet quit (Ping timeout: 244 seconds)
1344: [23:14:15] * joelpittet has joined #silverstripe
1345: [23:14:30] * antmas has joined #silverstripe
1346: [23:14:37] <antmas> morning all
1347: [23:15:02] <Kingy> hey antmas
1348: [23:18:07] * joelpitt_ quit (Ping timeout: 272 seconds)
1349: [23:23:37] * joelpittet quit (Remote host closed the connection)
1350: [23:24:12] * joelpittet has joined #silverstripe
1351: [23:25:56] * UncleCheese quit (Ping timeout: 260 seconds)
1352: [23:28:10] <simon_w|work> Morning minions
1353: [23:28:42] <adrexia> Morning simon_w|work
1354: [23:30:28] <adrexia> http://www.businessinsider.com.au/forex-and-commodities-rat-traders-2014-9
1355: [23:46:46] * Colin[pi] has joined #silverstripe
1356: [23:46:56] * muskie9 has joined #silverstripe
1357: [23:47:03] * joelpitt_ has joined #silverstripe
1358: [23:48:05] <Colin[pi]> morning all
1359: [23:48:25] <Kingy> howdy
1360: [23:48:48] <willr> simon_w|work your tweet was harsh.
1361: [23:49:42] <Ryan-Toast> willr: link?
1362: [23:50:04] <hailwood> Hey guys, does anyone use sunnysideup's ecommerce addon? Wondering if anyone knows what the deal is with the code.google.com repo compared to the github.com repo
1363: [23:50:42] * joelpittet quit (Ping timeout: 245 seconds)
1364: [23:50:56] <willr> AFAIK hailwood no. All integrations I’ve done are burnbright’s (Jez) or SwipeStripe
1365: [23:51:50] <hailwood> willr: Darn, guess I'm on my own with it then - It actually looks like quite a good system, appears to have pretty much everything we need
1366: [23:53:05] * BPower has joined #silverstripe

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