#silverstripe IRC Log

IRC log for 10 August 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:01:27] * Azure quit (Read error: Connection reset by peer)
4: [00:02:09] * Azure has joined #silverstripe
5: [00:04:57] * pweh has joined #silverstripe
6: [00:07:14] * Azure quit (Read error: Connection reset by peer)
7: [00:08:10] * Azure has joined #silverstripe
8: [00:11:38] * Stomach quit (Quit: bye)
9: [00:20:32] * Stomach has joined #silverstripe
10: [00:34:09] * pweh quit (Read error: Connection reset by peer)
11: [01:05:40] * Azure quit (Read error: Connection reset by peer)
12: [01:06:25] * Azure has joined #silverstripe
13: [01:12:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14: [01:16:20] * Stomach quit (Ping timeout: 265 seconds)
15: [01:19:37] * Stomach has joined #silverstripe
16: [01:19:57] * UncleCheese has joined #silverstripe
17: [01:27:28] * Azure quit (Read error: Connection reset by peer)
18: [01:28:07] * Azure has joined #silverstripe
19: [01:29:09] * DanaeNZ quit (Remote host closed the connection)
20: [01:29:33] * Azure quit (Read error: Connection reset by peer)
21: [01:29:43] * DanaeNZ has joined #silverstripe
22: [01:30:23] * Azure has joined #silverstripe
23: [01:31:41] * DanaeNZ quit (Remote host closed the connection)
24: [01:31:41] * Azure quit (Read error: Connection reset by peer)
25: [01:31:53] * DanaeNZ has joined #silverstripe
26: [01:32:43] * Azure has joined #silverstripe
27: [01:33:31] * Azure quit (Read error: Connection reset by peer)
28: [01:34:11] * Azure has joined #silverstripe
29: [01:41:48] * Stomach quit (Quit: zzz)
30: [01:45:04] <ss-helper> SelectionGroup not adding extra attributes - http://stackoverflow.com/questions/38862936/selectiongroup-not-adding-extra-attributes
31: [01:47:28] * Azure quit (Read error: Connection reset by peer)
32: [01:48:51] * Azure has joined #silverstripe
33: [01:55:31] * Azure quit (Read error: Connection reset by peer)
34: [01:56:32] * Azure has joined #silverstripe
35: [02:05:24] * Stomach has joined #silverstripe
36: [02:07:47] * isaac has joined #silverstripe
37: [02:09:11] <isaac> anyone looked at my question http://stackoverflow.com/questions/38862936/selectiongroup-not-adding-extra-attributes? having a bit of trouble understanding why some form fields display attributes and others don't
38: [02:13:28] * Azure quit (Read error: Connection reset by peer)
39: [02:14:32] * Azure has joined #silverstripe
40: [02:18:39] * Stomach quit (Quit: zzz)
41: [02:19:28] * Azure quit (Read error: Connection reset by peer)
42: [02:19:35] <adrexia> isaac - what does SelectionGroup.ss look like?
43: [02:20:30] * Azure has joined #silverstripe
44: [02:21:03] <adrexia> if its just inheriting from Composite field... CompositeField.ss doesn't have the attributes applied
45: [02:21:25] <adrexia> compare CompositeField.ss to one of the fields that is working
46: [02:21:59] * Stomach has joined #silverstripe
47: [02:22:33] * Stomach quit (Client Quit)
48: [02:24:06] <isaac> @adrexia SelectionGroup and CompositeField are part of the framework templates, it looks like it doesn't display the attributes... I'm confused, why is this?
49: [02:24:21] <adrexia> I don't know.
50: [02:25:34] <adrexia> But, one of the issues is that $AttributesHTML actually returns the classes too. You can override templates though.
51: [02:26:14] <adrexia> My bet is that nobody thought anyone would want to add attributes to a composite field
52: [02:26:22] <isaac> :(
53: [02:26:36] <adrexia> are you using it in the cms or frontend?
54: [02:26:38] <isaac> <-- theres always that one person
55: [02:26:42] <isaac> frontend
56: [02:26:55] <isaac> im swapping it out though, going to use angular to show/hide another group
57: [02:27:00] <adrexia> lol - I think many. Tech has chnaged a bit since that template was written
58: [02:27:23] <adrexia> you can override templates
59: [02:27:33] <adrexia> and use a custom one in the frontend
60: [02:28:29] <isaac> nah talked with coworker, SelectionGroup is a bit excessive (repeating code inside the SelectionGroup_Item's), going to stick with just FieldGroup (or something that allows attributes)
61: [02:29:20] <adrexia> ahh sweet as :)
62: [02:31:03] <isaac> @adrexia thanks for the help
63: [02:31:16] <adrexia> no problem :)
64: [02:33:30] * Azure quit (Read error: Connection reset by peer)
65: [02:34:37] * Azure has joined #silverstripe
66: [02:35:34] * isaac quit (Ping timeout: 250 seconds)
67: [02:37:30] * Azure quit (Read error: Connection reset by peer)
68: [02:37:35] <DanaeNZ> Anyone worked with multiple currencies/currency switcher with SilverShop?
69: [02:39:01] * Azure has joined #silverstripe
70: [02:39:19] * Stomach has joined #silverstripe
71: [02:47:29] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
72: [02:53:29] * Azure quit (Read error: Connection reset by peer)
73: [02:54:37] * Azure has joined #silverstripe
74: [02:57:29] * Azure quit (Read error: Connection reset by peer)
75: [02:58:09] * Azure has joined #silverstripe
76: [02:59:34] * Azure quit (Read error: Connection reset by peer)
77: [03:00:38] * Azure has joined #silverstripe
78: [03:03:14] * DanaeNZ quit (Remote host closed the connection)
79: [03:03:28] <Admonish> Hey guys. So im using the silverstripe api module (the one for swagger integration) and it adds a special task for rebuilding api urls and for creating a special swagger.json file. The problem is when I try to run the task I get a permission denied eeror. So what Im woundering is how I would give this task write permissions without opening up a security hole.
80: [03:03:30] * Azure quit (Read error: Connection reset by peer)
81: [03:03:49] <Admonish> Also Im wondering what group that tasks are run under?
82: [03:03:50] * DanaeNZ has joined #silverstripe
83: [03:04:11] * Azure has joined #silverstripe
84: [03:04:12] * Phlunk3 quit (Remote host closed the connection)
85: [03:07:31] * Azure quit (Read error: Connection reset by peer)
86: [03:08:12] * Azure has joined #silverstripe
87: [03:08:16] * DanaeNZ quit (Ping timeout: 264 seconds)
88: [03:09:31] * Azure quit (Read error: Connection reset by peer)
89: [03:10:38] * Azure has joined #silverstripe
90: [03:17:34] * Hailwood quit (Ping timeout: 260 seconds)
91: [03:21:30] * Azure quit (Read error: Connection reset by peer)
92: [03:22:31] * Azure has joined #silverstripe
93: [03:25:30] * Azure quit (Read error: Connection reset by peer)
94: [03:25:57] * UncleCheese has joined #silverstripe
95: [03:26:31] * Azure has joined #silverstripe
96: [03:27:35] * Azure quit (Read error: Connection reset by peer)
97: [03:28:21] * Azure has joined #silverstripe
98: [03:29:56] * Hailwood has joined #silverstripe
99: [03:31:31] * Azure quit (Read error: Connection reset by peer)
100: [03:32:16] * Azure has joined #silverstripe
101: [03:43:29] * Azure quit (Read error: Connection reset by peer)
102: [03:43:54] * DanaeNZ has joined #silverstripe
103: [03:44:15] * Azure has joined #silverstripe
104: [03:45:30] * Azure quit (Read error: Connection reset by peer)
105: [03:46:47] * Azure has joined #silverstripe
106: [03:47:29] * Azure quit (Read error: Connection reset by peer)
107: [03:48:16] * Azure has joined #silverstripe
108: [03:49:37] * Azure quit (Read error: Connection reset by peer)
109: [03:50:43] * Azure has joined #silverstripe
110: [03:59:10] * adrexia_ has joined #silverstripe
111: [04:01:26] * adrexia quit (Ping timeout: 240 seconds)
112: [04:01:29] * Azure quit (Read error: Connection reset by peer)
113: [04:02:39] * Azure has joined #silverstripe
114: [04:06:49] * Stomach quit (Read error: Connection reset by peer)
115: [04:07:12] * adrexia has joined #silverstripe
116: [04:07:27] * Stomach has joined #silverstripe
117: [04:10:06] * adrexia_ quit (Ping timeout: 240 seconds)
118: [04:23:29] * Azure quit (Read error: Connection reset by peer)
119: [04:24:35] * Azure has joined #silverstripe
120: [04:27:30] * Azure quit (Read error: Connection reset by peer)
121: [04:28:31] * Azure has joined #silverstripe
122: [04:28:44] * Azure quit (Read error: Connection reset by peer)
123: [04:30:22] * Azure has joined #silverstripe
124: [04:38:23] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
125: [04:52:09] * spronk has joined #silverstripe
126: [04:53:48] <spronk> moo
127: [04:54:12] <ss23> meow
128: [05:00:33] <spronk> ...anyone used protobufs in php before?
129: [05:02:17] <ss23> heh
130: [05:02:58] <spronk> seems like there's a pecl extension (bleugh), or a php based one with many different forks, that requries pear (bleuughhh)
131: [05:03:32] * Hailwood quit (Remote host closed the connection)
132: [05:03:38] * DanaeNZ quit (Quit: TIME TO FEED)
133: [05:07:12] <spronk> oo
134: [05:07:16] <spronk> https://github.com/protobuf-php/protobuf
135: [05:07:18] <spronk> much better
136: [05:43:31] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
137: [06:37:26] * UncleCheese has joined #silverstripe
138: [06:45:09] <ss-helper> Custom Template not rendering - http://stackoverflow.com/questions/38865882/custom-template-not-rendering
139: [06:54:59] * arnhoe has joined #silverstripe
140: [06:57:13] * arnhoe quit (Client Quit)
141: [06:57:40] * arnhoe has joined #silverstripe
142: [06:58:10] * spronk quit (Quit: I may need a longer sleep timer...)
143: [06:59:23] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
144: [07:04:45] * Stomach quit (Ping timeout: 258 seconds)
145: [07:10:05] * spronk has joined #silverstripe
146: [07:16:57] * kinglozzer quit (Read error: Connection reset by peer)
147: [07:17:24] * kinglozzer has joined #silverstripe
148: [07:48:32] * spronka has joined #silverstripe
149: [07:55:55] * spronk quit (Quit: I may need a longer sleep timer...)
150: [08:04:18] * janneklouman-- has joined #silverstripe
151: [08:09:01] * janneklouman-- quit (Ping timeout: 250 seconds)
152: [08:19:33] * janneklouman-- has joined #silverstripe
153: [08:29:59] * UncleCheese has joined #silverstripe
154: [08:30:54] * lerni has joined #silverstripe
155: [09:06:46] * pweh has joined #silverstripe
156: [09:25:33] * Stomach has joined #silverstripe
157: [09:38:41] * deschebbs has joined #silverstripe
158: [09:59:21] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
159: [10:10:38] * micmania1 has joined #silverstripe
160: [10:32:41] * UncleCheese has joined #silverstripe
161: [10:54:07] * micmania1 quit (Quit: micmania1)
162: [10:55:09] * micmania1 has joined #silverstripe
163: [11:00:04] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
164: [11:04:04] * Stomach quit (Quit: zzz)
165: [11:15:45] * pweh quit (Read error: Connection reset by peer)
166: [12:24:43] * UndefinedOffset has joined #silverstripe
167: [12:29:59] * muskie9 has joined #silverstripe
168: [12:51:38] * micmania1 quit (Quit: micmania1)
169: [13:30:16] <ss-helper> Tracking ID for Silverstripe-Userforms module - http://stackoverflow.com/questions/38874679/tracking-id-for-silverstripe-userforms-module
170: [13:35:22] * janneklouman-- quit (Ping timeout: 244 seconds)
171: [13:42:14] * janneklouman-- has joined #silverstripe
172: [13:45:16] <ss-helper> Silverstripe - Disable enum value in Dropdown - http://stackoverflow.com/questions/38875035/silverstripe-disable-enum-value-in-dropdown
173: [13:45:17] <ss-helper> Styling list in silverstripe template - "[Warning] Missing argument 1 for ViewableData::getField()" - http://stackoverflow.com/questions/38874912/styling-list-in-silverstripe-template-warning-missing-argument-1-for-viewab
174: [13:51:33] * arnhoe_ has joined #silverstripe
175: [13:51:33] * arnhoe quit (Read error: Connection reset by peer)
176: [15:01:19] * arnhoe_ quit ()
177: [15:01:44] * WebDevB has joined #silverstripe
178: [15:02:06] <WebDevB> Hey guys, i have an ArrayList that i'm waiting to remove duplicates from... is there an easy way in silverstripe?
179: [15:02:30] <WebDevB> I've tried removeDuplicates('id'); but it doesn't work... it removes everything.
180: [15:05:00] <kinglozzer> WebDevB: Tried $list->removeDuplicates(); without an argument?
181: [15:05:06] <kinglozzer> ID is usually uppercase, so maybe it's that
182: [15:06:18] <WebDevB> get PHP Fatal error: Call to a member function sort() on null in that then.
183: [15:07:08] <WebDevB> https://codeshare.io/179tM
184: [15:08:15] <WebDevB> kinglozzer: any ideas?
185: [15:09:52] * deschebbs quit (Quit: Konversation terminated!)
186: [15:10:37] <kinglozzer> WebDevB: change $data = $data->removeDuplicates(); to just $data->removeDuplicates();
187: [15:10:49] <kinglozzer> For some reason, removeDuplicates() doesn't include "return $this;"
188: [15:10:59] <kinglozzer> because SilverStripe isn't very consistent ;)
189: [15:16:15] <WebDevB> perfect thanks kinglozzer
190: [15:26:59] <WebDevB> 1 last question kinglozzer
191: [15:27:05] <WebDevB> i have a weird date issue...
192: [15:27:43] <WebDevB> so this works $data = $data->sort('Timestamp DESC'); to a degree but then 1/2 way through the array we'll get a record that should be at the top...
193: [15:27:45] <WebDevB> any ideas/
194: [15:30:09] <kinglozzer> WebDevB: It could be that php's strtotime() is reading the date wrong
195: [15:30:30] <kinglozzer> For example http://stackoverflow.com/questions/2891937/strtotime-doesnt-work-with-dd-mm-yyyy-format
196: [15:30:33] <WebDevB> kinglozzer: anyway around this... the client is going mad about it.
197: [15:30:44] <WebDevB> the column type in the db is set to date
198: [15:30:58] <kinglozzer> WebDevB: IIRC the "timestamp" field comes from strtotime($date) ?
199: [15:31:11] <WebDevB> kinglozzer: yea correct.
200: [15:31:18] <WebDevB> you probably know this app better than me.
201: [15:31:20] <WebDevB> :-)
202: [15:31:24] <kinglozzer> :P
203: [15:36:42] <WebDevB> kinglozzer: so in the db it's held as yyyy-mm-dd
204: [15:39:43] <WebDevB> any other ideas kinglozzer
205: [15:41:01] <kinglozzer> WebDevB: Not sure, I'd suggest trying echo date('Y-m-d', strtotime($dbValue)); and check if PHP is reading the date correctly
206: [15:43:44] * janneklouman-- quit (Ping timeout: 250 seconds)
207: [15:49:00] <WebDevB> kinglozzer: managed to get it working... only issue now is, i'm trying to use
208: [15:49:13] <WebDevB> $Date.Format('d/m/Y'); but it's just blank.
209: [15:50:11] <kinglozzer> WebDevB: Is the db field called Date?
210: [15:50:25] <kinglozzer> If so, are you overriding it somewhere after you fetch it from the database?
211: [15:50:57] <WebDevB> That's what I was doing but i've removed that now i was exploding it as this was the problem I was having the first time... so i did that to make it pretty but obvs that broke something.
212: [15:51:12] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
213: [15:52:14] <WebDevB> It's driving me crazy, once I can sort this I can wash my hands with it... haha
214: [15:52:16] <WebDevB> until it breaks.
215: [15:52:18] <WebDevB> :)
216: [15:52:47] <kinglozzer> WebDevB: Can you paste that massive function again? I can't remember it :P
217: [15:52:56] <WebDevB> haha kinglozzer
218: [15:52:59] <WebDevB> 1 sec.
219: [15:53:36] <WebDevB> kinglozzer: it's got bigger
220: [15:53:37] <WebDevB> https://codeshare.io/za1p2
221: [15:53:50] <kinglozzer> :P
222: [15:55:09] <kinglozzer> Okay WebDevB, where you're passing $vehicle_date = $auction_date->Date to the _addResult() function, change it to $vehicle_date = $auction_date->dbObject('Date')
223: [15:55:14] <kinglozzer> Hopefully that'll do it
224: [15:57:05] <WebDevB> kinglozzer: got this Call to a member function dbObject() on null
225: [15:58:13] <WebDevB> kinglozzer: have i missed something?
226: [15:59:40] <kinglozzer> Err, not sure WebDevB
227: [15:59:56] <kinglozzer> Sorry, I've gotta go though!
228: [16:00:00] <kinglozzer> good luck
229: [16:00:10] * kinglozzer quit ()
230: [16:21:07] * lerni quit ()
231: [16:27:04] * WebDevB quit ()
232: [19:06:23] * Stomach has joined #silverstripe
233: [19:36:13] * Stomach quit (Quit: zzz)
234: [19:52:48] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
235: [19:53:16] * Nightjar has joined #silverstripe
236: [20:11:55] * Stomach has joined #silverstripe
237: [20:16:46] * UndefinedOffset quit (Quit: Leaving.)
238: [20:57:06] * UncleCheese has joined #silverstripe
239: [20:59:29] * adrexia_ has joined #silverstripe
240: [21:15:24] <ss-helper> Can Director::forceWWW() and Director::forceSSL() be used together in Silverstripe? - http://stackoverflow.com/questions/38883646/can-directorforcewww-and-directorforcessl-be-used-together-in-silverstri
241: [21:15:25] <ss-helper> SilverStripe - Disable Enum values in a DropdownField - http://stackoverflow.com/questions/38875035/silverstripe-disable-enum-values-in-a-dropdownfield
242: [21:18:58] * muskie9 has joined #silverstripe
243: [21:19:28] * Stomach quit (Quit: zzz)
244: [21:20:15] * Stomach has joined #silverstripe
245: [21:23:20] * Hailwood has joined #silverstripe
246: [21:30:27] * Stomach quit (Quit: zzz)
247: [21:42:18] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
248: [21:44:13] * DanaeNZ has joined #silverstripe
249: [21:45:57] * UncleCheese has joined #silverstripe
250: [21:47:01] * UncleCheese quit (Client Quit)
251: [21:47:53] <DanaeNZ> moooooooornin
252: [21:56:19] * Stomach has joined #silverstripe
253: [22:03:05] * UncleCheese has joined #silverstripe
254: [22:46:54] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
255: [22:48:47] * muskie9 has joined #silverstripe
256: [22:58:41] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
257: [23:01:41] * muskie9 has joined #silverstripe
258: [23:08:03] * Stomach quit (Quit: zzz)
259: [23:11:58] * Stomach has joined #silverstripe
260: [23:12:04] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
261: [23:29:39] * micmania1 has joined #silverstripe

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