#silverstripe IRC Log

IRC log for 31 May 2013

All timestamps are in UTC.

1: [00:08:36] * UncleCheese has joined #silverstripe
2: [00:10:09] * joelpittet quit (Remote host closed the connection)
3: [00:12:54] <Pyromanik> nimeso: it works.
4: [00:13:03] <Pyromanik> you need to be top level scope though, iirc.
5: [00:17:02] <spronk> hmm
6: [00:17:13] <Pyromanik> spronk: can this day be over already?
7: [00:17:20] <spronk> i know right
8: [00:17:23] <Pyromanik> IKR
9: [00:17:30] <Pyromanik> gawd
10: [00:17:43] <Pyromanik> need to l2git, can't
11: [00:17:44] <Pyromanik> jsut
12: [00:17:51] <Pyromanik> don't what even no maybe urgh
13: [00:18:41] <ss23> and push
14: [00:18:42] <ss23> and pull
15: [00:18:44] <ss23> and commit~
16: [00:18:58] * ss23 pushes and pulls till he commits all over Pyromanik
17: [00:19:06] <Pyromanik> and submodule but don't submodule and conflict and ALL the .DS_Store
18: [00:19:14] <Pyromanik> oic
19: [00:19:16] <Pyromanik> urgh
20: [00:19:17] <Pyromanik> nothx
21: [00:19:23] <Pyromanik> try irogue
22: [00:19:27] <ss23> lol
23: [00:19:57] <Pyromanik> willr_: you did a couch?
24: [00:20:17] <Pyromanik> ss23: I have commitment issues
25: [00:20:27] * Pyromanik continues the git puns
26: [00:22:45] <ss23> XD
27: [00:23:45] <Pyromanik> all the RSI / OOS :<
28: [00:24:07] <ss23> OOS
29: [00:24:09] <ss23> OOOOOS
30: [00:36:34] * UncleCheese quit (Ping timeout: 248 seconds)
31: [01:00:47] * zippy__ quit (Quit: zippy__)
32: [01:09:26] <Pyromanik> ss23: OOOOOOOOOOOOSHH
33: [01:10:11] <Pyromanik> workmate just brought out an old shiner I haven't heard in years: "ow, that's way patu as"
34: [01:10:23] <Pyromanik> laughs happened.
35: [01:10:36] <ss23> patu?
36: [01:10:39] <ss23> I think I am too young for this
37: [01:11:10] <Pyromanik> well, a patu is a weapon
38: [01:11:29] <Pyromanik> but patoo like put put meaning stink meaning not cool
39: [01:11:40] <Pyromanik> like
40: [01:11:47] <Pyromanik> the car was too patoo to make it up the hill
41: [01:12:44] <Pyromanik> according urban dictionary patu is the Maori word for dirty.
42: [01:13:02] <Pyromanik> "It now means stink or stupid"
43: [01:13:12] <spronk> loool
44: [01:13:29] <Pyromanik> which is interesting because I always thought patu was the Maori word for http://en.wikipedia.org/wiki/Patu
45: [01:13:36] * Peavers has joined #silverstripe
46: [01:13:41] <Peavers> Afternoon folks,
47: [01:13:52] <Pyromanik> "The word patu in the Māori language means to strike, hit, beat, or subdue."
48: [01:14:03] <Pyromanik> so (unsurprisingly) urban dictionary is wrong.
49: [01:14:13] <Pyromanik> but surprisingly does have patu in the way I meant it.
50: [01:15:00] <Pyromanik> spronk: yeh, ikr
51: [01:15:01] <Pyromanik> lool
52: [01:15:11] <Pyromanik> g'afternoon Peavers
53: [01:18:01] * priithansen quit (Quit: priithansen)
54: [01:26:17] * alexis has joined #silverstripe
55: [01:26:24] <Peavers> Anyone know a thing or two about PHPUnit? I'm trying to get my head around it but having a few basic issues with getting up and running
56: [01:26:41] * alexis is now known as Guest37910
57: [01:27:08] <Guest37910> Just installed it recently, what issues you having?
58: [01:27:14] <Pyromanik> Peavers: pear blah blah installificate somethign./PHPUnit
59: [01:27:23] <Pyromanik> I forget the exact syntax
60: [01:27:27] <Pyromanik> but after that it's all good.
61: [01:27:37] <Peavers> I've got it installed and sitting on a test server, but I've uploaded a test class, and when I run the test class doesn't give any output...
62: [01:27:51] <Pyromanik> it's not supposed to
63: [01:27:57] <Peavers> shouldn't it give a pass/fail?
64: [01:27:59] <Pyromanik> you just exert tests
65: [01:28:08] <Pyromanik> and it either errors or it doesn't
66: [01:28:18] <Pyromanik> I guess you could try/catch to make it do output
67: [01:28:37] <Peavers> if I use assertTrue and make it fail, isn't it supposed to say it failed the test?
68: [01:28:46] <Pyromanik> http://doc.silverstripe.org/framework/en/topics/testing/
69: [01:28:47] <simon_w> Peavers, how are you running the test?
70: [01:29:02] <Peavers> just running the atest.php
71: [01:29:11] <Peavers> with "php atest.php"
72: [01:29:13] <Guest37910> make a phpunit :) test testphpunit() { assertTrue(false); }
73: [01:29:17] <Pyromanik> phpunit atest.php
74: [01:29:32] <Peavers> ah yu
75: [01:29:34] <Peavers> there we go lol
76: [01:29:37] <Peavers> chur chur
77: [01:29:43] <Pyromanik> if in doubt, docs! :P
78: [01:30:10] * pex quit (Quit: pex)
79: [01:30:29] <simon_w> But if you're testing SilverStripe stuff, you really should be using SapphieTest subclasses and going through SilverStripe's test boot loader
80: [01:30:57] <Peavers> Yeah thats the plan, but small steps
81: [01:31:42] <irogue> one of our customers has their caller ID come up as "Important"
82: [01:31:50] <irogue> gotta say, it doesn't make us answer the phone any quicker
83: [01:32:19] <ss23> lol
84: [01:32:21] <Peavers> but its important?
85: [01:32:22] * EasyCo has joined #silverstripe
86: [01:33:03] <EasyCo> Hey guys, where would I use JSONDataFormatter in a page type so that it spits out json instead of a rendered page?
87: [01:33:24] <Pyromanik> good question!
88: [01:33:53] <EasyCo> Haha, thanks.
89: [01:33:58] <irogue> Peavers: never so far, though they always seem to think it is
90: [01:34:01] <Pyromanik> There is a river in all of us.
91: [01:34:11] <Pyromanik> THERE IS A RIVER IN ALL OF US.
92: [01:34:14] <irogue> they're one of those customers who emails something through and calls 5min later if they haven't got a reply yet
93: [01:34:31] <Pyromanik> irogue: hah
94: [01:34:38] <Pyromanik> turkeys
95: [01:34:58] <Pyromanik> a whole lot of gobbl'n, not much actual doing of anythign.
96: [01:35:38] <irogue> ^ that pretty much sums up Moustache guy
97: [01:37:16] <spronk> COMEMY LITTLE VENUS
98: [01:40:32] * willr_ quit (Quit: willr_)
99: [01:41:19] * Pyromanik highfives spronk
100: [01:41:33] <spronk> fuck. yes.
101: [01:42:42] * EasyCo quit (Ping timeout: 248 seconds)
102: [01:44:38] * Pyromanik saw @ bedford before all this eq shenz
103: [01:44:46] <Pyromanik> so good
104: [01:46:10] <spronk> nice
105: [01:46:17] <spronk> i liked them a lot more before their recent stuff
106: [01:46:43] <Pyromanik> mm
107: [01:46:48] <Pyromanik> first album superb
108: [01:47:12] <Pyromanik> You can tell because Venus still their most coveted concert song.
109: [01:47:41] <Pyromanik> though I do like the more recent stuff too
110: [01:47:54] <Pyromanik> it's the softer albums in the middle that are good but don't quite do it for me.
111: [01:49:47] * EasyCo has joined #silverstripe
112: [01:52:29] * zippy__ has joined #silverstripe
113: [01:52:30] <spronk> mmlol
114: [01:54:48] * EasyCo quit (Ping timeout: 276 seconds)
115: [01:57:56] * EasyCo has joined #silverstripe
116: [02:01:35] <irogue> Pyromanik: TIL the brewer at that bar sminnee took us to looks like a Tokoroa version of you
117: [02:02:04] <irogue> http://www.forkandbrewer.co.nz/brew/brewpage#3
118: [02:02:12] * EasyCo quit (Ping timeout: 252 seconds)
119: [02:09:57] * EasyCo has joined #silverstripe
120: [02:14:10] * EasyCo quit (Ping timeout: 248 seconds)
121: [02:21:23] * EasyCo has joined #silverstripe
122: [02:21:30] * EasyCo quit (Client Quit)
123: [02:28:24] * robert_ quit (Ping timeout: 264 seconds)
124: [02:31:24] * robert_ has joined #silverstripe
125: [02:31:24] * robert_ quit (Changing host)
126: [02:31:24] * robert_ has joined #silverstripe
127: [02:32:58] * gelignite quit (Quit: http://bit.ly/nkczDT)
128: [02:34:03] * tankr has joined #silverstripe
129: [02:34:07] * simon_w quit (Quit: This computer has gone to sleep)
130: [02:38:35] * robert_ quit (Read error: Connection reset by peer)
131: [02:54:33] * robert_ has joined #silverstripe
132: [02:54:33] * robert_ quit (Changing host)
133: [02:54:33] * robert_ has joined #silverstripe
134: [03:01:43] * maknz quit (Read error: Connection reset by peer)
135: [03:02:45] * Leo_ has joined #silverstripe
136: [03:10:32] * cloph_away has joined #silverstripe
137: [03:11:09] * simon_w has joined #silverstripe
138: [03:11:11] * cloph_away1 quit (Ping timeout: 264 seconds)
139: [03:12:45] * Bollig|DesignCty has joined #silverstripe
140: [03:23:20] <simon_w> Hmm, start my holiday now or tomorrow?
141: [03:25:23] <ss23> NOW
142: [03:25:24] <ss23> :D
143: [03:26:10] <simon_w> Okay!
144: [03:26:12] * simon_w quit (Quit: Leaving)
145: [03:26:19] <ss23> ;_;
146: [03:26:21] <ss23> I take it back
147: [03:32:57] * ugly_duck quit (Ping timeout: 276 seconds)
148: [03:33:25] * Leo_ quit (Quit: Page closed)
149: [03:34:43] * Luke88 quit (Quit: Leaving)
150: [03:38:24] <unsignedint> General javascript question - does anyone know how to make sure a browser has actually shown an element before proceeding? I have been porting a spreadsheet to a webapp and all the calculations are done in javascript. Theres a shit-ton and it locks the browser for 4-5 seconds. I have a 'calculating' message in a div with a class of 'hide' and I remove this class right before doing the computations and add it back when the com
151: [03:38:24] <unsignedint> putations are done. Unfortunately, it appears as though the browser doesnt redraw itself until after the calculations are done so the calculating message never displays
152: [03:46:37] * zippy__ quit (Quit: zippy__)
153: [03:50:19] * ugly_duck has joined #silverstripe
154: [03:50:20] * ugly_duck quit (Changing host)
155: [03:50:20] * ugly_duck has joined #silverstripe
156: [03:56:02] <FrozenFire> unsignedint, Run the calculations in a web worker
157: [03:56:19] <unsignedint> thought someone would say that
158: [03:56:29] <unsignedint> web workers only work in IE10 right? not the other IEs
159: [03:56:39] <unsignedint> I guess I could fall back to slooow if they arent available though
160: [03:56:41] <FrozenFire> http://caniuse.com/#feat=webworkers
161: [03:58:55] <FrozenFire> http://html5-shims.googlecode.com/svn/trunk/demo/workers.html
162: [03:58:59] <FrozenFire> No idea if that works
163: [03:59:04] <FrozenFire> But you might be able to shim it
164: [03:59:46] <FrozenFire> Generally, though, I'd say that if you *need* a complex feature, just say "New browsers only"
165: [04:09:28] * irogue ciders
166: [04:19:22] * willr_ has joined #silverstripe
167: [04:19:22] * willr_ quit (Changing host)
168: [04:19:22] * willr_ has joined #silverstripe
169: [04:21:44] <Pyromanik> rofl ss23
170: [04:22:35] <willr_> no simon_w? What are we going to do!
171: [04:22:41] <ss23> ^^^^
172: [04:22:42] <ss23> :<
173: [04:29:13] * spronk has left #silverstripe
174: [04:29:34] * spronk has joined #silverstripe
175: [04:32:55] * tankr quit (Quit: Leaving.)
176: [04:33:05] <Pyromanik> have good weekends!
177: [04:33:06] * Pyromanik quit (Quit: leaving)
178: [04:37:04] <spronk> jaja
179: [04:41:59] * Shrike_Finland quit (Quit: Leaving.)
180: [04:42:21] * travis-ci has joined #silverstripe
181: [04:42:22] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#192 (3.1 - 9511d72 : Sean Harvey): The build passed.
182: [04:42:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/87694b7f7245...9511d72aa90d
183: [04:42:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7653833
184: [04:42:22] * travis-ci has left #silverstripe
185: [04:52:40] * DigNZ quit (Quit: DigNZ)
186: [05:03:06] * nickmolhoek quit (Quit: nickmolhoek)
187: [05:09:38] * Peavers quit (Ping timeout: 248 seconds)
188: [05:09:59] * ec8or_ has joined #silverstripe
189: [05:11:24] * ec8or quit (Ping timeout: 252 seconds)
190: [05:41:53] * DigNZ has joined #silverstripe
191: [05:43:54] * DigNZ quit (Client Quit)
192: [05:44:20] * EasyCo has joined #silverstripe
193: [05:44:23] * DigNZ has joined #silverstripe
194: [05:44:44] <EasyCo> Ho do you apply an action from the root url?
195: [05:44:54] <EasyCo> For example: mysite.com/Action
196: [05:45:33] <EasyCo> I can do it from a url segment like mysite.com/home/Action but not from the root
197: [05:49:34] * DigNZ quit (Quit: DigNZ)
198: [05:49:45] * ^pH has joined #silverstripe
199: [05:49:52] <willr_> EasyCo you can't. A bug in 3.1 has made it even harder too https://github.com/silverstripe/silverstripe-framework/pull/1816
200: [05:50:35] * EasyCo quit (Ping timeout: 240 seconds)
201: [05:52:39] * ^pH- quit (Ping timeout: 252 seconds)
202: [06:04:25] * nimeso quit (Ping timeout: 250 seconds)
203: [06:16:00] * Shrike_Finland has joined #silverstripe
204: [06:19:37] * zippy__ has joined #silverstripe
205: [06:36:14] * zippy__ quit (Quit: zippy__)
206: [06:36:54] * zfmf1 has joined #silverstripe
207: [06:51:41] * willr_ quit (Quit: willr_)
208: [07:01:13] * willmorgan has joined #silverstripe
209: [07:03:13] * MrJeremy has left #silverstripe
210: [07:04:12] * aragonne has joined #silverstripe
211: [07:10:28] <aragonne> Hi, does anyone know why Versioned::get_by_stage() doesn't return the correct number of records? For example:
212: [07:10:58] <aragonne> I want to get all the records in the Page_Live table via: $livePages = Versioned::get_by_stage('Page','Live');
213: [07:11:27] <aragonne> $livePages->Count() returns 369 records
214: [07:11:55] <aragonne> but if I query the Page table directly via:
215: [07:12:09] <aragonne> select count(*) from Page_Live;
216: [07:13:34] <aragonne> I get 396 records
217: [07:15:21] * EasyCo has joined #silverstripe
218: [07:19:49] * EasyCo quit (Ping timeout: 252 seconds)
219: [07:27:36] * Guest37910 quit (Ping timeout: 276 seconds)
220: [07:29:32] * ooystein_ has joined #silverstripe
221: [07:32:54] * Hippiee quit (Read error: Connection reset by peer)
222: [07:33:54] * g4b0 has joined #silverstripe
223: [07:35:15] * pippy quit (*.net *.split)
224: [07:35:15] * ooystein quit (*.net *.split)
225: [07:50:16] * gordon__ has joined #silverstripe
226: [07:54:13] * elgrodo quit (Ping timeout: 264 seconds)
227: [07:56:04] * kinglozzer has joined #silverstripe
228: [08:21:03] * pippy has joined #silverstripe
229: [08:28:11] * chillu has joined #silverstripe
230: [08:34:41] * ivoba has joined #silverstripe
231: [08:52:37] * pex has joined #silverstripe
232: [08:58:58] * PigeonFriend has joined #silverstripe
233: [09:08:35] * Nightjar has joined #silverstripe
234: [09:13:24] * MrJeremy has joined #silverstripe
235: [09:17:33] <kinglozzer> Hmm, if I have a $summary_fields = array('FormattedPrice' => 'Price'); where 'FormattedPrice' is a method name, the GridField sortable header breaks
236: [09:26:24] <Nightjar> to do with searching?
237: [09:32:18] * priithansen has joined #silverstripe
238: [09:35:06] <Nightjar> 2.4 would break like that, if you defined summary but not redefined searchable
239: [09:35:11] <Nightjar> in model admin
240: [09:37:33] * anujit has joined #silverstripe
241: [09:39:48] <anujit> hi
242: [09:39:58] <anujit> i am very new in silverstripe
243: [09:40:06] <anujit> is there anybody to help me?
244: [09:40:41] <Nightjar> anujit: ask your questions, not if you can ask a question :)
245: [09:40:58] <Nightjar> we can't tell until you do.
246: [09:42:10] <kinglozzer> Nightjar: I'm on 3.1.x-dev, searchable_fields are defined :/
247: [09:42:10] <anujit> I have an image
248: [09:42:25] <anujit> I want to do onclick to enlarge the image
249: [09:42:39] <anujit> <div id="AdvertisementsPhoto"> <a><img onclick="chgBigImg($Photo); return false;" src=$Photo.SetWidth(150) alt="" id="Big-img"/></a> </div>
250: [09:42:40] <Nightjar> kinglozzer: did you put the definition backwards?
251: [09:43:14] <Nightjar> anujit: $Photo.URL
252: [09:43:47] <anujit> Ok let me try
253: [09:46:56] <anujit> not comming
254: [09:47:17] <kinglozzer> Nightjar: I've tried both ways, I never know which is correct :P
255: [09:47:37] <Nightjar> 'Property' => 'Title'
256: [09:47:42] <kinglozzer> Yep
257: [09:48:04] <Nightjar> anujit: <div id="AdvertisementsPhoto"> <a><img onclick="chgBigImg($Photo.URL); return false;" src=$Photo.SetWidth(150).URL alt="" id="Big-img"/></a> </div>
258: [09:48:30] <Nightjar> anujit: $Photo gives you a complete image tag.
259: [09:50:22] <Nightjar> but you are making your own, you only need the URL of the photo.
260: [09:50:54] * gelignite has joined #silverstripe
261: [09:58:11] <Nightjar> kinglozzer: what is your error?
262: [09:58:19] <kinglozzer> No error, it just doesn't sort
263: [09:58:30] <Nightjar> oh, sort
264: [09:58:41] <Nightjar> yeah that's because it's not a DB field.
265: [09:58:47] <kinglozzer> In my example above with FormattedPrice, GridFieldSortableHeader thinks it's trying to sort on the column 'FormattedPrice', it's adding ->sort('FormattedPrice')
266: [09:58:50] <kinglozzer> Exactly
267: [09:59:00] <Nightjar> that's not new.
268: [10:03:41] * pippy_ has joined #silverstripe
269: [10:04:38] <anujit> Still no luck
270: [10:05:12] <Nightjar> anujit: you either don't have an image defined in the CMS, or your javascript is wrong.
271: [10:05:23] * pippy quit (Ping timeout: 264 seconds)
272: [10:05:34] <Nightjar> try putting <p>$Photo.URL</p>
273: [10:05:39] <Nightjar> see if anything comes out
274: [10:05:54] <Nightjar> <p>Photo: $Photo.URL</p>
275: [10:09:18] <anujit> Javascript:
276: [10:09:20] * Hippiee has joined #silverstripe
277: [10:09:24] <anujit> $(function chgBigImg(img){ alert("I am here"); var bigImg = document.getElementById( "Big-img" ); var src = img.src; bigImg.src = src; } )
278: [10:09:48] <anujit> and do you mean I have to set an image title?
279: [10:14:56] <Nightjar> no
280: [10:15:36] <Nightjar> get rid of $, it's not a framework function.
281: [10:16:14] <Nightjar> and don't set the src to img.src, the var img is the new src attribute value, not an image object.
282: [10:16:16] <anujit> ok
283: [10:16:41] <Nightjar> function chgBigImg(img){ this.src = img; }
284: [10:19:01] <Nightjar> hmm, that's not quite right I think, but hopefully you get the idea.
285: [10:19:46] <anujit> yup
286: [10:23:42] <anujit> Thanx its worling now
287: [10:29:08] <kinglozzer> How on earth do people cope with svn over git.. it's horrible
288: [10:30:46] <willmorgan> i did it for 3 years :-P
289: [10:30:52] <willmorgan> before SVN, i had to use PVCS
290: [10:31:05] <MrJeremy> what about "gitsvn"
291: [10:31:15] <willmorgan> in a really old style company... that used coldfusion. i was a UI/JS dev there
292: [10:31:31] <willmorgan> if you think SVN or CVS is bad, PVCS is a new kind of hell
293: [10:32:15] <willmorgan> welcome to no auto merging, overzealous developers locking files for check in for days on end, and the resulting manual merging
294: [10:32:20] <willmorgan> and then the regression errors when merging went wrong
295: [10:32:45] <kinglozzer> Haha wow
296: [10:32:50] <willmorgan> seasoned devs who had worked with this for 5 years were great at merging, but for little old me, i ruined it all for them
297: [10:33:04] <kinglozzer> I'm struggling through it at the moment, requirement of the client
298: [10:33:21] <willmorgan> looking back I'm pretty sure that they hated me because of my poor VCS workflow
299: [10:33:56] * alexis has joined #silverstripe
300: [10:34:00] <willmorgan> what are you stuck with?
301: [10:34:21] * alexis is now known as Guest82207
302: [10:34:26] <Nightjar> willmorgan: so basically no version control
303: [10:35:02] <Nightjar> svn is fine.
304: [10:35:07] <willmorgan> Nightjar: correct - PVCS is more of a system of checking in blobs to filenames and a version history being recorded against that filename.
305: [10:35:28] <willmorgan> there is no "control"
306: [10:35:40] <Nightjar> it's just no 'distributed' part to svn
307: [10:36:03] <Nightjar> which is actually fine for about 90% of projects.
308: [10:37:28] <xyphoid_> yeah SVN works - it has its issues but you can also do things that are hard in git
309: [10:37:32] <xyphoid_> file externals
310: [10:37:48] <Nightjar> mmm
311: [10:38:04] <Nightjar> ther are submodules in git, but it's just not quite the same.
312: [10:38:22] <Nightjar> I've become used to git now though
313: [10:38:33] <Nightjar> I like the idea of a local repository
314: [10:38:43] <Nightjar> so I can rollback local files
315: [10:38:54] <Nightjar> independently of a master repo
316: [10:39:14] <Nightjar> tl;dr, subversion is fine, but distributed is better.
317: [10:40:21] <kinglozzer> Oh screw it, I'm gonna use a GUI. SVN I've found far harder to grasp (having not used it before) than I did git
318: [10:40:28] <xyphoid_> we would probably have switched to git for work but we're using file externals heavily due to magento's extension structure
319: [10:40:43] <xyphoid_> git for puppet stuff though
320: [10:43:03] * anujit quit (Ping timeout: 250 seconds)
321: [10:45:51] <kinglozzer> SVN people: I'm checking out (slowly, no gzipping HURR) a repo, need to overwrite a few folders and their contents and commit it. How?! Tried on CLI, got a tonne of errors, I'm now trying a GUI - any tips?
322: [10:47:31] <kinglozzer> Do I need to delete the folders, (svn delete or whatever) then commit, then add & commit? Or can I do it in one go?
323: [10:48:46] <xyphoid_> what kind of errors?
324: [10:48:50] * pex quit (Ping timeout: 252 seconds)
325: [10:50:50] <Nightjar> kinglozzer: it's not harder to grasp, it's the opposite.
326: [10:50:51] <Nightjar> easier
327: [10:51:00] <Nightjar> just forget everything except pushing and pulling
328: [10:51:10] <Nightjar> and call them committing and checking out instead.
329: [10:51:32] <kinglozzer> xyphoid_: First some about 'working copy admin area is missing' - apparently because you can't just delete a folder, you need to svn delete it first, then 405 method not allowed when re-adding the folders and committing
330: [10:51:57] <willmorgan> kinglozzer: git pull = svn up / git status = svn st / git push = svn ci
331: [10:52:09] <Nightjar> hmm, maybe it sounds like subversion has changed a shitload since i last used it
332: [10:52:15] <willmorgan> also kinglozzer, there is a .svn folder in every working copy subdirectory instead of a single .git folder, so yes, you need to svn del
333: [10:52:17] <xyphoid_> sounds like you might not have perms to write back to the repo you're pulling from
334: [10:52:36] <kinglozzer> xyphoid_: I do, because I managed to commit some new folders
335: [10:52:41] <kinglozzer> I just can't replace existing ones
336: [10:52:59] <Nightjar> willmorgan: svn has unified base folders now iirc.
337: [10:53:05] <Nightjar> pretty sure I read that somewhere
338: [10:53:09] <willmorgan> kinglozzer: to replace folders (i.e. to change ALL their contents and delete their previous history) then:
339: [10:53:15] <willmorgan> svn rm folder/
340: [10:53:21] <willmorgan> svn ci -m "removing folder"
341: [10:53:28] <willmorgan> *make new folder with other stuff*
342: [10:53:32] <willmorgan> svn add folder
343: [10:53:36] <kinglozzer> I did svn delete, then svn commit. Then svn add the new ones, then svn commit again, but it never actually removed the folder from the repo
344: [10:53:40] <willmorgan> svn ci -m "replacing old folder"
345: [10:53:43] <willmorgan> oh dear...
346: [10:53:54] <kinglozzer> svn delete == svn rm ?
347: [10:54:00] <willmorgan> i believe so
348: [10:54:01] * zfmf1 has left #silverstripe
349: [10:54:04] <willmorgan> are you on windows?
350: [10:54:08] <kinglozzer> Nope, OSX
351: [10:54:11] <willmorgan> ha
352: [10:54:20] <willmorgan> sorry, i can't help you, you're screwed
353: [10:54:24] <kinglozzer> So svn delete foldername, svn commit -m "removing" should've removed the folder? :P
354: [10:54:26] <willmorgan> don't use cornerstone
355: [10:54:43] <willmorgan> i had to help another dev using cornerstone and i'm pretty sure i reduced her to tears
356: [10:54:58] <kinglozzer> Haha
357: [10:55:12] <willmorgan> she was getting so mad - couldn't do shit with it using externals
358: [10:55:23] <willmorgan> ah well
359: [10:55:28] <willmorgan> yeah
360: [10:55:39] <willmorgan> in fact kinglozzer what happens when you run svn st?
361: [10:55:50] <willmorgan> svn st . >> st.txt
362: [10:55:52] <kinglozzer> I don't know now because I deleted my working copy to start again :P
363: [10:55:55] <willmorgan> and then paste that shit on the interweb
364: [10:56:05] * feejin has joined #silverstripe
365: [10:56:12] <willmorgan> if you read the flags then you can be 90% sure of what went wrong
366: [10:56:18] <willmorgan> just hope it's not a C or a ~
367: [10:56:23] <willmorgan> *fingers crossed*
368: [10:56:31] <willmorgan> oh...
369: [10:56:32] <willmorgan> ha.
370: [10:56:34] <kinglozzer> willmorgan: I had lots of '~' earlier
371: [10:56:37] <willmorgan> that works!
372: [10:56:42] <willmorgan> and oh dear
373: [10:56:43] <kinglozzer> So I guess I'm screwed
374: [10:56:43] <kinglozzer> :P
375: [10:56:50] <willmorgan> welcome to bat country!
376: [10:57:12] <kinglozzer> The person here who normally does SVN stuff is on a stag do
377: [10:57:22] <willmorgan> sounds like a typical SVN user
378: [10:57:45] <kinglozzer> Drinking to numb the pain of SVN?
379: [10:57:49] <willmorgan> :)
380: [11:02:23] <willmorgan> git is not much better to me
381: [11:02:27] <willmorgan> in a way, i'm it's trophy wife
382: [11:02:37] <willmorgan> and it's a premier league footballer whose interests include doing a really good job and beating me
383: [11:03:10] <Nightjar> I don't even what just happen
384: [11:03:57] <kinglozzer> willmorgan: It's Ryan Giggs and you're his wife that he cheated on
385: [11:03:57] <xyphoid_> hah i spent today fixing svn merge conflicts
386: [11:04:17] <willmorgan> it's John Terry actually, because git fucks everyone at some time or another
387: [11:04:20] <xyphoid_> turns out source control doesn't help if devs don't communicate with each other SURPRISE
388: [11:04:25] <kinglozzer> ^^
389: [11:04:43] <willmorgan> svn is Silvio Berlusconi
390: [11:04:48] <willmorgan> corrupt, a bit slow, and fucks noobs
391: [11:05:34] <kinglozzer> Good analogy
392: [11:05:47] <willmorgan> thanks, and on that libelous note I'm going to get back to writing API docs...
393: [11:07:31] <kinglozzer> willmorgan: An interesting API? If such a thing exists
394: [11:07:59] <willmorgan> it's based on RestfulServer
395: [11:08:17] <willmorgan> it's not as cool as the one I wrote for www.saysaygirls.com
396: [11:09:14] <kinglozzer> Looks... colourful :)
397: [11:09:37] <kinglozzer> *bookmarks*
398: [11:09:42] <willmorgan> pervert!
399: [11:09:46] <willmorgan> it's for little girls!
400: [11:09:57] <kinglozzer> Hahaha
401: [11:10:05] <willmorgan> that one's not running on silverstripe, it's entirely custom built from the ground up
402: [11:10:22] <kinglozzer> Awesome
403: [11:10:35] <willmorgan> it's a game API too, so there's a lot of challenging stuff in there
404: [11:10:42] <willmorgan> really fun project
405: [11:11:25] <JohnnyJimJams> "and it's a premier league footballer whose interests include doing a really good job and beating me"
406: [11:11:27] <JohnnyJimJams> :D
407: [11:11:39] * Nightjar has left #silverstripe
408: [11:13:23] * kinglozzer still waiting for my SVN commit to finish
409: [11:37:52] * MattyBalaam has joined #silverstripe
410: [11:53:40] * Guest82207 quit (Read error: Connection reset by peer)
411: [12:07:40] * MrJeremy quit (Quit: MrJeremy)
412: [12:10:45] * UndefinedOffset has joined #silverstripe
413: [12:13:00] * pex has joined #silverstripe
414: [12:16:15] * Shrike_Finland1 has joined #silverstripe
415: [12:16:15] * Shrike_Finland quit (Read error: Connection reset by peer)
416: [12:17:18] * MattyBalaam quit (Quit: Page closed)
417: [12:17:26] * zfmf1 has joined #silverstripe
418: [12:52:07] <PigeonFriend> chillu: are you about, I'm getting an issue on a 3.1 install where Deprecation is throwing a fatal error because of this line https://github.com/silverstripe/silverstripe-framework/blob/3.1/dev/Deprecation.php#L92 ($manifest is a non-object)
419: [12:52:24] <PigeonFriend> Is that a known bug, or can you think of why that would have started happening?
420: [12:59:55] <g4b0> chillu: what about https://github.com/silverstripe/silverstripe-cms/pull/759 and https://github.com/silverstripe/silverstripe-framework/pull/2039 ?
421: [13:15:38] * Shrike_Finland1 quit (Quit: Leaving.)
422: [13:16:42] * Shrike_Finland has joined #silverstripe
423: [13:16:58] * Shrike_Finland quit (Client Quit)
424: [13:22:21] * gelignite quit (Quit: http://bit.ly/nkczDT)
425: [13:37:07] <PigeonFriend> chillu: meh, patched it: https://github.com/silverstripe/silverstripe-framework/pull/2041
426: [13:43:34] * gordon__ quit (Ping timeout: 256 seconds)
427: [13:47:42] * priithansen quit (Quit: priithansen)
428: [14:01:09] * ivoba quit (Quit: Leaving)
429: [14:01:42] * pex quit (Ping timeout: 256 seconds)
430: [14:29:01] * mrzero quit (Ping timeout: 264 seconds)
431: [14:34:16] * olance has joined #silverstripe
432: [14:38:21] * olance quit (Ping timeout: 250 seconds)
433: [14:42:48] * olance has joined #silverstripe
434: [14:42:56] <olance> hi there!
435: [14:43:55] * Nivery has joined #silverstripe
436: [14:44:25] <olance> I'm new to Silverstripe and integrating a Javascript app into a website that uses it... I'd need some help about DataObject relations... anybody around? ^^
437: [14:44:51] * catcher has joined #silverstripe
438: [14:47:54] <feejin> Hello. I'm around but I probably don't know the answer.
439: [14:48:18] <olance> :)
440: [14:48:25] <olance> I'll try...
441: [14:51:00] <olance> I have a model named Configuration, and I'm trying to load JSON data from a request
442: [14:51:06] <olance> the request and JSON parsing works fine
443: [14:51:30] <olance> the problem is when I try to create nested objects for my Configuration
444: [14:51:41] <olance> for instance : Configuration has_many Sources
445: [14:51:50] <olance> I have a "sources" array in my JSON object
446: [14:52:16] <olance> I iterate over this array, create new Sources model objects and do : $this->Sources()->add($source)
447: [14:53:05] <olance> and get the error : "add() can't be called until a foreign ID is set"
448: [14:53:46] <olance> I understand that the Sources() collection doesn't know yet what the ID of the parent model is, and therefore cannot set the foreign ID on the source model
449: [14:54:18] <olance> I will never have this ID until I call write() for the first time on my Configuration model
450: [14:55:04] <olance> so I'm looking for a way to prepare my whole Configuration model from the JSON data, nested models (ie. relations) included, and save everything together with a single write() call
451: [14:55:18] <olance> is that possible?!
452: [14:56:58] * Nivery quit (Quit: Nivery)
453: [15:00:32] * mrzero has joined #silverstripe
454: [15:00:33] * mrzero quit (Changing host)
455: [15:00:33] * mrzero has joined #silverstripe
456: [15:03:03] <catcher> olance, as you said, you can't create the relationship until the ID exists. You'll have to write $source before you can write the relationship.
457: [15:06:13] <olance> Okay, that's what I thought
458: [15:06:21] <olance> that's not quite practical in my case though
459: [15:06:24] <olance> I'll figure that out, thanks
460: [15:14:19] * olance quit (Ping timeout: 250 seconds)
461: [15:21:11] * ^pH- has joined #silverstripe
462: [15:23:07] * feejin quit (Remote host closed the connection)
463: [15:24:40] * ^pH quit (Ping timeout: 252 seconds)
464: [15:27:50] * zfmf1 quit (Ping timeout: 256 seconds)
465: [15:28:43] * Hippiee quit (Read error: Connection reset by peer)
466: [15:29:28] * priithansen has joined #silverstripe
467: [15:50:06] * zfmf1 has joined #silverstripe
468: [16:01:13] * g4b0 quit (Quit: Sto andando via)
469: [16:15:25] * travis-ci has joined #silverstripe
470: [16:15:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#194 (3.1 - 5d97f61 : Ingo Schommer): The build passed.
471: [16:15:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9511d72aa90d...5d97f615ce19
472: [16:15:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7669106
473: [16:15:25] * travis-ci has left #silverstripe
474: [16:16:25] * travis-ci has joined #silverstripe
475: [16:16:25] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#398 (3.1 - bd86ff8 : Ingo Schommer): The build passed.
476: [16:16:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/206f09ab652f...bd86ff848c22
477: [16:16:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7669111
478: [16:16:25] * travis-ci has left #silverstripe
479: [16:20:06] * Nivery has joined #silverstripe
480: [16:25:36] * kinglozzer quit (Remote host closed the connection)
481: [16:27:47] * gordon has joined #silverstripe
482: [16:28:11] * gordon is now known as Guest23775
483: [16:40:14] * PigeonFriend quit ()
484: [16:43:35] * travis-ci has joined #silverstripe
485: [16:43:36] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#399 (master - c21c9cb : Ingo Schommer): The build passed.
486: [16:43:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c0302bc24d84...c21c9cba0da6
487: [16:43:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7669835
488: [16:43:36] * travis-ci has left #silverstripe
489: [16:58:03] * Liquide has joined #silverstripe
490: [17:00:30] * travis-ci has joined #silverstripe
491: [17:00:30] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#195 (master - 8853699 : Ingo Schommer): The build passed.
492: [17:00:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/f2460e018cae...88536998b982
493: [17:00:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7669850
494: [17:00:30] * travis-ci has left #silverstripe
495: [17:02:32] * pex has joined #silverstripe
496: [17:21:25] <jrthomer> is Ingo Schommer in the room?
497: [17:21:31] * jrthomer doesn't know if he has a different nick
498: [17:21:40] * ^pH- quit (Remote host closed the connection)
499: [17:22:34] * pex quit (Quit: pex)
500: [17:31:49] <UndefinedOffset> jrthomer he's chillu in irc :)
501: [17:32:00] <chillu> sup
502: [17:32:02] <jrthomer> thanks UndefinedOffset!
503: [17:32:26] <jrthomer> chillu: just wanted to make sure that I understood your email correctly ... I'll paste in example of what I understood it to mean
504: [17:32:40] <UndefinedOffset> np
505: [17:33:27] <jrthomer> rather, I'll ask a question :)
506: [17:33:54] <jrthomer> are you envisioning:
507: [17:34:07] <jrthomer> $myDataList->disableTranslatableFiltering()
508: [17:34:09] <jrthomer> or
509: [17:34:17] <jrthomer> inside DataList:
510: [17:34:48] <jrthomer> $this->disableTranslatableFiltering = Translatable::is_locale_filter_enabled() (or whatever the correct method name is .. can't remember off the top of my head)
511: [17:34:56] <jrthomer> or something different?
512: [17:35:09] <jrthomer> it seems like a leaky abstraction to have DataList knowing about Translatable
513: [17:35:23] <jrthomer> but there are other places (DataObject, etc) where the abstraction already leaks)
514: [17:35:40] <jrthomer> oh, nevermind ....
515: [17:35:42] <jrthomer> I just got it
516: [17:35:45] <jrthomer> I think:
517: [17:35:54] <jrthomer> augmentDataQueryCreation will be called on Translatable
518: [17:36:00] <jrthomer> T then sets flag on DataList
519: [17:36:14] <jrthomer> when DataList calls augmentSQL, T will use the flag to determine if it should run
520: [17:36:26] * jrthomer rubs eyes from being too tired to see that the first time
521: [17:37:05] <chillu> ;)
522: [17:37:26] <chillu> No (further) Translatable ties in core, yes - and not necessary to solve this
523: [17:37:38] <jrthomer> chillu: submit PR against 3.1 branch?
524: [17:37:51] <jrthomer> of framework
525: [17:38:01] <jrthomer> and which branch of silverstripe-translatable?
526: [17:38:04] <chillu> Framework shouldn't need any changes?
527: [17:38:41] <jrthomer> oh, right ... I thought setDataQueryParam needed to be added ... hadn't used it before
528: [17:39:02] <chillu> $this->extend('augmentSQL', $query, $dataQuery); - thankfully this gets the DataQuery context
529: [17:39:11] <chillu> We've used it for a fairly similar problem in Versioned
530: [17:40:44] <jrthomer> hmmm.... but looking closer, augmentDataQuery is called inside DataQuery:
531: [17:40:44] <jrthomer> $obj->extend('augmentDataQueryCreation', $this->query, $this);
532: [17:40:57] <jrthomer> but I don't have a reference to the DataList, which is where setDataQueryParam lives
533: [17:40:58] * tv_ has joined #silverstripe
534: [17:41:11] <jrthomer> setQueryPAram
535: [17:41:13] <jrthomer> see it now
536: [17:41:30] * jrthomer scurries off to write the code
537: [17:41:42] <jrthomer> chillu: thanks for all the help (listening to me ramble)
538: [17:41:53] <jrthomer> let me know which branch (master / 1.0) to submit against
539: [17:42:19] <chillu> 1.0 ideally (for translatable)
540: [17:42:23] <chillu> we'll merge up to master
541: [17:43:01] <jrthomer> thanks!
542: [17:45:42] <catcher> git people, looking for advice - I had 1-4 devs per site, and we all push code to a central svn repo on a dev server. The dev site is a WC that auto-updates upon commit.
543: [17:45:43] * UndefinedOffset quit (Quit: Leaving.)
544: [17:46:28] <catcher> I'm considering the switch to git. I see how to get this going with a bare repo on the dev server, but then I'm missing out on the distributed nature of git, right?
545: [17:47:23] <catcher> but doesn't there have to be a central repo somewhere so we all have each others' latest code?
546: [17:51:30] * popeshoe quit (Quit: Leaving)
547: [17:51:56] <kerosene> yes
548: [17:52:50] <kerosene> I've found #git to be a very helpful place btw
549: [17:54:40] <catcher> kerosene, been trying there, they send me to docs I've already read :)
550: [17:55:11] <kerosene> have you looked at gitlab?
551: [17:55:17] * willmorgan quit (Ping timeout: 240 seconds)
552: [17:59:29] <jrthomer> catcher: yes, in practice you still need a canonical repo - just like SS has github.com/silverstripe/*
553: [18:00:02] <jrthomer> so with your canonical repo is on your dev server you don't 'miss out on the distributed nature of git'
554: [18:00:18] <jrthomer> because you can still create local feature branches, rebase them, etc ... push when you're ready
555: [18:00:37] <jrthomer> or you can push devA -> devB if you have SSH (or other) access to each other's boxes
556: [18:00:54] <jrthomer> although with such a small team pushing to the dev server on a feature branch is more likely
557: [18:08:42] * zfmf1 has left #silverstripe
558: [18:14:39] <catcher> jrthomer, cool, thanks for the input
559: [18:14:45] <catcher> I'll check into gitlab too, ty kerosene
560: [18:27:45] * zfmf1 has joined #silverstripe
561: [18:28:13] * cloph_away is now known as cloph
562: [18:30:51] * Guest23775 quit (Ping timeout: 245 seconds)
563: [18:43:11] * Guest23775 has joined #silverstripe
564: [18:45:47] * tv_ quit (Ping timeout: 250 seconds)
565: [18:50:39] * travis-ci has joined #silverstripe
566: [18:50:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#196 (master - 82401b5 : Ingo Schommer): The build passed.
567: [18:50:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/88536998b982...82401b561d8b
568: [18:50:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7673438
569: [18:50:39] * travis-ci has left #silverstripe
570: [19:07:56] * Guest23775 quit (Ping timeout: 245 seconds)
571: [19:17:10] * guzzlefry has joined #silverstripe
572: [19:26:34] * robert_ quit (Read error: Connection reset by peer)
573: [19:32:07] * zfmf1 has left #silverstripe
574: [19:39:49] <jrthomer> chillu: pull request sent for #113 (PR is #114)
575: [19:39:56] <jrthomer> see notes in last comment on #113 ...
576: [19:40:19] <jrthomer> there's a bit of noise because of a commit that I replaced in my branch, but GitHub is still showing it on #113 because I referenced #113 from the commit message
577: [19:40:30] <jrthomer> also, there was a commit to framework that is explained in the commit message
578: [19:41:06] * jrthomer was able to revert my hacks around Translatable::disable_locale_filter in my own codebase after this fix in translatable ... w00t!
579: [19:45:15] * robert_ has joined #silverstripe
580: [19:45:15] * robert_ quit (Changing host)
581: [19:45:15] * robert_ has joined #silverstripe
582: [19:46:18] * Nivery quit (Quit: Nivery)
583: [19:50:22] * zfmf1 has joined #silverstripe
584: [19:53:25] * Nivery has joined #silverstripe
585: [20:36:41] * zfmf1 has left #silverstripe
586: [20:45:15] * metanat has joined #silverstripe
587: [20:45:36] * Shrike_Finland has joined #silverstripe
588: [20:51:25] * willmorgan has joined #silverstripe
589: [20:57:30] * Nivery quit (Quit: Nivery)
590: [21:04:05] * metanat quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
591: [21:06:37] <FrozenFire> How do you handle quote escaping in string parameters in template tags?
592: [21:07:00] <FrozenFire> E.g. <% _t('...', 'Some default string has a \'') %>
593: [21:10:24] <FrozenFire> Because that seemed not to work
594: [21:31:41] * travis-ci has joined #silverstripe
595: [21:31:41] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#198 (3.1 - 8da41f4 : Ingo Schommer): The build passed.
596: [21:31:41] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5d97f615ce19...8da41f425065
597: [21:31:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7677759
598: [21:31:41] * travis-ci has left #silverstripe
599: [21:32:50] * DigNZ has joined #silverstripe
600: [21:37:04] * robert_ quit (Ping timeout: 240 seconds)
601: [21:41:49] * DigNZ quit (Quit: DigNZ)
602: [21:54:27] * chillu quit (Quit: chillu)
603: [21:56:53] * DigNZ has joined #silverstripe
604: [21:57:42] * DigNZ quit (Client Quit)
605: [22:03:48] * Liquide quit (*.net *.split)
606: [22:03:48] * spronk quit (*.net *.split)
607: [22:03:48] * ss23 quit (*.net *.split)
608: [22:06:30] * Liquide has joined #silverstripe
609: [22:22:40] * ugly_duck quit (Ping timeout: 252 seconds)
610: [22:24:20] * ss23 has joined #silverstripe
611: [22:34:32] * ugly_duck has joined #silverstripe
612: [22:34:32] * ugly_duck quit (Changing host)
613: [22:34:32] * ugly_duck has joined #silverstripe
614: [22:55:23] * willmorgan quit (Ping timeout: 246 seconds)
615: [23:11:06] * cloph is now known as cloph_away
616: [23:21:30] * catcher quit (Quit: Leaving)
617: [23:33:16] * travis-ci has joined #silverstripe
618: [23:33:17] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#199 (3.1 - f5b6c55 : Sean Harvey): The build passed.
619: [23:33:17] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8da41f425065...f5b6c552454e
620: [23:33:17] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7680373
621: [23:33:17] * travis-ci has left #silverstripe
622: [23:40:38] * Nightjar has joined #silverstripe

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