#silverstripe IRC Log

IRC log for 7 March 2013

All timestamps are in UTC.

1: [00:00:00] <SphereSilver> we got complaints :(
2: [00:00:00] <terryapodaca> why did y'all get rid of the people
3: [00:01:00] <SphereSilver> It was bringing customers, but also scaring bigger possible customers due to the slightly NSFW nature of the site :(
4: [00:03:00] <SphereSilver> My reputation is hereby lost :'( :P
5: [00:03:00] <spronk> i remember this !
6: [00:09:00] <SphereSilver> This should be a fun country to go to on a holiday! "Country 2013-03-06 22:47:50 2013-03-06 22:47:50 NULL NULL page-0"
7: [00:13:00] <terryapodaca> I'm out for the evening! thanks for the error help with my PHP version
8: [00:13:00] <terryapodaca> and thanks for the flashback SphereSilver
9: [00:14:00] <spronk> omfg
10: [00:14:00] * guci0 quit (Ping timeout: 245 seconds)
11: [00:14:00] <SphereSilver> You're welcome. And yes, I should go to bed too :)
12: [00:14:00] <spronk> people need to stop using unix timestamps :|
13: [00:16:00] <Pyromanik> rgh
14: [00:16:00] <SphereSilver> why?
15: [00:16:00] <SphereSilver> they are quite universal...
16: [00:16:00] <Pyromanik> <irogue> highlight was definitely seeing a butch maori female bouncer demolish a blonde bimbo who was causing trouble
17: [00:16:00] <Pyromanik> oh god yes
18: [00:16:00] <spronk> they are an awful, terrible, horrible time storage medium
19: [00:16:00] <Pyromanik> entitled bimbos
20: [00:17:00] <spronk> a) you can't trust that they'll be stored as 64bit,so you can't trust them beyond 2038. b) you can't tell what timezone the epoch was in - it's *supposed* to be UTC, but that isn't always the case
21: [00:17:00] <SphereSilver> I'm not happy with them, but they work just fine afaik. As long as they aren't in a custom timezone.
22: [00:17:00] <SphereSilver> if they aren't UTC, it's PEBKAC
23: [00:18:00] <spronk> yes, but that's not very helpful when your app has to deal with them, is it? :P
24: [00:18:00] <SphereSilver> And yes, I'm dealing with timestamps as well ;)
25: [00:18:00] <SphereSilver> That.... would be kinda troublesome :P
26: [00:18:00] <spronk> on a side note, fuck timezones.
27: [00:19:00] * spronk is implementing an oauth server, the libs store expiry times as timestamps
28: [00:20:00] <Pyromanik> SphereSilver, flashbacks?
29: [00:20:00] <SphereSilver> If it's oAuth and not UTC, the developer should be beaten with a stick until he/she knows how to use UTC :P
30: [00:21:00] * Pyromanik does the zulu
31: [00:21:00] <Pyromanik> but it used to... ?
32: [00:21:00] <spronk> then i get a handy little Z to tell me it's AFRIKA TIME!
33: [00:21:00] <terryapodaca> Pyromanik, their site changed a bit
34: [00:21:00] <spronk> yeah, but the whole issue would just go away if oauth spec'd iso8601 combined instead of unix timestamps
35: [00:22:00] <SphereSilver> Pyromanik: I'm not that stupid :)
36: [00:24:00] <SphereSilver> A website where, if you login with the WRONG details
37: [00:24:00] * terryapodaca quit (Quit: Leaving.)
38: [00:24:00] <Pyromanik> gets!
39: [00:24:00] <SphereSilver> I've seen worse ;)
40: [00:24:00] <Pyromanik> checkAccess.asp?gotoPageID=2145870738&Login=asdf&PW=omfgrusrs%3F
41: [00:24:00] * Pyromanik just came across a site
42: [00:24:00] <Pyromanik> speaking of stupid
43: [00:25:00] <Pyromanik> GET
44: [00:25:00] <Pyromanik> GET
45: [00:25:00] <SphereSilver> you get back:
46: [00:25:00] <SphereSilver> page.php?user=username&password=ACTUALREALFRIKKINUNENCRYPTEDPASSWORDHERE
47: [00:25:00] <Pyromanik> GET OUTTA HERE
48: [00:26:00] <Pyromanik> lolwut
49: [00:26:00] <Pyromanik> what's the point of a login?
50: [00:26:00] <spronk> also, screw oauth2 for not being at all standardised.
51: [00:26:00] <SphereSilver> I don't remember the website, but yes. Logging in with correct username, but wrong password.... ehm... would give you the correct password in the get-param
52: [00:26:00] <Pyromanik> I just edited a site that had a login area
53: [00:26:00] <Pyromanik> the check for it was
54: [00:26:00] <SphereSilver> spronk: oauth2 S U C K S
55: [00:26:00] <spronk> it's ridiculous
56: [00:27:00] <Pyromanik> if(!isset($_REQUEST['verified'])) die('denied');
57: [00:27:00] <spronk> haha
58: [00:27:00] <spronk> sounds like the old cms i used to work with
59: [00:27:00] <spronk> if(LOGGED_IN)
60: [00:28:00] <SphereSilver> Don't tell me a single =?
61: [00:28:00] <spronk> if($_REQUEST['password'] = 'hardcoded string') { define('LOGGED_IN', true); }
62: [00:28:00] <spronk> "adding users" was a matter of adding more lines to the if statement.
63: [00:29:00] <SphereSilver> =
64: [00:29:00] <spronk> in an attempt to seem fresher, and .... less .... insecure?
65: [00:29:00] <spronk> i see wheedle.co.nz has gone orange
66: [00:29:00] <spronk> LOL
67: [00:29:00] <irogue> are we discussing wheedles?
68: [00:29:00] <spronk> heh, sometimes!
69: [00:29:00] <SphereSilver> if undefined, this will do?
70: [00:29:00] <SphereSilver> ?
71: [00:30:00] <SphereSilver> I feel like orange-juice now :/
72: [00:31:00] <Pyromanik> was waiting for wheedle to be brought up :P
73: [00:31:00] <Pyromanik> irogue, yeah, nah.
74: [00:31:00] <SphereSilver> Well, I'm off to bed. 1.30 AM. I shouldn't be awake at all :(
75: [00:32:00] <spronk> wheele was probably more like this:
76: [00:32:00] <spronk> actually irogue
77: [00:32:00] <spronk> if(true) { // allow
78: [00:35:00] <StuartKent> client side all of the authentication?
79: [00:35:00] <Pyromanik> yups
80: [00:35:00] <StuartKent> outsourcing processing isn't it
81: [00:35:00] <spronk> just use meteor.js pre 0.5
82: [00:35:00] <Pyromanik> alleviate the stress on our server
83: [00:35:00] <spronk> thats ok
84: [00:35:00] <Pyromanik> StuartKent, YUS, SOUNDS GOOD
85: [00:35:00] <spronk> lulz
86: [00:35:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
87: [00:36:00] <spronk> i should totally remake Cyberdogs in js
88: [00:36:00] <spronk> websockets are awesome diddly
89: [00:36:00] <Pyromanik> spronk, yeah, but websockets
90: [00:36:00] * eikonos quit (Ping timeout: 245 seconds)
91: [00:36:00] <Pyromanik> "Here is our members list, is your login in here?"
92: [00:36:00] <spronk> (in saying that newer meteor looks kinda funk)
93: [00:37:00] <spronk> Cyberdojs!
94: [00:38:00] * eikonos quit (Changing host)
95: [00:38:00] * eikonos has joined #silverstripe
96: [00:38:00] * eikonos has joined #silverstripe
97: [00:39:00] <Pyromanik> wut
98: [00:40:00] <Pyromanik> http://en.wikipedia.org/wiki/C-Dogs
99: [00:40:00] <spronk> Thttp://en.wikipedia.org/wiki/C-Dogs
100: [00:40:00] <Pyromanik> also, snap.
101: [00:40:00] <Pyromanik> because no T
102: [00:41:00] <spronk> mm
103: [00:41:00] <Pyromanik> Saurbraten
104: [00:41:00] <Pyromanik> also, have you seen bananabread?
105: [00:41:00] <Pyromanik> lol temp. unavailable
106: [00:41:00] <Pyromanik> mm
107: [00:41:00] <Pyromanik> coz lolwtf
108: [00:41:00] <Pyromanik> in JS
109: [00:41:00] <Pyromanik> https://developer.mozilla.org/en/demos/detail/bananabread
110: [00:41:00] <spronk> the mozilla thing?
111: [00:52:00] <FrozenFire> Removing its fields seems not to remove it
112: [00:52:00] <FrozenFire> Removing a tab completely from a FieldList: Howto?
113: [00:53:00] <FrozenFire> Yeah. There we are.
114: [00:53:00] <FrozenFire> I think it can be removed by name...
115: [00:53:00] <FrozenFire> Ah wait
116: [00:54:00] <Pyromanik> wtf!
117: [00:54:00] <FrozenFire> Out of curiosity, does anyone use the preview mode intentionally in the CMS?
118: [00:54:00] <Pyromanik> instead it will make a subquery and LOOP OVER IT REPEATEDLY
119: [00:54:00] <Pyromanik> "MySQL, on the other hand, isn't capable of making HASH JOINs" OH YOU
120: [00:55:00] <FrozenFire> And if I'm not mistaken, MariaDB is what many distros ship anyways.
121: [00:55:00] * SightUnseen has joined #silverstripe
122: [00:55:00] <FrozenFire> Nested loop join.
123: [00:55:00] <Pyromanik> yes
124: [00:55:00] <FrozenFire> But, MariaDB has more, I think?
125: [00:55:00] <Pyromanik> nfi
126: [00:55:00] <Pyromanik> just seems
127: [00:55:00] <Pyromanik> BAD
128: [00:55:00] * SightUnseen has left #silverstripe
129: [00:55:00] <Pyromanik> not sure if is.
130: [00:55:00] <Pyromanik> yeh
131: [00:55:00] <Pyromanik> except production envs.
132: [00:55:00] <Pyromanik> mysql is still actually mysql.
133: [00:56:00] * joelpittet has joined #silverstripe
134: [00:56:00] <Pyromanik> not just wrappers for mariadb
135: [00:56:00] * azureKnight quit (Quit: azureKnight)
136: [00:56:00] * joelpitt_ quit (Remote host closed the connection)
137: [00:58:00] * Stomach has joined #silverstripe
138: [01:00:00] <irogue> mariadb has had hash joins since 5.3
139: [01:00:00] <irogue> mysql 5.6 has done some fixes aronund that stuff too, but yeah mariadb is quite ahead these days
140: [01:00:00] * Stomach has left #silverstripe
141: [01:01:00] * Stomach has joined #silverstripe
142: [01:03:00] <simon_w> Postgres!
143: [01:03:00] <simon_w> (bitches)
144: [01:04:00] <irogue> yo mama's so far, she's web scale
145: [01:04:00] <Colin[pi]> FLAT FILEZ
146: [01:04:00] <spronk> NOSQLLLLL
147: [01:04:00] <spronk> NO SQUALL!
148: [01:04:00] <simon_w> Your mum!
149: [01:04:00] <Colin[pi]> Your sheep!
150: [01:04:00] <spronk> oh, he left
151: [01:04:00] <simon_w> Which one?
152: [01:04:00] <Colin[pi]> Yes
153: [01:04:00] <spronk> my moma's pretty far.
154: [01:05:00] * StuartKent quit (Ping timeout: 245 seconds)
155: [01:05:00] * spronk raises his eyebrow
156: [01:05:00] <irogue> typing good is for fagz
157: [01:05:00] <irogue> shhh
158: [01:06:00] <Pyromanik> ROFL
159: [01:06:00] <Pyromanik> better than I expected
160: [01:06:00] * Pyromanik watched "Hit and Run" recently
161: [01:07:00] <Pyromanik> to which dax sheppard replies
162: [01:07:00] <spronk> its got veronica mars in it..
163: [01:07:00] <Pyromanik> great scene. Sitting in his super hot classic lincoln, and this redneck is looking in going "Does it have nitrous? I bet it's got nitrous"
164: [01:07:00] * Stomach has left #silverstripe
165: [01:08:00] <Pyromanik> "No, nitrous is for fags. It's got cubic inches."
166: [01:08:00] <Pyromanik> classic
167: [01:08:00] <Pyromanik> then does a wee rollback before taking off
168: [01:26:00] * Gerry2 has joined #silverstripe
169: [01:26:00] * eikonos quit (Ping timeout: 250 seconds)
170: [01:28:00] <Gerry2> FronzenFire, simon_w, it worked. I have replaced return array('Form' => $form); then added <class>.ss
171: [01:34:00] * eikonos has joined #silverstripe
172: [01:34:00] * eikonos quit (Changing host)
173: [01:34:00] * eikonos has joined #silverstripe
174: [01:43:00] * bmh quit (Quit: Computer has gone to sleep.)
175: [01:45:00] * StuartKent has joined #silverstripe
176: [01:46:00] <StuartKent> Hey guys, I was wondering what it means when you see a different site structure after you delete a page.
177: [01:48:00] <Pyromanik> yeah
178: [01:48:00] <Gerry2> Happens to me as well. I have to press url again to refresh.
179: [01:48:00] <chrisrio> lords of the internet!
180: [01:48:00] * chrisrio has joined #silverstripe
181: [01:48:00] <StuartKent> However after a refresh it seems to be ok. I'm trying to get to the bottom of a Userforms issue (After creating one, I am forwarded to a blank page)
182: [01:48:00] <Pyromanik> update userforms
183: [01:48:00] <Pyromanik> StuartKent, sounds like an error
184: [01:49:00] <Gerry2> Maybe it is already registered in bugtracker?
185: [01:49:00] <Pyromanik> and ss if need be
186: [01:49:00] <Pyromanik> (3.0.5)
187: [01:49:00] <Pyromanik> I used to have that trouble in the earlier versions of 3.0
188: [01:49:00] <Pyromanik> chrisrio, lord of the questions?
189: [01:49:00] <chrisrio> Dear Pyromanik
190: [01:49:00] <Pyromanik> Gerry2, look on github. I doubt it though, seems to be a configuration issue
191: [01:50:00] <Pyromanik> rather than a code issue
192: [01:50:00] <chrisrio> Is default_sorting (SS3) on a non-standard field (say a date field) too much to ask?
193: [01:50:00] <Gerry2> Ok will look into it. bye for now. logging off.
194: [01:50:00] <Pyromanik> Gerry2, StuartKent and or run a profiler to see if you can spot a problem.
195: [01:50:00] <chrisrio> maybe I have to escape it..
196: [01:50:00] <Pyromanik> chrisrio, nope
197: [01:51:00] * Gerry2 quit (Quit: Nettalk6 - www.ntalk.de)
198: [01:52:00] <StuartKent> Pyromanik would this be branch 3.0 on github?
199: [01:53:00] <Pyromanik> StuartKent, yeh, I'd assume that'd be safe.
200: [01:53:00] <chrisrio> rather than a frontend sort, which would work.
201: [01:53:00] <chrisrio> I probably should have mentioned I'm talking about a CMS sort
202: [01:53:00] * DigNZ quit (Quit: DigNZ)
203: [01:54:00] <Pyromanik> chrisrio, oh.
204: [01:54:00] <Pyromanik> and public static $default_sort = 'MySweetDateField ASC'; doesn't work?
205: [01:54:00] <chrisrio> nah man :<
206: [01:54:00] <chrisrio> LastEdited works like a dream
207: [01:54:00] <Pyromanik> oh
208: [01:54:00] <chrisrio> (date field)
209: [01:54:00] <Pyromanik> bummer
210: [01:54:00] <Pyromanik> oic
211: [01:54:00] <Pyromanik> right
212: [01:54:00] <chrisrio> but not my extended field
213: [01:54:00] <Pyromanik> wait what
214: [01:55:00] <Pyromanik> oic
215: [01:55:00] <chrisrio> its got a MagicDate => Date
216: [01:55:00] <chrisrio> MagicPage extends Page
217: [01:55:00] <chrisrio> like I have
218: [01:55:00] <chrisrio> I can't sort MagicPage in the CMS by MagicDate.
219: [01:56:00] <Pyromanik> try MagicDate => SS_DateTime
220: [01:57:00] <Pyromanik> or is it SS_Datetime
221: [01:57:00] <Pyromanik> I forget
222: [01:58:00] <chrisrio> Ugh..
223: [02:00:00] * priithansen quit (Quit: priithansen)
224: [02:00:00] <chrisrio> will that effect the pre-existing sort order?
225: [02:00:00] <chrisrio> and it works like a total baller
226: [02:00:00] <chrisrio> I have a new question about default_sort - if I rock that in
227: [02:01:00] <chrisrio> (I want it to)
228: [02:01:00] <chrisrio> (things in brackets)
229: [02:01:00] <chrisrio> (ideally)
230: [02:11:00] * ajshort has joined #silverstripe
231: [02:15:00] <StuartKent> Pyromanik no joy with the rebuild, I'm operating with a blank database and still getting the error
232: [02:20:00] <Pyromanik> it affects the class, not the object.
233: [02:20:00] <Pyromanik> chrisrio, should do
234: [02:20:00] <Pyromanik> StuartKent, oh, it's actually an error?
235: [02:21:00] <Pyromanik> php errors on?
236: [02:21:00] <Pyromanik> site in dev mode?
237: [02:21:00] <Pyromanik> StuartKent, what is the error?
238: [02:21:00] <Pyromanik> and it's a run time thing, not a build/create time thing.
239: [02:25:00] <StuartKent> areUnknown column 'SubmittedForm.ParentID' in 'where clause'
240: [02:30:00] * DigNZ quit (Client Quit)
241: [02:30:00] * DigNZ has joined #silverstripe
242: [02:35:00] * DigNZ has joined #silverstripe
243: [02:35:00] * aznain has joined #silverstripe
244: [02:36:00] <aznain> [Silverstripe 2] I have many_many relationship. Which field is good for that in backend getCMSFields() ? I tried to use itemsetfield but it seems not compatible with ss3 as i am getting Declaration of HasManyPickerField::saveInto() should be compatible with that of FormField::saveInto()
245: [02:37:00] <FrozenFire> Oh wait
246: [02:37:00] <FrozenFire> Umm
247: [02:37:00] <FrozenFire> ComplexTableField?
248: [02:37:00] <FrozenFire> GridField
249: [02:38:00] <ajshort> aznain: https://github.com/ajshort/silverstripe-gridfieldextensions provides GridFieldAddExistingSearchButton, it's a similar interface to itemsetfield
250: [02:38:00] <FrozenFire> GridField is SS3
251: [02:38:00] <aznain> ajshort: thanks let me have look ...
252: [02:38:00] <aznain> GridField
253: [02:39:00] <FrozenFire> Err
254: [02:39:00] <FrozenFire> Hence my "Oh wait"
255: [02:39:00] <FrozenFire> Now I'm confused. Are you using SS2, or SS3?
256: [02:40:00] <aznain> I am using ss3 ... last time was on ss2 ....
257: [02:40:00] <aznain> my mistake ... I wanted to put 3 but wrote 2 ...
258: [02:40:00] <FrozenFire> Yeah. So, in SS3, GridField
259: [02:41:00] <FrozenFire> GridField with GridFieldConfig_RelationEditor as its config
260: [02:42:00] <aznain> FrozenFire: thanks ... let me have look
261: [02:47:00] <ajshort> it's easier just to use a many_many most of the time for files
262: [02:47:00] <StuartKent> If the code I have has a $has_one of a 'image', would I have to reciprocate that with a $has_many in image?
263: [02:47:00] <ajshort> yes
264: [02:48:00] <StuartKent> unless it's a $has_many -> $has_one relationship?
265: [02:48:00] <FrozenFire> Yes. A has_many is *defined* by the has_one
266: [02:48:00] <FrozenFire> StuartKent, No
267: [02:48:00] <FrozenFire> You do not have to define reverse relationships.
268: [02:48:00] <FrozenFire> They don't affect the other relationship at all.
269: [02:48:00] <ajshort> actually wait, I read that backwards
270: [02:49:00] <FrozenFire> In that, it has no data of its own
271: [02:49:00] <FrozenFire> Similar to belongs_to, belongs_many_many, etc
272: [02:49:00] <FrozenFire> There's no has_many without a has_one
273: [02:49:00] <StuartKent> sweet
274: [02:49:00] <ajshort> FrozenFire is correct
275: [02:49:00] <FrozenFire> But the has_many is a pseudo-relationship
276: [02:52:00] <FrozenFire> What's the problem?
277: [02:52:00] <StuartKent> ok, so it's not that then :/
278: [02:53:00] <Pyromanik> aznain, use itemsetfield
279: [02:53:00] <StuartKent> ???Unknown Column ParentID in WHERE Clause??? with a userforms class, so I'm trawling mysite code to see if anything could be causing it
280: [02:54:00] <Pyromanik> where CTF in 2.4 does not.
281: [02:54:00] <FrozenFire> StuartKent, Where is the error generated?
282: [02:54:00] <FrozenFire> Follow the backtrace
283: [02:54:00] <Pyromanik> aznain, ah, you meant ss3, in that case use gridfield with GridFieldExtensions module from ajshort
284: [02:54:00] <Pyromanik> it's not compatible with SS3 because Gridfield does the job already.
285: [02:55:00] <StuartKent> UserDefinedForm.php:127 called when the CMS tries rendering the page
286: [02:55:00] <Pyromanik> warning though, if you're using 3.0 rather than 3.1, don't try to use inline editing component, it requires 3.1.
287: [02:55:00] <Pyromanik> StuartKent, grab an older userforms commit?
288: [02:56:00] <Pyromanik> StuartKent, pastie us the full trace
289: [02:56:00] <Pyromanik> not just the 1 line error.
290: [02:58:00] <StuartKent> http://pastebin.ca/2329308
291: [02:59:00] <Pyromanik> ^^
292: [02:59:00] <Pyromanik> https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/submissions/SubmittedFormField.php#L17
293: [02:59:00] <Pyromanik> make sure your file is having
294: [03:00:00] <aznain> Pyromanik: Thanks .. I am looking at documentation for that ...
295: [03:00:00] <StuartKent> I don't think I've tried the 1.0 version of userforms
296: [03:02:00] <Pyromanik> StuartKent, the query isn't generating correctly
297: [03:02:00] <Pyromanik> "SubmittedForm.ParentID"
298: [03:02:00] <Pyromanik> SubmittedForm.ID WHERE ("SubmittedForm.ParentID" = '8')
299: [03:02:00] <StuartKent> yep checked that just before. "Parent" => "SubmittedForm"
300: [03:03:00] <Pyromanik> should probably be "SubmittedForm"."ParentID"
301: [03:03:00] <Pyromanik> at a guess
302: [03:03:00] <StuartKent> mm I was wondering that myself
303: [03:03:00] <Pyromanik> field SubmittedForm.ParentID" doesn't exist
304: [03:03:00] <Pyromanik> field ParentID however DOES exist on table SubmittedForm.
305: [03:03:00] <StuartKent> but I'm not sure whether that's mysql being really specific with its reporting, or an actual bug
306: [03:03:00] <Pyromanik> bug at a guess
307: [03:04:00] <Pyromanik> generated SQL going awry
308: [03:04:00] <Pyromanik> something passing in full table.field instead of just field, or not escaping properly, or something.
309: [03:05:00] <Pyromanik> try getting not the very bleeding edge commit.
310: [03:05:00] <Pyromanik> https://github.com/silverstripe/silverstripe-userforms/commit/8e252c88edf37d878dfba78c360ec304d036f23e
311: [03:05:00] <StuartKent> this issue was opened a week ago https://github.com/silverstripe/silverstripe-userforms/issues/95
312: [03:05:00] <Pyromanik> as I said StuartKent
313: [03:06:00] <Pyromanik> though I'd expect a template error instead in that case I guess
314: [03:06:00] <StuartKent> flushed it so many times the handle broke off
315: [03:06:00] <aznain> [SS3] If I create $fields = new FieldList() ... and there is $mygridField ... how can I add to tab of its own ?
316: [03:06:00] <StuartKent> or the pull string thing
317: [03:06:00] <Pyromanik> OR
318: [03:06:00] <Pyromanik> did you ?flush=1 your admin?
319: [03:06:00] <Pyromanik> -.-
320: [03:07:00] <Pyromanik> there you go :P
321: [03:07:00] <FrozenFire> :P
322: [03:07:00] <FrozenFire> $fields = new FieldList(new TabSet("Root"));
323: [03:07:00] <Pyromanik> finish your sentene FrozenFire
324: [03:07:00] <FrozenFire> $fields->addFieldToTab("Root.Main", new GridField("MyGridField", "My GridField", $this->Relation(), new GridFieldConfig_RelationEditor()));
325: [03:08:00] <FrozenFire> Thus there's no TabSet in it
326: [03:08:00] <FrozenFire> He said he's creating a new FieldList
327: [03:08:00] <Pyromanik> but all you needed was $fields->addFieldToTab('Root.Main', $mygridField);
328: [03:09:00] <Pyromanik> https://github.com/silverstripe/silverstripe-userforms/tree/527b63786de03356c4bd791294e62957c722038f
329: [03:09:00] * nickmolhoek quit (Quit: nickmolhoek)
330: [03:09:00] <Pyromanik> yeah, I meant after the tabset bit ;)
331: [03:09:00] <Pyromanik> StuartKent, checkout 527b63786d
332: [03:10:00] <KevinNZ> probably an easy one but I cant figure it out
333: [03:10:00] <StuartKent> God I feel like an idiot
334: [03:10:00] <StuartKent> thanks Pyromanik
335: [03:10:00] <KevinNZ> am getting this error message on my amazon ec2/RDS hosted SS3 installation
336: [03:10:00] <KevinNZ> Warning: No current controller available in /www/groove/framework/control/Controller.php on line 388
337: [03:10:00] <Pyromanik> StuartKent, well, I did mention it much earlier... figured you'd tried it :<
338: [03:10:00] <Pyromanik> before willr started fiddling with the submissions
339: [03:10:00] <KevinNZ> Hey team
340: [03:10:00] * KevinNZ has joined #silverstripe
341: [03:11:00] <Pyromanik> but as I grab zips, I don't know which commits they are
342: [03:11:00] <KevinNZ> it was working fine yesterday
343: [03:11:00] <KevinNZ> cheers Pyromanik - what do you mean by routes? (sorry not much of a server admin)
344: [03:11:00] <Pyromanik> KevinNZ, you're missing routes by the sounds.
345: [03:11:00] <StuartKent> I got the latest version from the website, then the bleeding edge. I musn't have tried anything earlier
346: [03:11:00] <Pyromanik> StuartKent, I stockpile versions that work.
347: [03:12:00] <Pyromanik> maybe server setup
348: [03:12:00] <Pyromanik> well then dunno
349: [03:12:00] <Pyromanik> get whoever changed stuff yesterday to unchange that stuff.
350: [03:12:00] <Pyromanik> :P
351: [03:12:00] <KevinNZ> nothing was changed :\
352: [03:12:00] <KevinNZ> haha
353: [03:12:00] <Pyromanik> lies
354: [03:12:00] <Pyromanik> something changed.
355: [03:12:00] <KevinNZ> amazon must of? I havent touched a thing
356: [03:12:00] <Pyromanik> mmm
357: [03:12:00] <Pyromanik> must have.
358: [03:12:00] <Pyromanik> *
359: [03:12:00] <Pyromanik> oh
360: [03:13:00] <FrozenFire> KevinNZ, What web server are you using?
361: [03:13:00] <Pyromanik> StuartKent, also let willr know he bork'd everything.
362: [03:13:00] <FrozenFire> Apache, nginx?
363: [03:15:00] * DigNZ quit (Quit: DigNZ)
364: [03:15:00] <KevinNZ> apache
365: [03:15:00] <KevinNZ> just a bitnami ec2 LAMP stack
366: [03:15:00] * howardgrigg quit (Remote host closed the connection)
367: [03:16:00] <FrozenFire> There's 3.0.5 minor
368: [03:16:00] <FrozenFire> That's a major version.
369: [03:16:00] <KevinNZ> the latest build I think
370: [03:16:00] <KevinNZ> SS3
371: [03:16:00] <FrozenFire> What version of SS are you running?
372: [03:16:00] <FrozenFire> There's also 3.1
373: [03:17:00] <StuartKent> Pyromanik I grabbed 1.0 off the github. That worked fine
374: [03:17:00] <FrozenFire> I'm suspecting that you are somehow missing the CMS module
375: [03:17:00] <FrozenFire> As well, how did you install it?
376: [03:17:00] <KevinNZ> 3.0.5
377: [03:17:00] <FrozenFire> That includes the ContentController route
378: [03:18:00] <FrozenFire> From, to?
379: [03:18:00] <Pyromanik> StuartKent, good to know.
380: [03:18:00] <KevinNZ> 3.0.1 I think
381: [03:18:00] <KevinNZ> it was an upgrade
382: [03:19:00] <FrozenFire> If so, did you clone the submodules correctly, if they exist?
383: [03:19:00] <FrozenFire> How is your install deployed?
384: [03:19:00] <FrozenFire> You're cloning it from git?
385: [03:19:00] <StuartKent> Using the latest 3.0 for sapphire/CMS & the master (as of yesterday) blog.
386: [03:20:00] <KevinNZ> nah it was a download and manual backup - delete - upload type upgrade
387: [03:20:00] <FrozenFire> File permissions correct?
388: [03:21:00] * irogue quit ()
389: [03:22:00] <KevinNZ> Yep I think so
390: [03:23:00] <Pyromanik> to see what controller it's searching for?
391: [03:23:00] <Pyromanik> put site into dev mode and use ?debug_request
392: [03:25:00] * DigNZ quit (Client Quit)
393: [03:25:00] * DigNZ has joined #silverstripe
394: [03:27:00] <KevinNZ> sweet it cant connect to the mysql server
395: [03:27:00] <KevinNZ> thanks for your help!
396: [03:27:00] <KevinNZ> weird
397: [03:29:00] <aznain> I am having strange thing ... I have has_one relationship in the form of dropdown field ... i have many_many field which i added to gridfield to tab ... when i see that tab for many_many field ... i also see that has_one field over there
398: [03:30:00] <aznain> dropdown field, i have added as fields->push() ....
399: [03:31:00] * KevinNZ quit (Quit: Page closed)
400: [03:31:00] <aznain> that has_one field should be seen only in main tab not the other tab ...
401: [03:36:00] <aznain> anybody
402: [03:43:00] * ryanwachtl has joined #silverstripe
403: [03:45:00] <Pyromanik> aznain, use addFieldToTab('Root.Main', $dropdown) rather than push()
404: [03:46:00] <aznain> Pyromanik: thanks
405: [03:48:00] <ryanwachtl> I'm trying to do a redirect inside the onBeforeHTTPError404 method of my Controller extension. What is the proper way to do a 301 redirect within there, the script execution just seems to continue until an SS_HTTPResponse_Exception is throw
406: [03:54:00] <pippy> header('Location: url');
407: [03:54:00] <pippy> then a die();
408: [03:54:00] <pippy> i'd put in a die('meta redirect'); in there to be sure
409: [03:55:00] <ajshort> no
410: [03:55:00] <ajshort> ryanwachtl: throw your own response exception
411: [04:00:00] <ryanwachtl> Thanks! $response = new SS_HTTPResponse(); $response->redirect($legacyleadform->Link(), 301); throw new SS_HTTPResponse_Exception($response);
412: [04:00:00] * Gerry2 has joined #silverstripe
413: [04:01:00] * StuartKent quit (Ping timeout: 245 seconds)
414: [04:01:00] * Gerry2 quit (Client Quit)
415: [04:02:00] <Pyromanik> ryanwachtl, return
416: [04:03:00] <Pyromanik> iirc
417: [04:03:00] <Pyromanik> home time!
418: [04:03:00] * Pyromanik quit (Quit: Leaving)
419: [04:03:00] <Pyromanik> might be 2.4 only though, haven't used it since 3.0
420: [04:03:00] <Pyromanik> generally
421: [04:03:00] <Pyromanik> return $this->httpError(301, 'message')
422: [04:04:00] * ryanwachtl quit (Ping timeout: 245 seconds)
423: [04:07:00] * cloph_away1 has joined #silverstripe
424: [04:07:00] <ajshort> httpError throws an exception
425: [04:08:00] * cloph_away quit (Ping timeout: 252 seconds)
426: [04:10:00] * chrisrio quit (Quit: Page closed)
427: [04:37:00] * irogue has joined #silverstripe
428: [04:38:00] <irogue> halp, someone broke auckland
429: [04:38:00] <spronk> ??
430: [04:39:00] <spronk> ruh roh
431: [04:39:00] <Colin[pi]> wut
432: [04:39:00] <irogue> 2/3 lanes on newmarket viaduct taken out by a crash at 4:50pm
433: [04:39:00] <irogue> = CBD/North Shore bound traffic backed up to Manukau
434: [04:41:00] <irogue> lulz
435: [04:41:00] <irogue> and it's on a viaduct so they can't just push it off to the side, or rearrange lanes
436: [04:42:00] <simon_w> FrozenFire, where does UnsavedRelationList not being sortable or filterable come up?
437: [04:45:00] <FrozenFire> I am
438: [04:45:00] <FrozenFire> simon_w, I have a getCMSFields which needs to populate a DropdownField based on a has_many relation that will point to that object when it exists.
439: [04:45:00] <simon_w> And you're filtering or sorting it?
440: [04:45:00] <FrozenFire> To make it not throw an error, I have to check the existence of the object before I try to populate the source for that dropdown
441: [04:45:00] <FrozenFire> Filtering it
442: [04:46:00] <simon_w> Yeah, that's probably the only time it's not a pain to actually filter it
443: [04:46:00] <FrozenFire> It's an empty UnsavedRelationList
444: [04:46:00] <spronk> ah auckland. what a clusterfuck of chaos
445: [04:47:00] <simon_w> If I remember, I'll bug Sam next time he's on about what he thinks about just returning an empty list from filter()
446: [04:47:00] <FrozenFire> If there needs to be an error, it should only be on a list that has something in it
447: [04:47:00] <FrozenFire> That'd solve about 75% of my issues
448: [04:48:00] <FrozenFire> Just return $this
449: [04:48:00] <simon_w> Yeah, that's the next option
450: [04:48:00] <FrozenFire> Mutability doesn't apply in that case, obviously.
451: [04:48:00] <simon_w> No, that won't work
452: [04:48:00] <FrozenFire> If it's empty, return itself on sort or filter
453: [04:49:00] * willr quit (Quit: willr)
454: [05:02:00] * Colin[pi] quit (Ping timeout: 256 seconds)
455: [05:39:00] <aznain> I am not able to show column title in GridFieldExtension .. I am using 3.0
456: [05:52:00] <simon_w|air> aznain, what are you doing?
457: [05:55:00] * Shrike_Finland quit (Quit: Leaving.)
458: [06:02:00] <aznain> simon_w|air: I have added gridfield extension for many_many relationship as per describe in the link https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md ... However I removed the GridFieldEditableColumns and GridFieldAddNewInlineButton as these were giving error on 3.0
459: [06:03:00] <aznain> when i click on add existing, it shows me result .. i select one ... it adds ... but i can not see any columns ... ( blank line with delete button ) ...
460: [06:04:00] <simon_w|air> Well, it is a 3.1 module
461: [06:04:00] <aznain> First, I want to show Title from many_many relationship .. Second, issue is about delete button ... it delete the records ... once clicked , if I click on "Add Existing" , I can not see that item again
462: [06:05:00] <simon_w|air> For the delete button, you need to add it with removeRelation set to true
463: [06:05:00] <aznain> hmmm ....
464: [06:06:00] <aznain> and what about column in the grid ?
465: [06:06:00] <simon_w|air> so the Title's an extraField?
466: [06:07:00] <aznain> I mean i have title ... i want to show items by their title ...
467: [06:07:00] <simon_w|air> so add the column to the summary_fields
468: [06:07:00] <aznain> normal ... I am adding that in page ... page has many_many relationship with dataobject .. ( which is implemented via dataobject as pages )
469: [06:08:00] <simon_w|air> That's what used to display the DataObject
470: [06:08:00] <simon_w|air> Yes
471: [06:08:00] <simon_w|air> You need to add it to the DataObject, not Page
472: [06:08:00] <aznain> summary field of dataobject ?
473: [06:09:00] <simon_w|air> *what's
474: [06:10:00] <aznain> ok let me try ..
475: [06:13:00] * Pyromanik has joined #silverstripe
476: [06:20:00] <aznain> but summary field not solved yet
477: [06:20:00] <aznain> @simon_w|air: removeRelation is working now
478: [06:21:00] <Pyromanik> aznain, what is it that you are trying to do?
479: [06:21:00] <aznain> I have added summary_fields to dataobject ( which is implemented as DataObjectAsPages) ... but when i see Page (backend) ... summary title not there
480: [06:22:00] * Motoservo quit (Ping timeout: 255 seconds)
481: [06:23:00] <aznain> I added GridFieldExtension for many_many relation as per your direction before ... I can see items when click on "add existing" button .. but after adding i am not seeing any column title
482: [06:23:00] <Pyromanik> because it sounds like you are looking for $singular_name and $plural_name
483: [06:24:00] <Pyromanik> aznain, what did you define as your summary_fields?
484: [06:24:00] <Pyromanik> pastie
485: [06:24:00] <aznain> only button ... and no summary title are showing ...
486: [06:25:00] * Motoservo has joined #silverstripe
487: [06:25:00] <aznain> static $summary_fields = array( 'Title' => 'Tour Sight' ); // defined in dataobject class which has many_many relation with page
488: [06:26:00] <Pyromanik> no, I'm confused, sorry.
489: [06:26:00] <Pyromanik> aznain, mmm, it's a map, not a definition
490: [06:27:00] <Pyromanik> aznain, what does the gridfield definition look like?
491: [06:28:00] <aznain> let me sspaste
492: [06:29:00] <aznain> http://www.sspaste.com/paste/show/513833c23f76f
493: [06:30:00] <simon_w|air> ->addComponent(new GridFieldDataColumns)
494: [06:30:00] <simon_w|air> you need DataColumns
495: [06:30:00] <aznain> after adding this is summary field looks like http://i.imgur.com/h63MbO4.png
496: [06:30:00] <aznain> where to define that ...
497: [06:31:00] <aznain> awesome
498: [06:31:00] <aznain> thanks a lot
499: [06:34:00] <aznain> Pyromanik @simon_w|air : thanks
500: [06:59:00] * aznain quit (Ping timeout: 245 seconds)
501: [07:02:00] * SightUnseen has joined #silverstripe
502: [07:04:00] * SightUnseen has left #silverstripe
503: [07:06:00] * azureKnight has joined #silverstripe
504: [07:08:00] * joelpittet quit (Remote host closed the connection)
505: [07:13:00] * SightUnseen has joined #silverstripe
506: [07:14:00] * SightUnseen has left #silverstripe
507: [07:36:00] <azureKnight> Anybody done any file download counter scripts in ss?
508: [07:36:00] * g4b0 has joined #silverstripe
509: [07:38:00] * howardgrigg has joined #silverstripe
510: [07:39:00] * eikonos quit (Quit: Leaving.)
511: [07:42:00] * eikonos quit (Changing host)
512: [07:42:00] * eikonos has joined #silverstripe
513: [07:42:00] * eikonos has joined #silverstripe
514: [07:42:00] * joelpittet has joined #silverstripe
515: [07:46:00] <Pyromanik> azureKnight, you mean like this one? http://google.com/analytics
516: [07:47:00] <azureKnight> Or to try and write it via php and sql.
517: [07:47:00] <Pyromanik> well they click the link
518: [07:47:00] <Pyromanik> that's about all you can count.
519: [07:47:00] <azureKnight> Yeah.
520: [07:47:00] <Pyromanik> unless you do some kind of crappy through interface
521: [07:47:00] <azureKnight> I read somewhere about using analytics to handle file download counters.
522: [07:47:00] <azureKnight> :O
523: [07:48:00] <ajshort> crappy?
524: [07:48:00] <Pyromanik> you load a 'page' that takes parameters given to it to go and fetch the file then feed it back to the user.
525: [07:48:00] <azureKnight> I'm still a little new to some of this. But it sounds interesting.
526: [07:48:00] <ajshort> just make sure you use readfile
527: [07:48:00] <azureKnight> Explanation?
528: [07:48:00] <Pyromanik> crappy through interface
529: [07:48:00] <Pyromanik> ^
530: [07:48:00] <ajshort> it's simple to do - just store the file outside the webroot and serve it via a controller action
531: [07:48:00] <Pyromanik> yoursite.com/herpaderpadownload/myfile
532: [07:49:00] <Pyromanik> I mean
533: [07:49:00] <Pyromanik> like herpaderpface.com
534: [07:49:00] <azureKnight> Hmm. Ok
535: [07:49:00] <Pyromanik> nah
536: [07:49:00] <azureKnight> So, say that I was having my users upload a file through the cmd to the dataobject.
537: [07:49:00] <Pyromanik> softpedia.com, tucows.com, ign.com, anythingrelatedtogamesormagazines.com
538: [07:50:00] <Pyromanik> just search database for given file
539: [07:50:00] <azureKnight> cmd?
540: [07:50:00] <azureKnight> cms*
541: [07:50:00] <Pyromanik> get it's location
542: [07:50:00] <Pyromanik> grab the file using readfile
543: [07:50:00] <Pyromanik> feed the stream back to the user with the correct headers.
544: [07:50:00] <Pyromanik> http://php.net/readfile
545: [07:51:00] <azureKnight> Hmm. Interesting. I'll look into this. Thanks. :)
546: [07:52:00] <g4b0> hi all
547: [07:52:00] <Pyromanik> at which point on a $return !== false you $file->dlCount = $file->dlCount + 1; $file->write();
548: [07:52:00] <g4b0> simon_w: I need your help with git
549: [07:53:00] <Pyromanik> g4b0, ask question
550: [07:53:00] <Pyromanik> then anyone can help, not just simon_w.
551: [07:53:00] <azureKnight> Pyromanik This reminds me of our conversation earlier???
552: [07:53:00] <Pyromanik> azureKnight ??
553: [07:53:00] <Pyromanik> hah
554: [07:53:00] <azureKnight> The simon_w related questions.
555: [07:53:00] <g4b0> I played a bit with my ss copy
556: [07:54:00] * SightUnseen has joined #silverstripe
557: [07:54:00] * SightUnseen has left #silverstripe
558: [07:54:00] <Pyromanik> :P
559: [07:54:00] <Pyromanik> git reset HEAD --hard
560: [07:54:00] <Pyromanik> yeah
561: [07:54:00] <Pyromanik> it's a common statement.
562: [07:54:00] <g4b0> and now I'm not sure that my version in synced with the upstream
563: [07:55:00] * Shrike_Finland has joined #silverstripe
564: [07:55:00] <g4b0> do I have to run it for each branch?
565: [07:55:00] <Pyromanik> but it wouldn't undo your changes.
566: [07:55:00] <Pyromanik> that would still work
567: [07:55:00] <Pyromanik> no wait
568: [07:55:00] <Pyromanik> unless you've committed to it
569: [07:56:00] <Pyromanik> if you've not got important bits, just rm the whole thing and re-clone
570: [07:56:00] <azureKnight> Couldn't you just check to see if they're the same by running git status?
571: [07:56:00] <Pyromanik> dunno
572: [07:56:00] <Pyromanik> mmm
573: [07:57:00] <g4b0> re-cloning can be a solution...
574: [07:57:00] <azureKnight> I think I'm getting my functions confuse.
575: [07:57:00] <azureKnight> confused*
576: [07:57:00] <Pyromanik> g4b0, just be sure to back up your working files
577: [07:57:00] <Pyromanik> of course
578: [07:57:00] <azureKnight> Yeah, I just ran it to see that.
579: [07:57:00] <Pyromanik> git status will tell you if you've got files changed, and how many commits you are in front of the remote
580: [07:57:00] <azureKnight> Haha.
581: [07:57:00] <Pyromanik> (at last pull)
582: [07:58:00] <g4b0> I was syncing to HEAD before starting :0
583: [07:58:00] <g4b0> :)
584: [07:58:00] <simon_w|air> g4b0, git pull?
585: [07:58:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
586: [07:58:00] <azureKnight> g4b0 was going to ask, what error do you get when you do a git pull?
587: [07:58:00] * Colin[pi] has joined #silverstripe
588: [07:59:00] <azureKnight> ???if any.
589: [07:59:00] <g4b0> here you are my git pull http://pastebin.com/LRgGGd5U
590: [07:59:00] <Pyromanik> if he's got uncommitted changes he'll get a "stash or commit before merging"
591: [08:00:00] <simon_w|air> The basics of git isn't complicated :p
592: [08:00:00] <g4b0> do I need to run git pull on each branch?
593: [08:00:00] <Pyromanik> it's just letting you know what has changed.
594: [08:00:00] * Zauberfisch|idle has joined #silverstripe
595: [08:00:00] <g4b0> just a question
596: [08:00:00] <Pyromanik> there's no "error"
597: [08:00:00] <Pyromanik> seems fine
598: [08:00:00] <azureKnight> Yeah, looks like it's happy.
599: [08:00:00] <simon_w|air> Yeah, now you're up to date
600: [08:01:00] <Pyromanik> simon_w, isn't/aren't?
601: [08:01:00] <simon_w|air> nope
602: [08:01:00] <azureKnight> The head/master would be the important one??? usually.
603: [08:01:00] <simon_w|air> Pyromanik, yeah, I changed what I was saying halfway through
604: [08:01:00] <Pyromanik> After I post I go "damn, now I look like a retard"
605: [08:01:00] <g4b0> but if I would like to submit a pull request for 3.0
606: [08:01:00] <Pyromanik> I hate when I do that
607: [08:01:00] <Pyromanik> :P
608: [08:01:00] <g4b0> I have to work on master, or in 3.0?
609: [08:02:00] <Pyromanik> I think your own branch?
610: [08:02:00] <g4b0> yes, i already forked
611: [08:02:00] <azureKnight> Yeah,
612: [08:02:00] <Pyromanik> "My sweet feature"
613: [08:02:00] <Pyromanik> new branch
614: [08:02:00] <simon_w|air> Though you'll need to fork first
615: [08:02:00] <Pyromanik> mm
616: [08:02:00] <Pyromanik> unsure.
617: [08:02:00] <simon_w|air> g4b0, checkout 3.0, new branch, commit, push, pull request
618: [08:03:00] <Pyromanik> nfi :<
619: [08:03:00] <g4b0> another question
620: [08:03:00] <simon_w|air> http://doc.silverstripe.org/framework/en/trunk/misc/contributing/code
621: [08:03:00] <Pyromanik> fork to your github, pull from your github, make new branch, check it out, hackity hack, commit, test (programmatically), push, pullrequest
622: [08:03:00] <g4b0> which difference arise between git pull and rebase?
623: [08:03:00] <Pyromanik> pull does a "fetch" and a "merge"
624: [08:04:00] * ARNHOE has joined #silverstripe
625: [08:04:00] <azureKnight> Hmm. Now I just need to get that icon to show up in the grid field...
626: [08:04:00] <Pyromanik> or if you specify rebase, it does a "fetch" and a "rebase" instead.
627: [08:05:00] <azureKnight> $File.Icon
628: [08:05:00] <Pyromanik> g4b0, no idea :<
629: [08:05:00] <simon_w|air> g4b0, rebase changes the base of your branch, merge merges in commits
630: [08:05:00] <Pyromanik> icon?
631: [08:05:00] <g4b0> so, which is the difference between merge and rebase? :)
632: [08:06:00] <simon_w|air> yeah
633: [08:06:00] <Pyromanik> simon_w, oh, so it's as if you 'forked' from a different commit when you branched?
634: [08:06:00] <Pyromanik> so they're sorta similar, but not.
635: [08:06:00] <g4b0> thanks simon_w
636: [08:06:00] <Pyromanik> where merge just smushes it together
637: [08:07:00] <g4b0> so I use git pull when I want to sync my "official" branches to HEAD
638: [08:07:00] <g4b0> ang git rebase when I'm on a "working" branch and I want
639: [08:08:00] <g4b0> right?
640: [08:08:00] <g4b0> to allineate it to the "official" branch
641: [08:09:00] <Pyromanik> it'd be as if your branch began at a newer commit
642: [08:09:00] <Pyromanik> (or older I guess)
643: [08:09:00] <Pyromanik> mmm, rebase would merge changes into your working branch too
644: [08:09:00] <g4b0> ok, I understand
645: [08:09:00] <simon_w|air> g4b0, you pull from upstream, then rebase your feature branch
646: [08:10:00] * zfmf has joined #silverstripe
647: [08:10:00] <simon_w|air> You shouldn't be committing to 3.0/3.1/master/etc
648: [08:16:00] <azureKnight> Ugh Pyromanik now you got me all confused.
649: [08:16:00] <azureKnight> Haha
650: [08:24:00] <Colin[pi]> ...... http://i.imgur.com/epTBSFG.png
651: [08:24:00] <g4b0> Topic cange: I'm developing a site that *must* be XHTML
652: [08:24:00] <g4b0> in db I have a string with <br />
653: [08:24:00] <simon_w|air> Haha!
654: [08:25:00] <g4b0> but rendering SS remove the ending /
655: [08:25:00] <simon_w|air> Colin[pi], local network-ish?
656: [08:25:00] <Pyromanik> g4b0, not seeing the issue?
657: [08:25:00] <Pyromanik> oh
658: [08:25:00] <Pyromanik> you sure?
659: [08:25:00] <Colin[pi]> not mine, someone from ANU shared on reddit
660: [08:25:00] <g4b0> yep
661: [08:25:00] <Colin[pi]> claiming its in the holidays when the network is quiet
662: [08:26:00] <simon_w|air> So yeah, local network
663: [08:26:00] <Colin[pi]> I'll keep chugging along on my 4mbps *toot too*
664: [08:26:00] <g4b0> If you give a look to yesterday logs
665: [08:26:00] <g4b0> I was speaking about that with UndefinedOffset
666: [08:27:00] * hubertusanton has joined #silverstripe
667: [08:27:00] <simon_w|air> g4b0, ContentNegotiator::enable()?
668: [08:28:00] * mrzero quit (Remote host closed the connection)
669: [08:28:00] <g4b0> simon_w it doesn't wokr
670: [08:28:00] <g4b0> work
671: [08:28:00] <g4b0> The problem is that SS remove the ending /
672: [08:29:00] <g4b0> before ContentNegiotiator::process is called
673: [08:30:00] * mrzero has joined #silverstripe
674: [08:30:00] * mrzero quit (Changing host)
675: [08:30:00] * mrzero has joined #silverstripe
676: [08:31:00] <simon_w|air> yeah, and the negotiator should stick it back in if it's sending xhtml
677: [08:31:00] <simon_w|air> Try sticking $_GET['forceFormat'] = 'xhtml'; in your _config.php
678: [08:32:00] <g4b0> I dumped the format into ContentNegiotiator::process
679: [08:32:00] <g4b0> and it's correct
680: [08:32:00] <g4b0> xhtml
681: [08:32:00] * Zauberfisch has joined #silverstripe
682: [08:33:00] <g4b0> because it crashes everything
683: [08:33:00] <Pyromanik> so start it with it
684: [08:33:00] * Zauberfisch_ has joined #silverstripe
685: [08:33:00] <g4b0> but the template doesn't start with <?xml version="1.0" encoding="UTF-8"?>
686: [08:34:00] <simon_w|air> So fix them
687: [08:34:00] <g4b0> some browser displays errors
688: [08:34:00] <g4b0> some javascript no more working
689: [08:34:00] <g4b0> the problem is that SS add some errors
690: [08:34:00] <simon_w|air> You want xhtml, you deal with the problems it causes
691: [08:34:00] <Zauberfisch_> g4b0 you manged to get it valid yesterday?
692: [08:34:00] <g4b0> nope
693: [08:35:00] <g4b0> for example
694: [08:35:00] <g4b0> it adds an & at the end of CSS include
695: [08:35:00] <g4b0> (SS 3.1.0-beta2)
696: [08:39:00] * Zauberfisch_ quit (Remote host closed the connection)
697: [09:01:00] * ajshort quit (Read error: Connection reset by peer)
698: [09:04:00] * kinglozzer has joined #silverstripe
699: [09:07:00] * joelpittet quit (Remote host closed the connection)
700: [09:11:00] * Jedateach has joined #silverstripe
701: [09:11:00] * Guest74504 quit (Changing host)
702: [09:11:00] * Guest74504 has joined #silverstripe
703: [09:11:00] * Guest74504 is now known as onre
704: [09:29:00] * azureKnight quit (Quit: azureKnight)
705: [09:30:00] * Zauberfisch quit (Read error: Connection reset by peer)
706: [09:45:00] <kinglozzer> Okay, so I'm trying to do a popup before deleting a page of a certain page type in the CMS. This works, does it all look okay to anyone free to take a quick look? https://gist.github.com/kinglozzer/5106820
707: [09:47:00] <Pyromanik> kinglozzer, but... when you delete a parent it removes all children.
708: [09:47:00] <Pyromanik> so I assume the items are just vanilla dataobjects?
709: [09:49:00] <kinglozzer> Pyromanik: Yep, DataObjects not pages
710: [09:49:00] <Pyromanik> and you've got some kind of modeladmin to work with them?
711: [09:49:00] <Pyromanik> otherwise they'll just be left dangling into nothingness
712: [09:50:00] * lx-berlin has joined #silverstripe
713: [09:50:00] <kinglozzer> Yeah, DropdownField to select a NewsPage :)
714: [09:51:00] <Pyromanik> seems ok then.
715: [09:51:00] <kinglozzer> I was going to set it up without a field to pick one, and an onBeforeWrite() to just get the first NewsPage, but it falls down if they delete the page/don't have one in the first place and seems kinda hacky
716: [09:51:00] <kinglozzer> Cheers
717: [09:57:00] * Liquide quit (Ping timeout: 245 seconds)
718: [09:57:00] * Zauberfisch has joined #silverstripe
719: [10:08:00] * priithansen has joined #silverstripe
720: [10:08:00] <ARNHOE> What dbfield should I use for uploading pdf? For images you use "Image" but for pdf/files ?
721: [10:09:00] <Pyromanik> File
722: [10:09:00] <ARNHOE> I tried to look for that in model/fieldtypes map, but didn't see that. so I thought it was removed!
723: [10:09:00] <Pyromanik> nope
724: [10:09:00] <Pyromanik> class Image extends File
725: [10:10:00] <ARNHOE> ah that explains
726: [10:11:00] <Pyromanik> :)
727: [10:14:00] * Liquide has joined #silverstripe
728: [10:17:00] * simon_w quit (Ping timeout: 245 seconds)
729: [10:17:00] <g4b0> Another git issue:
730: [10:17:00] * simon_w has joined #silverstripe
731: [10:17:00] <g4b0> # git checkout 3.0
732: [10:17:00] <g4b0> Switched to branch '3.0'
733: [10:17:00] <g4b0> Your branch is ahead of 'origin/3.0' by 515 commits.
734: [10:17:00] <g4b0> # git pull
735: [10:17:00] <g4b0> Already up-to-date.
736: [10:18:00] <g4b0> what does it means?
737: [10:18:00] <Pyromanik> :<
738: [10:18:00] <Pyromanik> it means panic :S
739: [10:18:00] <Pyromanik> lol, nah, I don't know sorry.
740: [10:18:00] <g4b0> :/
741: [10:19:00] <Pyromanik> unless the last pull didn't complete
742: [10:19:00] <Pyromanik> but the updated data hasn't been merged yet
743: [10:19:00] <Pyromanik> unless
744: [10:19:00] <Pyromanik> so it's done the fetch, meaning there's nothing to fetch, you're already up to date
745: [10:20:00] <Pyromanik> I don't know how to merge it if that's the case though
746: [10:20:00] <Pyromanik> yeah, understandable.
747: [10:20:00] <Pyromanik> git merge <dunno> <dunno>
748: [10:20:00] <g4b0> I would like to have my 3.0 local branch as an exact copy of the upstream/3.0
749: [10:21:00] * Guits has joined #silverstripe
750: [10:22:00] <simon_w|air> g4b0, it means your local branch has 515 more commits than origin
751: [10:22:00] <g4b0> How can I solve it?
752: [10:22:00] <g4b0> maybe I did something wrong...
753: [10:22:00] <simon_w|air> Probably cause your pulled from upstream
754: [10:23:00] <simon_w|air> origin is your fork, and the version on github is behind
755: [10:23:00] <simon_w|air> You don't need to "fix" it though, nothing's broken
756: [10:23:00] <simon_w|air> git push
757: [10:23:00] <g4b0> I just want to have the upstream/3.0 in my 3.0
758: [10:24:00] <Pyromanik> so he's pulled from his fork
759: [10:24:00] <Pyromanik> gotcha
760: [10:24:00] <Pyromanik> then pulled from upstream (separate remote)?
761: [10:24:00] <Pyromanik> oh
762: [10:25:00] <simon_w|air> yeah
763: [10:25:00] <Guits> Hi all.. does anyone know how to make the ss3 event_calendar to start weeks with mondays ?
764: [10:26:00] * howardgrigg quit (Remote host closed the connection)
765: [10:27:00] * Liquide quit (Ping timeout: 276 seconds)
766: [10:29:00] <g4b0> Enter passphrase for key '/home/g4b0/.ssh/id_rsa':
767: [10:29:00] <g4b0> sorry
768: [10:29:00] <Pyromanik> :<
769: [10:29:00] <Pyromanik> flood
770: [10:29:00] <g4b0> Already up-to-date.
771: [10:29:00] <g4b0> # git pull
772: [10:29:00] <Pyromanik> umm
773: [10:29:00] <g4b0> Switched to branch '3.0'
774: [10:29:00] <g4b0> # git checkout 3.0
775: [10:29:00] <g4b0> 11987ac..ce66bc1 master -> master
776: [10:29:00] <g4b0> 558a83e..cce2bf5 8213-numerical-cms-fields-order-rc -> 8213-numerical-cms-fields-order-rc
777: [10:29:00] <g4b0> 775567d..d57caa6 3.1 -> 3.1
778: [10:29:00] <g4b0> f431b35..5d1459e 3.0 -> 3.0
779: [10:29:00] <g4b0> To git@github.com:g4b0/sapphire.git
780: [10:29:00] <g4b0> Total 152 (delta 124), reused 100 (delta 77)
781: [10:29:00] <g4b0> Writing objects: 100% (152/152), 19.79 KiB, done.
782: [10:29:00] <g4b0> Compressing objects: 100% (75/75), done.
783: [10:29:00] <g4b0> Delta compression using up to 4 threads.
784: [10:29:00] <g4b0> Counting objects: 365, done.
785: [10:29:00] <g4b0> # git push
786: [10:29:00] <g4b0> I did
787: [10:30:00] <g4b0> but when I try to submit a pull request
788: [10:30:00] <g4b0> it seems ok
789: [10:30:00] <Pyromanik> you have to do it from your branch in github
790: [10:30:00] <g4b0> it says that there are 515 commits
791: [10:31:00] <priithansen> :s client wants decimal delimiter to be , not .
792: [10:34:00] <simon_w|air> g4b0, checkout the branch with the fix, then git rebase upstream/3.0
793: [10:34:00] <simon_w|air> Then you'll probably need to do a forced push
794: [10:35:00] <g4b0> ok
795: [10:35:00] <g4b0> I will try
796: [10:35:00] <g4b0> thanks
797: [10:36:00] <Zauberfisch> priithansen is that a question or a statement?
798: [10:36:00] <priithansen> Probably bit of both :)
799: [10:36:00] <simon_w|air> priithansen, change locale?
800: [10:36:00] <Pyromanik> priithansen, is that not covered in l10n?
801: [10:36:00] <Pyromanik> mm, change locale
802: [10:37:00] <simon_w|air> setlocale('de_DE', 'de'); ?
803: [10:37:00] <priithansen> hm silverstripe is in et_EE and we should have , as decimal mark
804: [10:37:00] <simon_w|air> priithansen, you need to call setlocale() too (the PHP function)
805: [10:38:00] <Pyromanik> simon_w, shouldn't silverstripe take care of that for us?
806: [10:38:00] <Pyromanik> ie, as part of the set_locale() call?
807: [10:38:00] <simon_w|air> Maybe? setlocale() is actually more finicky in what it accepts that i18n
808: [10:38:00] <Pyromanik> hmm
809: [10:39:00] <Pyromanik> I'd expect the framework to only need the one call
810: [10:39:00] <Pyromanik> nite
811: [10:39:00] <simon_w|air> Oops, so it is
812: [10:39:00] <Pyromanik> time**
813: [10:39:00] <Pyromanik> time(
814: [10:39:00] <Pyromanik> anyway, it is way past my bed itme.
815: [10:39:00] <Pyromanik> rather than having to set it twice, that seems a bit... 'what's the point'?
816: [10:40:00] <priithansen> thanks for the point to the right direction
817: [10:40:00] * lx-berlin quit (Quit: lx-berlin)
818: [10:40:00] <g4b0> simon_w: with rebase I've got a lot of conflict with yml files, how can I automatically accept all the remote versions?
819: [10:41:00] <Pyromanik> g4b0, not sure that you can
820: [10:41:00] <Pyromanik> maybe git checkout?
821: [10:41:00] <Pyromanik> dunno
822: [10:41:00] <Pyromanik> reset --hard?
823: [10:41:00] <simon_w|air> g4b0, that sounds like you started with a 3.1/master branch, not a 3.0 one
824: [10:41:00] * Pyromanik shrugs
825: [10:41:00] <Pyromanik> i'm out
826: [10:42:00] <g4b0> nope
827: [10:42:00] <simon_w|air> Make a new branch from 3.0, cherry-pick in your commit (git cherry-pick commit), push
828: [10:42:00] <g4b0> I started with a 3.0 branch
829: [10:42:00] <g4b0> maybe not updated?
830: [10:43:00] * Jedateach quit (Read error: Connection reset by peer)
831: [10:43:00] <g4b0> what does cherry-pick do?
832: [10:44:00] <simon_w|air> And now, I go to bed too
833: [10:44:00] <g4b0> bye
834: [10:44:00] <g4b0> thanks for all
835: [10:44:00] <simon_w|air> cherry-picks a commit
836: [10:44:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
837: [10:45:00] * Liquide has joined #silverstripe
838: [10:51:00] * Shrike_Finland quit (Quit: Leaving.)
839: [10:57:00] * Liquide quit (Ping timeout: 256 seconds)
840: [11:02:00] * lx-berlin has joined #silverstripe
841: [11:04:00] * Liquide has joined #silverstripe
842: [11:05:00] * mattybalaam has joined #silverstripe
843: [11:09:00] * chillu has joined #silverstripe
844: [11:22:00] <mattybalaam> SS3 Gridfield query. How do I set fields on a has_many of image without subclassing Image?
845: [11:23:00] <kinglozzer> Yep, that ^^
846: [11:23:00] <lx-berlin> afaik you shouldnt use has_many images. instead use many_many
847: [11:29:00] <mattybalaam> Ah, OK, rookie mistake! I still have a problem though???
848: [11:29:00] <mattybalaam> I have a dataextension for the image class and have $fields->push(new UploadField('Image', 'Image'));
849: [11:29:00] <mattybalaam> However, when I upload an image I get two entries in the File table
850: [11:30:00] <mattybalaam> One of which will have the correct name, the other is a string of numbers and letters, e.g. 5138795b36fb4.
851: [11:31:00] <mattybalaam> What am I doing wrong?
852: [11:34:00] <Colin[pi]> doesn't seem like a good idea if it is :\
853: [11:34:00] <DesignerX> hi guys, I just found out I can do $Page(solutions).renderwith() in template ! is this somthing new ?
854: [11:34:00] <kinglozzer> DesignerX: Not new, but not sure if it's a good idea
855: [11:35:00] <kinglozzer> mattybalaam: What are you trying to do?
856: [11:36:00] <DesignerX> Colin[pi]: kinglozzer any reason to why I sould not use it ? as I need this instead of widgets which are very limited ..
857: [11:37:00] <Colin[pi]> seems to me to be a big violation of separation of concerns
858: [11:37:00] <Colin[pi]> which is asking for trouble
859: [11:38:00] <mattybalaam> So, I am trying to do a updateCMSFields(FieldList $fields and push an upload field via a data extension
860: [11:38:00] <mattybalaam> kinglozzer: I have a gridfield on a page to manage a many_many of images, but by default Add File just gives me the fields on this screenshot: https://www.dropbox.com/s/4kip37cxtzwwi8o/Screen%20Shot%202013-03-07%20at%2011.37.31.png
861: [11:39:00] <mattybalaam> DataExtension
862: [11:39:00] <kinglozzer> DesignerX: Can't you write a function in your Controller to do it for you? Stuff like that shouldn't really be in a template
863: [11:41:00] <Colin[pi]> yeah renderWith() is 100% a controller thing
864: [11:42:00] <kinglozzer> Ah, you can't add Images directly like that - at least not as far as I'm aware. If you have to use a Gridfield, create a DataObject (for example ProductImage) with a $has_one Image. Then your ProductPage would has_many ProductImages => ProductImage
865: [11:42:00] <DesignerX> kinglozzer: I know its "bad practice" but What other option is there ? what about <% with Page(solutions %> <% include Mytemplate %> <% end_with %> instead of $Page(solutions).renderwith(MyTemplate) ?
866: [11:43:00] <kinglozzer> mattybalaam: It's a pain, but it enables you to add stuff like sortablegridfield. If you don't HAVE to use a gridfield, look up the sortablefile module
867: [11:43:00] <kinglozzer> DesignerX: That's better, yeah
868: [11:43:00] <kinglozzer> I'd still try to avoid having it in the template at all personally
869: [11:44:00] * Colin[pi] concurs, less in the template is more
870: [11:44:00] <kinglozzer> I'd do $LoadWidget or something, then in the Controller function LoadWidget() { SiteTree::get()->byID(<pageid>).. etc
871: [11:44:00] <DesignerX> do you mean I shouldnt specify the Page name in the template & use some sort of widget / input field in the CMS to set the pagename ?
872: [11:46:00] * Zauberfisch quit (Ping timeout: 250 seconds)
873: [11:46:00] <kinglozzer> No, you can do it in the template, that's why <% with Page( %> is there, but what happens if that page is deleted?
874: [11:46:00] <Colin[pi]> well you really want the controller/model figuring that stuff out and not the view
875: [11:47:00] <mattybalaam> KingLozzer. Thanks. I???m updating a site from SS2 where it is working that way using DOM and thought I would try and do it the same way rather than sublassing like I would normally do, but if it can???t be done in SS3 it can???t be done.
876: [11:47:00] <kinglozzer> DesignerX: In the controller, you can write some sort of fallback if you want a different page to be displayed if that page doesn't exist.
877: [11:48:00] <DesignerX> true , I was thinking to use widgets then have like MiniMenu widget with a dropdown list of pages . Then get children of that page & create the menu
878: [11:48:00] <kinglozzer> I never used SS2, but for adding multiple images to a page I use sortablefile: https://github.com/bummzack/sortablefile. But you have to extend Image and then use a $has_many
879: [11:50:00] <kinglozzer> You can use a $has_many if you extend Image, just not on Image directly.
880: [11:53:00] <mattybalaam> Ah, I hadn???t seen sortablefile before ??? seems to work closer to the SS2 method I was using, I???ve been using this instead on SS3: https://github.com/UndefinedOffset/SortableGridField
881: [12:02:00] * simon__w has joined #silverstripe
882: [12:05:00] * simon_w quit (Ping timeout: 264 seconds)
883: [12:28:00] * Colin[pi] quit (Ping timeout: 256 seconds)
884: [12:36:00] * mightycoco has joined #silverstripe
885: [12:37:00] <lx-berlin> i am building my first modeladmin with ss3.1 $summary_fields seems to have a bug. static $summary_fields = array('ID', 'myfunction'); returns
886: [12:37:00] <mightycoco> Hi, having some problems with the DateTimeField in a frontend template...
887: [12:37:00] <lx-berlin> ERROR [User Error]: Uncaught Exception: Unable to traverse to related object field [myfunction] on [Product]
888: [12:38:00] <lx-berlin> is it no more possible in ss3.1 to use a functionname in $summary_fields ?
889: [12:39:00] <mightycoco> I add the DateTimeField to the form using DateTimeField::create("DueDate")->setTitle('Due date')->setConfig('dateformat', 'YYYY-MM-dd HH:mm')->setConfig('datavalueformat', 'YYYY-MM-dd HH:mm'), - however, in the frontendd, the date is shown as "Jan 13, 2013" and "09:00 PM" instead of "2013-01-13" and "21:00"...
890: [12:46:00] <priithansen> lx-berlin: maybe you are looking for $field_labels
891: [12:50:00] <lx-berlin>
892: [12:50:00] <lx-berlin> static $summary_fields = array(
893: [12:50:00] <lx-berlin> 'ID',
894: [12:50:00] <lx-berlin> static $field_labels = array('myfunction' => 'myfunction');
895: [12:50:00] <lx-berlin> 'myfunction'
896: [12:50:00] <lx-berlin> );
897: [12:50:00] <lx-berlin> still this error: [User Error] Uncaught Exception: Unable to traverse to related object field [myfunction] on [Product]
898: [12:51:00] <lx-berlin> public function myfunction() {return "bla"; }
899: [12:53:00] <lx-berlin> i think i tested this before. but i am not sure. so let me check it again
900: [12:53:00] <kinglozzer> lx-berlin: How about if you do it as an associative array? I.e. 'myfunction' => 'myfunction'
901: [12:54:00] <lx-berlin> no, still the same error
902: [12:55:00] <kinglozzer> lx-berlin: Looking at one of mine, it's public static $summary_fields = array('MethodName' => 'FieldName');
903: [12:55:00] <kinglozzer> For example I have public static $summary_fields = array('PrettyPrice' => 'Price');, then public function PrettyPrice() { return '??' . number_format(abs($this->Price)); }
904: [12:56:00] <kinglozzer> Works for me in 3.1b2
905: [12:57:00] <lx-berlin> public static $summary_fields = array(
906: [12:57:00] <lx-berlin> 'ID' => 'ID',
907: [12:57:00] <lx-berlin> no luck
908: [12:57:00] <lx-berlin> );
909: [12:57:00] <lx-berlin> are you using the github 3.1 branch or the zip download of ss3.1 ?
910: [12:57:00] <lx-berlin> 'myfunction' => 'My Function'
911: [12:58:00] <kinglozzer> lx-berlin: The zip from http://www.silverstripe.org/pre-releases/
912: [12:59:00] <lx-berlin> hmm, i am using the version from github (as a git submodule)
913: [13:01:00] <kinglozzer> Try the zip beta2
914: [13:01:00] <kinglozzer> lx-berlin: Here's my example that works fine for me, minus the getCMSFields() etc: https://gist.github.com/kinglozzer/5107897
915: [13:01:00] * UndefinedOffset has joined #silverstripe
916: [13:06:00] * Zauberfisch has joined #silverstripe
917: [13:08:00] <lx-berlin> }
918: [13:08:00] <lx-berlin> return '?? 12.99';
919: [13:08:00] <lx-berlin> 'PrettyPrice' => 'Price'
920: [13:08:00] <lx-berlin> so, this should work, right ?
921: [13:08:00] <lx-berlin> public static $summary_fields = array(
922: [13:08:00] <lx-berlin> 'Title' => 'Title',
923: [13:08:00] <lx-berlin> );
924: [13:08:00] <lx-berlin>
925: [13:08:00] <lx-berlin> public function PrettyPrice() {
926: [13:09:00] <lx-berlin> ERROR [User Error]: Uncaught Exception: Unable to traverse to related object field [PrettyPrice] on [Product]
927: [13:10:00] <kinglozzer> Should work as far as I'm aware
928: [13:10:00] <kinglozzer> Tried the zip?
929: [13:11:00] <lx-berlin> is this working in your version ?
930: [13:11:00] <lx-berlin> also /dev/build was only showing a white screen
931: [13:11:00] <lx-berlin> kinglozzer: before i used the version from github i tried the ss3.1b2 zip file. I dont know why, but /dev was giving me a blank white screen. So i was very happy that this problem is not in the github version.
932: [13:11:00] <kinglozzer> Now gonna double check
933: [13:13:00] <kinglozzer> Are you on Windows?
934: [13:13:00] <kinglozzer> Okay
935: [13:13:00] <kinglozzer> Yep, working for me
936: [13:13:00] <lx-berlin> hmm
937: [13:13:00] <lx-berlin> no, linux
938: [13:14:00] <lx-berlin> in apache
939: [13:14:00] <kinglozzer> Nope
940: [13:14:00] <lx-berlin> did you setup a virtual host for your dev project ?
941: [13:14:00] <kinglozzer> All I did when upgrading was drop in the cms & framework folders and do /dev/build?flush=all
942: [13:15:00] <lx-berlin> we use to have all SS projects in subfolders of the apache root (/var/www). Hmm, i guessed this was causing the problems
943: [13:25:00] * jcwacky has joined #silverstripe
944: [13:43:00] <jcwacky> How can I change which field the CMS uses for a DataObject's breadcrumb label? http://spdr.me/6OEJ
945: [13:53:00] <lx-berlin> jcwacky: i think you can add a function getTitle() that returns the lable for the breadcrumb
946: [13:54:00] <priithansen> lx-berlin: wouldn't that mess with the title field too?
947: [13:55:00] <lx-berlin> i did this for a DataObject which had no Title
948: [13:56:00] <priithansen> then it works but looks like on the screenshot there is title field already in place
949: [13:56:00] <lx-berlin> ah, sorry. then this probably doesnt make sense
950: [13:56:00] <jcwacky> Yeh, I just tried that but it replaces that field value too.
951: [13:57:00] <jcwacky> What else could I call it?
952: [13:57:00] <jcwacky> Think I might have to do something like that then.
953: [13:57:00] <lx-berlin> i used "AcademicDegree" to avoid "Title"
954: [13:58:00] <priithansen> there probably is a way to override modeladmins breadcrumb method somehow but renaming title could be simpler indeed
955: [14:00:00] <lx-berlin> chillu: help! :)
956: [14:00:00] <lx-berlin> kinglozzer: i just removed the git submodules and downloaded zip files of cms and framework from github (both 3.1 branch). But i still get the same error
957: [14:01:00] <kinglozzer> :/ It's definitely working for me!
958: [14:01:00] <kinglozzer> :P
959: [14:01:00] <kinglozzer> Not that that helps much :
960: [14:02:00] <lx-berlin> i dont know what is wrong here. Also getting a blank screen when running /dev is probably a problem that noone else has
961: [14:05:00] * dmercier has joined #silverstripe
962: [14:06:00] <dmercier> i have a question for a silverstripe guru. is there someone to help me?
963: [14:07:00] <lx-berlin> just ask and you will see if someone knows an answer
964: [14:08:00] <dmercier> i have a controller which in some conditions, need to use the layout from another controller, is that possible?
965: [14:08:00] <dmercier> i'm using SS 2.4
966: [14:09:00] <lx-berlin> cant u use render_with ?
967: [14:12:00] <dmercier> do i have to use it in controller->index ?
968: [14:13:00] <kinglozzer> dmercier: Yep
969: [14:13:00] <lx-berlin> i would try this. But i am not sure myself.
970: [14:16:00] <dmercier> the problem is that the logic for loading that particular layout is not in the index method
971: [14:16:00] <dmercier> );
972: [14:16:00] <dmercier> 'proyectos/$Action/$ID/$OtherID/$ID2/$ID3' => 'projects'
973: [14:16:00] <dmercier> 'projets/$Action/$ID/$OtherID/$ID2/$ID3' => 'projects',
974: [14:16:00] <dmercier> 'projects/$Action/$ID/$OtherID/$ID2/$ID3' => 'projects',
975: [14:16:00] <dmercier> public static $url_handlers = array(
976: [14:16:00] <dmercier> it's using some URL handling in the controller
977: [14:17:00] <dmercier> if projects method is run, it should display another layout
978: [14:18:00] <dmercier> here is the code https://gist.github.com/ebhoren/5108343
979: [14:19:00] <dmercier> i'm sorry for the code, i'm not the autor ;)
980: [14:19:00] <dmercier> as i tested, the index method is run before the projects method
981: [14:26:00] * thetoine has joined #silverstripe
982: [14:30:00] * thetoine has left #silverstripe
983: [14:34:00] <ec8or> dmercier: wouldn't the projects method run for projects/projects?
984: [14:35:00] <ec8or> or no sorry didn't see your url handler was in the page controller
985: [14:38:00] <lx-berlin> now i can remove my zip files again and use git submodules again
986: [14:38:00] <lx-berlin> and i didnt have it defined. Now its working
987: [14:38:00] <lx-berlin> kinglozzer: i asked chillu about the problems with $summary_fields. You need to have searchable_fields defined ! (its a bug)
988: [14:55:00] <dmercier> hey guys, anyone to help me?
989: [14:55:00] <dmercier> it should be something simple to do
990: [14:56:00] <kinglozzer> lx-berlin: Bizarre, I'm using 3.1b2 and I don't have $summary_fields defined!
991: [14:56:00] <kinglozzer> At least it's working :)
992: [14:56:00] <kinglozzer> dmercier: Can't you use return $this->renderWith() inside your projects method?
993: [14:57:00] <dmercier> yes, it display the correct view, but how to pass it the correct object data
994: [14:58:00] <kinglozzer> dmercier: $this->customise($project)->renderWith(... might work
995: [14:58:00] <kinglozzer> Not 100% sure if it exists in 2.4, I think it does though
996: [14:58:00] * mattybalaam quit (Quit: Page closed)
997: [14:59:00] <dmercier> is there a way to push a segment to the breadcrumb?
998: [14:59:00] <dmercier> thx, it works
999: [15:07:00] <mightycoco> still struggling with the DateTimeFIeld formating... some ideas there?
1000: [15:12:00] * Nivery has joined #silverstripe
1001: [15:14:00] <dmercier> is there a way to append a custom path/item at the end of the breadcrumb?
1002: [15:18:00] * jcwacky quit (Quit: jcwacky)
1003: [15:21:00] * DesignerX quit (Ping timeout: 245 seconds)
1004: [15:25:00] * Friksel has joined #silverstripe
1005: [15:26:00] <Friksel> does anybody here knows if there is a standard silverstripe way of limiting the adding of new DataObjects within a gridview?
1006: [15:26:00] <Friksel> ... sorry GridField
1007: [15:29:00] <Friksel> I'm thinking of changing the gridfield config to GridFieldConfig_Recordviewer when the maximum number of allowed DataObjects is reached, but I wonder if there's a cleaner solution, build in Silverstripe
1008: [15:31:00] * lx-berlin quit (Quit: lx-berlin)
1009: [15:33:00] * dmercier has left #silverstripe
1010: [15:37:00] <g4b0> chillu: I'm deployng a quite big site (~450 pages) with SS 3.1.0-beta2, but I have some CMS problem
1011: [15:38:00] <g4b0> http://open.silverstripe.org/ticket/8300
1012: [15:38:00] <g4b0> http://open.silverstripe.org/ticket/8295
1013: [15:38:00] <g4b0> http://open.silverstripe.org/ticket/8067
1014: [15:38:00] <g4b0> can you please give a look to my tickets?
1015: [15:38:00] <g4b0> http://open.silverstripe.org/ticket/8299
1016: [15:40:00] <chillu> Not really, sorry - I've got a day job as well ;)
1017: [15:41:00] <Zauberfisch> *jpg
1018: [15:41:00] <Zauberfisch> g4b0 for the file issue you could try working around that by setting the file extensions .jgp AND .JPG
1019: [15:41:00] <g4b0> ;)
1020: [15:42:00] <g4b0> thanks Zauberfisch
1021: [15:42:00] <Zauberfisch> g4b0 nvm
1022: [15:42:00] <Zauberfisch> I just saw the file extensions map gets converted to lower
1023: [15:43:00] <g4b0> :(
1024: [15:43:00] <Zauberfisch> but then again that is actually not the problem, I just saw the extension also gets turned lower case
1025: [15:43:00] <Zauberfisch> hmm
1026: [15:43:00] <Zauberfisch> the bug must be somewhere else
1027: [15:43:00] <Zauberfisch> g4b0 in what file upload is that the case?
1028: [15:43:00] <Zauberfisch> UploadField or somewhere else?
1029: [15:44:00] <g4b0> UploadField
1030: [15:45:00] <Zauberfisch> g4b0 and it works for .jpg but not for .JPG?
1031: [15:45:00] <g4b0> Try to upload a .PDF
1032: [15:45:00] <g4b0> it looks like a .doc
1033: [15:46:00] <Zauberfisch> g4b0 so its not for an image, its just for PDF?
1034: [15:46:00] * scpi has joined #silverstripe
1035: [15:46:00] <Zauberfisch> g4b0 ah, I see what you mean, you want it to display the nice icon?
1036: [15:47:00] <g4b0> the problem is that I'm deploying a large site with a lot of publisher
1037: [15:47:00] <g4b0> I think so
1038: [15:47:00] <g4b0> maybe also for XLS
1039: [15:47:00] <Zauberfisch> I have just confirmed, there appears to be no bug in Uploadfield->upload() nor in Upload->load()
1040: [15:48:00] <g4b0> I think that a CMS like SS 3.1
1041: [15:48:00] <g4b0> and they will don't like this icon issue
1042: [15:49:00] <g4b0> need to fix this bugs...
1043: [15:49:00] <g4b0> this kind of bugs
1044: [15:49:00] <g4b0> that it's near to became a rc1
1045: [15:52:00] * guci0 has joined #silverstripe
1046: [16:03:00] <Friksel> Damn... I removed the 'add new' button on a gridfield if there are more than 2 items to prevent adding too much. It works, but needs page reload.... so users can still add more than allowed dataObjects to gridfield... damn... :(
1047: [16:03:00] <Zauberfisch> * 3.1-beta2
1048: [16:03:00] <Zauberfisch> chillu, so a pull request should go into the 3.1-beta?
1049: [16:04:00] <chillu> If its a straightforward bugfixes, yes
1050: [16:04:00] <Friksel> is there a way to set the limit of dataobjects in a has_many relationship? or in the gridfield?
1051: [16:06:00] * Kapdap quit (Ping timeout: 256 seconds)
1052: [16:06:00] * Kapdap has joined #silverstripe
1053: [16:11:00] <Zauberfisch> hold on
1054: [16:11:00] <Zauberfisch> g4b0 here you go https://github.com/silverstripe/sapphire/pull/1257
1055: [16:11:00] <Zauberfisch> fail
1056: [16:11:00] <Zauberfisch> there is a commit missing
1057: [16:12:00] <g4b0> I did the same error some time ago :)
1058: [16:14:00] <Zauberfisch> https://github.com/silverstripe/sapphire/pull/1257
1059: [16:14:00] <Zauberfisch> now thats it
1060: [16:14:00] * onre quit (Remote host closed the connection)
1061: [16:14:00] * ARNHOE quit (Remote host closed the connection)
1062: [16:15:00] <Zauberfisch> g4b0 close the ticket on open.ss.org and post a link to that pull request
1063: [16:15:00] <Zauberfisch> chillu press the fany green button on https://github.com/silverstripe/sapphire/pull/1257
1064: [16:15:00] <Zauberfisch> pretty please
1065: [16:16:00] <chillu> Done.
1066: [16:17:00] <g4b0> Nice work Zauberfisch
1067: [16:17:00] <g4b0> thanks a lot
1068: [16:18:00] * hubertusanton quit (Remote host closed the connection)
1069: [16:18:00] <g4b0> ok Zauberfisch, let fix the next one :D
1070: [16:18:00] <Zauberfisch> g4b0 np
1071: [16:18:00] <Zauberfisch> chillu <3
1072: [16:18:00] <Zauberfisch> awesome
1073: [16:19:00] <Zauberfisch> nice try :P
1074: [16:19:00] <Zauberfisch> g4b0 haha
1075: [16:20:00] * onre is now known as Guest39764
1076: [16:20:00] <g4b0> ahahah
1077: [16:20:00] <Zauberfisch> I quickly did this one because I feel like I know the file related stuff like the inside of my back pocket
1078: [16:20:00] * onre has joined #silverstripe
1079: [16:20:00] <Zauberfisch> but for the other bugs you named I need to look into it, and I don't have time for that
1080: [16:21:00] * travis-ci has joined #silverstripe
1081: [16:21:00] <Zauberfisch> why didn't travis pass?
1082: [16:21:00] <Zauberfisch> dafug?
1083: [16:21:00] * travis-ci has left #silverstripe
1084: [16:21:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5317475
1085: [16:21:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/43fb566388e4...58d012653842
1086: [16:21:00] <travis-ci> [travis-ci] silverstripe/sapphire#1566 (3.1.0-beta2 - 58d0126 : Ingo Schommer): The build failed.
1087: [16:22:00] <g4b0> thanks again, Zauberfisch
1088: [16:22:00] * Kapdap quit (Ping timeout: 252 seconds)
1089: [16:23:00] <Zauberfisch> chillu please tell me travis was failing before my pull request :S
1090: [16:23:00] <chillu> doesnt look related, no
1091: [16:23:00] * ss23 quit (Ping timeout: 272 seconds)
1092: [16:29:00] * Kapdap has joined #silverstripe
1093: [16:30:00] * lx-berlin has joined #silverstripe
1094: [16:30:00] * ss23 has joined #silverstripe
1095: [16:39:00] * Friksel quit (Ping timeout: 245 seconds)
1096: [16:55:00] <Nivery> quick question: in what table is the boolean stored for whether a page is published or not?
1097: [16:56:00] <g4b0> it's published
1098: [16:56:00] <g4b0> if there's a record in SiteTree_Live
1099: [16:56:00] <g4b0> Nivery: not a boolean
1100: [16:56:00] * mightycoco quit (Ping timeout: 245 seconds)
1101: [16:57:00] * azureKnight has joined #silverstripe
1102: [16:57:00] <Nivery> thanks g4??? i figured it must work that way but thought it used to be a database value
1103: [16:58:00] * Mantz has joined #silverstripe
1104: [16:58:00] <g4b0> np
1105: [17:00:00] * g4b0 quit (Quit: Sto andando via)
1106: [17:00:00] <Mantz> Hey there. When I'm trying to upload a picture to my uploads or even when I try to open the uploads folder I get the following error message "Error at line 675 of MYSITE/framework/core/Object.php"
1107: [17:01:00] <Mantz> I tried to set up lightbox earlier on
1108: [17:01:00] <ss23> Damn :<
1109: [17:01:00] <Mantz> nope, sadly not
1110: [17:01:00] <ss23> Mantz: Is there any more text, like waht the error is?
1111: [17:02:00] * Zauberfisch quit (Remote host closed the connection)
1112: [17:03:00] * Friksel has joined #silverstripe
1113: [17:03:00] * kinglozzer quit (Remote host closed the connection)
1114: [17:03:00] <azureKnight> Lightbox?
1115: [17:04:00] <Mantz> I also added three Image fields to my page and if I upload an image through this, it works fine...
1116: [17:04:00] <azureKnight> Mantz: Sorry, I came in late, what are you trying to do?
1117: [17:05:00] <ss23> 06:02:42 < Mantz> Hey there. When I'm trying to upload a picture to my uploads or even when I try to open the uploads folder I get the following error message "Error at line 675 of MYSITE/framework/core/Object.php"
1118: [17:05:00] <ss23> 06:01:07 -!- Mantz [bc3d0a8e@gateway/web/freenode/ip.188.61.10.142] has joined #silverstripe
1119: [17:06:00] <Mantz> THX
1120: [17:06:00] <azureKnight> Did you run the asset sync?
1121: [17:06:00] <azureKnight> K
1122: [17:06:00] <Mantz> nope ss.3.0.3
1123: [17:06:00] <azureKnight> ss2.4?
1124: [17:07:00] <azureKnight> When did the error start?
1125: [17:07:00] <Mantz> jepp, ends up with the same error...
1126: [17:08:00] <azureKnight> Was it around the time you were building some sort of functionality?
1127: [17:10:00] <azureKnight> So, are you using a grid field?
1128: [17:10:00] <Mantz> I'm not completly sure, but more or less when I tried to add the lightbox effect
1129: [17:10:00] <azureKnight> Ok.
1130: [17:12:00] <Mantz> I don't really know what you mean since I'm quite new to ss... But the I add an image as an UploadField...
1131: [17:13:00] <azureKnight> Lol. It's ok, I'm relatively new as well.
1132: [17:13:00] <azureKnight> So, how did you write the UploadField? Did you try and send it to a specific folder?
1133: [17:14:00] <Mantz> $fields->addFieldToTab("Root.Images", new UploadField('Foto_Links'));
1134: [17:14:00] <FrozenFire> Mantz, Permissions on the files?
1135: [17:16:00] <Mantz> Requirements::javascript('themes/simple/javascript/jquery-1.9.0.min.js'); Requirements::javascript('themes/simple/javascript/jquery.fancybox.pack.js'); Requirements::javascript('themes/simple/javascript/myFancy.js'); Requirements::themedCSS('jquery.fancybox');
1136: [17:16:00] <Mantz> does that help?
1137: [17:16:00] * micmania1 has joined #silverstripe
1138: [17:16:00] <azureKnight> Yeah, but I don't really see anything wrong. You should look at what FrozenFire asked.
1139: [17:16:00] <Mantz> and the lightbox effect as follows:
1140: [17:20:00] <Mantz> the files don't have any special permissions on them
1141: [17:22:00] <Mantz> just to clarify: I already have problems adding a folder or even opening the uploads folder. It's not just when I'm uploading files
1142: [17:24:00] <FrozenFire> Do the files have permissions that permit the webserver user to write to the assets_dir directory?
1143: [17:27:00] <micmania1> Can anybody help with a question about Lazy loading?
1144: [17:28:00] <azureKnight> It's a gamble. :O
1145: [17:28:00] <FrozenFire> micmania1, Ask and find out
1146: [17:28:00] * Friksel quit (Ping timeout: 245 seconds)
1147: [17:29:00] <Mantz> @FrozenFire I don't really understand, which files?
1148: [17:30:00] <micmania1> Is it possible to disable lazy loading?
1149: [17:30:00] <micmania1> I'm trying to compare a db field on 2 versions of the same DataObject (WikiPage). My problem is that the default behaviour doesn't load the field I require by default. When I do call it on both objects, I get the same version.
1150: [17:32:00] <FrozenFire> Mantz, Your project files.
1151: [17:32:00] * Friksel has joined #silverstripe
1152: [17:33:00] <Mantz> @FrozenFire I do have admin rights in the cms
1153: [17:33:00] <FrozenFire> If the "assets" directory of your project is not writeable by your webserver user, then all sorts of things will fail.
1154: [17:33:00] <FrozenFire> The CMS is irrelevant
1155: [17:33:00] <FrozenFire> We're talking about filesystem permissions
1156: [17:36:00] <Mantz> I just added a folder and file without any problems and also deleted it again with out an problems (in the filesystem)
1157: [17:37:00] <Mantz> ps: i'm still just working on a local server
1158: [17:37:00] <FrozenFire> Your user is not your webserver user, unless it's specifically set up that way.
1159: [17:37:00] <Mantz> no
1160: [17:37:00] <FrozenFire> Okay. Now can your webserver do that?
1161: [17:38:00] <FrozenFire> Mmhmm
1162: [17:38:00] <FrozenFire> And www-data group.
1163: [17:38:00] <Mantz> it's mac
1164: [17:38:00] <FrozenFire> If it's Linux, then you probably have a www-data user
1165: [17:38:00] <FrozenFire> Still applies. ;)
1166: [17:39:00] <FrozenFire> I typically accomplish this by changing the owner of all of my project files to be the webserver user, and setting the group for those files to be a group that I and the webserver user share.
1167: [17:39:00] <FrozenFire> I don't know much about OSX, but I think it's POSIX-compliant, so it's likely a similar situation.
1168: [17:39:00] <FrozenFire> That user needs write permissions to your assets directory.
1169: [17:39:00] <FrozenFire> There's probably a user that runs the webserver
1170: [17:40:00] <FrozenFire> E.g. www-data:developers
1171: [17:40:00] * Mantz has left #silverstripe
1172: [17:40:00] <FrozenFire> And setting g+w on the project files.
1173: [17:40:00] <Mantz> ok. i'll try. I have to leave now, but might get back later. you'll hear from me :-)
1174: [17:40:00] * Kolin_ has joined #silverstripe
1175: [17:41:00] <travis-ci> [travis-ci] silverstripe/sapphire#1567 (post-2.4 - d0ba94b : Ingo Schommer): The build is still failing.
1176: [17:41:00] * travis-ci has left #silverstripe
1177: [17:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5319684
1178: [17:41:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/cbe27936300e...d0ba94bea5db
1179: [17:41:00] * travis-ci has joined #silverstripe
1180: [17:41:00] * ajmitch_ has joined #silverstripe
1181: [17:43:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
1182: [17:45:00] * Kolin quit (*.net *.split)
1183: [17:45:00] * ajmitch quit (*.net *.split)
1184: [17:47:00] * Friksel quit (Ping timeout: 245 seconds)
1185: [17:56:00] * Zauberfisch|idle has joined #silverstripe
1186: [17:58:00] <travis-ci> [travis-ci] silverstripe/sapphire#1569 (3.1 - 5af35a8 : miiihi): The build passed.
1187: [17:58:00] * travis-ci has joined #silverstripe
1188: [17:58:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/d83950bc2b17...5af35a89ce92
1189: [17:58:00] * travis-ci has left #silverstripe
1190: [17:58:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5319873
1191: [18:02:00] * travis-ci has left #silverstripe
1192: [18:02:00] * travis-ci has joined #silverstripe
1193: [18:02:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5af35a89ce92...634ba763538b
1194: [18:02:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5319884
1195: [18:02:00] <travis-ci> [travis-ci] silverstripe/sapphire#1570 (3.1 - 634ba76 : Ingo Schommer): The build passed.
1196: [18:05:00] * travis-ci has left #silverstripe
1197: [18:05:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/634ba763538b...709f0f5d19e5
1198: [18:05:00] <travis-ci> [travis-ci] silverstripe/sapphire#1571 (3.1 - 709f0f5 : Ingo Schommer): The build passed.
1199: [18:05:00] * travis-ci has joined #silverstripe
1200: [18:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5319952
1201: [18:11:00] * ARNHOE has joined #silverstripe
1202: [18:18:00] * catcher has joined #silverstripe
1203: [18:18:00] * gelignite has joined #silverstripe
1204: [18:18:00] <catcher> hey hey
1205: [18:23:00] * azureKnight quit (Quit: azureKnight)
1206: [18:24:00] <FrozenFire> Uploading a PDF through the insert media form on the HTMLEditorField doesn't work.
1207: [18:24:00] <FrozenFire> Like, majorly, work-losingly doesn't work.
1208: [18:24:00] <FrozenFire> Sends you to a form action blank page
1209: [18:24:00] <FrozenFire> Well that's... annoying.
1210: [18:25:00] * Nivery quit (Quit: Nivery)
1211: [18:25:00] <FrozenFire> You end up at admin/pages/edit/EditorToolbar/MediaForm
1212: [18:25:00] <FrozenFire> Having lost any edits you were making
1213: [18:30:00] <micmania1> What version of the framework/CMS are you using? There was a bug with this in 3.0
1214: [18:31:00] <FrozenFire> 3.1 latest
1215: [18:31:00] <FrozenFire> I think
1216: [18:32:00] <FrozenFire> Nope, yup, 3.1.x-dev
1217: [18:32:00] <FrozenFire> Hrmm, may've used 3.0 for this one
1218: [18:32:00] * FrozenFire checks
1219: [18:34:00] * azureKnight has joined #silverstripe
1220: [18:36:00] <FrozenFire> Hrmm, is there a way to set a specific value for a many_many_extraField on a ManyManyList-specific basis, for new objects?
1221: [18:36:00] <FrozenFire> I basically want to have an extra field on a ManyManyList which categorizes UploadField items based on the form it's uploaded using
1222: [18:37:00] <FrozenFire> Without having to define a bunch of relational systems like upload categories
1223: [18:42:00] <micmania1> There is requireDefaultFields. I don't think there's any built in behaviour but I suppose you could add defaults through that method.
1224: [18:50:00] * chillu quit (Quit: chillu)
1225: [18:55:00] * micmania1 quit (Ping timeout: 245 seconds)
1226: [19:02:00] * lx-berlin has joined #silverstripe
1227: [19:02:00] * lx-berlin quit (Remote host closed the connection)
1228: [19:13:00] * chillu has joined #silverstripe
1229: [19:15:00] * oddnoc has joined #silverstripe
1230: [19:16:00] * simon__w is now known as simon_w
1231: [19:22:00] * SightUnseen has joined #silverstripe
1232: [19:22:00] * SightUnseen has left #silverstripe
1233: [19:28:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/709f0f5d19e5...b8e5ebb9e3f5
1234: [19:28:00] * travis-ci has joined #silverstripe
1235: [19:28:00] <travis-ci> [travis-ci] silverstripe/sapphire#1572 (3.1 - b8e5ebb : Ingo Schommer): The build passed.
1236: [19:28:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5322073
1237: [19:28:00] * travis-ci has left #silverstripe
1238: [19:28:00] * DigNZ has joined #silverstripe
1239: [19:28:00] * DigNZ quit (Remote host closed the connection)
1240: [19:28:00] * DigNZ has joined #silverstripe
1241: [19:29:00] * lx-berlin has left #silverstripe
1242: [19:35:00] * Pyromanik has joined #silverstripe
1243: [19:38:00] * nickmolhoek has joined #silverstripe
1244: [19:38:00] * nickmolhoek has joined #silverstripe
1245: [19:38:00] * nickmolhoek quit (Remote host closed the connection)
1246: [19:39:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5322418
1247: [19:39:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1e3473db0dfd...a5e84c0a06d6
1248: [19:39:00] * travis-ci has left #silverstripe
1249: [19:39:00] * travis-ci has joined #silverstripe
1250: [19:39:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#259 (3.1 - a5e84c0 : Ingo Schommer): The build passed.
1251: [19:47:00] * ajmitch_ is now known as ajmitch
1252: [19:59:00] * SightUnseen has joined #silverstripe
1253: [20:00:00] * SightUnseen has left #silverstripe
1254: [20:05:00] * chillu quit (Quit: chillu)
1255: [20:10:00] * chillu has joined #silverstripe
1256: [20:13:00] * SightUnseen has joined #silverstripe
1257: [20:27:00] * Liquide quit ()
1258: [20:34:00] * SightUnseen quit (Quit: Leaving.)
1259: [20:36:00] * aaron has joined #silverstripe
1260: [20:36:00] * ajshort has joined #silverstripe
1261: [20:36:00] * aaron has left #silverstripe
1262: [20:37:00] * aaron1245 has joined #silverstripe
1263: [20:37:00] * SightUnseen has joined #silverstripe
1264: [20:44:00] <aaron1245> Is there a way to do timed publishing on silverstripe 3?
1265: [20:44:00] <aaron1245> So if I were to create a page and tell it to publish itself tomorrow at noon???.could it do that?
1266: [20:45:00] <Pyromanik> but not out of the box.
1267: [20:45:00] <Pyromanik> aaron1245, yep
1268: [20:45:00] <aaron1245> Any modules? Or is it all have to be custom written?
1269: [20:46:00] <aaron1245> I saw the CMS Workflow one, but it's old and a 2.x module
1270: [20:46:00] * normann has joined #silverstripe
1271: [20:49:00] <oddnoc> aaron1245: Try the advanced workflow module from SilverStripe's Australia office
1272: [20:51:00] <aaron1245> Oh, I didn't see that. Thanks for pointing it out.
1273: [20:53:00] * willr has joined #silverstripe
1274: [20:53:00] * SightUnseen quit (Quit: Leaving.)
1275: [21:09:00] * SightUnseen has joined #silverstripe
1276: [21:10:00] * SightUnseen has left #silverstripe
1277: [21:19:00] * UndefinedOffset quit (Quit: Leaving.)
1278: [21:23:00] <Pyromanik> how to make show up in the task list?
1279: [21:23:00] <Pyromanik> so
1280: [21:23:00] <Pyromanik> running tasks
1281: [21:24:00] * xini has joined #silverstripe
1282: [21:25:00] <Pyromanik> how to run daily tasks?
1283: [21:25:00] <Pyromanik> willr, I choose you!
1284: [21:26:00] <willr> Pyromanik cronjob to /dev/tasks/TaskName. make sure cron is under www user. done
1285: [21:26:00] <Pyromanik> willr, but
1286: [21:26:00] <willr> DailyTask, HourlyTask etc are removed.
1287: [21:26:00] <willr> Don't bother with them
1288: [21:26:00] <Pyromanik> hmm
1289: [21:26:00] <Pyromanik> is 2.4
1290: [21:26:00] <Pyromanik> and task does not show up under /dev/tasks
1291: [21:27:00] <Pyromanik> I wish to test it before cronning it
1292: [21:27:00] <Pyromanik> so I don't end up like a mate
1293: [21:27:00] <willr> Well extend build task and it'll appear under /dev/tasks
1294: [21:27:00] <Pyromanik> who oopsed his crontab and singlehandedly brought down a govt. server
1295: [21:27:00] * Kolin_ is now known as Kolin
1296: [21:27:00] <Pyromanik> ok, so not dailytask and stuff
1297: [21:28:00] <Pyromanik> right
1298: [21:28:00] <Pyromanik> thanks!
1299: [21:28:00] <willr> correct. BuildTask the way to go.
1300: [21:29:00] <Pyromanik> FFFFFFFFFFFFFF file to url mappings
1301: [21:29:00] * ajshort quit (Read error: Connection reset by peer)
1302: [21:37:00] * UndefinedOffset has joined #silverstripe
1303: [21:41:00] * UndefinedOffset quit (Client Quit)
1304: [21:47:00] * SightUnseen has joined #silverstripe
1305: [21:47:00] * terryapodaca has joined #silverstripe
1306: [21:49:00] * SightUnseen has left #silverstripe
1307: [21:50:00] <simon_w> willr, people seem to like that comment you made
1308: [21:51:00] <simon_w> yeah
1309: [21:51:00] <willr> Twitter?
1310: [21:52:00] * DesignerX has joined #silverstripe
1311: [21:53:00] <willr> The truth speaks to people.
1312: [21:54:00] * zfmf has left #silverstripe
1313: [21:57:00] <Pyromanik> what comment is this?
1314: [21:58:00] <Pyromanik> install recaptcha mdoule
1315: [21:58:00] <Pyromanik> install spam protection module
1316: [21:58:00] <Pyromanik> place recaptcha keys into config
1317: [21:58:00] <FrozenFire> SS3. CAPTCHA. Howto? I know there are a few modules available, but most seem half-baked.
1318: [21:58:00] <Pyromanik> because they kinda are
1319: [21:58:00] <FrozenFire> All I basically need is a simple CAPTCHA field. Nothing fancy
1320: [21:58:00] <catcher> I'm pretty happy with Mollom / spamprotector module
1321: [21:58:00] * ARNHOE quit (Remote host closed the connection)
1322: [21:58:00] <willr> recaptcha module.
1323: [21:58:00] <irogue> half-baked... like the dude at paknsave last night?
1324: [21:58:00] <irogue> :P
1325: [21:59:00] <FrozenFire> Nothing *against* spamprotection other than that it's another module, but I don't like having to install it.
1326: [21:59:00] <simon_w> FrozenFire, recapatcha needs it
1327: [21:59:00] <Pyromanik> done.
1328: [21:59:00] * scpi quit (Quit: be excellent to each other)
1329: [21:59:00] <simon_w> Pyromanik, https://twitter.com/simon_w/status/307305689263517696
1330: [21:59:00] <Pyromanik> willr, what comment is this simon_w speaks of?
1331: [21:59:00] <Pyromanik> oh, thanks simon_w
1332: [21:59:00] <FrozenFire> Blegh. Guess I'll go with recaptcha
1333: [21:59:00] <Pyromanik> oh that one
1334: [21:59:00] <Pyromanik> yeah
1335: [21:59:00] <Pyromanik> even I've read that one.
1336: [21:59:00] <Pyromanik> it mildly amused me :>
1337: [22:00:00] <FrozenFire> Yeah.
1338: [22:01:00] <simon_w> willr, yeah, it's food
1339: [22:01:00] <willr> simon_w you eat carrot cake? Decided that will be your flat warming present. Cake + Veges. 2 birds, 1 stone
1340: [22:02:00] <oddnoc> Hrm??? is $default_sort broken in 3? Having it adds a select for the field, but fails to join the table.
1341: [22:02:00] <simon_w> Free at that!
1342: [22:02:00] <willr> My cakes are not just food.
1343: [22:04:00] <simon_w> That sounds ominous
1344: [22:06:00] <oddnoc> I have a class with a Date field and a default_sort of 'Date DESC'. I have a class that extends this class, and displaying that class dies because of the reference to Date. The join to the parent class is just missing.
1345: [22:06:00] * SightUnseen has joined #silverstripe
1346: [22:07:00] <oddnoc> Works in 2.4, dies in 3.0.5 and 3.1
1347: [22:08:00] * SightUnseen has left #silverstripe
1348: [22:08:00] <Pyromanik> willr, you're making carrot space-cake?
1349: [22:08:00] <Pyromanik> oddnoc, I have a sneaking suspicion you might be right
1350: [22:09:00] * oddnoc sighs
1351: [22:09:00] <oddnoc> Yah. Time to work up the minimal case for the bug report.
1352: [22:16:00] * DesignerX quit (Ping timeout: 252 seconds)
1353: [22:18:00] * azureKnight quit (Ping timeout: 245 seconds)
1354: [22:20:00] <willr> and if you can create a simple test case for it then that'll be a help
1355: [22:20:00] <willr> http://open.silverstripe.org/ticket/8264
1356: [22:20:00] <willr> oddnoc you may wish to cc yourself on that.
1357: [22:21:00] <oddnoc> Sweet, thanks! That just saved me a bunch of time :)
1358: [22:21:00] * azureKnight has joined #silverstripe
1359: [22:25:00] <Colin[pi]> good morning
1360: [22:25:00] * Colin[pi] has joined #silverstripe
1361: [22:28:00] <willr> Howdey
1362: [22:33:00] * terryapodaca has left #silverstripe
1363: [22:33:00] <Pyromanik> hi
1364: [22:35:00] * SightUnseen has joined #silverstripe
1365: [22:35:00] <simon_w> It's this time of the day again! What do I want for lunch?
1366: [22:36:00] <simon_w> Also, 191/1. What's happened to the Black Caps?
1367: [22:36:00] <Colin[pi]> chimmichunga
1368: [22:37:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1369: [22:37:00] <xyphoid> killer robots from the future, i think
1370: [22:40:00] <Pyromanik> simon_w, is that good or bad?
1371: [22:40:00] <simon_w> Pyromanik, England was 167 all out
1372: [22:41:00] <simon_w> That's usually what we'd get
1373: [22:41:00] <spronk> the black caps
1374: [22:42:00] <Pyromanik> I don't
1375: [22:42:00] <Pyromanik> even
1376: [22:42:00] <Kolin> What a silly silly game
1377: [22:42:00] <simon_w> Cricket?
1378: [22:42:00] <spronk> have .... what's that thing
1379: [22:42:00] <spronk> manic depression
1380: [22:42:00] <spronk> right now they're riding the high
1381: [22:42:00] <spronk> ...though that new batsman looks handy
1382: [22:42:00] <Pyromanik> understand
1383: [22:43:00] <spronk> there's something... Gentlemanly, about cricket that I appreciate.
1384: [22:43:00] <spronk> ... you don't understand cricket?
1385: [22:43:00] <simon_w> Hmm, not sure if should kick Kolin or not :p
1386: [22:43:00] <Kolin> :(
1387: [22:45:00] <Colin[pi]> short matches can be interesting, the long ones are like watching paint dry
1388: [22:46:00] * aaron1245 has left #silverstripe
1389: [22:47:00] <Colin[pi]> you know it's getting boring when the commentators start talking about the moths in the stadium for 10 minutes
1390: [22:48:00] <xyphoid> i could never sit down and watch it alone
1391: [22:48:00] <xyphoid> cricket is a good game to have on in the background while you do something else
1392: [22:49:00] <Colin[pi]> yep it's an afternoon bbq with mates and beer type of game
1393: [22:50:00] <Colin[pi]> about the only sport I *might* sit and watch is tennis
1394: [22:51:00] <Colin[pi]> men's tennis is about "I will hit this ball as hard as I can and as fast as I can in the least shots, to show how big my dick is"
1395: [22:51:00] <Colin[pi]> as it's more interesting
1396: [22:51:00] <Colin[pi]> where as women's tennis they actually play the game for a bit
1397: [22:51:00] <Colin[pi]> women's tennis usually
1398: [22:55:00] * xini quit (Quit: Page closed)
1399: [23:00:00] <irogue> basketball last night was exciting
1400: [23:01:00] <simon_w> Women's tennis is all about how loudly they can grunt :p
1401: [23:01:00] <Colin[pi]> not all of them simon_w, just sharapova
1402: [23:01:00] <Colin[pi]> +l
1403: [23:01:00] <simon_w> Tests are things I have going in cricinfo
1404: [23:01:00] <Colin[pi]> i can't stand basketbal ;_;
1405: [23:02:00] * SightUnseen quit (Quit: Leaving.)
1406: [23:02:00] <Pyromanik> simon_w, so maybe I'll just ask this: Did we win?
1407: [23:02:00] <simon_w> Pyromanik, still going but we're doing better than the other team
1408: [23:02:00] <Colin[pi]> who I also can't stand
1409: [23:02:00] <Pyromanik> I don't get scores. someone say 191/1 and I have no idea if that's good or bad.
1410: [23:03:00] <Colin[pi]> anyone would be doing better than us :D
1411: [23:03:00] * SightUnseen has joined #silverstripe
1412: [23:04:00] <Pyromanik> simon_w, well that's a start I guess.
1413: [23:04:00] <Pyromanik> haha
1414: [23:04:00] <Pyromanik> never actually been IN NZ?
1415: [23:04:00] <Colin[pi]> btw simon_w I thought I was visiting your fine country next week, but I go direct from Sydney -> Santiago this time
1416: [23:04:00] <Colin[pi]> that would have been the 7th time in NZ, just in Auckland airport lol
1417: [23:05:00] * SightUnseen quit (Client Quit)
1418: [23:05:00] <simon_w> *customs
1419: [23:05:00] <Pyromanik> yeah, right so no.
1420: [23:05:00] <Pyromanik> we have mountains and shit.
1421: [23:05:00] <Colin[pi]> been there, just not outside the airport
1422: [23:05:00] <Colin[pi]> :D
1423: [23:05:00] <simon_w> And helpful customers staff!
1424: [23:06:00] <Colin[pi]> in that emphasis lol
1425: [23:06:00] <Colin[pi]> btw Auckland airport has the funniest late passenger announcements I've ever heard
1426: [23:06:00] <Colin[pi]> paging Mr Joe Smith... your plane is due for departure at gate blah, and EVERYONE... IS WAITING..... FOR YOU.
1427: [23:08:00] <Pyromanik> no point in beating around the bush
1428: [23:08:00] <Colin[pi]> has this layer of very dry sarcasm, i love it
1429: [23:09:00] <Colin[pi]> FrozenFire, just the way she says it, cracks me up
1430: [23:09:00] <Colin[pi]> und IVRYONE, us WAITING, FOR YOU (in NZ accent)
1431: [23:09:00] <Colin[pi]> it's like really digging the knife in
1432: [23:09:00] <FrozenFire> Not really sarcastic at all. :P
1433: [23:13:00] * Mantz has joined #silverstripe
1434: [23:13:00] <simon_w> FrozenFire, we're a sarcastic bunch. You might actually fit in :p
1435: [23:14:00] <FrozenFire> You think?
1436: [23:15:00] <Mantz> If installed the newest version of transtable and since then my file manager in teh cms doesn't work proberly anymore. Each time I want to change the dir it adds ...?locale=de_DE to my URL. When I remove this part everything works fine. Any ideas how to fix this?
1437: [23:15:00] <Mantz> @FrozeFire its no permission problem after all...
1438: [23:15:00] * SightUnseen has joined #silverstripe
1439: [23:16:00] <azureKnight> Well, look at that.
1440: [23:17:00] * SightUnseen quit (Client Quit)
1441: [23:18:00] <Pyromanik> <FrozenFire> You think? <-- I see what you did there.
1442: [23:19:00] <Pyromanik> azureKnight ?
1443: [23:20:00] <azureKnight> I was on earlier when Mantz was soliciting help for this problem. .
1444: [23:21:00] <azureKnight> FrozenFire: the master of dry wit.
1445: [23:21:00] <FrozenFire> Pyromanik, You don't say. I thought it was far too veiled for even your discerning senses.
1446: [23:23:00] <Mantz> Anyone?
1447: [23:25:00] <Mantz> thx, that was really helpful ;-)
1448: [23:25:00] <FrozenFire> Everyone
1449: [23:25:00] <azureKnight> He's good like that.
1450: [23:26:00] <Pyromanik> Mantz, have you set defaultloale?
1451: [23:27:00] <Mantz> jepp. set to Translatable::set_default_locale("de_DE");
1452: [23:27:00] <Mantz> should I discard this?
1453: [23:28:00] <FrozenFire> Most times.
1454: [23:28:00] <Pyromanik> hmm, how am I supposed to change a page type to the correct type if the parent has changed and the child has not yet and then when I hit save and publish it checks the OLD page type and errors before setting to the new page type that will be fine.
1455: [23:28:00] <Pyromanik> yes, tis true FrozenFire .
1456: [23:28:00] <FrozenFire> Translatable is a real bitch sometimes.
1457: [23:28:00] <FrozenFire> Scratch that.
1458: [23:29:00] <Mantz> ok. thx
1459: [23:31:00] <Mantz> I'm going crazy, now it adds ?locale=en_US Why???
1460: [23:31:00] <azureKnight> Default?
1461: [23:34:00] <FrozenFire> If you have Translatable enabled, it'll do that no matter what your locale is.
1462: [23:34:00] <FrozenFire> That's how it tracks which locale it's supposed to show.
1463: [23:35:00] <Mantz> ok. since my mac is set to US it will end up finding en_US... Can't I remove this by default?
1464: [23:46:00] * Mantz quit (Quit: Page closed)
1465: [23:49:00] * willr quit (Quit: willr)
1466: [23:50:00] <catcher> I need to remove a gridfield in just one context - i.e. People interface can edit the person's Categories. However, I want to remove the ability to admin Category -> Person -> Category.
1467: [23:51:00] <catcher> It seems like it should go in Category's getCMSFields, but I'm not seeing how to target the Category gridfield from within the Person gridfield.
1468: [23:52:00] * joelpittet has joined #silverstripe
1469: [23:54:00] <catcher> The other option is in Person's getCMSFields, but there, I don't see how to check my current context.
1470: [23:56:00] * spronk has left #silverstripe

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