#silverstripe IRC Log

IRC log for 23 December 2014

All timestamps are in UTC.

1: [00:00:10] * Guits quit (Ping timeout: 258 seconds)
2: [00:00:54] * NachoCologne quit (Quit: Page closed)
3: [00:07:13] * marvanni has joined #silverstripe
4: [00:23:37] * veb quit (Remote host closed the connection)
5: [00:34:34] * Guest80291 quit (Ping timeout: 246 seconds)
6: [00:34:55] * marvanni quit (Quit: marvanni)
7: [01:02:48] * jenniferaslan quit (Quit: jenniferaslan has left the room)
8: [01:09:42] * jedateach has joined #silverstripe
9: [01:16:52] * jedateach quit (Quit: jedateach)
10: [01:17:12] * jedateach has joined #silverstripe
11: [01:22:38] * jedateach quit (Quit: jedateach)
12: [01:23:22] * jedateach has joined #silverstripe
13: [01:30:15] * jedateach quit (Ping timeout: 258 seconds)
14: [01:34:43] <MichalKleiner> hey guys you all have nice holidays, merry christmas and see you next year!
15: [01:38:15] * jedateach has joined #silverstripe
16: [01:38:55] * simon_w|air quit (Ping timeout: 264 seconds)
17: [01:38:58] * mahfuz quit (Ping timeout: 246 seconds)
18: [01:39:43] <novaweb> See you Michal, looks like everyone's gone on holiday already!
19: [01:41:31] * jedateach quit (Client Quit)
20: [01:46:00] * simon_w|work hasn't!
21: [01:46:04] <simon_w|work> Well, I have
22: [01:46:07] <simon_w|work> But I'm back already!
23: [01:46:39] * jedateach has joined #silverstripe
24: [01:56:57] * jedateach quit (Quit: jedateach)
25: [02:03:08] * novaweb assigns simon_w the task of becoming a wizard by 2015
26: [02:03:38] <novaweb> http://en.wikipedia.org/wiki/Wizard_Staff
27: [02:04:05] <novaweb> the rule i'm familiar with is: once your staff is taller than you, you are thereinafter a wizard
28: [02:04:28] * novaweb quit (Quit: Leaving)
29: [02:15:16] * Vanny quit (Quit: Page closed)
30: [02:15:57] * MichalKleiner quit (Ping timeout: 240 seconds)
31: [02:28:35] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
32: [02:47:01] * simon_w|air has joined #silverstripe
33: [03:47:02] * gordon has joined #silverstripe
34: [03:47:25] * gordon is now known as Guest47128
35: [03:48:56] * Guest47128 is now known as elgrodo
36: [03:49:16] * r_hector has joined #silverstripe
37: [03:59:56] <elgrodo> http://sspaste.com/paste/show/5498e89478c7a < it possible to retrieve DataObjects with a query like that using the SilverStripe ORM? Only option I can see is a db query to get the IDs, another to get the records, and then order them correctly in PHP
38: [04:40:36] * jedateach has joined #silverstripe
39: [04:43:46] * jedateach has left #silverstripe
40: [05:46:14] * jedateach has joined #silverstripe
41: [06:19:52] * jedateach quit (Quit: jedateach)
42: [06:45:40] * jedateach has joined #silverstripe
43: [06:47:04] * jedateach quit (Client Quit)
44: [07:28:16] * Error404NotFound has joined #silverstripe
45: [07:28:47] * jedateach has joined #silverstripe
46: [08:08:40] * arnhoe has joined #silverstripe
47: [08:17:56] <Eliseth> morning
48: [08:19:31] * jeroenem has joined #silverstripe
49: [09:18:13] * Guits has joined #silverstripe
50: [09:20:46] * actioussan has joined #silverstripe
51: [09:25:03] <actioussan> Hey guys, i have a urlsegment field and I want silverstripe to allow upper case in the urls. Does anyone know how?
52: [09:28:45] <elgrodo> hold on, I might know one option
53: [09:30:52] <elgrodo> http://sspaste.com/paste/show/54993628de875 might work - it allows Thai lettering, so I guess it just skips the slugifying of the URL
54: [09:33:01] <actioussan> sorry for the dumb question, but where should I set this string? In the config.php?
55: [09:33:33] <elgrodo> actioussan: or use the extension point in the relevant method in SiteTree, http://sspaste.com/paste/show/549936d144112
56: [09:34:01] <elgrodo> with regards to previous config create a file say called urlsegments.yml and put it in an _config directory of your choice
57: [09:34:12] <elgrodo> then you yoursite.com/dev/build otherwise the config change is not picked up
58: [09:37:06] <actioussan> ok, thanks. I'll try it
59: [09:42:33] <elgrodo> it doesn't work, just tried it
60: [09:44:10] <actioussan> yeah... i noticed that too
61: [09:44:28] <elgrodo> was just a hunch :(
62: [09:45:16] <actioussan> thanks anyway :)
63: [09:45:19] <elgrodo> the line with the stars is the problem http://sspaste.com/paste/show/549939aba6e6a
64: [09:47:09] <elgrodo> this method has an extension point, updateURLSegment, that would allow you to further manipulate the URL and put the caps back, or create a filter that doesn't lowercase the URL http://sspaste.com/paste/show/54993a0612fe0
65: [09:48:37] <elgrodo> you would need to create a class that extends Extension, add a function called updateURLSegment($filteredtitle,$originaltitle) and do your caps tweaking in that method
66: [09:52:10] <actioussan> thanks, i'll try that.
67: [09:52:56] * jedateach has left #silverstripe
68: [09:57:23] <elgrodo> I'll be online for another hour if you have any questions
69: [09:57:34] * Teddy_ has joined #silverstripe
70: [09:58:51] <Teddy_> if a upload field is asses from the type Page, how can i remove from some of the other pate types that extend Page since i don't want them all to have that upload field (confuses client)
71: [09:59:14] <Teddy_> *sorry for spelling
72: [09:59:34] <elgrodo> haha
73: [09:59:49] <elgrodo> *what* kind of images are you uploading :-P
74: [10:00:01] <elgrodo> I assumed you meant added
75: [10:00:20] <Teddy_> elgrodo, in Page php i just have a has one image that i added to the cms
76: [10:00:41] <Teddy_> elgrodo, but some other page type don't need it and i don't want to cliend to see it in the cms
77: [10:01:15] <Teddy_> elgrodo, is there a way from the subsequent page types to remove that specific field from the cms.E.G. remove if from the page type HomePage.php
78: [10:01:19] <elgrodo> after $fields = parent::getCMSFields();
79: [10:01:27] <elgrodo> $fields->removeByName('YourFieldName');
80: [10:01:36] <Teddy_> elgrodo, perfect thanks :)
81: [10:01:38] <elgrodo> in the function getCMSFields() method
82: [10:05:48] * jedateach has joined #silverstripe
83: [10:11:17] <Pyllk> hurro
84: [10:12:51] <Pyllk> how is Christmas in Thailand elgrodo? Is it still not a thing? I hope so.
85: [10:13:03] <elgrodo> only if you go to the malls
86: [10:13:08] <Pyllk> :<
87: [10:13:24] <Pyllk> I remember even the malls being bereft of bloody great trees.
88: [10:13:25] <elgrodo> it's a normal working day here
89: [10:13:36] <elgrodo> no they have bloody great trees now
90: [10:13:59] <elgrodo> plastic/metal towers a couple of storeys high
91: [10:14:11] <elgrodo> but elsewhere, along the canals, life as normal
92: [10:14:14] <Pyllk> D:
93: [10:14:25] <Pyllk> then again, I wasn't in the big smoke long, and didn't really go to malls
94: [10:16:04] <elgrodo> I only go into the city for cricket or railway related activities, can cycle halfway off the main roads
95: [10:18:47] <Pyllk> But I do remeber being surprised by the existence of a tree in a mall when I got to KL
96: [10:19:04] <Pyllk> And a little disappointed. It was quite refreshing to not have any stupidness.
97: [10:19:14] * Pyllk #grinchs
98: [10:19:22] <elgrodo> xmas is a commercial enterprise here, likes of only 1% of Thais are Christian
99: [10:19:36] <Pyllk> elgrodo: yeah, xmas is a commercial enterprise everywhere.
100: [10:19:43] * ThePeach has joined #silverstripe
101: [10:20:18] <Pyllk> like only 1% of people actually relate gift giving and snowey trees with jesus.
102: [10:29:56] <elgrodo> :)
103: [10:30:06] <elgrodo> a cat just helped add 724 blank lines to a file I was working on
104: [10:35:38] * Shrike_Finland has joined #silverstripe
105: [10:55:19] * Shrike_Finland quit (Quit: Leaving.)
106: [11:04:14] <Pyllk> elgrodo: good thing search and replace is a thing! :D
107: [11:13:34] <elgrodo> git checkout was sufficient for that file
108: [11:16:09] * jedateach quit (Quit: jedateach)
109: [11:24:50] * r_hector quit (Quit: Leaving.)
110: [12:10:37] * Shrike_Finland has joined #silverstripe
111: [12:11:18] * Shrike_Finland1 has joined #silverstripe
112: [12:11:24] * Shrike_Finland quit (Read error: Connection reset by peer)
113: [12:24:32] * elgrodo quit (*.net *.split)
114: [12:24:32] * simon_w|air quit (*.net *.split)
115: [12:24:32] * mobiusnz quit (*.net *.split)
116: [12:24:32] * jrthomer quit (*.net *.split)
117: [12:24:34] * babak quit (*.net *.split)
118: [12:24:42] * ThePeach quit (*.net *.split)
119: [12:24:42] * Teddy_ quit (*.net *.split)
120: [12:24:44] * superspring_ quit (*.net *.split)
121: [12:24:46] * Blacklite_ quit (*.net *.split)
122: [12:24:47] * Uitto quit (*.net *.split)
123: [12:24:48] * Shrike_Finland1 quit (*.net *.split)
124: [12:24:50] * guzzlefry quit (*.net *.split)
125: [12:24:51] * ec8or__ quit (*.net *.split)
126: [12:25:00] * AshKyd quit (*.net *.split)
127: [12:26:30] * elgrodo has joined #silverstripe
128: [12:26:31] * simon_w|air has joined #silverstripe
129: [12:26:31] * mobiusnz has joined #silverstripe
130: [12:26:31] * jrthomer has joined #silverstripe
131: [12:26:31] * babak has joined #silverstripe
132: [12:26:37] * ThePeach has joined #silverstripe
133: [12:26:37] * Teddy_ has joined #silverstripe
134: [12:26:37] * superspring_ has joined #silverstripe
135: [12:26:37] * Blacklite_ has joined #silverstripe
136: [12:26:37] * Uitto has joined #silverstripe
137: [12:26:59] * AshKyd has joined #silverstripe
138: [12:27:00] * Shrike_Finland1 has joined #silverstripe
139: [12:27:00] * guzzlefry has joined #silverstripe
140: [12:27:00] * ec8or__ has joined #silverstripe
141: [12:29:36] <Zauberfisch> is there a way to flush the objCache of ViewableData?
142: [12:44:18] <Guits> I get 403 when accessing controllers when i am logged in as admin.
143: [12:45:53] <Guits> I am on 3.1.6 i think it is the same on 3.1.8
144: [12:46:14] <Guits> must be a bug somehow .. can i force permission (200)
145: [13:13:08] <Pyllk> Zauberfisch: objcache?
146: [13:13:36] <Pyllk> Guits: I think it wiser to try and track why you're getting 403.
147: [13:13:42] <Pyllk> 403 is not the default response.
148: [13:13:53] <Pyllk> your code or some module must be causing it :<
149: [13:14:21] <Pyllk> Guits: but to answer your question, I think SS_HTTPRequest has some method like setResponseCode or something.
150: [13:14:39] <Pyllk> or maybe SS_HTTPResponse, one of them.
151: [13:17:02] * UndefinedOffset has joined #silverstripe
152: [13:21:33] <Zauberfisch> Pyllk: yeah. ViewableData caches all method calls from the template, and this is a huge pain right now
153: [13:22:13] <Zauberfisch> I thought I simply throw a ViewableData obj into the Session and then get it back after redirect, but then some properties are cached and don't update anymore :S
154: [13:22:27] <Zauberfisch> and the cache variables are private D:
155: [13:22:38] <Pyllk> Zauberfisch: oh D:
156: [13:23:13] <Zauberfisch> 1worked around it now be just saving $foo->toMap() into session and then reconstruction the object later from that array
157: [13:23:45] <Pyllk> so $DoThatThing => call InScopeController::DoThatThing() & store result in private $things['DoThatThing'] && return result?
158: [13:24:27] <Pyllk> or something to that effect?
159: [13:55:38] * Sly__ has joined #silverstripe
160: [13:55:52] <Sly__> hi all
161: [13:56:03] <Sly__> I have a weid problem
162: [13:56:47] <Sly__> I am pulling the last 5 blogerntries with BlogEntry::get()->sort('Created', 'DESC')->limit(5);
163: [13:57:32] <Sly__> everything is ok, only from the second row I am displaying my not en characters are messed up
164: [13:58:12] <Sly__> the first row is ok, also the content is displayed correctly
165: [13:58:51] <Sly__> everything is in utf8
166: [13:59:48] <Sly__> mysql, page meta, even mysql connection is explicitly set to utf8
167: [14:00:03] <Sly__> I would really appretiate any idea
168: [14:08:16] * Shrike_Finland1 quit (Quit: Leaving.)
169: [14:35:58] * Sly__ quit (Ping timeout: 246 seconds)
170: [14:40:11] <Pyllk> sigh, they never stick around long enough to get an answer :<
171: [14:41:16] <Pyllk> Although wmk is genrally the transliteration champion, and he's not around.
172: [15:00:29] * muskie9 has joined #silverstripe
173: [15:10:12] <Pyllk> What are the odds...
174: [15:10:52] <Pyllk> Primary key cardinality: 449955. Just added another key for join ID - cardinality: 44995
175: [15:11:14] <Pyllk> s/another key/another index/
176: [15:16:25] * catcher has joined #silverstripe
177: [16:02:37] * ThePeach quit (Ping timeout: 240 seconds)
178: [16:04:46] * ThePeach has joined #silverstripe
179: [16:08:24] * jeroenem quit (Quit: Page closed)
180: [16:13:39] * arnhoe_ has joined #silverstripe
181: [16:15:17] * arnhoe quit (Ping timeout: 245 seconds)
182: [16:26:05] * stnvh has joined #silverstripe
183: [16:29:53] * arnhoe_ quit ()
184: [16:34:42] <Pyllk> Have the good christmases and new years folks.
185: [16:34:43] * Pyllk quit ()
186: [16:38:55] * jenniferaslan has joined #silverstripe
187: [17:45:49] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
188: [17:50:13] * muskie9 has joined #silverstripe
189: [17:56:15] * Vanny has joined #silverstripe
190: [17:57:27] <Vanny> Hi All, still a newbie, but learning lots. I have a problem with some code that wont loop through the children elements? Any ideas where to start looking.
191: [17:58:45] <Vanny> Ignore, fixed my own question, AllChildren :) i've been looking for last 30 minutes
192: [18:09:33] * ThePeach quit (Quit: leaving)
193: [18:27:02] * Vanny quit (Quit: Page closed)
194: [19:23:17] * gelignite has joined #silverstripe
195: [19:32:58] * Err404NotFound has joined #silverstripe
196: [19:32:58] * Error404NotFound quit (Disconnected by services)
197: [19:59:39] * DimiStripe has joined #silverstripe
198: [20:02:34] * jedateach has joined #silverstripe
199: [20:11:32] <catcher> How do I add a many_many_extrafield to a GridField for editing?
200: [20:21:09] <simon_w> catcher, ManyMany[ExtraFieldName] as the name of the field
201: [20:21:44] <catcher> simon_w, in the model's getCMSFields?
202: [20:21:52] <simon_w> catcher, yes
203: [20:22:25] <catcher> What happens if you're editing the model in a different context where the MMEF doesn't exist?
204: [20:22:48] <simon_w> Then the fields are empty
205: [20:22:58] <catcher> simon_w, much appreciated.
206: [20:24:14] * simon__w has joined #silverstripe
207: [20:24:32] * simon_w|air quit (Ping timeout: 258 seconds)
208: [20:24:38] * simon_w|work quit (Ping timeout: 250 seconds)
209: [20:32:21] * UndefinedOffset quit (Read error: Connection reset by peer)
210: [20:34:32] <catcher> Any known issues with MMEF and Checkboxfield? I can set, but not unset.
211: [20:36:39] * simon_w|work has joined #silverstripe
212: [20:44:06] <catcher> simon_w, any ideas why saving a checkbox for a MMEF works on set but not unset?
213: [20:58:10] * jedateach quit (Quit: jedateach)
214: [21:26:46] * MichalKleiner has joined #silverstripe
215: [21:26:56] * Azure quit (Quit: Blue Sky Fish)
216: [21:35:02] * MichalKleiner quit ()
217: [21:42:09] * Azure has joined #silverstripe
218: [21:58:29] <mobiusnz> is it possible for a controller to do something after sending a file? usually I'd 'return SS_HTTPRequest::send_file…' but I need to unlink the file after sending
219: [22:00:25] <catcher> mobiusnz, I think you'll be hard pressed to find out client-side download completion from the server.
220: [22:02:26] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
221: [22:02:44] <mobiusnz> catcher: hmm good point
222: [22:03:35] <mobiusnz> might just have a nightly cleanup of generated files then
223: [22:04:27] <catcher> mobiusnz, yeah, you'll be happier with a cron job if it can suit your needs.
224: [22:17:05] * catcher quit (Quit: Leaving)
225: [22:22:19] * WandL has joined #silverstripe
226: [22:33:07] <mobiusnz> can DataObjects access the config.yml settings? eg $this->config()->get('foo') ?
227: [22:41:54] <mobiusnz> nm, just had to dev/build
228: [22:51:38] * r_hector has joined #silverstripe

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