#silverstripe IRC Log

IRC log for 8 January 2015

All timestamps are in UTC.

1: [00:00:57] * nontgor quit (Read error: Connection reset by peer)
2: [00:31:24] * Cramb quit (Read error: Connection reset by peer)
3: [00:32:52] <spronk2> SUP GUYS
4: [00:48:15] * gordon has joined #silverstripe
5: [00:48:30] * gordon is now known as nontgor
6: [00:49:32] <Kolin> Hey
7: [00:51:24] <simon_w|work> Oh no, spronk2 is back
8: [00:51:35] <spronk2> kekek
9: [00:51:41] <spronk2> hide your valuables
10: [00:51:44] <spronk2> .. amirite?
11: [00:56:06] <simon_w|work> Hide yo kids, hide yo wifes
12: [00:59:24] <nontgor> is it possible just to run one test wtih PHPUnit, by that I mean one method is SomethingTest.php file
13: [01:00:58] * micmania1 quit (Quit: micmania1)
14: [01:04:14] <Stomach> nontgor - yes
15: [01:05:22] <Stomach> use --filter
16: [01:05:24] <Stomach> https://phpunit.de/manual/current/en/textui.html
17: [01:05:32] * micmania1 has joined #silverstripe
18: [01:06:21] * m1nd quit (Quit: Leaving)
19: [01:07:04] <nontgor> Stomach: Cheers
20: [01:08:56] * veb has joined #silverstripe
21: [01:08:57] * veb quit (Changing host)
22: [01:08:57] * veb has joined #silverstripe
23: [01:23:22] <nontgor> jeez, testing is slow...
24: [01:23:38] <ss23> If you know what's likely to break, you can just test those things
25: [01:25:18] <nontgor> ss23: y, I am only testing broken cases but it's still slow
26: [01:25:46] <Stomach> yeah it is slow, but its better than broken code :D
27: [01:26:16] <nontgor> Stomach: Concur on that
28: [01:26:26] <Stomach> what are you testing?
29: [01:27:26] <nontgor> Failing tests here https://github.com/silverstripe/silverstripe-framework/issues/2979 - there is an issue of repeated queries when rendering the menu. I've ironed those out but have broken some other things
30: [01:28:08] <ss23> Looks like you broke some permissions!
31: [01:28:21] <Stomach> oh you're gordon!
32: [01:28:25] <Stomach> great work on that PR
33: [01:28:34] <ss23> ^
34: [01:28:38] <Stomach> very awesome to see someone taking the time to do it :D (glad its not me)
35: [01:28:48] <ss23> ^
36: [01:28:49] <ss23> :D
37: [01:28:52] <nontgor> ss23: I changed my nick from elgrodo to nontgor to be consistent with my twitter handle
38: [01:28:57] <ss23> Yeah, you said :)
39: [01:31:38] <nontgor> wasn't during normal NZ hours though
40: [01:31:57] <Stomach> you badass, changing your nickname outside working hours
41: [01:32:02] <ss23> XD
42: [01:32:04] * Stomach is now known as NotStevie
43: [01:32:07] <nontgor> so much for the dry season, it's raining hard at the moment. Normally no rain until around April
44: [01:34:38] <NotStevie> WHERE IS EVERYONE
45: [01:34:59] <NotStevie> http://www.thefrisky.com/wp-content/uploads/2013/09/10/tumblr_mlyxphEGsE1qh9wexo1_500.gif
46: [01:35:33] <MichalKleiner> soaking some sun on the waterfront ;-)
47: [01:35:34] <ss23> Some of us are trying to work
48: [01:36:21] <nontgor> not entirely convinced the filter flag is working...
49: [01:37:00] <MichalKleiner> trying or working?
50: [01:37:18] <ss23> Trying
51: [01:37:18] <ss23> :D
52: [01:38:19] <NotStevie> nontgor - what OS and PHP version are you running?
53: [01:42:34] <nontgor> Ubuntu 12.0.4
54: [01:42:44] <nontgor> php 5.3.10
55: [01:43:12] <nontgor> Copying the test I want into a separate file works wtihin a few secodns, much more like it
56: [01:43:50] <nontgor> oh maybe I forgot the '=' sign after filter... checking
57: [01:44:25] <nontgor> nope
58: [01:44:53] <NotStevie> is it still running the whole suite?
59: [01:45:22] <nontgor> it's running the whole of the SiteTreeTest which is slower than the test match on monitor 3
60: [01:46:48] * veb is now known as vebb
61: [01:47:20] <nontgor> docs say likes of --filter testmethod https://phpunit.de/manual/current/en/phpunit-book.html
62: [01:47:47] <NotStevie> should be `phpunit --filter theTestIWant framework/tests/filesystem/FolderTest.php`
63: [01:48:09] <nontgor> NotStevie: Just realised I had the --filter after the test filename #duh
64: [01:48:18] * NotStevie is now known as Stomach
65: [01:48:24] <Stomach> ah sweet, that should sort it
66: [01:48:36] <nontgor> y it has :)
67: [01:49:00] <nontgor> 14 seconds, that's better than 5 overs of the Test Match
68: [01:49:12] <Stomach> depends on whether you like cricket or not
69: [01:49:29] * vebb is now known as veb
70: [01:50:08] <nontgor> Stomach: :)
71: [01:51:51] * veb is now known as vebb
72: [02:00:43] * vebb is now known as veb
73: [02:05:17] * jenniferaslan quit (Quit: jenniferaslan has left the room)
74: [02:11:18] * spronk2 quit (Ping timeout: 244 seconds)
75: [02:27:11] * zagoodwin has joined #silverstripe
76: [02:28:09] <zagoodwin> Hey, Im having trouble with the blog module. If i don't pass the url segment "tag" as in spur.co.nz/journal/tag/
77: [02:28:17] <zagoodwin> then it returns THERE ARE NO BLOG ENTRIES
78: [02:30:16] <ss23> http://spur.co.nz/journal/ seems to return entries?
79: [02:33:56] <zagoodwin> That is really weird, for me it just gives a big fat "THERE ARE NO BLOG ENTRIES"
80: [02:37:02] <MichalKleiner> works for me as well
81: [02:44:27] <zagoodwin> What browsers are you guys using? So it shows a list of blog entries starting with NEW MARKETING "GOOD ENOUGH TO SHARE"
82: [02:55:53] * Stomach quit (Ping timeout: 240 seconds)
83: [02:56:01] * nicolaas has joined #silverstripe
84: [02:57:03] <nicolaas> hi, I am trying to reload the CMS Panel for a dataobject when I change the data of the item on After Write (it seems that the panel is loaded before the the onAfterWrite runs). Any ideas on how to do this? The OnAfterWrite may take a while (e.g. 30 seconds). Here is the code I am working on: https://github.com/sunnysideup/silverstripe-copyfactory/blob/0.4/code/model/CopyFactoryDataExtension.php
85: [02:58:57] <nicolaas> any ideas?
86: [02:59:37] * Olliepop quit (Ping timeout: 246 seconds)
87: [03:08:37] * Stomach has joined #silverstripe
88: [03:12:11] * veb is now known as vebb
89: [03:12:11] * vebb quit (Quit: veb-irc: &)
90: [03:13:32] * veb has joined #silverstripe
91: [03:18:13] * veb quit (Client Quit)
92: [03:23:22] <zagoodwin> Hey I can't get all of the blog posts to show, any ideas?
93: [03:23:45] <zagoodwin> When i pass a tag parameter in the url it works
94: [03:24:13] <zippy> zagoodwin: isn't it paginated by default?
95: [03:31:50] <nicolaas> set the pagination to 9999?
96: [03:31:58] <nicolaas> i mean 9999 items per page?
97: [03:39:34] * Stomach_ has joined #silverstripe
98: [03:42:25] * Stomach quit (Ping timeout: 264 seconds)
99: [03:51:13] * Error404NotFound quit (Ping timeout: 256 seconds)
100: [03:51:43] * riddler7 quit (Quit: Leaving)
101: [03:54:18] * Cheddam has joined #silverstripe
102: [03:57:22] * zagoodwin quit (Ping timeout: 246 seconds)
103: [03:57:23] * veb has joined #silverstripe
104: [03:58:45] <nontgor> ok so I've added an extension to hook into onBeforeVersionedPublish of Versioned. It works in dev mode in a browser (I can see log trace) but testing with phpunit the extension cannot be found. Any ideas....?
105: [04:05:38] * cloph_away has joined #silverstripe
106: [04:05:49] * cloph quit (Ping timeout: 255 seconds)
107: [04:06:05] * Stomach_ quit (Ping timeout: 252 seconds)
108: [04:10:07] <zippy> nontgor: command line has it's own cache - so make sure that is flushed (not sure if phpunit / the ss code will do that... hmmm)
109: [04:11:15] <nontgor> zippy: joy, sudo -u www-data time
110: [04:12:34] <nontgor> could it be bootstrapping related?
111: [04:13:28] <nontgor> at the phpunit level I mean
112: [04:13:48] <nontgor> mmm, that didn't work either
113: [04:15:47] <nontgor> mmm, this is rather infuriating
114: [04:16:10] <nontgor> moved the extension to an existing directory as opposed to a new one that it was previously in
115: [04:16:13] * Kingy[a] is now known as Kingy
116: [04:16:27] <Kingy> morning/evening
117: [04:22:03] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
118: [04:22:49] * micmania1 quit (Quit: micmania1)
119: [04:28:53] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
120: [04:32:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
121: [04:34:52] * Error404NotFound has joined #silverstripe
122: [04:36:56] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
123: [04:40:53] * r_hector has joined #silverstripe
124: [04:49:55] * nicolaas quit (Ping timeout: 244 seconds)
125: [04:51:10] * camfindlay quit (Quit: camfindlay)
126: [04:55:13] * veb quit (Quit: veb-irc: &)
127: [05:08:58] <nontgor> Kingy: With that multiple repeated queries bug you commented on, https://github.com/silverstripe/silverstripe-framework/issues/2979 , slowly trying to fix the tests
128: [05:09:34] <nontgor> Kingy: I am stuck however in that I need to add an extension to Versioned to flush the cache for isOrphaned after publish/unpublish
129: [05:10:09] <nontgor> Extension is being picked up in the browser, but not by the test suite - any suggestions?
130: [05:12:20] <Kingy> I commented on that?
131: [05:13:21] <nontgor> oh, you are not kinglozzer - my bad #assumptions
132: [05:14:03] <Kingy> haha :)
133: [05:16:37] * chillu_23 quit (Quit: chillu_23)
134: [05:19:34] <nontgor> aha, phpunit framework/tests '' flush=all
135: [05:21:22] <nontgor> Link at the bottom of http://doc.silverstripe.org/framework/en/topics/testing/ is incorrect with regards to editing the page
136: [05:31:41] <nontgor> zippy: Adding a flush=all when calling phpunit fixed the issue, only needs done when a new class is added
137: [05:47:43] * veb has joined #silverstripe
138: [05:49:27] * glenn-bautista quit (Quit: Leaving.)
139: [05:55:49] * veb quit (Quit: veb-irc: &)
140: [06:32:56] * veb has joined #silverstripe
141: [06:33:06] * Shrike_Finland has joined #silverstripe
142: [06:34:38] * Shrike_Finland1 has joined #silverstripe
143: [06:37:35] * Shrike_Finland quit (Ping timeout: 244 seconds)
144: [06:38:52] * veb is now known as vebb
145: [06:39:15] * vebb quit (Quit: veb-irc: &)
146: [07:02:10] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
147: [07:07:23] * Error404NotFound has joined #silverstripe
148: [07:09:10] * veb has joined #silverstripe
149: [07:20:53] * markcl quit (Ping timeout: 240 seconds)
150: [07:26:37] * Kingy is now known as Kingy[a]
151: [07:42:07] * r_hector quit (Quit: Leaving.)
152: [07:47:47] * Kingy[a] quit (Ping timeout: 245 seconds)
153: [07:49:11] * Kingy[a] has joined #silverstripe
154: [08:05:44] * travis-ci has joined #silverstripe
155: [08:05:44] <travis-ci> silverstripe/silverstripe-framework#3835 (3.1 - e134c9b : Will Rossiter): The build passed.
156: [08:05:44] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/5637431a3fd8...e134c9b7c94c
157: [08:05:44] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/46288036
158: [08:05:44] * travis-ci has left #silverstripe
159: [08:07:30] * Kingy[a] is now known as Kingy
160: [08:11:09] * nicolaas_ has joined #silverstripe
161: [08:15:48] * Frans_Amsterdam has joined #silverstripe
162: [08:22:18] <Frans_Amsterdam> Hello All, I have a question about server configuration. The answer maybe a very obvious but a I do like confirmation. As a frontend-developer I have a little project where I have been asked to install a SS-site on a Digital Ocean VPS. Installing the AMP-stack is not that difficult but I would like to use the mail function in case to send forms. The customer only uses gmail. My question is: do I have to install mail-server facilities on the
163: [08:22:19] <Frans_Amsterdam> VPS?
164: [08:23:20] <simon_w> Frans_Amsterdam, yup. apt-get install postfix should be straight forward enough
165: [08:25:06] <Frans_Amsterdam> simon_w, do I have to install Dovecote, MySql and all aswell?
166: [08:25:32] <simon_w> Frans_Amsterdam, well, you get MySQL as part of the AMP stack
167: [08:25:41] <simon_w> Since you won't be receiving emails, just need postfix
168: [08:26:02] <Frans_Amsterdam> simon_w Ah, that's great
169: [08:48:40] <wmk> simon_w, do you use any tool like chef, ansible etc. to setup and configure a new box on digitalocean?
170: [08:51:00] <Zauberfisch> wmk: I think he is using ansible
171: [08:51:13] <nontgor> Frans_Amsterdam: If the client insists on sending via a gmail account there is an SMTP plugin available
172: [08:51:59] <wmk> Zauberfisch, do you have any experience witht that? I was wondering what to use to setup, configure and manage VMs on my box
173: [08:54:20] * arnhoe has joined #silverstripe
174: [08:59:25] * veb quit (Quit: veb-irc: &)
175: [09:00:50] <elgabbu> gd morning all
176: [09:01:14] <elgabbu> i am trying to get a page to have a has many relationship with images such that the page can have multiple images assigned to it
177: [09:01:26] * kinglozzer has joined #silverstripe
178: [09:01:40] <elgabbu> so in the page class i have added private static $has_many = array( 'Photo' => 'Image' );
179: [09:02:08] <elgabbu> and in the getCMSFields
180: [09:02:20] <simon_w> wmk, yes, I use Ansible
181: [09:02:35] <simon_w> elgabbu, use a many_many instead
182: [09:02:36] <elgabbu> $fields->addFieldToTab("Root.Images", new UploadField('Photo'));
183: [09:02:44] * Guits quit (Ping timeout: 245 seconds)
184: [09:03:01] <elgabbu> hmmm
185: [09:03:16] <wmk> elgabbu, if you need any additional information for the image you'd need a dataobject for the imageItem
186: [09:03:23] <wmk> e.g. for adding a caption for it
187: [09:04:18] <wmk> simon_w, so you can configure an existing droplet or can you even create a new vm out of a droplet?
188: [09:04:44] <simon_w> wmk, a droplet is a vm
189: [09:04:53] <elgabbu> so one could create a class for example .... ImageWithCaption extends Image ?
190: [09:04:54] <wmk> elgabbu, i bet there are some page-gallery solutions out there you could take or at least look at
191: [09:05:01] * mahfuz quit (Ping timeout: 246 seconds)
192: [09:05:06] <wmk> simon_w, ok, then out of a vm-template
193: [09:05:26] * Guits has joined #silverstripe
194: [09:05:47] <simon_w> wmk, I could, though I'll still have to run my configure script to get it talking properly with things, and to have them talking to it
195: [09:06:27] <wmk> ok. so after setting up a vm basically you configure stuff using ansible playbooks
196: [09:07:03] <simon_w> Yes
197: [09:07:15] <wmk> fine, thanks.
198: [09:07:19] * travis-ci has joined #silverstripe
199: [09:07:20] <travis-ci> silverstripe/silverstripe-framework#3837 (3.1 - 146b468 : Will Rossiter): The build passed.
200: [09:07:20] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/e134c9b7c94c...146b4689b8b0
201: [09:07:20] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/46290521
202: [09:07:20] * travis-ci has left #silverstripe
203: [09:07:28] <wmk> elgabbu, you can have a look at that extension: https://github.com/NightJar/ssrigging-gallery
204: [09:08:44] <wmk> and be sure to add BulkEditingTools to your project, so you can drop a bunch of images to your page and it will create the ImageItems for it easily
205: [09:09:11] <elgabbu> wmk the many to many relationship worked thanks
206: [09:09:32] <wmk> elgabbu, if you just want existing images without any other info it's ok
207: [09:09:38] * dendeffe has joined #silverstripe
208: [09:09:51] <wmk> but for gallery you normally want a title and a caption
209: [09:10:27] <wmk> and don't forget to add copyright to each image, you'll need it later (if you use images from other sources)
210: [09:15:18] <wmk> simon_w, could you also deploy (git checkout) with ansible?
211: [09:15:22] <Eliseth> Morning
212: [09:15:27] <wmk> hey Eliseth
213: [09:15:31] <simon_w> wmk, you can, though I don't
214: [09:15:59] <wmk> sounds cool...
215: [09:24:42] * zippy has joined #silverstripe
216: [09:28:50] * Shrike_Finland1 quit (Quit: Leaving.)
217: [09:43:48] * Shrike_Finland has joined #silverstripe
218: [09:47:33] <zippy> Kingy: evening
219: [09:48:02] <Kingy> hey zippy
220: [09:48:04] <Kingy> afternoon more like :P
221: [09:48:07] <zippy> heh
222: [09:48:12] <zippy> Hows the deserts treating you
223: [09:48:20] <Kingy> just won my first comp game of cs:go
224: [09:48:22] <Kingy> the ping is real
225: [09:48:31] <Kingy> getting better ping to europe than I do dubai
226: [09:48:32] <zippy> what pings you get?
227: [09:48:38] <Kingy> 180-220
228: [09:49:08] <zippy> reminds me of the quake days
229: [09:49:12] <zippy> laptop go good?
230: [09:49:21] <Kingy> yeah man it's great
231: [09:49:27] <Kingy> playing dayz and fifa 15
232: [09:49:30] <Kingy> handles them well
233: [09:49:50] <Kingy> so there is a website called talabat.com
234: [09:49:57] <Kingy> basically food delivery service
235: [09:50:04] <Kingy> anything you want gets delivered lol
236: [09:50:44] <zippy> hows it been over there, different to what you thought?
237: [09:50:49] <zippy> 'nicer'?
238: [09:51:29] <Kingy> yeah totally different
239: [09:51:33] <Kingy> driving is nuts
240: [09:51:45] <Kingy> renting a car for 180BD a month
241: [09:51:50] <Kingy> 2013 lancer
242: [09:51:52] <Kingy> not bad
243: [09:52:39] <Kingy> otherwise generally it's good
244: [09:54:07] <Kingy> hows the pc
245: [09:54:12] <zippy> whats 180BD?
246: [09:54:15] <zippy> to nzd
247: [09:54:58] <zippy> $650~
248: [09:55:09] <zippy> pc going good ;)
249: [09:55:15] <Kingy> yeah looking at cc charges it was $611
250: [09:56:53] * ibeardslee quit (Ping timeout: 240 seconds)
251: [09:57:54] * ibeardslee has joined #silverstripe
252: [10:02:17] <elgabbu> wmk, another question if I may
253: [10:02:28] <wmk> fire away elgabbu
254: [10:02:40] <elgabbu> i have a ReviewPage that has a relationship with a Product (DataObject)
255: [10:05:36] <elgabbu> i am succesfully able to show a drop down in the cms fields but it seems that the saving of the product i choose from the drop down is not working
256: [10:05:48] <elgabbu> private static $has_one = array( 'Product' => 'Product' );
257: [10:05:57] <elgabbu> $options = Product::get()->map('ID', 'Name');
258: [10:06:10] <elgabbu> $fields->addFieldToTab('Root.Main', new DropdownField('Product', 'Product', $options), 'Content');
259: [10:10:03] <Kingy> meannnn little caesars pizza cominggg
260: [10:12:00] <zippy> elgabbu: new DropdownField('Product', 'Product', $options), 'Content'); change to new DropdownField('ProductID', 'Product', $options), 'Content');
261: [10:12:31] * Kingy is now known as Kingy[a]
262: [10:12:40] * Kingy[a] is now known as Kingy
263: [10:12:52] * guci0 has joined #silverstripe
264: [10:12:54] <guci0> Morning!
265: [10:13:07] * wmk quit (Ping timeout: 252 seconds)
266: [10:14:16] * wmk has joined #silverstripe
267: [10:14:30] <wmk> elgabbu, sorry, had a networking problem
268: [10:14:39] * Shrike_Finland quit (Quit: Leaving.)
269: [10:16:14] <wmk> elgabbu, so you did dev/build and flush?
270: [10:19:12] <elgabbu> wmk, ziggy gave the fix for it ... change to new DropdownField('ProductID', 'Product', $options), 'Content');
271: [10:19:24] <wmk> ah, right
272: [10:19:39] <Eliseth> How do I get the first encounter of a specific pagetype in my Page.php?
273: [10:19:41] <wmk> i normally use parent::getCMSFields which does scaffolding for me
274: [10:19:54] <wmk> Eliseth, child page?
275: [10:20:32] <wmk> or just PageType::get()->sort('Sort')->first();
276: [10:20:34] <elgabbu> wmk, what does the first argument of the DropdownField do exactly?
277: [10:20:54] <wmk> the first argument of any field matches to the databasefield / relation
278: [10:21:06] <Eliseth> Not a child, let me try that
279: [10:21:13] <wmk> unfortunately has_one relation is saved in current table with ID suffix
280: [10:23:16] <elgabbu> yeah i can see the field in ProductReviewPage_Live;
281: [10:24:32] <Eliseth> wmk, that worked, thanks
282: [10:25:45] * Shrike_Finland has joined #silverstripe
283: [10:29:07] <nicolaas_> hi, I am trying to reload the CMS Panel for a dataobject when I change the data of the item on After Write (it seems that the panel is loaded before the the onAfterWrite runs). Any ideas on how to do this? The OnAfterWrite may take a while (e.g. 30 seconds). Here is the code I am working on: https://github.com/sunnysideup/silverstripe-copyfactory/blob/0.4/code/model/CopyFactoryDataExtension.php
284: [10:30:03] <Zauberfisch> wmk: well, I tried chef for a while
285: [10:30:25] <Zauberfisch> but actually moved back to plain shell scripts now
286: [10:30:36] <wmk> ansible looks great
287: [10:30:50] <wmk> i think i grab a book and learn it.
288: [10:30:53] <Zauberfisch> and am currently playing around with kickstart file, however thats only really working on RHEL based systems
289: [10:31:18] <wmk> can you also run commands with it, e.g. apt-get upgrade / update
290: [10:33:27] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
291: [10:35:39] <Zauberfisch> yes
292: [10:36:32] <Zauberfisch> though I have only looked it as a setup script
293: [10:36:45] <wmk> man, so many tools around...
294: [10:36:47] <Zauberfisch> not sure if it is also designed to update an existing server
295: [10:36:52] <Zauberfisch> yeah
296: [10:37:02] <wmk> tough this ansible looks very sexy
297: [10:49:30] * Err404NotFound has joined #silverstripe
298: [10:49:33] * Err404NotFound quit (Changing host)
299: [10:49:33] * Err404NotFound has joined #silverstripe
300: [10:49:33] * Error404NotFound quit (Disconnected by services)
301: [10:53:11] <nontgor> Just the 12 mins for the SiteTreeTest!
302: [10:54:09] <nontgor> but I think broken tests for https://github.com/silverstripe/silverstripe-framework/issues/2979 are now resolved. Need to rerun the entire suite overnight
303: [11:05:10] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
304: [11:07:03] * Frans_Amsterdam has joined #silverstripe
305: [11:14:52] * Pyhamck has joined #silverstripe
306: [11:20:50] * PigeonFriend has joined #silverstripe
307: [11:26:13] * arnhoe quit (Ping timeout: 264 seconds)
308: [11:27:35] * PigeonFriend quit ()
309: [11:27:50] * arnhoe has joined #silverstripe
310: [11:29:27] * PigeonFriend has joined #silverstripe
311: [11:37:42] <Pyhamck> She's just a cosmic girl... from another galaxy.
312: [11:49:32] <Zauberfisch> so, empty config files result in an error? :O
313: [11:49:41] <Zauberfisch> or rather, config files that only contain comments
314: [11:51:13] <Pyhamck> that's... odd.
315: [11:51:26] <Pyhamck> what kind of an error Zauberfisch ?
316: [11:51:30] <Pyhamck> yml parser?
317: [11:53:06] <Zauberfisch> Warning: Invalid argument supplied for foreach() in /vagrant/www/framework/core/manifest/ConfigManifest.php on line 655
318: [11:53:33] <Pyhamck> hmm
319: [11:53:54] <Pyhamck> I guess it gives false, rather than []
320: [11:54:05] <Pyhamck> if the file is empty (the yml parser this is)
321: [11:54:07] <Pyhamck> perhaps.
322: [11:54:22] <Pyhamck> fixed simply with a bit of a hack :P
323: [11:54:27] <Pyhamck> (array)$derp
324: [11:54:29] <Pyhamck> keke
325: [11:55:47] <Zauberfisch> yeah, fix is probably simple enough
326: [11:55:58] <Zauberfisch> but can't even hotfix in this project even if I wanted to
327: [11:59:24] <Pyhamck> :<
328: [11:59:36] <PigeonFriend> you'd probably need to report that as a bug on the Symfony YAML parser... sounds like quite a low level issue
329: [11:59:47] <Zauberfisch> 6 instances of the same site (or forks of the same base repo) will be deployed to staging today
330: [12:00:02] <Pyhamck> well, no. Not if it's _supposed_ to return eg: false if there is no yaml to parse PigeonFriend
331: [12:00:52] <Pyhamck> ConfigManifest in that case is simply expecting the wrong thing, not santising/checking data before attempting to use it.
332: [12:01:26] <PigeonFriend> @Pyhamck good point
333: [12:01:36] <Pyhamck> kinda like 2.4 and how one needed to $do = DataObject::get_one('Thing'); if($do && $do->exists())
334: [12:01:46] <Pyhamck> PigeonFriend: just tab my friend.
335: [12:01:56] <Pyhamck> We're not on twitter ;)
336: [12:02:29] <PigeonFriend> Pyhamck: been too long since I was on IRC properly - been using a lot of Slack recently
337: [12:02:45] <Pyhamck> Slack, that's that... all in one offfice coms thing right?
338: [12:02:54] <Pyhamck> It does customer contact too?
339: [12:03:30] <Pyhamck> hmm, lunch time... to eat at noon or 1pm, that is the question...
340: [12:06:01] <PigeonFriend> Pyhamck: no, not quite. it's an internal comms tool. Basically private IRC on crack. but you can plug it in to other services so that you get noticiations from things like GitHub, issue trackers, ticketing systems, etc
341: [12:18:41] * cloph_away is now known as cloph
342: [12:22:03] <wmk> PigeonFriend, long time not seen!
343: [12:22:05] <wmk> happy new year
344: [12:28:11] * ocmnt has joined #silverstripe
345: [12:28:31] <ocmnt> howdy!
346: [12:29:24] <elgabbu> wmk can i trouble you again?
347: [12:30:01] <elgabbu> i have a widget that has a has_one relationship to a page
348: [12:30:12] <elgabbu> class FeaturedProductWidget extends Widget {
349: [12:30:19] <elgabbu> private static $has_one = array( 'ProductReviewPage' => 'ProductReviewPage' );
350: [12:30:30] <wmk> hey ocmnt
351: [12:30:44] <wmk> elgabbu, yup
352: [12:31:05] <elgabbu> in the widget template how do I acess the content attribute of the page?
353: [12:31:12] <wmk> inside the Widget i bet you can run $this->ProductReviewPage() to get the Page
354: [12:31:14] <wmk> in the template
355: [12:31:33] <elgabbu> hmm
356: [12:31:41] <wmk> <% with $ProductReviewPage %> $Title <% end_with %>
357: [12:31:46] <ocmnt> elgabbu, do you want to show the content of the page?
358: [12:31:51] <wmk> e.g.
359: [12:32:03] <ocmnt> wmk, why use with and not loop?
360: [12:32:09] <wmk> ocmnt, has_one!
361: [12:32:09] <ocmnt> I never got when to use which of those
362: [12:32:14] <ocmnt> ah :)
363: [12:32:16] <ocmnt> now I got it :P
364: [12:32:17] <wmk> loop: you have a bunch of items
365: [12:32:23] <wmk> with: you have one single item
366: [12:32:58] <ocmnt> thnks
367: [12:33:04] <ocmnt> $ProductReviewPage.Title
368: [12:33:07] <ocmnt> could do aswell btw
369: [12:33:14] <elgabbu> mmm both are not working
370: [12:33:26] <ocmnt> does your has_one get saved properly in DB?
371: [12:33:36] <wmk> elgabbu, in your widget template
372: [12:33:38] <wmk> ?
373: [12:33:48] <elgabbu> yes i can see that it was saved properly in the database
374: [12:34:00] <elgabbu> yeah not showing the title in the widget template
375: [12:34:15] <wmk> hmm
376: [12:34:19] <ocmnt> did you flush?
377: [12:34:50] <elgabbu> yes
378: [12:37:34] <wmk> elgabbu, and you can see output of the template (e.g. static text?)
379: [12:38:32] <elgabbu> yes
380: [12:38:42] <elgabbu> in fact my widget has an attribute
381: [12:38:48] <elgabbu> static $db = array('PromtionText' => 'Text');
382: [12:39:10] <elgabbu> and when i put .... $PromtionText in the template it gets displayed correctl
383: [12:45:46] <elgabbu> any clues?
384: [12:47:11] * MrGuits has joined #silverstripe
385: [12:52:36] <ocmnt> not really, could you show us some code elgabbu of your widget?
386: [12:54:31] <elgabbu> sure
387: [12:54:51] <elgabbu> class FeaturedProductWidget extends Widget {
388: [12:54:56] <elgabbu> static $db = array('PromtionText' => 'Text');
389: [12:55:01] <elgabbu> static $title = "Featured Product";
390: [12:55:09] <elgabbu> static $cmsTitle = "Featured Product";
391: [12:55:15] <elgabbu> static $description = "A featured product";
392: [12:55:22] <elgabbu> private static $has_one = array( 'ProductReviewPage' => 'ProductReviewPage' );
393: [12:55:35] <ocmnt> ah, please use something as sspaste.com or pastebin
394: [12:55:45] <ocmnt> to avoid flooding/spamming :D
395: [12:55:50] <elgabbu> oh sry
396: [12:56:02] <ocmnt> its ok
397: [12:57:02] <elgabbu> http://sspaste.com/paste/show/54ae7e5beadee
398: [12:57:25] <ocmnt> brb
399: [12:57:50] <wmk> elgabbu, and the template?
400: [12:58:05] <wmk> btw: you should also make private static $db
401: [12:58:19] <elgabbu> template is .. $PromtionText <br/> <% with $ProductReviewPage %> $Title <% end_with %>
402: [12:58:39] <elgabbu> $PromotionText displays correctly ... but the title is not displayed
403: [12:58:50] <wmk> and maybe put $db and $has_one on top, so first database stuff, then other config vars
404: [12:59:07] <wmk> what does $ProductReviewPageID in a template print?
405: [12:59:25] <wmk> and - is there a ProductReviewPage with this ID?
406: [13:00:40] <elgabbu> it prints 23 which is a valid record from the ProductReviewPage table
407: [13:02:22] <MrGuits> My FormActions are not working unless I am logged in
408: [13:02:33] <MrGuits> (Page reloads on submit)
409: [13:10:00] * Shrike_Finland quit (Quit: Leaving.)
410: [13:11:16] * R\w\C has joined #silverstripe
411: [13:11:42] <R\w\C> Hey guys, once i have used the requirements:: to include all my css files how do i print those files on my template?
412: [13:12:05] <R\w\C> is there a variable i can refer to ie. $Styles in my template file
413: [13:13:12] <R\w\C> which will generate the <link rel="stylesheet" href="xxxx">
414: [13:15:06] <wmk> elgabbu, and $ProductReviewPage.Title ??
415: [13:15:41] <wmk> R\w\C, it should output css in header automatically
416: [13:15:55] * Shrike_Finland has joined #silverstripe
417: [13:16:05] <R\w\C> wmk okay let me take a closer look
418: [13:17:12] <elgabbu> wmk that shows nothing
419: [13:17:47] <wmk> hmm... something widget special?
420: [13:18:19] <wmk> or not the right scope?? dunno
421: [13:18:27] <elgabbu> wmk, widget is pretty straight forward i guess
422: [13:18:49] <wmk> havent used it so much
423: [13:24:36] <R\w\C> wmk they do not produce any css in header automatically - i have modified the Page.ss with all my own code
424: [13:24:45] <R\w\C> is there a tag i should be including on the template?
425: [13:24:59] <wmk> hmm...
426: [13:25:23] <wmk> R\w\C, i try to require as much as possible in the templates
427: [13:25:31] <R\w\C> im using this page as reference http://doc.silverstripe.org/framework/en/reference/requirements
428: [13:25:43] <R\w\C> and the guy at the bottom recommends adding calls in the controller
429: [13:25:48] <R\w\C> bottom = comments
430: [13:26:23] * UndefinedOffset has joined #silverstripe
431: [13:26:27] <R\w\C> im trying to use this
432: [13:26:27] <R\w\C> Requirements::combine_files(
433: [13:26:28] <R\w\C> 'foobar.js',
434: [13:26:28] <R\w\C> array(
435: [13:26:28] <R\w\C> 'mysite/javascript/foo.js',
436: [13:26:28] <R\w\C> 'mysite/javascript/bar.js',
437: [13:26:29] <R\w\C> )
438: [13:26:29] <R\w\C> );
439: [13:26:32] <R\w\C> sorry for long paste :(
440: [13:27:48] <wmk> ok, combined files is a bit different, cannot be done in template :(
441: [13:28:07] <wmk> but it should be inserted automatically right before </head> in your page
442: [13:28:38] <wmk> see source docs of Requirements_Backend:includeINHTML
443: [13:29:38] <wmk> combined files wants to write the file somewhere, check error log if there is a problem with that
444: [13:30:38] <wmk> and if you're in dev mode it won't combine the files
445: [13:30:51] <wmk> so you have to include the file with requirements::css() AND combine it
446: [13:34:26] <ocmnt> bk
447: [13:35:59] <R\w\C> ah okay wmk i changed from dev to live and its now working :)
448: [13:36:01] <R\w\C> thank you
449: [13:36:35] <wmk> R\w\C, just read source code phpdocs (which is the same as api.silverstripe.org), you find many things
450: [13:36:38] <wmk> had to lookup myself
451: [13:36:58] <R\w\C> okay thanks for the heads up will do that next time
452: [13:37:06] <wmk> np
453: [13:37:32] <wmk> but your first question wasn't fully described... requirements::css() WILL output magically
454: [13:37:42] <wmk> or Requirements::javascript()
455: [13:37:59] <wmk> this combine_files() is afaik the only that works a bit differently
456: [13:39:09] <wmk> oh man, if this oreilly book wasn't only a preview. looks damn good
457: [13:42:30] <ocmnt> R\w\C, what if you remove mysite/ from the path in your array?
458: [13:42:47] <ocmnt> oh nvm, see it is olready solved
459: [13:43:07] <ocmnt> requirements ignores files that are not found,
460: [13:45:11] <Pyhamck> [13:24] <R\w\C> wmk they do not produce any css in header automatically
461: [13:45:14] <Pyhamck> you spelt them wrong then.
462: [13:45:34] <wmk> Pyhamck, it was combine_files
463: [13:45:44] <wmk> which doesn't output in dev mode
464: [13:45:56] <R\w\C> :)
465: [13:45:59] <Pyhamck> yeah, just pointing out that when you are using require, it silently fails when it can't find the file.
466: [13:46:08] <Pyhamck> for future knowledge.
467: [13:46:12] <wmk> that's right Pyhamck
468: [13:46:18] <R\w\C> yep im slowly realizing that pyhamck
469: [13:46:30] <R\w\C> everything is working fine now though thanks for the concern guyz
470: [13:46:40] <R\w\C> Pyhamck & ocmnt
471: [13:46:47] <R\w\C> such a great community feel
472: [13:46:57] <wmk> yeah
473: [13:47:06] <ocmnt> hear hear :)
474: [13:47:06] <R\w\C> and obv wmk for supplying the solution
475: [13:47:08] <Pyhamck> :)
476: [13:47:18] <wmk> Zauberfisch, we should have an ansible talk at next conference
477: [13:48:58] * R\w\C quit (Changing host)
478: [13:48:58] * R\w\C has joined #silverstripe
479: [13:54:32] * Shrike_Finland quit (Quit: Leaving.)
480: [13:57:03] * Guits quit (Ping timeout: 264 seconds)
481: [13:57:25] * MrGuits quit (Ping timeout: 264 seconds)
482: [13:57:25] * arnhoe quit (Ping timeout: 264 seconds)
483: [13:57:45] * arnhoe has joined #silverstripe
484: [14:08:36] * _hschillig1 has joined #silverstripe
485: [14:10:34] <_hschillig1> So I have a controller with an action of index() so whenever I go to mysite.com/recipes, it will point to my Recipe_Controller.php file. Now in the view I rendered it with, I'm calling $FormattedTags.. and I want it to look at the method in the Recipe_Controller called FormattedTags() like SS would with a typical page template.. however, it's not. Can you not use methods from the controller with the renderWith() setup? http://pastebin.com/AC1Z47Dh
486: [14:11:23] <_hschillig1> Right now I'm passing that 'FormattedTags' data to the view.. but I shouldnt' have to do that.. it doesn't work that way either since I would have to pass data as a parameter which I can't do there since Recipes is an array of data.
487: [14:13:04] <wmk> your FormattedTags() method returns nothing
488: [14:13:27] <_hschillig1> Right now in my FormattedTags() method, I'm just doing a die('hi'); at the very top just to see if $FormattedTags in the template hits it, which it doesn't.
489: [14:13:51] <_hschillig1> http://pastebin.com/30wVm5j5
490: [14:13:56] <_hschillig1> There is my new Recipe controller
491: [14:14:14] <wmk> rename it to $getFormattedTags in Receips class
492: [14:14:24] <_hschillig1> When I call $FormattedTags( $Tags ) in the Recipes.ss, it doesn't hit that method.
493: [14:14:37] <_hschillig1> Not inside the controller?
494: [14:14:42] <_hschillig1> It would be inside the 'model'?
495: [14:15:04] <wmk> your method is inside the model
496: [14:15:16] * arnhoe quit (Ping timeout: 264 seconds)
497: [14:15:18] <wmk> and you call the DataObject to output a value, all tags.
498: [14:15:40] <wmk> though later i'd use a template to format it ;)
499: [14:16:06] <_hschillig1> Ah ok. I can use an include instead to format it. And moving it into the model worked. Thanks!
500: [14:16:08] <wmk> you want the single Receipe to format its tags.
501: [14:16:28] <wmk> np
502: [14:16:45] <wmk> thanks for pasting everything at start. helped a lot
503: [14:17:25] <_hschillig1> Ah ok :) Well thank you for helping! Yup. I hate when people ask me Laravel questions without any code samples :P Makes it difficult to work with.
504: [14:17:49] <wmk> s/laravel/silverstripe/
505: [14:18:39] <_hschillig1> huh?
506: [14:18:50] <wmk> same here
507: [14:18:54] <_hschillig1> ohh :)
508: [14:19:00] <wmk> (was a try of vim search/replace command)
509: [14:19:06] <_hschillig1> lol xP
510: [14:21:11] * arnhoe has joined #silverstripe
511: [14:31:55] * guci0 quit (Ping timeout: 246 seconds)
512: [14:32:05] * catcher has joined #silverstripe
513: [14:33:59] <_hschillig1> If you are trying to loop through an array in your template.. how do you get the current index value? $Me? It doesn't have aname like the database objects do.
514: [14:34:09] <_hschillig1> $Me isn't showing the value.
515: [14:34:21] <_hschillig1> I'm returning array('recipes', 'healthy') to the template and looping through that array
516: [14:34:24] <wmk> array or ArrayList?
517: [14:34:49] <wmk> i guess you cannot get the index key in template
518: [14:38:12] * Eliseth quit (Ping timeout: 245 seconds)
519: [14:38:14] <kinglozzer> _hschillig1: You can't loop over an array like that
520: [14:39:10] <_hschillig1> Ah turning it into an arraylist worked :)
521: [14:39:19] <kinglozzer> Sweet :)
522: [14:39:22] * lerni has joined #silverstripe
523: [14:39:49] <Pyhamck> _hschillig1: $Pos
524: [14:40:24] <Pyhamck> but it is indexed.
525: [14:48:14] <wmk> Pyhamck, yodaman!
526: [14:48:23] <Pyhamck> ?
527: [14:48:33] <wmk> $Pos... didn't think of that
528: [14:48:44] <Pyhamck> "but indexed it is."
529: [14:48:47] <Pyhamck> yoda man.
530: [14:48:52] <Pyhamck> that guy...
531: [14:49:04] <ocmnt> :´)
532: [14:49:40] <wmk> hm, no,
533: [14:49:47] <wmk> more in "yo da man"
534: [14:49:55] <Pyhamck> Yeah, I got it :P
535: [14:50:04] <ocmnt> got it you do?
536: [14:50:06] <wmk> you it got'd?
537: [14:50:20] <Pyhamck> heh
538: [14:50:55] <Pyhamck> got the IT manager in here asking if the internet will let galaxies get on the network.
539: [14:51:25] <ocmnt> samsung galaxies? or the real deal?
540: [14:51:35] <Pyhamck> yeah nah, the real deal.
541: [14:51:36] <ocmnt> like the andromeangalaxy?
542: [14:51:40] <Pyhamck> yeh.
543: [14:51:46] <ocmnt> well, why should he care
544: [14:51:53] <Pyhamck> pretty sure that's the real source of all this cyber SPAAAAAAAAAAAACE
545: [14:52:00] <ocmnt> it only takes 17 mil years to find out what they are up to anyway
546: [14:52:19] <Pyhamck> http://i.imgur.com/gfSaD.jpg
547: [14:52:23] <ocmnt> given that they use light as datatransmision
548: [14:54:54] <Pyhamck> subspace brah.
549: [14:55:16] <Pyhamck> got lightwave modems at each end of a subspace connection, true story.
550: [14:55:21] * dendeffe quit (Quit: dendeffe)
551: [14:55:37] <ocmnt> but what happens to all that data when traveling with the speed of light?
552: [14:55:42] <ocmnt> some kind of supercompression?
553: [14:55:48] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
554: [14:55:49] <Pyhamck> yeh
555: [14:56:10] <Pyhamck> I mean, if you can tear a hole in the fabric of space and time, you're sure to have better compression than MP4.
556: [14:56:56] <ocmnt> hahaha
557: [15:02:06] * muskie9 has joined #silverstripe
558: [15:43:43] * NETim has joined #silverstripe
559: [15:44:44] <NETim> Morning, having a thick moment. Got a dataobject that has_many_many relatedObjects, how would one go about removing one specific relatedObject from that relation?
560: [15:45:14] <wmk> $relationName()->remove()
561: [15:45:21] <wmk> see ManyManyList documentation
562: [15:45:25] <catcher> http://api.silverstripe.org/3.0/class-ManyManyList.html#_remove
563: [15:45:31] * Guits has joined #silverstripe
564: [15:45:34] <wmk> catcher, 10x for the link
565: [15:45:36] * MrGuits has joined #silverstripe
566: [15:46:05] <catcher> & 3.1: http://api.silverstripe.org/3.1/class-ManyManyList.html#_remove
567: [15:46:18] <catcher> Strikingly similar :)
568: [15:46:56] <NETim> Sort of got that far. Might be heading down a dead end but I'm getting $object->relatedObjects() and looping them to see if they are in an array, but when looping I'm dropping into the actual object and not the relation.
569: [15:47:06] <NETim> so remove() doesn't exist on the object.
570: [15:52:43] <muskie9> NETim it would be more of $list = $object->relatedObjects(); $list->remove($objectToRemove); iirc
571: [15:53:12] <NETim> How would one find $objectToRemove?
572: [15:53:25] <NETim> (I fear I'm having one of those overcomplicating moments.)
573: [15:54:08] <muskie9> when you're looping through your list you determine if the object is to be removed... if it is the one then use your list var holding the related objects and pass the current object in the loop?
574: [15:54:48] <NETim> Ok, looking through the code for datalist that uses the object ID, which in this case would be the dataobject ID and not the relation ID?
575: [15:55:22] <muskie9> I think so, since you need to let it know which object to remove
576: [15:55:59] <NETim> Ah, might have confused matters. I don't want to remove the Object, just the relation.
577: [15:56:03] * _hschillig1 has left #silverstripe
578: [15:58:04] <muskie9> correct, that's what $list->remove($yourObject) should do
579: [15:58:37] <muskie9> if you have the ID then do $list->removeByID($objectID)
580: [16:00:35] <NETim> Tried that and it deleted the object.
581: [16:00:44] <NETim> I've written around my stupidity.
582: [16:02:01] <muskie9> odd that it deletes the object, although I usually have to fight w/many_many lists too ;)
583: [16:02:12] <NETim> yeh. They're fun \s
584: [16:02:45] <muskie9> according to the API remove() calls removeByID() which in the doc blocks calls out that only the join table should be affected: http://api.silverstripe.org/3.1/source-class-ManyManyList.html#279-301
585: [16:04:03] <NETim> Think I was somehow getting a datalist, which would explain things.
586: [16:05:03] <muskie9> that'd probably do it
587: [16:06:20] <NETim> Yup, thought so.
588: [16:06:29] <NETim> Cheers anyway guys.
589: [16:07:05] <wmk> __________________
590: [16:07:05] <wmk> < Time for a coffee! >
591: [16:07:05] <wmk> ------------------
592: [16:07:05] <wmk> \ ^__^
593: [16:07:05] <wmk> \ (oo)\_______
594: [16:07:06] <wmk> (__)\ )\/\
595: [16:07:07] <wmk> ||----w |
596: [16:07:09] <wmk> || ||
597: [16:07:15] <muskie9> lol
598: [16:07:31] <ocmnt> hm, coffee :D
599: [16:07:32] <wmk> http://cowsay.morecode.org/
600: [16:09:27] * wmk quit (Quit: nice to meet you ;))
601: [16:10:07] * gelignite has joined #silverstripe
602: [16:13:13] <Pyhamck> moo!
603: [16:13:28] <Pyhamck> super cow powers wmk?
604: [16:15:17] <Pyhamck> yes, caffine time I think.
605: [16:15:47] <ocmnt> Pyhamck, you spelled vicodin wrong
606: [16:15:51] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
607: [16:27:45] * Frans_Amsterdam has joined #silverstripe
608: [16:28:16] * CodeTrap has joined #silverstripe
609: [16:28:41] * arnhoe quit ()
610: [16:31:30] * Frans_Amsterdam quit (Client Quit)
611: [16:40:01] * NETim quit (Ping timeout: 246 seconds)
612: [16:43:25] * jenniferaslan has joined #silverstripe
613: [16:50:06] <Pyhamck> ocmnt: icloud; it's the new instagram.
614: [16:50:17] <ocmnt> hm?
615: [16:50:22] <Pyhamck> joke
616: [16:52:14] <ocmnt> haha
617: [16:52:31] <ocmnt> I still keep my stance on the fappening that it was a promotional action for the apple con
618: [16:52:33] <ocmnt> the week after
619: [16:52:42] <ocmnt> just like the sony hack was propaganda for the interview
620: [16:57:58] * lerni quit (Remote host closed the connection)
621: [17:15:11] * UndefinedOffset1 has joined #silverstripe
622: [17:15:11] * UndefinedOffset quit (Disconnected by services)
623: [17:15:29] * UndefinedOffset1 is now known as UndefinedOffset
624: [17:15:39] * CodeTrap quit (Ping timeout: 264 seconds)
625: [17:27:28] * kinglozzer quit ()
626: [17:30:30] <Pyhamck> ciao!
627: [17:30:33] * Pyhamck quit ()
628: [18:00:48] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
629: [18:01:32] * travis-ci has joined #silverstripe
630: [18:01:32] <travis-ci> dhensby/silverstripe-framework#46 (3.1 - 146b468 : Will Rossiter): The build passed.
631: [18:01:32] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/8b0bcd93e8bc...146b4689b8b0
632: [18:01:32] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/46343260
633: [18:01:32] * travis-ci has left #silverstripe
634: [18:06:26] * oddnoc has joined #silverstripe
635: [18:09:14] * travis-ci has joined #silverstripe
636: [18:09:14] <travis-ci> dhensby/silverstripe-framework#47 (pulls/empty-manifest-fix - 7d484d1 : Daniel Hensby): The build failed.
637: [18:09:14] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/7d484d10d135
638: [18:09:14] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/46343442
639: [18:09:14] * travis-ci has left #silverstripe
640: [18:13:09] * travis-ci has joined #silverstripe
641: [18:13:09] <travis-ci> dhensby/silverstripe-framework#48 (pulls/empty-manifest-fix - bbf3402 : Daniel Hensby): The build has errored.
642: [18:13:09] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/7d484d10d135...bbf3402787e1
643: [18:13:09] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/46343702
644: [18:13:09] * travis-ci has left #silverstripe
645: [18:13:40] * Kingy is now known as Kingy[a]
646: [18:13:43] * Kingy[a] is now known as Kingy
647: [18:17:00] * Kingy is now known as Kingy[a]
648: [18:24:54] * travis-ci has joined #silverstripe
649: [18:24:54] <travis-ci> dhensby/silverstripe-framework#50 (pulls/empty-manifest-fix - 002fa83 : Daniel Hensby): The build failed.
650: [18:24:54] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/7d484d10d135...002fa8317671
651: [18:24:54] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/46345346
652: [18:24:54] * travis-ci has left #silverstripe
653: [18:42:09] * travis-ci has joined #silverstripe
654: [18:42:09] <travis-ci> dhensby/silverstripe-framework#51 (pulls/empty-manifest-fix - 1b366e4 : Daniel Hensby): The build was fixed.
655: [18:42:09] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/002fa8317671...1b366e4b91cb
656: [18:42:09] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/46347771
657: [18:42:09] * travis-ci has left #silverstripe
658: [18:43:41] * veb has joined #silverstripe
659: [18:52:20] * Stomach has joined #silverstripe
660: [19:11:30] * dendeffe has joined #silverstripe
661: [19:12:44] * chillu_23 has joined #silverstripe
662: [19:26:32] * zippy has joined #silverstripe
663: [19:31:05] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
664: [19:33:29] * Phlunk3 has joined #silverstripe
665: [19:43:51] * camfindlay has joined #silverstripe
666: [19:45:30] * glenn-bautista has joined #silverstripe
667: [19:46:41] * veb quit (Quit: veb-irc: &)
668: [19:47:59] * muskie9 has joined #silverstripe
669: [19:48:11] * spekulatius quit (Remote host closed the connection)
670: [19:48:18] <Stomach> good morning team!
671: [19:50:25] <glenn-bautista> good morning stomach
672: [19:55:55] <Stomach> hows it going glenn-bautista
673: [19:55:58] <Stomach> you're in early! :D
674: [19:59:10] * gelignite quit (Quit: http://bit.ly/nkczDT)
675: [20:05:18] <glenn-bautista> It's going great
676: [20:05:34] <glenn-bautista> I'm now early all the time.. live too far away now
677: [20:05:35] * veb has joined #silverstripe
678: [20:06:00] <glenn-bautista> off to morning stand-up meeting...
679: [20:08:51] * lerni has joined #silverstripe
680: [20:08:56] * _hschillig1 has joined #silverstripe
681: [20:09:40] <_hschillig1> I'm using routing to display this page.. so no page template is being used. So $Link doesn't have any data. Is there anyway to get the current url in Silverstripe? Or will I have to build a function?
682: [20:11:08] <oddnoc> _hschillig1: Override Controller->Link() in your own controller
683: [20:13:44] * lerni_ has joined #silverstripe
684: [20:13:56] <_hschillig1> My controller it doesn't go through, but when I put it in the model, all it's returning is the baseurl and the controller name. www.site.com/Name_Controller... it's not giving an actual Link. This is what I'm returning in the Link() method: return Director::get_current_page()->Link();
685: [20:14:01] <_hschillig1> Is there a better way of doing it?
686: [20:16:06] <_hschillig1> Ok this: return Director::absoluteURL( Director::get_current_page() ); returns the entire URL but changes the "ID" parameter value in "Page" string... it has www.site.com/recipes/view/slug-name/Page when it should be www.site.com/recipes/view/slug-name/4
687: [20:17:20] * lerni quit (Ping timeout: 244 seconds)
688: [20:23:14] <_hschillig1> Maybe I have the routing setup wrong... I have a url like this: http://blog-silverstripe.localhost/recipes/view/cheesy-squash-and-zucchini-casserole/4
689: [20:23:14] <_hschillig1> So 'recipes' points towards the controller Recipe_Controller. It's look for the method view().. then I'll be able to get the Slug and ID parameter.. In my routes, I have this: 'recipes//$Action/$Slug/$ID' : 'Recipe_Controller'
690: [20:23:14] <_hschillig1> Is this wrong? When I do a die(var_dump($request)) on the $request in the view() method, it shows Action => 'view', Slug => 'cheesy-squash-blah-blah-blah', ID => 'cheesy-squash-blah-blah-blah', and OtherID => 4. Shouldn't the ID be set to 4? Not OtherID ?
691: [20:27:54] * camfindlay quit (Quit: camfindlay)
692: [20:28:15] * ocmnt quit (Ping timeout: 264 seconds)
693: [20:29:25] <oddnoc> _hschillig1: It sounds like the default route is still being used (the one with $Action/$ID/$OtherID
694: [20:29:27] * ocmnt has joined #silverstripe
695: [20:30:32] * nathanz has joined #silverstripe
696: [20:36:10] * nathanz1 has joined #silverstripe
697: [20:36:11] * nathanz quit (Read error: Connection reset by peer)
698: [20:38:05] <_hschillig1> Have any idea why?
699: [20:44:38] * Guits quit (Read error: Connection reset by peer)
700: [20:44:42] * MrGuits quit (Read error: Connection reset by peer)
701: [20:47:08] <oddnoc> _hschillig1: Do you have your route in a yml file or in a static private $url_handlers?
702: [20:55:05] * Guits has joined #silverstripe
703: [20:57:27] * rved has joined #silverstripe
704: [20:58:18] <rved> Hi all, 2.4.x question. How do i return a boolean + ID from a DataObject in a custom dropdown? http://paste2.org/y7AcbEtW
705: [20:58:20] <Guits> Hi all (asked this before but was disconnected so i saw no reply) I cannot send forms unless i am logged in. Page is only reloading (
706: [20:59:51] * gelignite has joined #silverstripe
707: [21:12:53] * rved has left #silverstripe
708: [21:13:31] <Stomach> rved - that looks right?
709: [21:13:32] <Stomach> oh
710: [21:13:33] <Stomach> bye
711: [21:13:49] <Stomach> Guits - what is the error that is occurring - are you getting any error?
712: [21:14:00] <Stomach> can you put a copy of the code somewhere so we can look at it?
713: [21:14:07] <Guits> No error
714: [21:15:22] <Guits> http://www.sspaste.com/paste/show/54aef3509e789
715: [21:15:34] <Guits> made it work with $form->disableSecurityToken();
716: [21:15:49] <Guits> but that's no good ..
717: [21:16:17] <ocmnt> Guits, did you add the submission function to allowed_actions?
718: [21:16:33] <Guits> errrr. no
719: [21:16:40] <Guits> SendContactForm ?
720: [21:17:07] <ocmnt> if that is the function, yes
721: [21:17:47] * UncleCheese has joined #silverstripe
722: [21:19:40] <Guits> no .. is that really needed?
723: [21:19:47] <Guits> (and it does not work)
724: [21:20:06] <Guits> BUT it works without it if i am logged in
725: [21:20:19] <ocmnt> it is an permission issue as I see it
726: [21:20:23] <ocmnt> since it only works while logged in
727: [21:20:45] <ocmnt> add your contactform + formsubmission function to allowed actions, so all users are allowed to call both functions
728: [21:20:49] <ocmnt> that should make it work
729: [21:21:28] <Guits> It does not.. weird though It works on chrome (fresh session) not on safari / ff / msie
730: [21:21:46] <ocmnt> clear cache + cookies
731: [21:21:49] <ocmnt> see if it works then?
732: [21:22:26] <Guits> it is free (private window on chrome)
733: [21:23:25] * cloph quit (Remote host closed the connection)
734: [21:23:27] <ocmnt> it was working on chrome you said? :P
735: [21:23:33] <ocmnt> try the other browsers too
736: [21:23:52] * kinglozzer has joined #silverstripe
737: [21:24:40] <Guits> firefox does not work in private mode and all session cleared
738: [21:25:20] <Stomach> Guits - does your form have a SecurityID field on it?
739: [21:25:35] <Guits> BUT.. after disableSecurityToken() added - form submitted (works) and then removed disableSecurityToken() .. it works
740: [21:25:53] <Stomach> where is the code for where you instantiate the form in the controller also
741: [21:26:13] <Stomach> oh this is in the controller, my bad
742: [21:26:42] <Guits> yes
743: [21:27:15] <Guits> No SecurityID anywhere on my site
744: [21:27:16] <ocmnt> sounds to me as a browser thing (or just not a clear session)
745: [21:27:38] <ocmnt> since the behaviour of not working / does work
746: [21:30:16] * cloph_away has joined #silverstripe
747: [21:31:13] <Guits> SecurityID ? Where would that be.. is that autogeneretad by form?
748: [21:31:38] <kinglozzer> Guits: Yeah, it's a hidden input
749: [21:31:52] <Guits> not there
750: [21:34:19] <Guits> Looking through form with firebug and can see no SecurityID
751: [21:34:19] * Olliepop has joined #silverstripe
752: [21:34:35] * ArrakisDairy is now known as wrybeak
753: [21:34:46] <kinglozzer> Guits: Have you still got ->disableSecurityToken() ?
754: [21:34:54] <kinglozzer> Are you using partial caching?
755: [21:35:33] <Guits> i am using partial cache but not where form is
756: [21:37:26] * wrybeak is now known as OldBigBeak
757: [21:37:41] <Guits> ..sorry my bad (I still had $form->disableSecurityToken(); )
758: [21:40:56] <Guits> But I still cannot understand what is happening
759: [21:41:48] * mahfuz has joined #silverstripe
760: [21:43:49] <ocmnt> it still is not working Guits? after removing disableSecurityToken?
761: [21:45:37] <Guits> no it only works when having disableSecurityToken
762: [21:45:46] <Guits> and when logged in
763: [21:46:06] <Guits> ..and on chrome
764: [21:46:30] <ocmnt> close all the other browsers in full, probably there is some cache or cookie stuck that you miss out on
765: [21:46:36] <ocmnt> or something weird is happening
766: [21:48:51] * _hschillig1 has left #silverstripe
767: [21:49:03] * UndefinedOffset quit (Quit: Leaving.)
768: [21:50:58] * kinglozzer quit ()
769: [21:59:42] * dendeffe quit (Quit: dendeffe)
770: [22:07:02] * markcl has joined #silverstripe
771: [22:11:39] * catcher quit (Quit: Leaving)
772: [22:27:02] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
773: [22:30:38] * gelignite quit (Quit: http://bit.ly/nkczDT)
774: [22:40:01] * UncleCheese has joined #silverstripe
775: [22:40:22] * camfindlay has joined #silverstripe
776: [22:56:09] * Guits quit (Ping timeout: 244 seconds)
777: [23:13:13] * chillu_23 quit (Read error: Connection reset by peer)
778: [23:15:47] * camfindlay quit (Ping timeout: 244 seconds)
779: [23:16:55] * chillu_23 has joined #silverstripe
780: [23:23:29] * spronk2 has joined #silverstripe
781: [23:24:06] <zippy> spronk2: no u didn't..!
782: [23:24:17] <spronk2> O YES I DI-ID
783: [23:24:22] <spronk2> :P
784: [23:24:31] * lerni_ quit (Remote host closed the connection)
785: [23:24:44] <zippy> spronk2: one foot in each room
786: [23:27:20] <zippy> fair enough, hows the break been for you?
787: [23:29:09] * ocmnt quit (Ping timeout: 252 seconds)
788: [23:36:33] * spronk2 quit (Quit: I may need a longer sleep timer...)
789: [23:38:50] * markcl quit (Quit: Leaving.)
790: [23:45:19] * markcl has joined #silverstripe
791: [23:46:58] * spronk2 has joined #silverstripe
792: [23:50:55] * veb quit (Quit: veb-irc: &)
793: [23:56:05] <MichalKleiner> heya, can anyone recommend good transform script/tool to convert ss 2.4 to 3.1? or at least share some experience with such tools? thanks!
794: [23:56:23] * spronk2 quit (Quit: bleep bleep bloop bloop)
795: [23:57:55] * spronk2 has joined #silverstripe
796: [23:58:07] <muskie9> MichalKleiner http://doc.silverstripe.org/framework/en/installation/upgrading
797: [23:58:48] <muskie9> might want to read over the 3.0 version too, but 2.4 to 3.1 is such a big jump I wouldn't go from 2.4 to 3.0 then to 3.1, I'd jump right up to 3.1

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