#silverstripe IRC Log

IRC log for 19 March 2015

All timestamps are in UTC.

1: [00:00:14] * MichalKleiner quit (Ping timeout: 256 seconds)
2: [00:07:50] * novaweb has joined #silverstripe
3: [00:11:04] * MichalKleiner| is now known as MichalKleiner
4: [00:26:06] * muskie9_afk is now known as muskie9
5: [00:34:16] <Stomach> Hailwood - yeah you can modify the fields
6: [00:34:19] <Stomach> oh, you got it?
7: [00:34:20] <Stomach> mint
8: [00:35:31] <Hailwood> Stomach, Yeah, via setDisplayFields() using EditableColumns, although it took me ages to work out how to setup the headers again
9: [00:36:37] * muskie9 is now known as muskie9_afk
10: [00:42:02] <Hailwood> With GridfieldEditableColumns is it possible to toggle the editable state?
11: [00:42:36] <Hailwood> Would be great if adding the GridFieldEditButton to a gridfield that has GridFieldEditableColumns would make the edit button enable editing, and change to a save button..
12: [00:44:18] * antmas quit (Quit: Page closed)
13: [00:47:51] * antmas has joined #silverstripe
14: [00:47:57] <Stomach> Hailwood - PR
15: [00:48:20] <Hailwood> Stomach, PR = Pull Request?
16: [00:48:24] <Stomach> yaaah
17: [00:52:30] * travis-ci has joined #silverstripe
18: [00:52:31] <travis-ci> tractorcow/silverstripe-cms#43 (pulls/3.0/fix-page-create - 64955e5 : Damian Mooyman): The build passed.
19: [00:52:31] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/7485444b648a...64955e57d123
20: [00:52:31] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54960592
21: [00:52:31] * travis-ci has left #silverstripe
22: [00:52:59] <novaweb> Sorry guys, disconnected before. Good Git Visualisation tool for OS X?
23: [00:53:48] <antmas> novaweb: like a gui?
24: [00:53:53] <novaweb> Yeah
25: [00:54:00] <novaweb> for seeing branch streams etc
26: [00:54:05] <Ryan-Toast> the default one?
27: [00:56:16] <ss23> `git`
28: [00:56:17] <ss23> don't be a nooby
29: [00:56:18] <ss23> :O
30: [00:57:00] <antmas> have heard people talk a bit about Gitbox
31: [00:57:08] <antmas> could be worth a gander novaweb
32: [00:57:18] <Hailwood> Stomach, Yeah if I get a chance I think I will. Next question - When I am on /admin/pages/edit/show/52 I have my gridfield there which relates to Page -manymany- DocumentCategory (as DocumentCategories). But when I click the View button it tries to send me to "admin/pages/edit/EditForm/field/DocumentCategories/item/14/view" but I am getting the error
33: [00:57:19] <Hailwood> Action 'item' isn't available on class GridField.
34: [00:57:31] <antmas> http://gitboxapp.com/
35: [00:57:38] <Stomach> novaweb - use SourceTree
36: [01:07:50] <antmas> yay Steam NZD currency :D
37: [01:11:01] <antmas> now I can easily see how much money I'm wasting before I waste it
38: [01:11:55] <Ryan-Toast> antmas: cities: skylines. Get amoungst it.
39: [01:12:08] <antmas> Ryan-Toast: tempted.
40: [01:12:14] <Ryan-Toast> only $30
41: [01:12:58] <antmas> is that all?
42: [01:13:03] <antmas> it looks so good
43: [01:13:49] <Ryan-Toast> Played it all of last night, was great./
44: [01:13:56] <Ryan-Toast> roads are hard :/
45: [01:14:05] <Ryan-Toast> Traffic keeps fucking my cities.
46: [01:14:15] <Ryan-Toast> It doesn’t even spit first.
47: [01:14:31] <antmas> yeah it seems traffic and dams are the hardest part :P
48: [01:15:05] <Ryan-Toast> I keep re-starting the map to find the best initial layout
49: [01:15:28] <Ryan-Toast> I want to play tonight, but I have someone coming around to watch anime.
50: [01:15:42] <spronk2> BA BA BA BA
51: [01:15:58] <antmas> what anime?
52: [01:16:12] <Ryan-Toast> NGE: Rebuilds
53: [01:16:40] * antmas googles
54: [01:17:02] <antmas> oh
55: [01:17:03] <antmas> NGE
56: [01:17:05] <antmas> <3
57: [01:17:14] <Ryan-Toast> Yarp, she’s never seen them before.
58: [01:17:43] <antmas> ohhhhhhhhhhhhhhhh anime date night
59: [01:17:47] <antmas> Ryan-Toast: you dog
60: [01:17:52] <antmas> ;)
61: [01:18:11] <Ryan-Toast> ryan-too-lazy-to-do-anything-but-lay-in-bed-night
62: [01:18:24] * antmas plays saxophone quietly
63: [01:18:24] <Ryan-Toast> and-eat-burgerfuel
64: [01:21:37] <antmas> dat awkward moment when you forget to set work phone back from 'at lunch'
65: [01:21:41] <antmas> for 4 days
66: [01:22:09] * Tanger has joined #silverstripe
67: [01:23:19] <antmas> Tanger: o/
68: [01:23:43] <Stomach> I had burgerfuel last night
69: [01:23:47] <Stomach> was disappoint.
70: [01:24:05] * antmas cries a little bit
71: [01:24:09] <antmas> Stomach: DON'T SAY THAT
72: [01:24:14] <Stomach> WELL ITS TRUE
73: [01:25:07] <Ryan-Toast> Stomach: what did you have?
74: [01:25:21] <Stomach> a burnout, kumara chips and some of those motobites
75: [01:25:26] <Stomach> the motobites were terribubble
76: [01:25:37] <Stomach> hahahah spherical humour
77: [01:25:52] * antmas adds terribubble to vocab
78: [01:26:06] <antmas> woah Eminem's daughter
79: [01:26:08] <antmas> o.O
80: [01:26:28] <Ryan-Toast> Stomach: Way to get the worst things at BFuel
81: [01:26:48] <Stomach> WAY TO ALWAYS TALK IT UP
82: [01:27:04] <Ryan-Toast> Bastard - No beetroot, add an egg. Spud Fries, with extra Aoili, and a L&P
83: [01:27:21] <antmas> fuck beetroot
84: [01:28:24] <spronk2> https://www.kickstarter.com/projects/1014603694/forge-solid-denser-than-solid-uranium?ref=jellop
85: [01:28:24] <spronk2> hoyl fuck
86: [01:28:26] <spronk2> this is the best kickstarter ever
87: [01:29:41] <MichalKleiner> https://github.com/swirlycheetah/slack-brewbow
88: [01:29:50] <MichalKleiner> now using this to decide who makes the tea :-D
89: [01:30:37] <antmas> spronk2: that's weird
90: [01:30:40] <spronk2> ITS AWESOME
91: [01:30:43] <spronk2> ITS JUST A FUCKING BLOCK OF METAL
92: [01:30:44] <spronk2> BUT I WANT IT SO MUCH
93: [01:30:52] <spronk2> also
94: [01:30:56] <spronk2> a 3.8cm cube that weighs 1KG!?!?!?!?
95: [01:30:57] <spronk2> YES!
96: [01:31:35] <spronk2> or even better
97: [01:31:39] <spronk2> a 5cm cube that weighs 2.37KG
98: [01:31:40] <antmas> 2kg?
99: [01:31:43] <antmas> :P
100: [01:32:13] <antmas> my old HS had a block that was about 10cm across
101: [01:32:39] <spronk2> duuude
102: [01:32:44] <spronk2> im gonna get a mini cube.
103: [01:32:52] <spronk2> ugh
104: [01:32:54] <spronk2> but i want the full 1kg cube
105: [01:32:55] <spronk2> because
106: [01:32:56] <spronk2> how cool would that be
107: [01:34:12] <spronk2> aw
108: [01:34:14] <spronk2> its so expensive
109: [01:34:14] <antmas> I wonder if it would be cheaper to just get som tungsten that wasn't a cube
110: [01:34:24] <spronk2> but it wouldn't be nearly as cool
111: [01:36:10] <MichalKleiner> I wished I could come with such an idea first :-D
112: [01:36:17] <MichalKleiner> cubed metal
113: [01:38:30] <antmas> you can buy tungsten cubes
114: [01:38:32] <antmas> for cheaper
115: [01:38:36] <spronk2> where
116: [01:38:37] <antmas> elsewhere
117: [01:38:39] <spronk2> WHERE
118: [01:39:26] <spronk2> http://www.aliexpress.com/af/tungsten-cube.html?ltype=wholesale&d=y&origin=n&SearchText=tungsten+cube&initiative_id=SB_20150318173916&isViewCP=y&catId=0
119: [01:39:27] <antmas> asia :D
120: [01:39:31] <antmas> they have loads of it
121: [01:40:03] <antmas> aliexpress is all kinds of crap
122: [01:47:27] <antmas> http://textbox.io/
123: [01:47:30] <antmas> hmmm
124: [01:56:52] <Stomach> HMMMM
125: [01:58:06] <antmas> bet it's expensive :O
126: [01:59:06] <antmas> 'flexible pricing' 'ask us about it' = 'it's not really worth much but we'll convince your managers it's worth more'
127: [01:59:46] <Stomach> free trial for 30 days!
128: [01:59:58] <Stomach> build it all around this and then pay us cause you're fucked
129: [02:00:09] <antmas> lol
130: [02:07:05] * stnvh quit (Ping timeout: 250 seconds)
131: [02:09:26] * joelpittet quit ()
132: [02:20:32] <Tanger> Morning antmas
133: [02:22:59] <mahfuz> Hi everyone. can anyone give me any links or docs to integrate recurring payment using DPS Payment Express in SilverStripe?
134: [02:23:55] * Hailwood quit (Ping timeout: 252 seconds)
135: [02:25:05] <antmas> mahfuz: you using this? https://github.com/silverstripe-labs/silverstripe-payment
136: [02:25:24] <antmas> wait, that's the old one
137: [02:26:10] * Hailwood has joined #silverstripe
138: [02:26:19] * antmas quit (Quit: Page closed)
139: [02:28:31] <adrexia> this module is really quite awesoem : https://github.com/sheadawson/silverstripe-shortcodable
140: [02:29:19] <mahfuz> antmas: you can suggest which models I should use
141: [02:31:22] <mahfuz> antmas: some modules are old and as a new developer in silverstripe I am not sure which payment module I should use
142: [02:33:30] <mahfuz> antmas: my requirement is to integrate re-curring payment for Members with DPS Payment Express
143: [02:34:21] <mahfuz> If you or anyone can suggest me what to use, I can try myself using the docs
144: [02:35:23] <Hailwood> Anyone managed to use GridFieldEditableColumns with UploadField?
145: [02:37:16] * novaweb quit (Quit: novaweb)
146: [02:46:51] * muskie9_afk is now known as muskie9
147: [02:48:44] * babak quit (Quit: Connection closed for inactivity)
148: [02:50:57] * travis-ci has joined #silverstripe
149: [02:50:58] <travis-ci> tractorcow/silverstripe-cms#44 (pulls/3.1.11/fix-page-create - 3df41e1 : Damian Mooyman): The build passed.
150: [02:50:59] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/commit/3df41e117638
151: [02:50:59] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54968810
152: [02:50:59] * travis-ci has left #silverstripe
153: [02:53:30] * novaweb has joined #silverstripe
154: [02:57:52] * matt-in-a-hat quit (Ping timeout: 246 seconds)
155: [02:59:50] * muskie9 is now known as muskie9_afk
156: [02:59:56] * novaweb_ has joined #silverstripe
157: [03:00:22] * novaweb quit (Ping timeout: 272 seconds)
158: [03:00:22] * novaweb_ is now known as novaweb
159: [03:05:06] * novaweb quit (Ping timeout: 264 seconds)
160: [03:07:25] * novaweb has joined #silverstripe
161: [03:09:55] <Tanger> mahfuz: Hard one, something I looked into a while back
162: [03:10:09] <Tanger> Hailwood: EditableColumns?
163: [03:11:16] <Hailwood> I probably said that the wrong way around, *use an UploadField in GridfieldEditableColumns - https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/issues/76 ( :Tanger )
164: [03:11:19] <Tanger> Hailwood: I created inline text gridfield columns before, plus inline row creating and saving
165: [03:11:25] <Tanger> Oh
166: [03:11:26] <Tanger> Man
167: [03:11:29] <Tanger> UploadField
168: [03:12:04] <Tanger> Hailwood: never have, I find UploadField just doesn't play along too well with a lot of stuff
169: [03:13:41] <Tanger> Sorry, that was highly un-useful :P
170: [03:16:34] * babak has joined #silverstripe
171: [03:16:38] * novaweb quit (Read error: Connection reset by peer)
172: [03:17:57] <mahfuz> Tanger: thanks for your response. Which module I should try payment-paymentexpress or silverstripe-omnipay or something else...
173: [03:25:23] <Tanger> mahfuz: Hmmm, I believe recurring payments is on SS-omnipay's to-do list
174: [03:25:46] <Tanger> I'd probably recommend omnipay for DPS Payment express
175: [03:26:53] <Tanger> But mainly because I've used it more than the SS-payment module
176: [03:35:24] * travis-ci has joined #silverstripe
177: [03:35:25] <travis-ci> tractorcow/silverstripe-cms#46 (pulls/3.0/fix-page-create - 79ad7c3 : Damian Mooyman): The build passed.
178: [03:35:25] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/64955e57d123...79ad7c38b7fe
179: [03:35:25] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54972212
180: [03:35:25] * travis-ci has left #silverstripe
181: [03:35:57] * travis-ci has joined #silverstripe
182: [03:35:58] <travis-ci> tractorcow/silverstripe-cms#45 (pulls/3.1.11/fix-page-create - a84361e : Damian Mooyman): The build was broken.
183: [03:35:59] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/3df41e117638...a84361e4e8eb
184: [03:35:59] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/54972142
185: [03:35:59] * travis-ci has left #silverstripe
186: [03:43:28] <Stomach> mahfuz - we used omnipay
187: [03:43:33] <Stomach> was much easier and better
188: [03:43:48] <Stomach> we still had to write the recurring bit ourselves as a task but that was fine
189: [03:44:55] * travis-ci has joined #silverstripe
190: [03:44:56] <travis-ci> silverstripe/silverstripe-cms#1154 (3.0 - 581cd31 : Hamish Friedlander): The build passed.
191: [03:44:56] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/a495385ee560...581cd3179b64
192: [03:44:56] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54973310
193: [03:44:56] * travis-ci has left #silverstripe
194: [03:47:32] <mahfuz> Thanks Stomach for your comments. I will have look into its docs and try to implement it
195: [03:52:03] * Stomach quit (Quit: zzz)
196: [03:56:28] <Hailwood> If I have a relation to File - in a gridfield how can I display the file icon?
197: [03:57:55] <adrexia> CMSThumbnail ?
198: [03:58:10] * mobiusnz quit (Quit: Leaving.)
199: [03:59:36] <adrexia> I guess you'd write something on $summary_fields that calls that method on the file object
200: [04:07:32] * travis-ci has joined #silverstripe
201: [04:07:33] <travis-ci> silverstripe/silverstripe-cms#1155 (3.1.11 - 8e2ed31 : Hamish Friedlander): The build passed.
202: [04:07:33] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/c238e1e15bd2...8e2ed31453db
203: [04:07:33] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54973316
204: [04:07:33] * travis-ci has left #silverstripe
205: [04:10:26] * Hailwood quit (Ping timeout: 246 seconds)
206: [04:14:45] * mobiusnz has joined #silverstripe
207: [04:18:47] * Guest84145 quit (Ping timeout: 256 seconds)
208: [04:30:56] * Guest84145 has joined #silverstripe
209: [04:38:57] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
210: [04:39:21] * Cheddam has joined #silverstripe
211: [04:40:26] * Guest84145 is now known as nontgor
212: [04:41:56] * travis-ci has joined #silverstripe
213: [04:41:57] <travis-ci> silverstripe/silverstripe-framework#4454 (3.0 - 11521fb : Damian Mooyman): The build passed.
214: [04:41:57] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/663f9c9cbe03...11521fb92d0a
215: [04:41:57] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54976648
216: [04:41:57] * travis-ci has left #silverstripe
217: [04:43:12] * Ryan-Toast quit (Quit: Ryan-Toast)
218: [04:47:31] * travis-ci has joined #silverstripe
219: [04:47:32] <travis-ci> silverstripe/silverstripe-framework#4455 (3.0.12 - 11521fb : Damian Mooyman): The build passed.
220: [04:47:32] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.0.12
221: [04:47:32] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54976658
222: [04:47:32] * travis-ci has left #silverstripe
223: [04:55:07] * travis-ci has joined #silverstripe
224: [04:55:08] <travis-ci> silverstripe/silverstripe-cms#1156 (3.0.12 - 581cd31 : Hamish Friedlander): The build passed.
225: [04:55:08] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.0.12
226: [04:55:08] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54976666
227: [04:55:08] * travis-ci has left #silverstripe
228: [05:05:47] * travis-ci has joined #silverstripe
229: [05:05:48] <travis-ci> silverstripe/silverstripe-framework#4456 (3.1.11 - b336415 : Damian Mooyman): The build passed.
230: [05:05:48] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/636784845e69...b3364150f9ee
231: [05:05:48] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54977039
232: [05:05:48] * travis-ci has left #silverstripe
233: [05:13:40] * mahfuz quit (Ping timeout: 246 seconds)
234: [05:17:28] * micmania1 quit (Quit: micmania1)
235: [05:18:13] * travis-ci has joined #silverstripe
236: [05:18:14] <travis-ci> silverstripe/silverstripe-framework#4457 (3.1.11 - b336415 : Damian Mooyman): The build passed.
237: [05:18:14] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.11
238: [05:18:14] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54977056
239: [05:18:14] * travis-ci has left #silverstripe
240: [05:23:11] * nyeholt has joined #silverstripe
241: [05:30:11] * travis-ci has joined #silverstripe
242: [05:30:12] <travis-ci> silverstripe/silverstripe-cms#1157 (3.1.11 - 8e2ed31 : Hamish Friedlander): The build passed.
243: [05:30:13] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.11
244: [05:30:13] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54977067
245: [05:30:13] * travis-ci has left #silverstripe
246: [05:31:18] * nontgor quit (Read error: Connection reset by peer)
247: [05:31:44] <ss-helper> SilverStripe Framework and CMS 3.1.11 Security Release - https://groups.google.com/d/msg/silverstripe-dev/Gxuzjb-o7XM/pMes_KcRv7sJ
248: [05:40:09] * travis-ci has joined #silverstripe
249: [05:40:10] <travis-ci> silverstripe/silverstripe-cms#1158 (3.1 - 7f1f615 : Damian Mooyman): The build passed.
250: [05:40:10] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/c0a44db56b95...7f1f6156347d
251: [05:40:10] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/54977328
252: [05:40:10] * travis-ci has left #silverstripe
253: [05:40:55] <ss-helper> SilverStripe 3.0.12 and 3.1.11 Security Releases - https://groups.google.com/d/msg/silverstripe-announce/lyEtvk1tWwk/TCxyHcYGFX4J
254: [05:45:47] * markcl has joined #silverstripe
255: [05:45:55] <markcl> Hi guys!
256: [05:46:07] <markcl> My Tiny mce config does not seem to work.
257: [05:46:08] <markcl> $cfg = HtmlEditorConfig::get('administrator');
258: [05:46:08] <markcl> $cfg->setOptions(array(
259: [05:46:08] <markcl> 'friendly_name' => 'Allow Everything',
260: [05:46:08] <markcl> 'priority' => 1, //required, see forum thread
261: [05:46:08] <markcl> 'valid_elements' => '*[*]',
262: [05:46:08] <markcl> 'verify_html' => 'false',
263: [05:46:08] <markcl> 'cleanup_callback' => '',
264: [05:46:09] <markcl> 'toolbar'=> 'false',
265: [05:46:09] <markcl> ));
266: [05:46:21] <markcl> I already set the admin group's HTML Editor to 'Allow Everything'
267: [05:46:33] <markcl> and it still removes <section> tags.
268: [05:46:44] * nontgor has joined #silverstripe
269: [05:46:50] <markcl> and the toolbar also still shows
270: [05:48:02] <ss-helper> SilverStripe 3.0.12 and 3.1.11 Security Releases - http://www.silverstripe.org/community/forums/releases-and-announcements/show/101376
271: [05:48:10] * r_hector has joined #silverstripe
272: [05:48:29] * travis-ci has joined #silverstripe
273: [05:48:30] <travis-ci> silverstripe/silverstripe-framework#4458 (3.1 - 0754f2e : Damian Mooyman): The build passed.
274: [05:48:30] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/a775a443874f...0754f2eed24e
275: [05:48:30] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/54977614
276: [05:48:30] * travis-ci has left #silverstripe
277: [05:50:30] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
278: [06:03:47] * willr quit (Quit: willr)
279: [06:11:14] * kerosene has joined #silverstripe
280: [06:11:49] <markcl> I see
281: [06:12:02] <markcl> There is a bug on Silverstripe.
282: [06:12:12] <markcl> Member.php line 1407
283: [06:12:24] <markcl> It did not store the priority
284: [06:12:35] <markcl> So basically the last config will always win
285: [06:12:40] <markcl> Instead of the highest prio one
286: [06:12:50] <markcl> https://github.com/hamishcampbell/silverstripe-sapphire/blob/master/security/Member.php
287: [06:12:53] <markcl> Should I commit?
288: [06:31:14] * Shrike_Finland has joined #silverstripe
289: [06:41:19] * Shrike_Finland1 has joined #silverstripe
290: [06:41:19] * Shrike_Finland quit (Read error: Connection reset by peer)
291: [06:52:53] * nontgor quit (Ping timeout: 252 seconds)
292: [07:02:50] * Shrike_Finland1 quit (Quit: Leaving.)
293: [07:05:09] * nontgor has joined #silverstripe
294: [07:11:28] * Sticks quit (Quit: Leaving)
295: [07:21:06] * nontgor quit (Ping timeout: 256 seconds)
296: [07:22:57] * markcl quit (Ping timeout: 256 seconds)
297: [07:24:01] * marvanni has joined #silverstripe
298: [07:24:47] <marvanni> Does anyone has tried to use monolog with Silverstripe?
299: [07:32:50] * Eliseth has joined #silverstripe
300: [07:33:22] <ss-helper> AJAX page load event for /admin/pages/edit/show/ pages? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101377
301: [07:34:38] * nontgor has joined #silverstripe
302: [07:38:09] * marvanni quit (Ping timeout: 250 seconds)
303: [07:38:47] * nyeholt has left #silverstripe
304: [07:42:21] * wmk has joined #silverstripe
305: [07:45:18] * nontgor quit (Ping timeout: 264 seconds)
306: [07:45:42] * nontgor has joined #silverstripe
307: [07:48:09] * marvanni has joined #silverstripe
308: [07:48:42] * Shrike_Finland has joined #silverstripe
309: [07:50:38] * marvanni quit (Client Quit)
310: [07:53:35] * marvanni has joined #silverstripe
311: [08:02:13] * arnhoe has joined #silverstripe
312: [08:16:27] * Rienco has joined #silverstripe
313: [08:17:25] <Rienco> Hello, I have this question: http://www.silverstripe.org/community/forums/general-questions/show/101370. Does anybody know the solution?
314: [08:18:32] <ss-helper> Re: Weather API Call not producing data or completing function - http://www.silverstripe.org/community/forums/general-questions/show/101357#post400795
315: [08:18:32] <ss-helper> Re: Changing the way content editors work with silverstripe - http://www.silverstripe.org/community/forums/general-questions/show/101271#post400794
316: [08:34:00] * Shrike_Finland quit (Quit: Leaving.)
317: [08:39:27] * bemusedrat has joined #silverstripe
318: [08:40:10] * Stomach has joined #silverstripe
319: [08:41:13] * kerosene quit (Quit: WeeChat 1.2-dev)
320: [08:48:38] <ss-helper> Re: Weather API Call not producing data or completing function - http://www.silverstripe.org/community/forums/general-questions/show/101357#post400796
321: [08:49:24] * Error404NotFound has joined #silverstripe
322: [08:51:10] * Shrike_Finland has joined #silverstripe
323: [08:51:20] <marvanni> Rience I guess you can overload the import function in your model admin, loop over the reults and get $_FILES['_CsvFile']['name']
324: [08:52:04] <marvanni> otherwise you will need to overload the processAll method from CsvBulkLoader and get the filename from the $filePath var.
325: [08:52:23] <marvanni> En gebruik Engels namen voor je vars en classes :)
326: [08:52:47] <marvanni> getPaardByNaam :)
327: [08:53:55] <marvanni> I ment Reinco..
328: [08:59:12] * kinglozzer has joined #silverstripe
329: [09:13:32] <zauberfisch> ohai marvanni
330: [09:13:43] <zauberfisch> its been a while
331: [09:13:48] <marvanni> hey!
332: [09:13:56] <marvanni> yeah, pretty busy
333: [09:14:00] <marvanni> how are you?
334: [09:14:06] <zauberfisch> good good
335: [09:14:09] <zauberfisch> also super busy
336: [09:16:49] <marvanni> thats good :)
337: [09:19:33] * GioVdK has joined #silverstripe
338: [09:28:28] * Pygdbdok has joined #silverstripe
339: [09:32:56] * Stomach quit (Quit: zzz)
340: [09:35:40] <Eliseth> Morning!
341: [09:37:18] <Eliseth> Think with me please: I set up NGINX with this fallback configuration where PHP-FPM will take over in case HHVM crashes. Silverstripe now nicely creates cache folders for each PHP version should a switch occur.
342: [09:37:57] <Eliseth> Now, all goes well, except when a user is logged on. The moment HHVM crashes and the fallback is activated, the user is no longer logged on.
343: [09:38:24] <Eliseth> As soon as HHVM comes back, he's logged on again.
344: [09:39:00] <Eliseth> I'm guessing it has something to do with Sessions, but from what I can gather that should still work since domain and cookie data is no different.
345: [09:43:31] <Eliseth> In addition when someone quickly logs back in while the fallback is active, he loses his login when HHVM comes back up
346: [09:47:01] * NETim quit (Ping timeout: 246 seconds)
347: [09:57:53] <Pygdbdok> Eliseth: you'll have to set a common session dir or something
348: [09:58:01] <Pygdbdok> you gotta get the sessions shared somehow
349: [09:58:12] <Pygdbdok> it's PHP level, not SS level though, so far as I know
350: [09:58:24] <Eliseth> I was just about to say: hmmm, looks like the session.save_path differs... will look into that
351: [09:58:46] <Pygdbdok> It'll probably be something to do with PHP config on each system (hhvm/fpm)
352: [09:59:00] <Pygdbdok> it _should_ be possible to share them.
353: [09:59:05] <Pygdbdok> though I'm not sure
354: [09:59:44] <Pygdbdok> I just know it's possible as there is an attack vector left open for folks who don't configure properly.
355: [10:04:22] <Eliseth> ^^
356: [10:10:02] <marvanni> You might think of a Redis session table, if you need to share sessions across apps or servers.
357: [10:10:40] <Pygdbdok> or swapping to db sessions (as opposed to default file store)
358: [10:11:36] <Pygdbdok> rdbms I mean
359: [10:12:19] <Eliseth> marvanni: for now that shouldn't be needed, since it doesn't have to be shared across apps or servers, just across different php versions
360: [10:12:45] <Eliseth> (within the same app, on the same server)
361: [10:15:23] <marvanni> I wonder if thats gonna work.
362: [10:19:17] <Eliseth> Setting the session.save_path for HHVM to the same folder as PHP-FPM did the trick.
363: [10:20:37] <wmk> popcorn, anyone? http://www.theguardian.com/world/2015/mar/19/i-faked-the-yanis-varoufakis-middle-finger-video-says-german-tv-presenter
364: [10:23:34] <Pygdbdok> haha wmk
365: [10:23:38] <Pygdbdok> that's a pretty silly stunt :<
366: [10:23:57] <Pygdbdok> Eliseth: good to hear :)
367: [10:24:39] * nontgor quit (Ping timeout: 246 seconds)
368: [10:28:37] * Stomach has joined #silverstripe
369: [10:34:01] <ss-helper> Re: Anyone know how to read .ss files - http://www.silverstripe.org/community/forums/showcase-questions/show/11198#post400797
370: [10:35:21] <Pygdbdok> lol wow, that thread...
371: [10:37:04] <kinglozzer> O.o
372: [10:40:12] <Pygdbdok> perhaps trying google for 'sharp fontwriter' instead of asking some folks on a completely unrelated forum about it...
373: [10:40:13] <Pygdbdok> idk
374: [10:42:10] * Stomach quit (Quit: zzz)
375: [10:42:50] * Tanger quit (Quit: sleep())
376: [10:43:49] * UncleCheese has joined #silverstripe
377: [10:45:15] * swaiba has joined #silverstripe
378: [10:47:43] * Frans_Amsterdam has joined #silverstripe
379: [10:48:48] <wmk> sharp? that japanese company?=
380: [10:50:05] <Pygdbdok> assuming so
381: [10:52:43] * gordon has joined #silverstripe
382: [10:53:07] * gordon is now known as Guest19047
383: [10:53:35] * Guest19047 is now known as nontgor
384: [11:13:27] <Frans_Amsterdam> Hi all, I like to know is there is a way to filter out duplicates in an ArrayList. I have a method pasted here: http://www.sspaste.com/paste/show/550aae841c21a
385: [11:14:08] <Pygdbdok> group by every field.
386: [11:14:24] <Pygdbdok> select distinct
387: [11:14:25] <Pygdbdok> idk
388: [11:14:39] <Pygdbdok> convert to arraylist and use removeDuplicates
389: [11:14:48] <Pygdbdok> or just ->removeDuplicates)(
390: [11:15:32] <Pygdbdok> http://api.silverstripe.org/3.1/class-DataList.html#_removeDuplicates
391: [11:17:18] <wmk> Frans_Amsterdam, we had this yesterday.
392: [11:17:33] <wmk> ->removeDuplicates() doesn't return anything, it's not chainable
393: [11:17:50] <wmk> so $list->removeDups(); return $list; may solve your problem
394: [11:19:09] <ss-helper> Cannot call page function when scope is not current page. - http://www.silverstripe.org/community/forums/template-questions/show/101378
395: [11:19:09] <ss-helper> Re: Anyone know how to read .ss files - http://www.silverstripe.org/community/forums/showcase-questions/show/11198#post400798
396: [11:19:48] <Frans_Amsterdam> wmk Sorry, I did not search.
397: [11:20:16] * bemusedrat quit (Quit: Leaving)
398: [11:23:04] <wmk> Frans_Amsterdam, you don't have to be sorry. just ask.
399: [11:23:31] <wmk> i searched for the solution yesterday (or some days ago)
400: [11:23:39] <wmk> does it work now?
401: [11:25:19] <Frans_Amsterdam> wmk Yes!! It works! Thanks.
402: [11:25:55] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
403: [11:28:14] <wmk> fine.
404: [11:28:33] <wmk> Frans_Amsterdam, I had wrote the same code as you, i also wondered why this isn't chainable.
405: [11:30:37] * Rienco quit (Ping timeout: 246 seconds)
406: [11:34:11] <ss-helper> Re: Cannot call page function when scope is not current page. - http://www.silverstripe.org/community/forums/template-questions/show/101378#post400800
407: [11:35:20] <ss23> guis guis
408: [11:35:21] <ss23> http://en.wikipedia.org/wiki/Bhutanese_passport
409: [11:35:23] <ss23> click listen to article
410: [11:42:26] <Pygdbdok> you win this round wmk :P
411: [11:42:59] <Pygdbdok> wholey shit ss23
412: [11:43:07] <ss23> ikr
413: [11:43:10] <ss23> lol
414: [11:43:19] <wmk> Pygdbdok, harr harr
415: [11:43:27] <Pygdbdok> you going to Bhutan?
416: [11:43:42] <wmk> buthan?
417: [11:43:52] <wmk> like camping gas?
418: [11:44:39] <Pygdbdok> butane
419: [11:44:41] <ss23> That's butane!
420: [11:44:52] <ss23> Pygdbdok: The passports seem a bit scary to figure out
421: [11:44:53] <ss23> :P
422: [11:44:55] <Pygdbdok> sounds like this guy has been huffing it!
423: [11:45:52] <wmk> ok, this pun didn't wok in english
424: [11:46:06] <wmk> typo....
425: [11:46:19] <Pygdbdok> we get it :>
426: [11:49:14] <ss-helper> Re: Anyone know how to read .ss files - http://www.silverstripe.org/community/forums/showcase-questions/show/11198#post400801
427: [11:57:40] <wmk> i wonder if this typwriter spreadsheet stuff is much more than csv
428: [11:59:21] <Pygdbdok> That Bhutanese passport chap studied English in NZ.
429: [11:59:31] <Pygdbdok> According to wiki profile
430: [12:01:23] <Pygdbdok> Also means that it's not a pisstake, if it's all true.
431: [12:01:47] <Pygdbdok> Well, could still be a pisstake, but it's a pisstake from a native resident if that's the case.
432: [12:01:59] <Pygdbdok> 'av'n a laff.
433: [12:03:02] <ss23> 00:45:53 < wmk> ok, this pun didn't wok in english
434: [12:03:04] <ss23> lol
435: [12:03:17] <ss23> I wanna know another language so I can realise the puns don't work between them!
436: [12:03:40] <wmk> ss23, haskell? erlang? german?
437: [12:03:50] <Frans_Amsterdam> wnk I don't know either, I think I have to learn to understand the documentation and API docs in a better way. I'm still struggling finding answers and especially usage.
438: [12:04:17] <ss-helper> Compare two values - http://www.silverstripe.org/community/forums/template-questions/show/101379
439: [12:04:17] <ss-helper> Re: Anyone know how to read .ss files - http://www.silverstripe.org/community/forums/showcase-questions/show/11198#post400802
440: [12:04:26] <wmk> Frans_Amsterdam, most of the time i just look at the code, phpstorm / idea helps a lot with it
441: [12:04:35] <ss23> hssss
442: [12:04:37] <ss23> hissssssssssssssssssssssssssss
443: [12:04:38] <ss23> python.
444: [12:04:47] <wmk> then phpdoc statements tell a lot (most methods are quite well documented)
445: [12:05:00] <wmk> api docs are extracted php docs
446: [12:06:22] <Frans_Amsterdam> wmk Ah, I know that but often I go only for the result and not for understanding the Framework. I have to improve there.
447: [12:07:21] <wmk> well, the mixture of chainable methods / classes (forms) and not chainable classes (arraylist and other) can make us confused
448: [12:09:46] <ss23> Fix it!
449: [12:10:19] * muskie9 has joined #silverstripe
450: [12:15:22] * Err404NotFound has joined #silverstripe
451: [12:15:22] * Error404NotFound quit (Disconnected by services)
452: [12:16:49] <swaiba> wmk / Frans_Amsterdam - remember the api.silverstripe docs also link through to the actual code
453: [12:22:46] <marvanni> Use PHPStorm anc Ctrl+click on the method :)
454: [12:24:45] <nontgor> ss23: I play cricket with one of the Bhutan national team here in Bangkok #MyOnlyBhutanConnection
455: [12:24:50] <Frans_Amsterdam> marvanni wmk swaiba I do like the PHPStorm Ctrl+click way
456: [12:25:33] <wmk> Frans_Amsterdam, use it, use it often!
457: [12:25:49] <Frans_Amsterdam> Yes yes
458: [12:25:58] <wmk> though documentsviewer module looks also very interesting... composer require-dev
459: [12:32:16] <ss-helper> Re: SilverStripe Framework and CMS 3.1.11 Security Release - https://groups.google.com/d/msg/silverstripe-dev/Gxuzjb-o7XM/npnDdZeZHE4J
460: [12:47:08] * arnhoe_ has joined #silverstripe
461: [12:48:27] * arnhoe__ has joined #silverstripe
462: [12:48:32] * arnhoe quit (Read error: Connection reset by peer)
463: [12:51:25] * arnhoe_ quit (Ping timeout: 255 seconds)
464: [12:55:18] * shellbackpacific has left #silverstripe
465: [12:55:47] * Tanger has joined #silverstripe
466: [12:56:10] * UndefinedOffset has joined #silverstripe
467: [12:56:37] * tim__ has joined #silverstripe
468: [12:56:58] * mobiusnz quit (Ping timeout: 272 seconds)
469: [12:57:03] <tim__> Hi everyone
470: [12:57:17] <tim__> wondering if anyone can help point me in the right direction
471: [12:57:35] <tim__> having issues with ConfirmedPassword.js in the Admin section
472: [12:58:05] <swaiba> whats the issue tim__
473: [12:58:20] <tim__> the javascript is not firing when the "change password" link is clicked. Instead the link is taking you back to the sites home page
474: [12:59:02] <tim__> there are no javascript errors in the console
475: [12:59:13] <Pygdbdok> version?
476: [13:00:03] <tim__> 3.0
477: [13:00:31] <Pygdbdok> .?
478: [13:01:51] <tim__> 5
479: [13:03:35] <Pygdbdok> and which link is this?
480: [13:03:47] <Pygdbdok> on which page?
481: [13:04:35] <tim__> In the Security section - when you go into an individual member
482: [13:04:48] <tim__> there is a "change password" link
483: [13:05:05] <tim__> shows show the two password fields but instead takes you to the home page
484: [13:06:26] * catcher has joined #silverstripe
485: [13:07:55] * mobiusnz has joined #silverstripe
486: [13:09:10] * kerosene has joined #silverstripe
487: [13:13:10] <nontgor> is there a hook whereby I can populate some default records after 'Add New Record' has been clicked?
488: [13:13:16] <nontgor> default values, not records
489: [13:13:46] <nontgor> scenario is adding a new point of interest and I wish to render (optionally) other points within the same layer as a guide
490: [13:14:53] <nontgor> see http://i.imgur.com/P0h5Ssk.png for a visual example
491: [13:15:34] * kerosene is now known as tmro
492: [13:16:11] * em_ has joined #silverstripe
493: [13:16:20] <Pygdbdok> tim__: WHERE is there a 'change password' link?
494: [13:16:39] <Pygdbdok> oh shit, sorry, my client missed your earlier line :(
495: [13:17:48] <Pygdbdok> tim__: there is a javascript error
496: [13:18:07] <Pygdbdok> it's not a link, it's an accordion activation type thing
497: [13:18:07] <marvanni> nontgor http://doc.silverstripe.org/en/developer_guides/model/how_tos/dynamic_default_fields
498: [13:18:38] <swaiba> nontgor - that would seem to be using betterbuttons right? if so then just change that to call your own handler and then call doNew
499: [13:18:42] <Pygdbdok> tim__: so there's either an earlier error, or the javascript isn't loading at all :<
500: [13:18:49] <em_> Hello world :) ! I need your help... I want to add attribute to basic Member profile. For ex. email2, but I need to add it only to one of my created groups. Is there any solution without some extra extension?
501: [13:19:01] <Pygdbdok> no.
502: [13:20:10] <em_> "no. " thats answer for me?
503: [13:20:29] <nontgor> marvanni/swaiba: Thanks for the pointers
504: [13:20:32] <Pygdbdok> yes.
505: [13:22:24] <Pygdbdok> 1366x768 nontgor ? You poor bastard :<
506: [13:22:36] <Pygdbdok> Well, unless you're on a netbook or something
507: [13:23:03] <marvanni> has anyone used monologger with SS?
508: [13:23:16] <Pygdbdok> Not that I'm aware of marvanni
509: [13:23:20] <em_> And when I want to add email2 for ALL members? I tried this: class MyMember extends Member { private static $db = array( 'email2' => 'Varchar' ); }... but not working... why?
510: [13:23:23] <Pygdbdok> SS keeps it's own logs
511: [13:23:47] <Tanger> em_: Subclassing Member is tricky
512: [13:23:49] <Pygdbdok> em_: because you've subclassed member, not extention
513: [13:23:56] <Tanger> em_: You need to add a lot of stuff
514: [13:24:01] * tim__ quit (Ping timeout: 246 seconds)
515: [13:24:06] <Pygdbdok> Subclassing member makes sense logically, but leads to a world of hurt in SS :(
516: [13:24:24] <nontgor> Pygdbdok: 8x1366x768 #VirtualDesktops - wife has the panoramic monitor, transformer on my 1024x768 died
517: [13:24:28] <em_> uff... easy thing by hardcore solution
518: [13:24:52] <Tanger> em_: Nah, it's not too difficult :)
519: [13:25:19] <Pygdbdok> class Member extention extends DataExtention { private static $db = ['email2'=>'Varchar']; public funciton updateCMSFields($fields){$fields->addFieldToTab('Root.Main', EmailField::create('email2');}}
520: [13:25:22] <swaiba> Pygdbdok - so true re subcalssing
521: [13:25:35] <Pygdbdok> em_: not hardcore at all!
522: [13:25:42] <Tanger> em_: class MemberExtension extends DataExtension { private static $db = array ('email2' => 'VarChar(255)',); }
523: [13:25:43] <Pygdbdok> basic :>
524: [13:25:55] * Liquide quit ()
525: [13:25:55] <Pygdbdok> I win Tanger :P
526: [13:26:16] <Tanger> Pygdbdok: Swift bastard! :P
527: [13:26:19] <Pygdbdok> echo thefollowing >> mysite/_config/config.yml
528: [13:26:23] <Pygdbdok> Member:
529: [13:26:27] <Pygdbdok> extensions:
530: [13:26:33] <Pygdbdok> - MemberExtention
531: [13:26:52] <em_> Im gonna try it, thanks...
532: [13:26:56] <Pygdbdok> or rather cat thepreceeding
533: [13:26:57] <Pygdbdok> :>
534: [13:27:22] <marvanni> hm SS_Log only seems to support logging of errors or warnings. I need to log some background processes to a file.
535: [13:27:47] <Pygdbdok> Debug::something might help? I dunno
536: [13:28:05] <Pygdbdok> I think there's a way to write directly to the log too... not sure though
537: [13:28:18] <Pygdbdok> I don't generally log
538: [13:28:23] <Pygdbdok> sites are usually too simple for that
539: [13:28:32] <Tanger> em_: One solution to adding email2 to a particular group is to just hide it in the CMS from anybody not in that group
540: [13:28:42] <Pygdbdok> Tanger: the only way you mean.
541: [13:28:57] <Tanger> True
542: [13:29:02] <Pygdbdok> well, the only practical way.
543: [13:29:09] <Pygdbdok> subclassing should be a thing, but it's not :<
544: [13:29:14] <Pygdbdok> well it is, but it's painful
545: [13:29:17] <marvanni> I have a site with a lot of cronjobs, but i want some results that SS generates, to be written somewhere
546: [13:29:20] <Tanger> I've subclassed once before
547: [13:29:22] <Tanger> Never again
548: [13:29:35] <catcher> what's the recommended way to approach testing for SS sites?
549: [13:29:38] <Pygdbdok> I did that once too. Back in 2.4.2 or something
550: [13:29:47] <Pygdbdok> catcher: write tests of course, duh.
551: [13:30:08] * catcher is tired of clicking links
552: [13:30:47] <swaiba> catcher - behat (with the stack) is good - https://vimeo.com/77432122
553: [13:30:49] <catcher> Pygdbdok, I see behat, travis, etc.
554: [13:31:19] <swaiba> Tanger - I wouldn't say never again, I'd say after very careful consideration and planning - sometimes
555: [13:31:25] <Pygdbdok> catcher: travis is a CI tool.
556: [13:31:28] <Pygdbdok> nowt to do with testing
557: [13:31:29] <catcher> swaiba, I'll give that a spin, thanks.
558: [13:31:46] <Pygdbdok> behat is a kind of format/framework for writing tests.
559: [13:31:51] <Pygdbdok> but not necessary.
560: [13:32:05] <catcher> what does SS core use that integrates with travis?
561: [13:32:08] <Tanger> swaiba: Yeah, I guess. If there wasn't so much rewriting of base functionality it wouldn't be so bad
562: [13:32:12] <Pygdbdok> nothing
563: [13:32:17] <Pygdbdok> travis is travis.
564: [13:32:24] <swaiba> yeah but if you want to actually simulate "clicking links" then you need "silverstipe" behat
565: [13:32:28] <Tanger> swaiba: Thankfully, I did it on a non-CMS site, using only SS's controllers
566: [13:32:41] <swaiba> which is actually a stack of behat on selenium (with mink) and phpunit
567: [13:32:47] <Pygdbdok> catcher: maybe you wanna read up on phpunit? is that what you're trying to get me to say?
568: [13:33:48] <catcher> Pygdbdok, perhaps. I know travis at least *reports* errors. So I'm asking what SS core uses for testing.
569: [13:35:04] <Pygdbdok> phpunit
570: [13:35:32] <Pygdbdok> https://github.com/silverstripe/silverstripe-framework/tree/3.1/tests
571: [13:38:46] <catcher> So now I choose to start with either unit testing (phpunit) or behavioral testing (behat)?
572: [13:40:09] <Pygdbdok> they achieve different goals.
573: [13:40:18] <Pygdbdok> start with phpunit
574: [13:40:33] <Pygdbdok> move to behat when you start to TDD
575: [13:40:52] <catcher> I know the next comment will be "both", so I'm asking about getting started.
576: [13:40:59] <catcher> Gotcha, thanks Pygdbdok
577: [13:42:02] <Pygdbdok> catcher: phpunit is... well unit level. behat is domain level.
578: [13:42:14] <Pygdbdok> phpunit tests code. behat tests objectives.
579: [13:43:46] * markcl has joined #silverstripe
580: [13:44:41] <catcher> seems like behat might typically be more useful in tiny teams of 1-2 people.
581: [13:45:05] <Pygdbdok> nup
582: [13:45:20] * markcl has left #silverstripe
583: [13:45:29] <Pygdbdok> badAssumption()
584: [13:47:04] <catcher> code integration is almost a non-issue for me, I just want to test if the whole site still works.
585: [13:49:48] * swaiba_ has joined #silverstripe
586: [13:50:55] <swaiba_> Pygdbdok - catcher - I think they achieve the same thing, except one test presentation layer really well and the other doesn't
587: [13:51:07] * swaiba quit (Ping timeout: 256 seconds)
588: [13:51:18] <swaiba_> also one needs developers to write the tests and the other doesn't (allegedly)
589: [13:51:36] <Tanger> What's the deal with ArrayList having Filter and FilterByCallback, but not FilterAny :S
590: [13:53:54] <Pygdbdok> no, I don't agree on either of those points swaiba_ (especially the second one)
591: [13:53:54] <swaiba_> (presentation layer = view, from MVC - I'm used to MVC being the three tier architecutre from long ago)
592: [13:54:18] <swaiba_> Pygdbdok feel free to disagree, but I hold firm
593: [13:54:23] <Pygdbdok> Tanger: datalist never used to have filterany either
594: [13:54:31] <Pygdbdok> swaiba_: yeah, that's cool. I see your point, sorta.
595: [13:54:43] <swaiba_> starting with the second one, if using phpunit you must agree only devs can write tests
596: [13:55:00] <Tanger> Pygdbdok: But it does now ;)
597: [13:55:07] <swaiba_> but with enough examples of behat - non devs can add cases
598: [13:55:25] * Err404NotFound quit (Remote host closed the connection)
599: [13:56:05] <Pygdbdok> swaiba_: they can edit a usecase description, sure. But they can't write tests.
600: [13:56:32] <swaiba_> they cannot write the Contexts sure, but they *can* write behat features
601: [13:56:54] <swaiba_> they are english by nature and if they take some fiddling - that is fine
602: [13:57:06] <Pygdbdok> yeh.
603: [13:57:15] <Pygdbdok> like I say, I sorta see your point.
604: [13:58:36] * Error404NotFound has joined #silverstripe
605: [13:58:43] * Error404NotFound quit (Read error: Connection reset by peer)
606: [14:00:04] * Shrike_Finland quit (Quit: Leaving.)
607: [14:03:04] <Tanger> Hey guys, the leader of my dev team doesn't think it's worth the time writing tests for modules we write and re-use across sites. Is that madness? Should I take it upon myself to write tests for all our shit in my free time or am I being silly
608: [14:03:34] <muskie9> Tanger tests save time/money in the long run
609: [14:03:46] <Pygdbdok> Tanger: define 'free time'.
610: [14:03:48] <Tanger> muskie9: I'm inclined to agree
611: [14:03:54] <Pygdbdok> not getting paid? nope.
612: [14:04:13] <Tanger> Yeah, but if I don't do it, it'll literally never happen
613: [14:04:32] <Tanger> It's a 2 man dev team where I write 99% of the PHP
614: [14:04:37] <Pygdbdok> yeah but you can work around it so you get paid for what you do.
615: [14:04:55] <Pygdbdok> ie, every time you need said module, use some project time to improve it just a little. Slowely you'll end up with a full test suite.
616: [14:05:10] <muskie9> if it's an open source module you could hint in the readme that tests are welcome... if it's not, then I might have to agree with Pygdbdok, that should be worked into costs or something
617: [14:05:25] <Pygdbdok> quite.
618: [14:05:37] <Tanger> Good call
619: [14:05:40] <Pygdbdok> it's what I wsed to do.
620: [14:05:41] <Tanger> Solid advice
621: [14:05:57] * mobiusnz quit (Ping timeout: 265 seconds)
622: [14:06:02] <Pygdbdok> after making my 284th gallery, I moduleised it.
623: [14:06:10] <Tanger> Hah
624: [14:06:21] <Pygdbdok> Still imroved it every time I used it, as each use case is usually just different enough to be a pain.
625: [14:07:06] <swaiba_> Tanger - I'd move to a different team ;-P
626: [14:07:12] <Pygdbdok> haha
627: [14:08:10] * mobiusnz has joined #silverstripe
628: [14:08:12] <Tanger> swaiba_: Nah. Small design firm. It's good experience and I need min 5 years programming in most places to get a junior software engineering position
629: [14:08:29] <Pygdbdok> ha!
630: [14:08:32] <Pygdbdok> sid
631: [14:08:34] <Pygdbdok> sif*
632: [14:08:44] <Pygdbdok> job ads are always full of it.
633: [14:08:55] <Pygdbdok> apply first, deal with fallout later.
634: [14:09:00] <swaiba_> Tanger - if you say so...
635: [14:09:15] <Pygdbdok> 2 years is enough to move from junior to intermediate
636: [14:09:16] <Tanger> It works while my gf is getting her med degree :P
637: [14:09:35] <swaiba_> I've employed a ton of people with less experience, in fact in the UK you *cannot* evaluate based on years expiernce it is said
638: [14:09:45] <Pygdbdok> well
639: [14:09:51] <Pygdbdok> UK is full of shit as it is.
640: [14:09:58] <swaiba_> I test that people can learn and think well and are competent coders
641: [14:10:08] <swaiba_> Pygdbdok how charming lol
642: [14:10:44] <Tanger> Pydbdok: Very true. At my last job my co-worker had been there for 3 years. He worked maybe 2 of 5 days, tops. All else was on facebook
643: [14:10:47] <Pygdbdok> all job ads be all need php ruby python rails javascript node scss less mysql server nginx apache C# ms sql server experience
644: [14:10:53] <Pygdbdok> big data
645: [14:11:00] <Pygdbdok> data warehouseing
646: [14:11:09] <Pygdbdok> must have 5 years experience in all areas.
647: [14:11:09] <Tanger> Data is fun >:3
648: [14:11:17] <Pygdbdok> paying £16k per hear
649: [14:11:19] <Pygdbdok> year*
650: [14:11:29] <Tanger> What?
651: [14:11:32] <Tanger> Whoa
652: [14:11:33] <Tanger> What
653: [14:11:37] <Pygdbdok> well, not that bad perhaps.
654: [14:11:42] <Pygdbdok> I'm exaggerating a little
655: [14:11:49] <Tanger> Haha, I was gonna say
656: [14:11:55] <Pygdbdok> I mean, maybe £16.5
657: [14:12:14] <Pygdbdok> because depite what we've asked for, it's an "Apprentice" role.
658: [14:12:23] <Tanger> That's only like 33-34K AUD
659: [14:12:26] <Tanger> That's silly
660: [14:12:30] <Pygdbdok> yeh, it's shit.
661: [14:12:48] <Pygdbdok> jam apprentice in the title over here and boom presto, underage underpaid work aplenty!
662: [14:13:00] <Pygdbdok> where in Aus an apprentice means you're learning by doing to be a builder or something.
663: [14:13:09] <Tanger> Yeah, a tradie
664: [14:13:15] <Tanger> is an apprentice
665: [14:13:18] <Pygdbdok> over here you can get an apprenticeship in - and I quote "Office worker"
666: [14:13:22] <Tanger> A 'Junior' is the equivalent
667: [14:13:38] <Tanger> What does an office worker do?>
668: [14:13:40] <Tanger> Seriously
669: [14:13:48] <Pygdbdok> very descriptive, much informations, wow
670: [14:13:54] <Tanger> Doge
671: [14:14:10] <Pygdbdok> yeh, cept I fucked up, very and much should be other way. but whatever
672: [14:14:40] <Pygdbdok> baiscally it's for 16yo girls who quit school (being sexist but that's the market) to get a 'qualification' in photocopying shit.
673: [14:14:53] <Pygdbdok> while getting paid $6 an hour, or somethign
674: [14:15:57] <Tanger> Sounds cool
675: [14:16:01] <Tanger> Except for everything about it
676: [14:16:09] <Pygdbdok> basically
677: [14:16:43] <Pygdbdok> I'm all "web jobs!" and thery're all "apprenticeship in wordpress for 16k" and I'm all "SO MANY THINGS WRONG I DON'T EVEN KNOW WHERE TO BEGIN"
678: [14:19:09] <Pygdbdok> you think meetings and managment is poor over tehre man, fuck over here you're all "SYSTEM CRITICAL, NEED UPGRADE" and they're all "ok, so lets evaluate..." been over a year, nothing has happeend
679: [14:19:33] <Pygdbdok> running on freebsd6, ON A DESKTOP HP MACHINE
680: [14:19:42] <Pygdbdok> best 'server' ever.
681: [14:19:58] <Tanger> HAHAHA
682: [14:20:10] <Pygdbdok> runs business critical systems, to the point where the whole coporation just shuts down and does fuck all all day when it goes down.
683: [14:20:23] <Pygdbdok> well, fuck all except ring us every 30 seconds
684: [14:20:53] <Pygdbdok> 7 years old, hdd beginning to fail.
685: [14:20:56] <Tanger> And I thought my hosting servers were bad because they ran CentOS6.5 and I couldn't upgrade VIM to 7.4
686: [14:21:08] <Pygdbdok> luckily as fuck the data is actually in MSSQL on separate machines, but still
687: [14:21:23] <Pygdbdok> php 5.2 fuck yeah
688: [14:21:42] <Tanger> That's fucked
689: [14:21:45] <Tanger> I don't even
690: [14:21:55] <Pygdbdok> not allowed to upgrade it because switching it off is a big no no
691: [14:22:05] <Pygdbdok> so it just keep churning on
692: [14:22:19] <Pygdbdok> JFDI is not a phrase that exists here.
693: [14:22:26] <Tanger> That's probably the point where I sabotage it on purpose
694: [14:22:31] <Tanger> So they HAVE to upgrade it
695: [14:22:45] <Pygdbdok> haha, no need. The HDD actually failed and it wouldn't boot a while back
696: [14:22:52] <Pygdbdok> fsck fixed it though :<
697: [14:22:58] <Pygdbdok> 'fixed'
698: [14:23:00] <Pygdbdok> :/
699: [14:23:01] <Tanger> Bah
700: [14:23:03] <Tanger> Bandaided it
701: [14:23:07] <Pygdbdok> yup
702: [14:23:48] <Tanger> Reminds me of when a thunder storm fried our server
703: [14:24:00] <Pygdbdok> live server has no live systems, but has all the databases for them. And the dev ones. Dev server has all live systems, and dev ones.
704: [14:24:03] <Tanger> 4 disc RAID5 - two discs fried
705: [14:24:36] <Tanger> Because the boss didn't think a UPS was worth "splurging on"
706: [14:24:36] <Pygdbdok> so I'm all 'let me set up proper environment' and it's all "there's a plan for that" can I see it? "no"
707: [14:24:44] <Pygdbdok> so I start upgrading anyway, because fuck php 5.3
708: [14:25:09] <Pygdbdok> I get ... "I dunno, we better check with the manager, he's got some kind of plan... but he hasn't told anyone about it"
709: [14:25:22] <Tanger> Haha
710: [14:25:40] <Pygdbdok> this manager is some cunt who talks nothing but bullshit (actually makes shit up in meetings) and can't use MS Word.
711: [14:25:45] <Pygdbdok> HEAD OF IT
712: [14:25:56] <catcher> Anyone tried out codeception for SS?
713: [14:26:04] <Pygdbdok> catcher: it's basically behat
714: [14:27:12] <Tanger> Managers
715: [14:27:25] <Tanger> 90% of the time, a big ball of JFDI
716: [14:27:34] <Pygdbdok> Tanger: except this guy doesn't even manage.
717: [14:27:38] * Shrike_Finland has joined #silverstripe
718: [14:27:38] <Pygdbdok> he delegates that to us.
719: [14:27:42] <Tanger> -_-
720: [14:27:49] <Tanger> How does he still work?
721: [14:27:50] * Shrike_Finland quit (Client Quit)
722: [14:27:55] <Pygdbdok> nfi
723: [14:28:00] <Pygdbdok> no one knows what he does
724: [14:28:11] <Tanger> Surely someone must have brought up the point "Oh hey, this guy doesn't ACTUALLY do anything"
725: [14:28:20] <Pygdbdok> except take credit for all the work (his work) that he makes us do
726: [14:28:30] <Pygdbdok> oh yaeh, we've all talked about it.
727: [14:28:49] <Pygdbdok> he basically goes into meetings and spews whatever we did the day before that he demanded we do for him.
728: [14:29:12] * wilson has joined #silverstripe
729: [14:29:16] <Pygdbdok> so much bureaucracy it's more of a blocker than an accountability checker.
730: [14:29:18] <wilson> [wilson]
731: [14:29:22] <Pygdbdok> just, stupid.
732: [14:29:27] <Pygdbdok> 100% stupid.
733: [14:29:33] <Tanger> 100% frustrating
734: [14:29:36] <Tanger> Just hearing it
735: [14:29:36] * wilson is now known as Guest84507
736: [14:29:37] <Pygdbdok> yep
737: [14:29:57] <Guest84507> Hi to all, i have this function - who loops thru a folder => public function getSliderFiles() { $folder = Folder::find('assets/Uploads/images-slideshow'); return $folder->Children(); }
738: [14:30:05] <Pygdbdok> best part is that he blames us for all the failings, mostly caused by him.
739: [14:30:10] <Guest84507> How to limit to first 8 children (or random 8) ?
740: [14:30:16] <Pygdbdok> so people are quitting. staff of 9 is down to 5
741: [14:30:35] <Pygdbdok> ->limit(8)
742: [14:30:38] <muskie9> ^
743: [14:30:39] <Tanger> ^
744: [14:30:59] <muskie9> random is ->sort('RAND()') or something
745: [14:31:03] <Tanger> Lol Pydbdok, so now less people have to do more of his work for him
746: [14:31:18] <Tanger> Wtf
747: [14:31:53] <Guest84507> How do i identify myself on the forum?
748: [14:32:15] <muskie9> Guest84507 create an account?
749: [14:32:43] <Guest84507> No i mean, when you log, you have to identify yourself otherwise you get a GuestXXX id.
750: [14:32:55] <muskie9> you mean for IRC
751: [14:33:02] <Guest84507> yes
752: [14:33:23] <muskie9> are you using irc.silverstripe.org?
753: [14:33:43] <Guest84507> Remember its something like [yourname]
754: [14:34:02] <Guest84507> yes irc.silverstripe.org
755: [14:34:20] <muskie9> fill in the Nickname field: http://puu.sh/gGL8w/27ba44229c.png
756: [14:34:31] <Pygdbdok> Tanger: basically
757: [14:34:49] <Pygdbdok> Guest84507: /nick SomethingOtherThanWilson
758: [14:35:03] * ImAlsoMuski9 has joined #silverstripe
759: [14:35:10] * mento has joined #silverstripe
760: [14:35:59] <ImAlsoMuski9> just filled in the Nickname... otherwise if you want something more permanent you'll need to do something with nickserv https://freenode.net/faq.shtml#nicksetup
761: [14:36:07] * wilsonstaff has joined #silverstripe
762: [14:36:30] <wilsonstaff> Hi to all, i have this function - who loops thru a folder => public function getSliderFiles() { $folder = Folder::find('assets/Uploads/images-slideshow'); return $folder->Children(); } How to limit to first 8 children (or random 8) ?
763: [14:36:31] <mento> hey guys, whats a good way to add an "Add another email" to a frontend form and save it in the dataobject? Say i have 1 email field by default, the add another email option should add a second email field to the frontend form
764: [14:37:31] <muskie9> mento sounds like some js, then you'd loop through those in the form processing
765: [14:37:59] <muskie9> wilsonstaff [09:30:35] <Pygdbdok> ->limit(8)
766: [14:38:06] <muskie9> [09:30:56] <muskie9> random is ->sort('RAND()') or something
767: [14:38:13] * Guest84507 quit (Ping timeout: 246 seconds)
768: [14:38:34] <wilsonstaff> <muskie9>limit(8) into the template (ss) or into the page class (php) ?
769: [14:38:45] <muskie9> page class (php)
770: [14:39:00] <muskie9> template would be .limit(8) iirc
771: [14:39:26] <Pygdbdok> wilsonstaff: return $folder->children()->limit(8)
772: [14:40:19] * ImAlsoMuski9 quit (Ping timeout: 246 seconds)
773: [14:41:33] <wilsonstaff> <Pygdbdok>Works beautifully. Thanks!
774: [14:42:08] <mento> muskie9: yes, the JS part is not a big deal, but how do i save it in my dataobject?
775: [14:43:01] <muskie9> I'm guessing the email is a related object since you can add an x amount of them
776: [14:43:24] * mento_ has joined #silverstripe
777: [14:43:30] <mento_> woops disconnected
778: [14:43:33] <muskie9> or how does your object handle multiple email addresses
779: [14:44:43] <mento_> email is not a related field yet
780: [14:45:54] <Pygdbdok> email[]
781: [14:46:03] <muskie9> if you can add an undetermined amount than that should probably be a has_many
782: [14:46:16] * mento quit (Ping timeout: 246 seconds)
783: [14:46:17] <Pygdbdok> implode(,
784: [14:46:48] <muskie9> then in the form processing function you'd loop through the emails added and create a new email object for each added in the form... then relate them back to your main object
785: [14:50:24] <wilsonstaff> <Pygdbdok><muskie9>Did some research, and yes this is $folder->children()->sort('RAND()') but how to limit random to 8?? Tried this to no avail: $folder->children()->sort('RAND(8)')
786: [14:51:55] <muskie9> $folder->children()->sort('Rand()')->limit(8)
787: [14:52:32] <wilsonstaff> <muskie9>got this to work: return $folder->Children()->limit(8)->sort('RAND()') ; Is it the same thing as your solution?
788: [14:52:42] <muskie9> yes
789: [14:54:03] <wilsonstaff> <muskie9>Ok thanks!
790: [14:54:36] <muskie9> no prob
791: [14:57:27] <Pygdbdok> gawd, rand() :<
792: [14:58:10] * wilsonstaff quit (Ping timeout: 246 seconds)
793: [15:21:16] * slievr has joined #silverstripe
794: [15:21:37] <slievr> hey guys was wondering if I could get a little guidance
795: [15:21:40] <slievr> found this
796: [15:21:40] <slievr> http://doc.silverstripe.org/en/developer_guides/performance/caching
797: [15:21:51] <slievr> but I am not sure what $cachekey is
798: [15:25:17] <catcher> slievr, $cachkey is something you'll define that's unique until it shouldn't be cached anymore.
799: [15:26:00] <slievr> what datatype is it?
800: [15:30:02] <Tanger> slievr: A string
801: [15:30:15] <slievr> thanks
802: [15:30:30] <Tanger> It forms it from the aggregation your key and saves it in a cache file
803: [15:30:36] <Tanger> Using that string in the name
804: [15:45:27] * swaiba_ quit (Remote host closed the connection)
805: [15:48:37] * marvanni quit (Quit: marvanni)
806: [15:59:40] * Tanger quit (Remote host closed the connection)
807: [16:02:32] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/HCJCfVCxXVAJ
808: [16:07:26] * cloph has joined #silverstripe
809: [16:07:45] * cloph_away quit (Ping timeout: 265 seconds)
810: [16:18:43] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
811: [16:20:25] * em_ quit (Ping timeout: 246 seconds)
812: [16:21:52] <catcher> Anyone using this migration module? https://github.com/patricknelson/silverstripe-migrations
813: [16:22:51] <catcher> I'm unclear if migrations should contain only data & no structure since structure is still handled by /dev/build.
814: [16:26:30] * r_hector quit (Quit: Leaving.)
815: [16:26:57] * r_hector has joined #silverstripe
816: [16:28:22] * r_hector quit (Client Quit)
817: [16:34:25] <Pygdbdok> catcher: reading the intro that's what it leads me to believe it does
818: [16:34:38] <Pygdbdok> ie, no modifications, just how to handle data when ... doing modifications.
819: [16:35:06] <catcher> Pygdbdok, thanks for the sanity check
820: [16:35:34] <catcher> CRUDding data, but not tables/relationships
821: [16:36:03] * muskie9 is now known as muskie9_afk
822: [16:36:56] * mobiusnz1 has joined #silverstripe
823: [16:37:00] * mobiusnz quit (Ping timeout: 256 seconds)
824: [16:37:58] <Pygdbdok> catcher: more just moving data
825: [16:38:22] * arnhoe__ quit ()
826: [16:38:25] <Pygdbdok> it might remove tables and things, ie when you rename a field SS just creates a new one, doesn't remove old one. this module may do some clean up too.
827: [16:38:48] <Pygdbdok> but I imagine for the most part that dev/build and migrations implementations are mutually exclusive
828: [16:38:55] <Pygdbdok> just operate in the same domain
829: [16:39:27] <Pygdbdok> but then again, wouldn't be the first module author with a good idea but a shit implementation.
830: [16:39:41] <Pygdbdok> but iirc this patrick guy has been around for a while, and isn't a moron
831: [16:39:50] <Pygdbdok> provided my memory isn't too bad.
832: [16:40:00] <Pygdbdok> /confused
833: [16:44:17] * Alboes has joined #silverstripe
834: [16:46:02] <Alboes> hi. I use UploadField: is it possible to disable/hide the edit and remove button by a setting? Cannot find this option in the api docs
835: [16:46:23] <Pygdbdok> yes
836: [16:49:04] <Pygdbdok> http://api.silverstripe.org/3.1/class-UploadField.html#_canAttachExisting
837: [16:49:21] <Pygdbdok> http://api.silverstripe.org/3.1/class-UploadField.html#_canUpload
838: [16:50:16] <wmk> http://api.silverstripe.org/3.1/class-UploadField.html#_setCanAttachExisting
839: [16:51:09] <wmk> http://api.silverstripe.org/3.1/class-UploadField.html#_setFileEditActions also sounds promising
840: [16:54:22] * Guits quit (Read error: Connection reset by peer)
841: [16:55:22] <wmk> Alboes, or just overwrite UploadField_FileButtons in your mysite, or change to other name in your mysite and use ->setTemplateFileButtons($templateName)
842: [16:57:22] <Alboes> okay thanks
843: [17:00:56] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
844: [17:01:36] * _hschillig has joined #silverstripe
845: [17:02:12] * mento_ quit (Quit: Page closed)
846: [17:02:36] <ss-helper> Re: [silverstripe-dev] Re: Block editing modules - https://groups.google.com/d/msg/silverstripe-dev/3kC1-iG1nYw/NF7UPWz_7jgJ
847: [17:03:40] <_hschillig> Hi I'm trying to run a dev/build?flush=1 and it keeps giving me a server error becuase it's trying to select a column from the database that doesn't exist until I can run dev/build.. I'm not logged in right now so its' redirecting to the login but it keeps throwing that error so I can't even do a dev/build to add that field to the database. I literally copied and pasted what Silverstripe has in their documentation: http://doc.silverstripe.org/en/de
848: [17:04:57] <wmk> flush first? delete cache dir if in doubt.
849: [17:05:04] <wmk> goto live mode...?
850: [17:05:17] <wmk> bbl..
851: [17:05:53] <_hschillig> I do a ?flush=1 and it still gives me the same error since it's tryign to grab that column in my layout.. I removed it from the layout bu tI'm assuming it selects it still from the extension.
852: [17:05:57] <_hschillig> What do you mean go to live mode?
853: [17:07:43] * Shrike_Finland has joined #silverstripe
854: [17:08:57] <_hschillig> Ah nvm I had to set it to dev environment..
855: [17:13:18] * DimiStripe has joined #silverstripe
856: [17:14:10] <Pygdbdok> dev mode _hschillig
857: [17:14:14] <Pygdbdok> mmm
858: [17:14:16] <Pygdbdok> ok you got it
859: [17:14:19] <Pygdbdok> :>
860: [17:14:23] <Pygdbdok> must be home time
861: [17:14:25] <Pygdbdok> ciao
862: [17:14:28] * Pygdbdok quit ()
863: [17:14:40] * ThePeach has joined #silverstripe
864: [17:19:49] * _hschillig has left #silverstripe
865: [17:34:39] * kinglozzer quit ()
866: [17:46:59] * gelignite has joined #silverstripe
867: [17:57:15] * ThePeach quit (Quit: leaving)
868: [18:12:47] * Stomach has joined #silverstripe
869: [18:18:44] * Shrike_Finland quit (Quit: Leaving.)
870: [18:30:00] * Stomach quit (Quit: zzz)
871: [18:32:44] <ss-helper> Re: [silverstripe-dev] Re: Ensuring open collaboration on the SilverStripe project - https://groups.google.com/d/msg/silverstripe-dev/IZz_1tmaV2M/7OuOLzoS4XsJ
872: [18:43:45] * GioVdK quit (Ping timeout: 246 seconds)
873: [18:57:43] * Stomach has joined #silverstripe
874: [19:02:41] * mobiusnz1 quit (Quit: Leaving.)
875: [19:04:39] * UndefinedOffset quit (Quit: Leaving.)
876: [19:06:30] * UndefinedOffset has joined #silverstripe
877: [19:06:54] * UndefinedOffset quit (Client Quit)
878: [19:13:23] * stefanovic72 has joined #silverstripe
879: [19:16:27] * oddnoc has joined #silverstripe
880: [19:17:04] <stefanovic72> Hello. A question: Assume I have a dataobject Employee, this object has a has_one releation with another datobject: Company.
881: [19:17:48] <stefanovic72> In a function I want to get a datalist of employee and I also need some columns (or all colums) of Company
882: [19:18:29] <stefanovic72> when I do $datalist = Employee::get() I only get the columns of employee
883: [19:19:18] <stefanovic72> I have to loop through the datalist to get the company name (which is in the company table)
884: [19:19:54] <stefanovic72> Is there an alternative. Can I do get a datalist with the columns of Company included?
885: [19:21:30] * mobiusnz has joined #silverstripe
886: [19:26:17] <Stomach> stefanovic72 is this in a template?
887: [19:26:33] <Stomach> you can do $Employee.Company.Title if its a has one
888: [19:26:51] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
889: [19:27:51] <stefanovic72> Stomach. No, it's not in a template. I know how to get a 'relation field' in a template
890: [19:28:07] <stefanovic72> I need it in a webservice
891: [19:28:32] <stefanovic72> so within a function i a class
892: [19:29:10] * Ryan-Toast has joined #silverstripe
893: [19:29:19] <stefanovic72> I wonder if it can be done in one time
894: [19:32:02] <Stomach> $Employee->Company()->Title
895: [19:33:09] * antmas has joined #silverstripe
896: [19:34:04] <catcher> stefanovic72, I don't believe so with the ORM. But easy enough with this: http://doc.silverstripe.org/en/developer_guides/model/sql_query/
897: [19:34:23] <antmas> morning all o/
898: [19:34:25] <antmas> tgif
899: [19:35:13] <catcher> stefanovic72, If readability is more imortant than efficiency, you can loop the Employee DataList & add the Company fields with the ORM.
900: [19:36:08] <stefanovic72> ok, thanks
901: [19:36:35] <stefanovic72> i use sql_query to do a custom query
902: [19:36:39] * oddnoc quit (Ping timeout: 252 seconds)
903: [19:37:29] <catcher> stefanovic72, yes, it's an abstraction layer though, so read that doc. If you want it raw, use DB::query.
904: [19:37:57] <catcher> But keep in mind you lose SS security handling with DB::query, which is really important for a web service.
905: [19:38:13] <stefanovic72> Thanks!!
906: [19:40:39] <catcher> stefanovic72, np
907: [19:47:10] * em__ has joined #silverstripe
908: [19:49:47] <em__> Hello all :) I have a simple question - maybe is not simple to answer... I want class with some database data... when to use "extends DataObject" and when "extends DataExtension" ? Whats the difference?
909: [19:52:35] <Stomach> em__ - http://www.silverstripe.org/learn/lessons/data-extensions-and-siteconfig
910: [19:53:28] * oddnoc has joined #silverstripe
911: [19:53:29] * Kingy[a] is now known as Kingy
912: [19:53:51] <em__> so... extends DataExtension when I extend something other... and extends DataObject when I want some new feature...
913: [19:53:58] <Kingy> hey
914: [19:54:24] <em__> thx man
915: [19:55:23] <Kingy> sup antmas
916: [20:01:05] <Stomach> em__ exactly :)
917: [20:02:47] * Kingy is now known as Kingy[a]
918: [20:03:43] <antmas> Kingy[a]: o/
919: [20:04:54] * jedateach has joined #silverstripe
920: [20:10:27] * Olliepop has joined #silverstripe
921: [20:10:35] <Alboes> how can i transform to lowercase and first uppercase in templates?
922: [20:12:12] <Stomach> $Words.lowercase
923: [20:12:12] <Stomach> ?
924: [20:18:03] <Alboes> that makes everything lowercase, i mean: the value of country is ENGLAND and i want to transform to England
925: [20:18:36] * kinglozzer has joined #silverstripe
926: [20:18:44] <Alboes> $Country.Lowercase ... ?
927: [20:18:44] <Stomach> .lowercase.ucfirst ?
928: [20:18:54] <antmas> .ucfirst
929: [20:18:56] <Stomach> dunno if thats in the template or not
930: [20:18:59] <antmas> what Stomach said
931: [20:20:13] <Alboes> yes, i already tried that, but doesn't work
932: [20:23:14] <em__> I need to make ENUM in database, but some enum values are in variables ... => ENUM("Enum('" . $myVar . ", 1, 2, 3')")... this is not working, any idea<
933: [20:23:18] <em__> ?
934: [20:25:06] * jedateach has left #silverstripe
935: [20:25:31] <em__> ...sorry for duplicated ENUM(Enum... thats not a problem... I just copied it twice
936: [20:27:08] <kinglozzer> em__: Why do you need to do that?
937: [20:28:15] * Hailwood has joined #silverstripe
938: [20:29:19] <em__> I have an abstract class ChatStatus { const PENDING = 0; const UNREAD = 1; const ACTIVE = 2; const CLOSED = 3; } in ENUM I want to 0,1,2,3 but like this: ChatStatus::PENDING, ChatStatus::ACTIVE...
939: [20:29:36] <Ryan-Toast> em__: I don’t think that’s how Enums are supposed to work.
940: [20:30:06] * stefanovic72 quit (Remote host closed the connection)
941: [20:31:34] <catcher> variable permanent storage... reminds me of hot ice.
942: [20:31:47] <em__> and could not be ENUM values set in other way Something->editEnumValues($myVars)
943: [20:32:29] <em__> ? ... I still forget question mark
944: [20:33:19] <antmas> I don't think you're going to get that using an enum
945: [20:34:57] <em__> ok, I´ll use Int
946: [20:36:14] <catcher> em__, enums are part of the *structure* of a db.
947: [20:36:38] <catcher> em__, it's like dynamically renaming a column.
948: [20:37:01] <em__> ok, thanks
949: [20:42:31] * micmania1 has joined #silverstripe
950: [20:42:45] * wmk quit (Ping timeout: 246 seconds)
951: [20:45:01] <kinglozzer> micmania1: You on the security mailing list?
952: [20:45:20] <micmania1> kinglozzer: nope. I’m just on the pre-announcement
953: [20:45:41] <kinglozzer> Ah, okay
954: [20:49:17] * Alboes quit (Remote host closed the connection)
955: [20:50:57] * UncleCheese has joined #silverstripe
956: [20:54:38] <em__> How in silverstripe cms add some item to left menu - Pages, Security, Files, Settings? I try to google something, but I dont know what to search for...
957: [20:55:45] <Stomach> ModelAdmin
958: [20:57:16] * muskie9 has joined #silverstripe
959: [21:00:01] <em__> And what is $managed_models variable for? For example what can I put in it to test if it works?
960: [21:06:20] <micmania1> em__: the DataObject that you want to manage there.
961: [21:06:27] <catcher> em__, which model classes it should manage
962: [21:06:37] <em__> ok, thanks :)
963: [21:06:40] <micmania1> em__ http://doc.silverstripe.org/en/developer_guides/customising_the_admin_interface/modeladmin
964: [21:07:26] * em__ quit (Quit: Page closed)
965: [21:13:16] <MichalKleiner> o/
966: [21:14:17] <antmas> MichalKleiner: \o
967: [21:15:32] * catcher quit (Quit: Leaving)
968: [21:16:02] <MichalKleiner> hey chaps, Friday's here :-D
969: [21:16:05] <MichalKleiner> wohoo
970: [21:17:42] <antmas> w000t
971: [21:18:53] * antmas patiently waits for gif-thirty
972: [21:20:01] <antmas> waits patiently?
973: [21:20:06] <antmas> patiently waits?
974: [21:21:52] <MichalKleiner> both?
975: [21:22:36] <antmas> mm
976: [21:22:56] <Ryan-Toast> antmas: keep waiting: https://i.imgur.com/ILKvaSs.gif
977: [21:23:16] <MichalKleiner> OO MM GG
978: [21:23:26] <MichalKleiner> how do I remove it :-D
979: [21:25:43] <Ryan-Toast> MichaelKleiner: You don’t http://i.imgur.com/uwGoFT7.gif
980: [21:26:34] <antmas> lol
981: [21:30:06] <antmas> https://gfycat.com/WaterloggedInbornCock
982: [21:30:14] <kinglozzer> rofl Ryan-Toast
983: [21:30:19] <kinglozzer> Thought it'd never end :|
984: [21:53:51] <antmas> bah meetings
985: [21:53:55] <antmas> on a friday
986: [21:55:59] * oddnoc quit (Quit: oddnoc)
987: [22:01:44] * Liquide has joined #silverstripe
988: [22:02:13] * oddnoc has joined #silverstripe
989: [22:05:08] * stecman has joined #silverstripe
990: [22:05:36] <stecman> Is there any plans to clean up the SQLQuery public API? It's a bit of a pain to work with
991: [22:06:34] * travis-ci has joined #silverstripe
992: [22:06:35] <travis-ci> silverstripe/silverstripe-framework#4459 (3.1 - 2d1fa46 : Loz Calver): The build passed.
993: [22:06:35] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/0754f2eed24e...2d1fa46be8c8
994: [22:06:35] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/55090320
995: [22:06:35] * travis-ci has left #silverstripe
996: [22:10:49] <kinglozzer> stecman: Yeah, it has already been cleaned up for 3.2
997: [22:10:55] * muskie9 is now known as muskie9_afk
998: [22:21:38] <ss-helper> Re: Delete All Records - http://www.silverstripe.org/community/forums/general-questions/show/101351#post400804
999: [22:22:12] * muskie9_afk is now known as muskie9
1000: [22:24:42] <adrexia> aww, you guys ddin't tell em__ about making completely custom admin's. It's like you're too nice or something.
1001: [22:26:46] <adrexia> though, wow. The docs have gotten a _lot_ better for that since the last tiem I had to do it. Check it out: http://doc.silverstripe.org/en/developer_guides/customising_the_admin_interface/cms_layout/ There are even, like, diagrams and shit
1002: [22:28:21] <adrexia> or perhaps they are just easier to find now :D
1003: [22:30:05] * spronk2 quit (Ping timeout: 252 seconds)
1004: [22:30:14] * jedateach has joined #silverstripe
1005: [22:30:22] * jedateach has left #silverstripe
1006: [22:32:30] * muskie9 is now known as muskie9_afk
1007: [22:37:30] * kinglozzer quit ()
1008: [22:40:56] <Stomach> woah adrexia that is way better
1009: [22:41:01] * Stomach never knew any of that shit
1010: [22:42:13] <adrexia> I did it using a combination of the archtechture docs and copy pasting existing stuff
1011: [22:42:57] <adrexia> since the main thing that is super important to know about is the pjax
1012: [22:47:49] <Stomach> yeah I just copy/pasted everything
1013: [22:52:22] <MichalKleiner> who's using such things..
1014: [22:52:38] <MichalKleiner> it's really advanced topic
1015: [22:52:53] <Stomach> MichalKleiner - every single website I publish has at least one custom left and main
1016: [22:53:03] <Ryan-Toast> seconded
1017: [22:53:33] <MichalKleiner> custom in which way?
1018: [22:53:45] <adrexia> Stomach - you got to change the ids at least though, right?
1019: [22:53:45] <Stomach> not a model admin
1020: [22:53:47] <adrexia> ;)
1021: [22:54:17] <adrexia> MichalKleiner, not really... not in terms of what people sometimes need to build into the cms
1022: [22:54:23] <Stomach> <section id="stevie-rules-naomi-drools">Nah</section>
1023: [22:54:28] <adrexia> lol
1024: [22:54:51] <Stomach> :P
1025: [22:55:55] <MichalKleiner> haha
1026: [22:56:08] <MichalKleiner> ok then, might not just needed it
1027: [22:56:14] <adrexia> what I sort of wish is that there was an empty admin starter module
1028: [22:56:15] * em_ has joined #silverstripe
1029: [22:56:22] <Hailwood> Hi guys, can anyone inform how to setup a TreeDropdownField that will only show pages of a specific Class?
1030: [22:56:24] <Stomach> MichalKleiner - we do things like member administrators, API tools, etc
1031: [22:56:57] <Stomach> Hailwood - can you do TreeDropdownField::create('OneID', 'Some stuff', 'MyClass');
1032: [22:56:58] <Stomach> ?
1033: [22:57:00] <adrexia> MichalKleiner, yeah, it's still not an all the time thing for me. But when you do need to do it it can be quite painful
1034: [22:57:42] <adrexia> ...and in reality, even some of the things we let model amdins to we should be building custom admins for
1035: [22:57:54] <MichalKleiner> true
1036: [22:57:58] <adrexia> modeladmins mimic the db sturcture, which can get really confusing really fast
1037: [22:58:14] <adrexia> :)
1038: [22:58:27] <MichalKleiner> but for me programming in the CMS kinda doesn't feel right.. it's more framework way..
1039: [22:58:54] <adrexia> it's a user interface
1040: [22:59:08] <adrexia> if you give users access to it that is
1041: [22:59:12] <MichalKleiner> so if I step back a bit and see SS as a framework to develop UI to manage things then ok
1042: [22:59:36] <MichalKleiner> seems ideological only
1043: [23:00:00] <adrexia> yeah - I mean you could create your own admin using silverstripe instead of using the built in one
1044: [23:00:02] <em_> Hi... anybody saw this error? Fatal error: Call to undefined method Operator::hasField() in /framework/model/fieldtypes/ForeignKey.php on line 39
1045: [23:00:19] <adrexia> and if what you need to do is small, it could be worth it
1046: [23:00:30] <Hailwood> Stomach, I tried new TreeDropdownField('DefaultProductGroup', $fieldLabels["DefaultProductGroupID"], 'ProductGroup') (yes yes I know TreeDropdownField::create(...)) but it's just creating one that lists all the pages
1047: [23:00:49] <MichalKleiner> adrexia: agree
1048: [23:00:55] <MichalKleiner> off for lunch
1049: [23:01:11] <Stomach> Hailwood - what errors do you get
1050: [23:01:14] <adrexia> Hailwood that problem sounds familar
1051: [23:01:26] <adrexia> I'm not sure, but there's a chance you can't... ?
1052: [23:02:09] <adrexia> how do you display a hierarchy with missing steps?
1053: [23:03:19] <adrexia> em__ how are you getting it?
1054: [23:04:19] <em_> I create ModelAdmin and when I click on edit item I got it...
1055: [23:08:01] <adrexia> can you share your code for the modeladmin and the dataobjects you are managing?
1056: [23:08:23] <Hailwood> Stomach, No errors, just the tree not filtering down to only the pages that are "ProductGroup"'s
1057: [23:10:11] <em_> http://pastie.org/private/h2urjetqltpcziesu1tug
1058: [23:11:57] <em_> when I click on THE line error appears: http://emitor.6f.sk/screen.png
1059: [23:12:01] * muskie9_afk is now known as muskie9
1060: [23:12:32] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1061: [23:16:37] * veb has joined #silverstripe
1062: [23:18:23] * muskie9 has joined #silverstripe
1063: [23:18:37] <em_> adrexia or somebody else any ideas? ... because we have 17min after midnight... I think I fall to my keyboard in 5minutes
1064: [23:26:43] <Hailwood> Stomach, adrexia I think I tracked down the problem - it seems that even if you specify a different ClassName - if no search has been performed, or there are no results the TreeDropdownField will default to showing your entire site tree.
1065: [23:27:00] <Hailwood> If the search returns a valid result of that classname then it works fine
1066: [23:27:12] * mahfuz has joined #silverstripe
1067: [23:27:44] <em_> thanks for all advice today, good night :)
1068: [23:31:14] <antmas> em_: o/
1069: [23:31:58] * em_ quit (Ping timeout: 246 seconds)
1070: [23:33:01] <adrexia> hahah
1071: [23:33:25] <adrexia> I got busy
1072: [23:33:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1073: [23:36:47] * Liquide quit ()
1074: [23:47:05] * nontgor quit (Ping timeout: 250 seconds)
1075: [23:59:37] * nontgor has joined #silverstripe
1076: [23:59:52] <nontgor> /nick nontgor

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