#silverstripe IRC Log

IRC log for 1 November 2013

All timestamps are in UTC.

1: [00:00:48] * wilr_ quit (Quit: wilr_)
2: [00:01:24] <guzzlefry> spronk: lies bro, all lies!
3: [00:01:36] <Colin[pi]> "has the ability to use high-frequency transmissions passed between computer speakers and microphones to bridge airgaps"
4: [00:01:39] <Colin[pi]> ^ WTF
5: [00:01:51] <guzzlefry> also
6: [00:01:53] <guzzlefry> what's an airgap?
7: [00:02:21] <Colin[pi]> it's a reference to biological viruses
8: [00:02:36] <AlphaCactus> Please implement a getFormField() on your EditableFormClass ! grrrr
9: [00:03:00] <Colin[pi]> guzzlefry: http://en.wikipedia.org/wiki/Air_gap_%28networking%29
10: [00:03:01] <spronk> seriously though
11: [00:03:04] <spronk> this guy is actually credible
12: [00:10:08] <Zauberfisch23> guzzlefry: I think in 2.4 there was a getQuery method or so
13: [00:10:16] <Zauberfisch23> or just call ->__toString()
14: [00:10:32] <Zauberfisch23> or was it getQuery()->__toString()
15: [00:10:37] <Zauberfisch23> something around those lines anyway
16: [00:11:37] * chillu quit (Quit: chillu)
17: [00:11:42] <DaShiVaDan> spronk: read teh whole thing - intruiging, but will wait for peer review :)
18: [00:12:16] <spronk> mm
19: [00:14:47] <guzzlefry> yes
20: [00:14:51] <guzzlefry> I require more evidence!
21: [00:17:31] <Pyromanik> 12:59 < spronk> http://arstechnica.com/security/2013/10/meet-badbios-the-mysterious-mac-and-pc-malware-that-jumps-airgaps/
22: [00:17:34] <Pyromanik> wholey sht
23: [00:19:27] * Ryan_ has joined #silverstripe
24: [00:26:09] <Pyromanik> that's fuck'n intense!
25: [00:34:54] <Pyromanik> http://en.wikipedia.org/wiki/Pwn2own
26: [00:34:55] <Pyromanik> so
27: [00:35:03] <Pyromanik> sandboxed environments
28: [00:35:05] <Pyromanik> don't mean shit.
29: [00:35:12] <Pyromanik> that what I learnt today.
30: [00:37:23] <spronk> mmlol
31: [00:38:24] * UncleCheese has joined #silverstripe
32: [00:41:55] * wilr_ has joined #silverstripe
33: [00:42:51] * mobiusnz quit (Quit: Leaving.)
34: [00:47:13] * SightUnseen has joined #silverstripe
35: [00:47:30] <spronk> ugh wtf
36: [00:47:34] <spronk> chrome is using 4GB of disk space
37: [00:48:12] * SightUnseen has left #silverstripe
38: [00:50:35] <DaShiVaDan> spronk: prolly some stray js in a tab or something
39: [00:51:10] <spronk> o_O
40: [00:51:11] <spronk> disk space
41: [00:51:21] <spronk> not ram
42: [00:51:27] <DaShiVaDan> spronk: oh, my bad :P how many extensions u have added? :P
43: [00:51:44] <spronk> zero
44: [00:51:56] <spronk> in fact, i only use chrome for dev testing
45: [00:52:07] <DaShiVaDan> and shift+escape manager probably isn't much help for this
46: [00:52:46] <spronk> mm
47: [00:52:54] <spronk> i was wondering why i had so little space left on my ssd
48: [00:53:48] <guzzlefry> yay
49: [00:53:51] <guzzlefry> today keeps getting better
50: [00:53:57] <DaShiVaDan> spronk: i shoulda got a bigger ssd at home, i got only windows and what i have to on it, more or less, and keep running out of space :(
51: [00:54:03] <DaShiVaDan> guzzlefry: whats new?
52: [00:54:03] <guzzlefry> [Thu Oct 31 20:52:59 2013] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 349386 bytes)
53: [00:54:04] <spronk> yeah..
54: [00:54:07] <spronk> i have 128gb on my windows box
55: [00:54:23] <spronk> should be ample, because it's ONLY windows + pagefile + adobe apps + office + general windows apps
56: [00:54:25] <guzzlefry> push it to the limit!
57: [00:54:29] <DaShiVaDan> spronk: mine's a little smaller :(
58: [00:54:40] <spronk> but i'm down to 10GB free
59: [00:54:45] <spronk> so.. dno wtf is going on
60: [00:54:45] <DaShiVaDan> spronk: i wanna get a bigger one next time round to put Adobe CC on it
61: [00:54:52] <spronk> you in nz?
62: [00:54:57] <DaShiVaDan> I'm always floating at ~2gb free lol
63: [00:55:01] <spronk> playtech has a special on intel today :P
64: [00:55:41] <guzzlefry> now...why in the hell would a news page be eating up 128MB of RAM?
65: [00:55:52] <DaShiVaDan> windows does dump a lot of information over time in there so it can reinstall 'anything' which takes up about 10gb i can't manage to free on mine, but i've researched all over and there's no easy way of fixing that short of a full reinstall.
66: [00:56:06] <DaShiVaDan> news page? ram?
67: [00:56:15] <DaShiVaDan> shift+escape in chrome will help for that one :P
68: [00:56:21] * unsignedint quit ()
69: [00:59:47] * DigNZ quit (Quit: DigNZ)
70: [01:13:33] * DesignerX has joined #silverstripe
71: [01:21:48] * DigNZ has joined #silverstripe
72: [01:22:26] * DigNZ quit (Client Quit)
73: [01:28:25] * Marvanni2 quit (Ping timeout: 272 seconds)
74: [01:31:23] * mobiusnz has joined #silverstripe
75: [01:32:27] * travis-ci has joined #silverstripe
76: [01:32:27] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1477 (3.1 - 8e36290 : Sean Harvey): The build passed.
77: [01:32:27] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1951fdba0f50...8e36290b56a4
78: [01:32:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13346862
79: [01:32:27] * travis-ci has left #silverstripe
80: [01:33:35] * antmas finishes reading spronk 's article link
81: [01:33:48] * antmas ' mind is blown
82: [01:35:26] <zippy__> antmas: link?
83: [01:35:30] <spronk> IKR
84: [01:35:33] <zippy__> antmas: and, you got your rain
85: [01:35:35] <spronk> http://arstechnica.com/security/2013/10/meet-badbios-the-mysterious-mac-and-pc-malware-that-jumps-airgaps/
86: [01:35:45] * mobiusnz quit (Client Quit)
87: [01:36:25] <antmas> zippy__: I knew it!
88: [01:37:05] * marvanni has joined #silverstripe
89: [01:46:10] <zippy__> mmm that is crazy
90: [01:46:19] <zippy__> bloody NSA...... ;-)
91: [01:47:20] <zippy__> >> Congratulations sminnee and escapeartist!
92: [01:47:22] <zippy__> what for?
93: [01:47:42] <antmas> engaged I think
94: [01:47:48] <ss23> Yes!
95: [01:47:48] <ss23> :D
96: [01:47:56] <ss23> 14:36:23 < spronk> http://arstechnica.com/security/2013/10/meet-badbios-the-mysterious-mac-and-pc-malware-that-jumps-airgaps/
97: [01:47:59] <ss23> blargh
98: [01:48:16] <spronk> ?
99: [01:48:19] <ss23> just
100: [01:48:21] <ss23> did you guys read it?
101: [01:48:25] <spronk> ..yes?
102: [01:48:27] <ss23> the number of articles on it
103: [01:48:29] <antmas> could have chosen a better name than badbios
104: [01:48:30] <ss23> and
105: [01:48:31] <ss23> idek
106: [01:48:37] <ss23> He could also release some details
107: [01:48:46] <ss23> other than "guys lol some shit is happening and idk but SHIT IS SRS"
108: [01:49:22] <antmas> haha yeah
109: [01:49:23] <ss23> I struggle to even articulate my thoughts on it
110: [01:49:24] <ss23> But
111: [01:49:30] <ss23> I resent that it's getting lots of media attention
112: [01:50:04] <antmas> it even does go as far as to shoehorn the word 'bigfoot' in there
113: [01:50:20] <antmas> GOOGEL consipracry searchez
114: [01:50:23] <ss23> OSX server is really shit
115: [01:50:25] <ss23> just FYI guy
116: [01:50:26] <ss23> guys
117: [01:51:00] <guzzlefry> ss23: Why would you use that/
118: [01:51:07] <ss23> I don't know
119: [01:52:29] * DigNZ has joined #silverstripe
120: [01:52:39] * DigNZ quit (Client Quit)
121: [01:53:22] <antmas> lol timesheets
122: [01:53:32] <antmas> who actually fills those things out properly
123: [01:53:39] <ss23> I'm getting good at lying on them
124: [01:53:41] <ss23> does that count?
125: [01:53:41] <ss23> :D
126: [01:53:54] <antmas> haha
127: [01:54:19] <antmas> I tend to use the job code 'Misc.' or 'Meetings and Admin' a lot
128: [01:54:20] * DigNZ has joined #silverstripe
129: [01:54:21] <antmas> :D
130: [01:54:41] * nickmolhoek has joined #silverstripe
131: [01:55:13] <guzzlefry> I did that until client started asking for hourly breakdowns. :P
132: [01:55:29] <antmas> guzzlefry: ugh, that's the worst
133: [01:56:01] <spronk> i tend to have hourlyish timesheets anyway
134: [01:56:12] <guzzlefry> I do now >_>
135: [01:56:12] <spronk> otherwise known as commit logs
136: [01:56:13] <spronk> :p
137: [01:56:16] <guzzlefry> toggl.com <3
138: [01:57:19] <antmas> 8 hrs = coding a search box, 15 hrs = furiosly slamming stackoverflow
139: [01:57:27] <antmas> pretty much mine
140: [01:57:44] <antmas> :p
141: [01:59:28] * DigNZ quit (Quit: DigNZ)
142: [01:59:59] <antmas> any good conferences left for the year worth looking at?
143: [02:01:23] <ss23> Kiwicon!
144: [02:01:34] <ss23> Of course, it's sold out and on next weekend, but still
145: [02:02:07] <antmas> ah yeah, I need 3 weeks notice :P
146: [02:03:12] <antmas> kiwicon.org... so much slang -_-
147: [02:03:16] <antmas> :p
148: [02:03:54] <Avroceptyr> antmas: I reckon! kiw icon ?
149: [02:04:00] <Avroceptyr> what is all this?! :P
150: [02:04:10] <antmas> TOO MUCH
151: [02:04:49] <antmas> does anyone have someone in their office/building that has a SUPER loud laugh?
152: [02:09:35] * mobiusnz has joined #silverstripe
153: [02:09:40] <guzzlefry> lawl
154: [02:09:44] <guzzlefry> antmas: those people are awesome
155: [02:10:06] <antmas> guzzlefry: I disagree
156: [02:10:12] <antmas> it always makes me jump
157: [02:10:39] <antmas> it's great when they laugh so loud and hard that they choke at the same time, lawl
158: [02:13:23] <ss23> antmas: Me and a coworker who sits next to me
159: [02:13:23] <ss23> :D
160: [02:17:13] <ss23> I accidently clicked "Play Album Next" instead of "Add album to queue"
161: [02:17:14] <ss23> :<
162: [02:17:27] * DigNZ has joined #silverstripe
163: [02:17:57] <Ryan_> Just got asked if I could make a butt rating application.
164: [02:18:44] <Ryan_> Should be an interesting weekend.
165: [02:19:10] <antmas> hmmmm anyone been to new caledonia here?
166: [02:25:26] * UncleCheese quit (Quit: UncleCheese)
167: [02:28:16] <guzzlefry> Ryan_: Don't those already exist?
168: [02:28:23] <Ryan_> They do.
169: [02:28:55] <Ryan_> they have a database of 20,000 pictures, and x amount of users. They just want a web app that can be compiled into phonegap.
170: [02:29:05] <Ryan_> + a few extra features.
171: [02:29:12] <Ryan_> facebook login etc
172: [02:38:59] * DigNZ quit (Quit: DigNZ)
173: [02:54:03] <antmas> Ryan_: hated phonegap when I used it
174: [02:54:20] <antmas> it's probably improved now thoguh
175: [02:54:27] <Ryan_> IT's pretty average, but I don't know java or objective-C
176: [02:54:44] <Ryan_> It' has come a long way in the last year or so
177: [02:57:40] <nick86> hey guys, how do i get a value of a CMS field in an extended SiteConfig in php?
178: [02:57:41] <nick86> $config = SiteConfig::current_site_config();
179: [02:57:42] <nick86> $config->Title
180: [02:58:00] <nick86> that works but i want to use it for the email address field i created.
181: [02:58:32] <nick86> at which point i get: Call to undefined method SiteConfigExtension::getCMSFields()
182: [03:10:46] * DigNZ has joined #silverstripe
183: [03:14:54] * EasyCo has joined #silverstripe
184: [03:15:21] * Ryan_ quit (Quit: Ryan_)
185: [03:19:05] * DigNZ quit (Quit: DigNZ)
186: [03:25:16] * Ryan_ has joined #silverstripe
187: [03:29:31] <ss23> Okay
188: [03:29:32] <ss23> ss23 is now in a dress.
189: [03:30:28] <spronk> :|
190: [03:30:32] <spronk> pics or it didnt happen
191: [03:32:18] <ss23> lol
192: [03:32:26] <ss23> There will be pics uploaded later, I'm 100% sure
193: [03:32:44] <DaShiVaDan> ss23: please, belay that pics request.
194: [03:33:39] <ss23> XD
195: [03:34:05] * DaShiVaDan is dressing up as a lumberjack
196: [03:35:24] <DaShiVaDan> not a monty python fan in the house? :(
197: [03:43:48] * antmas quit (Quit: Page closed)
198: [03:47:26] * kerosene has joined #silverstripe
199: [03:53:01] * Ryan_ quit (Quit: Ryan_)
200: [03:55:13] * DigNZ has joined #silverstripe
201: [03:55:13] * DigNZ quit (Client Quit)
202: [03:56:48] * Ryan_ has joined #silverstripe
203: [03:57:19] * mobiusnz quit (Quit: Leaving.)
204: [03:59:27] * nickmolhoek quit (Quit: nickmolhoek)
205: [03:59:49] * Wracu quit (Ping timeout: 250 seconds)
206: [04:01:57] * Ryan_ has left #silverstripe
207: [04:26:18] * wilr_ quit (Quit: wilr_)
208: [04:52:43] * EasyCo quit (Ping timeout: 272 seconds)
209: [04:55:55] * cloph_away has joined #silverstripe
210: [04:56:47] * cloph quit (Ping timeout: 272 seconds)
211: [04:58:09] * mobiusnz has joined #silverstripe
212: [05:02:27] * mobiusnz quit (Ping timeout: 246 seconds)
213: [05:29:26] * DigNZ has joined #silverstripe
214: [05:29:30] * DigNZ quit (Client Quit)
215: [05:46:05] <Avroceptyr> I want to make a static HTML website that has a lot of content, so I was thinking of a silverstripe CMS install in a private area with a publish function that generated flat-file html/css/scripts/images and dumped them somewhere (e.g., file system or FTP site)
216: [05:46:14] <Avroceptyr> is there a module for that already? or modules?
217: [05:58:52] * mobiusnz has joined #silverstripe
218: [06:03:28] * mobiusnz quit (Ping timeout: 265 seconds)
219: [06:04:17] * spronk2 quit (Quit: spronk2)
220: [06:59:45] * mobiusnz has joined #silverstripe
221: [07:04:27] * mobiusnz quit (Ping timeout: 272 seconds)
222: [07:11:48] * svandragt has joined #silverstripe
223: [07:15:28] * nick86 quit (Ping timeout: 264 seconds)
224: [07:42:49] * NobrainerWeb has joined #silverstripe
225: [07:43:20] <NobrainerWeb> Hi :-)
226: [07:43:34] <NobrainerWeb> Anyone using Silverstripe Ecommerce on 3.1.1?
227: [07:43:53] * Colin[pi] quit (Ping timeout: 245 seconds)
228: [07:44:53] <NobrainerWeb> Tried to download a zip from https://github.com/sunnysideup/silverstripe-ecommerce master and i get all sorts of different problems
229: [07:56:32] * sam_ has joined #silverstripe
230: [07:57:03] <sam_> hi... can anybody help me on populating and displaying vertical list in silverstripe 2.4?
231: [08:00:23] * mobiusnz has joined #silverstripe
232: [08:04:27] * mobiusnz quit (Ping timeout: 240 seconds)
233: [08:07:44] <NobrainerWeb> sam_: What do you need to list and where? I think you need to give an example
234: [08:08:18] * chillu has joined #silverstripe
235: [08:19:29] * travis-ci has joined #silverstripe
236: [08:19:29] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1480 (3.1 - c1a6557 : Ingo Schommer): The build has errored.
237: [08:19:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8e36290b56a4...c1a655792d88
238: [08:19:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13354704
239: [08:19:29] * travis-ci has left #silverstripe
240: [08:24:03] * kerosene quit (Quit: bbl)
241: [08:24:39] * travis-ci has joined #silverstripe
242: [08:24:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1480 (3.1 - c1a6557 : Ingo Schommer): The build has errored.
243: [08:24:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8e36290b56a4...c1a655792d88
244: [08:24:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13354704
245: [08:24:39] * travis-ci has left #silverstripe
246: [08:25:18] * SightUnseen has joined #silverstripe
247: [08:25:48] * ARNHOE has joined #silverstripe
248: [08:26:16] * SightUnseen has left #silverstripe
249: [08:27:31] * SightUnseen has joined #silverstripe
250: [08:27:41] * SightUnseen has left #silverstripe
251: [08:34:34] <marvanni> morning
252: [08:35:42] * Shrike_Finland has joined #silverstripe
253: [08:50:45] * mrzero_ has joined #silverstripe
254: [08:50:45] * mrzero_ quit (Changing host)
255: [08:50:45] * mrzero_ has joined #silverstripe
256: [08:57:19] * henk1 has joined #silverstripe
257: [08:58:34] * mrzero quit (*.net *.split)
258: [08:58:35] * mrzero_ is now known as mrzero
259: [08:59:51] <henk1> hey guys, having trouble changing theme. to whatever theme i change, result= http://i.imgur.com/KyGQkLV.png using composer for both deployment & theme instalation
260: [08:59:59] * Stomach quit (Ping timeout: 272 seconds)
261: [09:01:09] <henk1> tested themes so far: cloudy, hardyakka, metro
262: [09:02:56] <henk1> also, where are going errors in dev mode?
263: [09:08:07] * zfmf has joined #silverstripe
264: [09:18:04] <sam_> NobrainerWeb: http://planmytournament.com/FeatureListedGolfCourses?flush=1
265: [09:18:17] <sam_> want to list the items
266: [09:19:54] * chillu quit (Quit: chillu)
267: [09:20:01] <sam_> Name, city, state
268: [09:20:10] <sam_> in columns
269: [09:51:47] * NobrainerWeb quit (Quit: NobrainerWeb)
270: [09:54:58] * NoobNL_ has joined #silverstripe
271: [09:57:46] * NobrainerWeb has joined #silverstripe
272: [09:59:01] <NoobNL_> Hi i have the following code: http://paste.org/68368
273: [09:59:05] <NoobNL_> I have made a form as dataobject, and in the frontend you can create a new entry for the form and fill it. But how can i make a new function, that makes it possible to edit an entry and save/update it as the same entry?
274: [09:59:45] <NoobNL_> does anyone knows a solution?
275: [10:01:24] * mobiusnz has joined #silverstripe
276: [10:04:05] <sam_> hi anybody can help me on datepicker field in frontend?
277: [10:04:06] <sam_> http://planmytournament.com/listingpage/show/14455
278: [10:04:22] <sam_> cleck on the "Edit all course info" in red
279: [10:04:37] <sam_> there are fields called StartDate EndDate
280: [10:04:50] <sam_> I have used Datefield with show calender true
281: [10:04:57] <sam_> not working
282: [10:05:50] * mobiusnz quit (Ping timeout: 240 seconds)
283: [10:07:27] <NoobNL_> Is there no one who is familiar with editing and saving a databoject front-end?
284: [10:08:24] <marvanni> you need the DataObject ID to saveInto an existing record
285: [10:09:37] <marvanni> sam_ there is a parse error in your popup
286: [10:10:21] <NoobNL_> Marvani, thanks... but how can i do that?
287: [10:10:26] <sam_> OOPS I ws trying something
288: [10:10:50] <marvanni> well you need to know the ID in your formsave method
289: [10:11:15] <marvanni> you can add an hidden field ID, but make sure you check if the person is allowed to edit for that ID in your write method
290: [10:11:22] <sam_> marvanni: Please check it now
291: [10:11:44] <marvanni> if you do $obj->write(); and there is an ID present, it will update the existing record, instead of creating a new one
292: [10:11:58] <marvanni> sam_ still there
293: [10:11:59] <marvanni> http://planmytournament.com/listingpage/show/14455
294: [10:13:09] <sam_> resolved
295: [10:14:14] <marvanni> its hanging on phpsqlsearch_genxml_mini.php when I turn on Firebug
296: [10:16:57] * micmania1 has joined #silverstripe
297: [10:17:07] <marvanni> too much recursion in the map main.js
298: [10:17:11] <marvanni> its a mess ;)
299: [10:18:47] <marvanni> and the date popup js is not there
300: [10:19:59] * NobrainerWeb quit (Quit: NobrainerWeb)
301: [10:21:23] * chillu has joined #silverstripe
302: [10:22:42] * chillu quit (Client Quit)
303: [10:26:23] * gelignite has joined #silverstripe
304: [10:28:56] <marvanni> anyone working with phpunit?
305: [10:29:25] <micmania1> marvanni: what you need to know?
306: [10:30:55] <marvanni> im getting started with github and travis with https://github.com/silverstripe-labs/silverstripe-travis-support
307: [10:31:12] <marvanni> but travis can't find the testfile I added in my testmodule
308: [10:31:23] <marvanni> and therefore keeps failing
309: [10:32:18] * NobrainerWeb has joined #silverstripe
310: [10:33:13] <marvanni> here are the .travis.yml and composer.json
311: [10:33:14] <marvanni> https://github.com/axyr/silverstripe-adminlogin
312: [10:33:25] <marvanni> pretty straight forward I think
313: [10:34:11] <micmania1> Your phpunit line isn't indented correctly.
314: [10:35:00] <marvanni> this is the travis log http://sspaste.com/paste/show/527381ed6fa75
315: [10:35:09] <marvanni> what is wrong with the phpunit file?
316: [10:35:56] <marvanni> that one, is generated by cli gem travis btw...
317: [10:36:05] <micmania1> ah! Its because you're trying to run your tests from adminlogin.
318: [10:36:10] <micmania1> adminlogin/tests
319: [10:36:17] <micmania1> it should be silverstripe-adminlogin/tests
320: [10:37:05] <marvanni> hm, when i install it localy with composer its installed in adminlogin/tests
321: [10:38:24] <marvanni> hm, but your right
322: [10:38:28] <marvanni> now its working...
323: [10:39:02] <marvanni> thanks.
324: [10:39:09] <micmania1> Travis checks your module out from github before it runs composer.
325: [10:39:15] <micmania1> np
326: [10:39:38] <marvanni> this is my first UnitTest, any reccommendations if you look at this file?
327: [10:39:38] <marvanni> https://github.com/axyr/silverstripe-adminlogin/blob/master/tests/IpAccessTest.php
328: [10:40:39] <zippy__> marvanni: the spacing looks all wacked out....
329: [10:42:17] <marvanni> you mean the new IpAccess line?
330: [10:42:18] <marvanni> s
331: [10:49:43] * violetina has joined #silverstripe
332: [11:00:21] <svandragt> I'm trying to make my arraylist paginated through $items = new PaginatedList($items, $this->request()); in my controller however SS user errors with Uncaught Exception: Object->__call(): the method 'request' does not exist on my controller. What am I missing?
333: [11:00:53] * henk1 quit (Quit: WeeChat 0.4.1)
334: [11:01:26] <svandragt> nevermind too tired it's $this->request not a method
335: [11:01:27] * travis-ci has joined #silverstripe
336: [11:01:27] <travis-ci> [travis-ci] chillu/silverstripe-framework#112 (pulls/versioned-docs - a7bbf02 : Ingo Schommer): The build passed.
337: [11:01:27] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/696e6f65ab84^...a7bbf02f7a9c
338: [11:01:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13358491
339: [11:01:27] * travis-ci has left #silverstripe
340: [11:02:13] * mobiusnz has joined #silverstripe
341: [11:06:11] * EasyCo has joined #silverstripe
342: [11:06:17] * EasyCo quit (Client Quit)
343: [11:07:01] * mobiusnz quit (Ping timeout: 272 seconds)
344: [11:10:10] * Alexwijn has joined #silverstripe
345: [11:23:02] <Alexwijn> How to set the edit url of a dataobject?
346: [11:24:01] <svandragt> I swear I'm going to setup a "SilverStripe by example" site sometime and document all the nifty stuff.
347: [11:24:30] <Alexwijn> I setup a ModelAdmin but al the edit links goes to the same page: /admin/mail/EmailUser/EditForm/field/EmailUser/item/edit
348: [11:24:36] <Alexwijn> Without a ID
349: [11:25:31] <svandragt> Alexwijn: You shouldn't have to do anything, see http://sspaste.com/paste/show/52738dc989983 for an example
350: [11:26:24] <Alexwijn> The dataobject that I'm managing does not have a table in the SS database (because he get's it external)
351: [11:26:24] <Alexwijn> I guess that's why he can't retrieve the id
352: [11:26:29] <Alexwijn> So I'm wondering where I can add it
353: [11:27:40] * travis-ci has joined #silverstripe
354: [11:27:41] <travis-ci> [travis-ci] chillu/silverstripe-cms#57 (pulls/js-i18n-3.1 - b726180 : Ingo Schommer): The build failed.
355: [11:27:41] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/b6589ba9a94f^...b726180ab84d
356: [11:27:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/13013954
357: [11:27:41] * travis-ci has left #silverstripe
358: [11:27:51] <svandragt> Alexwijn: Ah I'm not familiar with that situation, are you sure you want dataobjects then not something like a webservice that receives arraylist?
359: [11:28:10] * travis-ci has joined #silverstripe
360: [11:28:11] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1482 (3.1 - adccda3 : Ingo Schommer): The build passed.
361: [11:28:11] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c1a655792d88...adccda35aa15
362: [11:28:11] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13359126
363: [11:28:11] * travis-ci has left #silverstripe
364: [11:28:13] <Alexwijn> I also need to edit them
365: [11:28:28] <Alexwijn> The data comes from the same mysql server
366: [11:28:32] <Alexwijn> But other database
367: [11:28:57] <marvanni> you better create a custom GridFieldEditButton and replace the default with your custom one
368: [11:30:04] <marvanni> and you need to create a custom GridFieldDetailForm where you overload handleItem to get the record you need
369: [11:32:10] <Alexwijn> Ok, what are the functions to override and wher?
370: [11:32:14] <marvanni> this is part of my WebserviceGridField where I get a remote item instead of a DB record
371: [11:32:14] <marvanni> http://sspaste.com/paste/show/52738f4f7d6b0
372: [11:32:51] <marvanni> not that I have some more code in my dataobjects, which I can't show you, because there is companydata in it, but this might you getting started
373: [11:33:06] <Alexwijn> Yeah thanks
374: [11:33:50] <Alexwijn> Looks great
375: [11:33:51] <marvanni> http://sspaste.com/paste/show/52738fc5c4b08
376: [11:34:27] <Alexwijn> When at the ModelView, how to set a GridFieldDetailForm ?
377: [11:34:28] <marvanni> I use an interface for DataObjects, so you can define CRUD methods for your data
378: [11:34:35] <Alexwijn> I mean AdminModel
379: [11:34:40] <marvanni> in you custom modeladmin
380: [11:35:02] <marvanni> function getEditForm($id = null, $fields = null) {
381: [11:35:22] <marvanni> $fieldConfig->getComponentByType('GridFieldDetailForm')
382: [11:35:23] <marvanni> ->setItemRequestClass('MyCustomAdminDetailForm_ItemRequest');
383: [11:36:13] <marvanni> there is a lot to dive into, i suggest look at this for some examples on how to extends gridfield components
384: [11:36:14] <marvanni> https://github.com/ajshort/silverstripe-gridfieldextensions
385: [11:37:24] <Alexwijn> I'm unable to find the function setItemRequestClass at the form
386: [11:37:32] <Alexwijn> I override the getEditForm
387: [11:37:45] <Alexwijn> Then at the first line I execute the parent and return it to $form
388: [11:37:46] <marvanni> its not copy past code, just examples
389: [11:38:06] <Alexwijn> Then I tried to look for setItemRequestClass but my IDE can't find it
390: [11:38:11] <Alexwijn> In CMSForm
391: [11:38:58] <marvanni> http://sspaste.com/paste/show/527390f545c7a
392: [11:39:03] <marvanni> this is my modeladmin class
393: [11:39:27] * spronk2 has joined #silverstripe
394: [11:40:47] <Alexwijn> Ok thanks
395: [11:45:29] * travis-ci has joined #silverstripe
396: [11:45:30] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1484 (3.1 - 9001782 : Ingo Schommer): The build passed.
397: [11:45:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/adccda35aa15...90017821a129
398: [11:45:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13359397
399: [11:45:30] * travis-ci has left #silverstripe
400: [11:47:49] <Alexwijn> $sng = singleton($modelClass);
401: [11:47:52] <Alexwijn> That is the dataobject right
402: [11:48:04] <marvanni> yeah
403: [11:48:15] <Alexwijn> So you let the dataobject do the retrieving
404: [11:49:41] <Alexwijn> Where do you set the AdminDetailForm?
405: [11:49:53] <marvanni> yes, I have a webservice class with methods to retreive datasets
406: [11:50:25] <marvanni> in my dataobjects i set the methods for that class (SOAPclient) to call for the various CRUD actions
407: [11:50:51] <marvanni> that differs for each type of data, not all can be written to, for example
408: [11:53:00] * travis-ci has joined #silverstripe
409: [11:53:01] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#638 (3.1 - 35a84e4 : Ingo Schommer): The build is still failing.
410: [11:53:01] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/5101db94727c...35a84e4eae36
411: [11:53:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13359408
412: [11:53:01] * travis-ci has left #silverstripe
413: [11:54:08] <Alexwijn> But where do you set the AdminDetailForm?
414: [11:55:16] <marvanni> in my modeladmin getEditForm
415: [11:55:35] <marvanni> RemoteAdminDetailForm_ItemRequest
416: [11:55:57] <marvanni> that will use class RemoteAdminDetailForm extends GridFieldDetailForm
417: [11:56:14] <marvanni> but that is only used for adding custom FormActions
418: [11:56:43] <marvanni> ok, im missing something for you
419: [11:57:00] <marvanni> I have DataObject with users that connect to the webservice
420: [11:57:21] <marvanni> so I have a WebServiceUser DataObject with getCMSFields()
421: [11:57:29] <marvanni> there I add the WebserviceGridField
422: [11:57:52] <marvanni> so there is a root DO where all the remote data belongs too
423: [12:00:49] <Alexwijn> Ok thanks
424: [12:03:00] * mobiusnz has joined #silverstripe
425: [12:07:03] <Alexwijn> marvanni, sorry but I can't find where WebserviceGridFieldDetailForm get called
426: [12:07:43] * mobiusnz quit (Ping timeout: 272 seconds)
427: [12:08:11] * sam_ quit (Ping timeout: 250 seconds)
428: [12:09:25] <marvanni> its a custom WebserviceGridFieldConfig extends GridFieldConfig
429: [12:12:11] <marvanni> brb
430: [12:12:22] <Alexwijn> ok
431: [12:19:11] <Pyromanik> GLORY GLORY
432: [12:19:19] <Pyromanik> JUST LIKE A KNIFE
433: [12:19:26] <Pyromanik> IT CUTS RIGHT THROUGH YA...
434: [12:19:32] * Pyromanik quit (Quit: leaving)
435: [12:19:35] <Alexwijn> Does anyone know how to empty a PasswordField?
436: [12:19:41] <Alexwijn> I tried setValue('');
437: [12:19:44] <Alexwijn> But it does not change
438: [12:19:57] <Alexwijn> I do not want to show the password
439: [12:22:24] <Alexwijn> Nvm, I refreshed it few times and it worked now
440: [12:22:52] * UndefinedOffset has joined #silverstripe
441: [12:30:16] * Pyromanik has joined #silverstripe
442: [12:30:16] <Pyromanik> so
443: [12:30:20] <Pyromanik> talk to me.
444: [12:32:06] <spronk> GO TO BED
445: [12:32:12] <Pyromanik> warm sake.
446: [12:32:14] <Pyromanik> deal with it.
447: [12:32:17] <spronk> lol
448: [12:32:24] * Pyromanik sunglasses its.
449: [12:32:55] <Pyromanik> spronk: you should come party with me
450: [12:33:13] <Pyromanik> up at the office, I'm the only one left.
451: [12:33:19] <Alexwijn> marvanni: are you there?
452: [12:33:31] <Pyromanik> Hauraki blaring. Keeps me company while I warm sake it.
453: [12:33:33] <spronk> loool
454: [12:33:45] <spronk> i would, but i'm going to bed
455: [12:33:48] <Pyromanik> what else could I say? EVERY ONE IS GAY.
456: [12:33:55] <spronk> hahahah
457: [12:34:03] <spronk> :(
458: [12:34:12] <Pyromanik> (nirvana on Hauraki)
459: [12:34:22] <Pyromanik> ALL APOLOGIES
460: [12:34:29] <Pyromanik> I wish I was like you.
461: [12:34:33] <Pyromanik> EASILY AMUSED
462: [12:34:50] <Pyromanik> etc
463: [12:35:08] <spronk> lol awesome
464: [12:35:30] <Pyromanik> yeah yeah yeah yeah...
465: [12:36:45] <Pyromanik> I swear O
466: [12:36:56] <Pyromanik> I*'m the last of a dying breed.
467: [12:37:10] <Pyromanik> I'm the only one who parties like this anymore... :(
468: [12:37:14] * Pyromanik goes home
469: [12:37:20] * Pyromanik quit (Quit: leaving)
470: [12:37:57] * micmania1 quit (Ping timeout: 248 seconds)
471: [12:39:22] * Pyromanik has joined #silverstripe
472: [12:39:30] <Pyromanik> PS. it seems to be entirely Kiwi hour on Hauraki.
473: [12:39:55] <Pyromanik> It's pretty good, not sure I want to go home now :<
474: [12:40:01] * violet- has joined #silverstripe
475: [12:40:18] <spronk> haha
476: [12:40:19] <spronk> :D
477: [12:40:25] <spronk> ...i dont have a fucking radio
478: [12:40:25] <spronk> :|
479: [12:40:31] <Pyromanik> Hauraki.co.nz
480: [12:40:36] * violetina quit (Ping timeout: 245 seconds)
481: [12:40:38] <Pyromanik> Shihad atm
482: [12:40:41] <spronk> yusss
483: [12:40:44] <Pyromanik> lies, just finished
484: [12:41:21] <Pyromanik> now to wait 10 hours for the interwebs to tell me what this is.
485: [12:41:40] <Pyromanik> "My Number" - Foals.
486: [12:41:47] <Pyromanik> not so good, time for homes.
487: [12:41:50] <Pyromanik> gg
488: [12:41:52] <Pyromanik> glhf
489: [12:41:53] <Pyromanik> cu
490: [12:41:57] * Pyromanik quit (Client Quit)
491: [12:41:58] <spronk> CHOW
492: [12:42:58] * spronk2 quit (Quit: spronk2)
493: [12:43:23] <andylockran> Getting a weird error - environment specific. Creating a page with one codebase on our dev server allows the page to be created - but doing it on the live environment, and it fails to redirect to the newly created page as the final step. In order to see the newly created page you have to refresh the admin area. Any ideas? no js errors presented.
494: [12:50:09] * micmania1 has joined #silverstripe
495: [13:03:34] * mobiusnz has joined #silverstripe
496: [13:08:19] * mobiusnz quit (Ping timeout: 265 seconds)
497: [13:25:28] * jrthomer has joined #silverstripe
498: [13:26:00] * svandragt quit (Ping timeout: 272 seconds)
499: [13:37:54] <Alexwijn> marvanni: are you there?
500: [13:38:03] <marvanni> ja
501: [13:38:28] <Alexwijn> It's getting very complicated :)
502: [13:38:38] <marvanni> i know
503: [13:38:40] <Alexwijn> I'm trying to get the write function to work
504: [13:38:54] <Alexwijn> "ERROR [Warning]: array_key_exists() expects parameter 2 to be array" When I try to insert
505: [13:39:07] <Alexwijn> I think it got something to do with my validator
506: [13:39:12] <Alexwijn> I'm check if the user already exists
507: [13:39:24] <Alexwijn> But also wondering if this way is worth to spend so many time in
508: [13:39:59] <Alexwijn> Is it not possible to set a custom table name to a DataObject
509: [13:40:00] <marvanni> where does that error come from?
510: [13:40:28] <marvanni> maybe its possible, but using gridfield for something different than DataObjects, is not that easy
511: [13:40:33] <Alexwijn> DataObject.php
512: [13:40:50] <marvanni> I tried to, but that would took to many hours for then
513: [13:40:56] <marvanni> and the stacktrace?
514: [13:41:05] <marvanni> where does that error occur in you own code?
515: [13:41:20] <Alexwijn> http://www.sspaste.com/paste/show/5273ada783b49
516: [13:42:36] <marvanni> seems $this->record is empty
517: [13:43:16] <Alexwijn> http://www.sspaste.com/paste/show/5273ae1d15509
518: [13:43:19] <Alexwijn> Kind a messy code
519: [13:43:48] <marvanni> DB::dontRequireTable($this->class); ?
520: [13:43:56] <marvanni> So ther eis no EmailUser table?
521: [13:43:57] <Alexwijn> Yeah, because it is stored external
522: [13:43:59] <Alexwijn> yup
523: [13:44:12] <Alexwijn> It's stored on the database mailserver
524: [13:44:18] <Alexwijn> And not in the SS database
525: [13:44:23] <marvanni> yeah, but I also still needed the Table for my custom Webservice records
526: [13:44:30] <marvanni> at least with my solution
527: [13:44:34] <Alexwijn> Why?
528: [13:44:56] <marvanni> because thats how the gridfield works
529: [13:45:16] <marvanni> in fact it was the only reason for me to create a DataObject reflecting the remote dataset
530: [13:45:45] <marvanni> but like I said, there might be other ways, but dind;t had the time for that to explore
531: [13:46:49] <Alexwijn> What will be stored in that table?
532: [13:47:05] <Alexwijn> I wish there was a DataObject class that just get everything from a different source
533: [13:47:25] <marvanni> nothing
534: [13:47:56] <marvanni> but it allowed me to use the remote data with the SS ORM, with a little tweaking dfor the CRUD methods
535: [13:48:12] <marvanni> its a bit hacky but it works
536: [13:49:00] <marvanni> when I have time, I might work that out, but there so many edgecases for external data, that it will be hard to abstract things properly
537: [13:49:37] <Alexwijn> I tried https://github.com/nyeholt/silverstripe-external-content
538: [13:49:42] <Alexwijn> But I could not get it to work
539: [13:50:22] <marvanni> thats something different, i think its used for importing external content
540: [13:50:32] <marvanni> no CRUD for external data
541: [13:51:04] <Alexwijn> It also says displaying
542: [13:52:19] <marvanni> yes, after it is imported in the local database
543: [13:52:26] <Alexwijn> hm
544: [13:52:35] <marvanni> there might be another hacky solution for you problem
545: [13:53:24] <marvanni> you might try to update the remote data in onAfterWrite() in the EmailUser class and do a $this->delete() when you wrote the data to the remote table
546: [13:53:47] <Alexwijn> And that is?
547: [13:54:20] <marvanni> in that way you might not need al the code I pasted, but just a plain gridfield, with only a custom list from the remote source
548: [13:54:59] <Alexwijn> I already using the getList function
549: [13:55:02] <marvanni> function onAfterWrite() {parent::onAfterWrite(); //do write data to external database ; $this-delete()}
550: [13:55:02] <Alexwijn> to get the remote data
551: [13:55:09] <marvanni> ok, so thats fine
552: [13:55:13] * catcher has joined #silverstripe
553: [13:55:39] <Alexwijn> hm
554: [13:56:05] <marvanni> fact is, your using gridfield for something it is not build for
555: [13:56:11] <Alexwijn> How to check if the user already exists?
556: [13:57:00] <marvanni> if(!DB::Query("SELECT ID FROM my_remote_table WHERE somefield = 'somevalue'")) ?
557: [13:57:51] <Alexwijn> I mean with the validator
558: [13:58:02] <Alexwijn> Because the user gets inserted correctly
559: [13:58:06] <Alexwijn> Only I cant check if he already exists or not
560: [13:58:48] <marvanni> overload function validate() in EmailUser ?
561: [13:58:55] <Alexwijn> http://www.sspaste.com/paste/show/5273b1c3d64a5
562: [13:58:57] <marvanni> and query the remote db there?
563: [14:01:00] <marvanni> getRecordByEmail gets the remote record?
564: [14:01:30] <Alexwijn> yes
565: [14:01:30] <Alexwijn> $records = DB::query('SELECT mailserver.virtual_users.* FROM mailserver.virtual_users WHERE mailserver.virtual_users.Email = \'' . Convert::raw2sql($email) . '\'');
566: [14:01:30] <Alexwijn> return $records->next();
567: [14:01:36] <marvanni> should work as far as I can see
568: [14:02:08] <marvanni> ff roken...
569: [14:02:30] <Alexwijn> Ok...ga ff koffie halen :)
570: [14:04:03] * mobiusnz has joined #silverstripe
571: [14:05:13] * UndefinedOffset quit (Quit: Leaving.)
572: [14:08:44] * mobiusnz quit (Ping timeout: 265 seconds)
573: [14:08:59] <marvanni> back
574: [14:09:09] * UndefinedOffset has joined #silverstripe
575: [14:10:11] * zippy__ quit (Ping timeout: 245 seconds)
576: [14:11:08] <NobrainerWeb> Trying to get a shop working on SilverStripe 3.1.1 - installed ss-shop from burnbright, but i can't figure out what payment module/version i need to download
577: [14:11:33] <NobrainerWeb> when i download and use https://github.com/silverstripe-labs/silverstripe-payment/tree/1.0 i get this error Fatal error: Call to undefined method Payment::site_currency() in /Applications/MAMP/htdocs/ss-shop-test.dev/shop/code/products/Product.php on line 227
578: [14:11:53] <NobrainerWeb> Anyone that can tell me what version of payment i need to use?
579: [14:16:19] <Alexwijn> Back, aswell
580: [14:16:51] <Alexwijn> marvanni: I have been thinking...What if I just switch from database beforeWrite and return at afterWrite
581: [14:18:57] <Alexwijn> What is the read function of DataObject?
582: [14:19:05] <Alexwijn> Is there a beforeRead and afterRead function
583: [14:20:49] * NobrainerWeb quit (Quit: NobrainerWeb)
584: [14:21:31] <marvanni> no
585: [14:21:32] * ARNHOE quit (Read error: No route to host)
586: [14:21:38] <Alexwijn> Damn
587: [14:21:49] * ARNHOE has joined #silverstripe
588: [14:22:28] <Alexwijn> Maybe I need to work on a remote DataObject class
589: [14:22:30] <marvanni> I get the record in http://sspaste.com/paste/show/52738f4f7d6b0
590: [14:22:44] <marvanni> $record = $this->getSoapRecord($gridField, $request->param('DataObject'), $request->param("ID"));
591: [14:22:54] <Alexwijn> That is just one record
592: [14:22:58] <marvanni> yes
593: [14:23:04] <marvanni> for the detail view
594: [14:23:05] <Alexwijn> What function will you use for to get all records
595: [14:23:22] * zippy__ has joined #silverstripe
596: [14:23:41] <marvanni> with a Component implements GridField_DataManipulator
597: [14:23:51] <marvanni> public function getManipulatedData(GridField $gridField, SS_List $dataList) {
598: [14:24:00] <marvanni> if($client = $gridField->getClient()) {
599: [14:24:00] <marvanni> $modelClass = $this->getSelectedWebserviceDataObject();
600: [14:24:05] <Alexwijn> So override a lot of classes?
601: [14:24:07] <Alexwijn> you*
602: [14:24:28] <marvanni> yes
603: [14:24:41] <marvanni> not override, create custom components
604: [14:24:50] <Alexwijn> I know, you extend
605: [14:25:18] * DesignerX quit (Ping timeout: 240 seconds)
606: [14:26:17] <marvanni> thats so nice with the GridField. its does a very few things very well, the rest is up to the developer
607: [14:26:55] <marvanni> and the Component system is very powerfull, but you have to dive in the code to see how thinks work
608: [14:27:10] <marvanni> but yes, it is for DataObjects
609: [14:43:37] <Alexwijn> marvanni: Fixed the validation problem
610: [14:43:51] <Alexwijn> It should be return new EmailUserValidator('Email');
611: [14:43:56] <Alexwijn> Not return new EmailUserValidator();
612: [14:44:59] <Alexwijn> I hope Silverstripe fixed their PHPDocs someday
613: [14:45:07] <Alexwijn> My IDE is freaking out about it
614: [14:45:40] <Alexwijn> "Expected error, got string" Oh dear!
615: [14:49:49] <Alexwijn> Why cant't you set the value on the function getCMSFields
616: [14:49:52] <Alexwijn> of a field
617: [14:51:20] <marvanni> because the record is loaded in form->loadDataFrom()
618: [14:51:30] <Alexwijn> Anything I can do about it?
619: [14:51:32] <marvanni> you might try it in the contructor...
620: [14:51:35] <Alexwijn> Because I want to empty the password field
621: [14:51:39] <marvanni> or setField()
622: [14:52:51] <Alexwijn> I need to change the field not a record
623: [14:53:27] <marvanni> function setSomeField() {$this->SomeField = ''}
624: [14:53:36] <marvanni> i think, its on top of my head
625: [14:53:46] <marvanni> in your DO
626: [14:53:56] <Alexwijn> updateCMSFields?
627: [14:55:05] <Alexwijn> Hm, does function does not exist anymore
628: [14:57:37] <marvanni> updateCMSFields works only in DataExtensions
629: [14:57:43] <Alexwijn> Ah ok
630: [14:58:16] <Alexwijn> public function setPassword($value)
631: [14:58:18] <Alexwijn> Did not work
632: [14:59:11] <marvanni> where did you put it?
633: [14:59:42] <Alexwijn> In the dataobject
634: [14:59:51] <Alexwijn> I found an other sollution
635: [15:00:00] <Alexwijn> I just empty the value in getList
636: [15:00:30] <Alexwijn> I don't want to remember the password
637: [15:00:31] <Alexwijn> It's a hash I can't work with in SS
638: [15:07:45] <marvanni> maybe you can just set the method Password(){return '';} ?
639: [15:07:59] <Alexwijn> hm
640: [15:08:02] <Alexwijn> It fine now
641: [15:10:33] <Alexwijn> Yeah, love the PHPDoc of Silverstripe.
642: [15:10:43] <Alexwijn> "Expected The, got String"
643: [15:20:03] * jrthomer quit (Ping timeout: 260 seconds)
644: [15:23:22] * jrthomer has joined #silverstripe
645: [15:23:32] <Alexwijn> How to get the last inserted id after DB::query?
646: [15:23:38] <Alexwijn> increment id
647: [15:23:41] * henk1 has joined #silverstripe
648: [15:24:08] * henk1 has left #silverstripe
649: [15:25:17] <marvanni> DB::getGeneratedID($baseTable);
650: [15:29:48] <Alexwijn> Ok thanks, got that fixed
651: [15:29:54] <Alexwijn> I'm only stuck at the validation again
652: [15:30:09] <Alexwijn> Because now I can't save a record because he thinks that it already exists
653: [15:33:38] <Alexwijn> Crap, forgot to implement the delete functionality:)
654: [15:35:49] <Alexwijn> Ok done!
655: [15:36:39] <marvanni> good
656: [15:44:47] <catcher> Anyone here use the widgets module for sidebars?
657: [15:44:58] <Alexwijn> I use widgets
658: [15:46:40] <catcher> Alexwijn, pretty stable & usable?
659: [15:46:46] <Alexwijn> Yeah
660: [15:47:08] <Alexwijn> I used it for a customer that wants a Contact Form on every page
661: [15:47:19] <catcher> Is there anything in place to replicate existing widget content?
662: [15:47:33] <Alexwijn> Like inheriting?
663: [15:47:36] <catcher> i.e. let's say I create a Content widget, and it should appear on a bunch of pages
664: [15:47:41] <Alexwijn> yeah
665: [15:47:42] <Alexwijn> wait
666: [15:47:58] <catcher> So same WidgetID related to multiple pages
667: [15:48:01] <Alexwijn> http://www.sspaste.com/paste/show/5273cb59a4a3a
668: [15:48:15] <Alexwijn> And add the InheritWidgetArea into the page db
669: [15:48:21] <Alexwijn> This code goes in Page.php
670: [15:48:41] <Alexwijn> And use $WidgetAreaView in a template
671: [15:49:26] <catcher> So nothing out of the box?
672: [15:49:54] <Alexwijn> Well this example comes orginal from the wdigets code
673: [15:50:25] <catcher> ah, funny, I did something almost exactly like that months ago. I guess it must not make sense to build it in.
674: [15:50:26] <catcher> ty
675: [15:50:38] <Alexwijn> widgets/code/extension/WidgetPageExtension.php
676: [15:50:50] <Alexwijn> :)
677: [15:50:50] <Alexwijn> Np
678: [15:51:09] <Alexwijn> Does anyone know how to replace "Show Specification for ModelName"?
679: [15:51:20] <Alexwijn> At a grid
680: [15:51:20] <Alexwijn> I want to translate it
681: [15:57:22] <Alexwijn> marvanni: How do you fix the issue: "GridField doesn't have a modelClassName, so it doesn't know the columns of this grid." When there are no rows to be displayed?
682: [15:59:59] * Colin[pi] has joined #silverstripe
683: [16:01:09] * UndefinedOffset quit (Ping timeout: 246 seconds)
684: [16:03:36] * UndefinedOffset has joined #silverstripe
685: [16:05:28] * mobiusnz has joined #silverstripe
686: [16:09:50] * mobiusnz quit (Ping timeout: 240 seconds)
687: [16:14:26] * NoobNL_ quit (Quit: Page closed)
688: [16:14:54] <marvanni> setModelClassName() ?
689: [16:21:06] * Colin[pi] quit (Ping timeout: 246 seconds)
690: [16:30:29] * ARNHOE quit (Remote host closed the connection)
691: [16:40:50] * Shrike_Finland quit (Quit: Leaving.)
692: [17:14:43] * Marvanni_ has joined #silverstripe
693: [17:17:04] <Marvanni_> brr
694: [17:17:51] * noobie has joined #silverstripe
695: [17:18:20] * noobie has left #silverstripe
696: [17:19:02] * Noob_NL has joined #silverstripe
697: [17:22:47] * ARNHOE has joined #silverstripe
698: [18:06:52] * mobiusnz has joined #silverstripe
699: [18:11:16] * mobiusnz quit (Ping timeout: 260 seconds)
700: [18:20:21] * Alexwijn quit ()
701: [18:26:10] * mobiusnz has joined #silverstripe
702: [18:50:47] * kerosene has joined #silverstripe
703: [18:53:35] * kerosene quit (Client Quit)
704: [18:53:53] * kerosene has joined #silverstripe
705: [19:06:53] * SightUnseen has joined #silverstripe
706: [19:06:58] * AlphaCactus quit (Remote host closed the connection)
707: [19:07:27] * SightUnseen has left #silverstripe
708: [19:07:38] * jrthomer quit (Read error: Connection reset by peer)
709: [19:08:12] * jrthomer has joined #silverstripe
710: [19:08:15] * SightUnseen has joined #silverstripe
711: [19:08:16] * SightUnseen has left #silverstripe
712: [19:11:21] * AlphaCactus has joined #silverstripe
713: [19:31:08] <guzzlefry> Does anyone else talk to themselves a lot when coding? >_>
714: [19:33:53] <Marvanni_> if you even knew
715: [19:34:25] <ec8or_> i've moved to a shared office so no :)
716: [19:34:43] <guzzlefry> ah, I work from home so.. :P
717: [19:34:50] <guzzlefry> No one around to think I'm crazy.
718: [19:34:55] * UndefinedOffset quit (Quit: Leaving.)
719: [19:46:16] <AlphaCactus> like a sailor
720: [19:46:38] <guzzlefry> So much cursing at SilverStripe.. :P
721: [19:47:17] <AlphaCactus> could be at myself. or co workers. or windows or osx or teh phone
722: [19:57:29] * Noob_NL quit (Ping timeout: 250 seconds)
723: [20:00:30] <Marvanni_> does anyone knows where log level INFO : 6 Informational: informational messages normally is written?
724: [20:39:57] * DigNZ has joined #silverstripe
725: [20:40:27] * DigNZ quit (Client Quit)
726: [20:53:46] * zfmf has left #silverstripe
727: [20:54:46] * mobiusnz quit (Quit: Leaving.)
728: [21:07:12] * ARNHOE quit (Remote host closed the connection)
729: [21:36:29] * Liquide has joined #silverstripe
730: [21:40:49] * mobiusnz has joined #silverstripe
731: [21:51:17] * mobiusnz quit (Quit: Leaving.)
732: [21:51:19] * catcher quit (Quit: Leaving)
733: [22:17:33] * gelignite quit (Quit: http://bit.ly/nkczDT)
734: [22:40:48] * ARNHOE has joined #silverstripe
735: [22:42:04] * Liquide quit ()
736: [22:48:49] * willr has joined #silverstripe
737: [22:50:22] <willr> ss23 hows the hangover?
738: [22:55:44] * UncleCheese has joined #silverstripe
739: [22:56:11] * ARNHOE quit ()
740: [23:01:31] <guzzlefry> willr: I'm guessing he's still in bed. :P
741: [23:02:19] <willr> enough said
742: [23:07:11] <guzzlefry> So, I had to take a Courses object and subclass it from a new Products class.
743: [23:07:16] <guzzlefry> Which broke the database.
744: [23:07:33] <guzzlefry> Trying to think of a sane way to repair that as there's translation data tied to the courses...
745: [23:08:28] * jrthomer quit (Read error: Connection reset by peer)
746: [23:09:46] * jrthomer has joined #silverstripe
747: [23:10:05] <willr> define broke?
748: [23:10:07] * jrthomer quit (Read error: Connection reset by peer)
749: [23:10:43] * jrthomer has joined #silverstripe
750: [23:13:29] <AlphaCactus> finally weekend for meeeee
751: [23:15:35] * AlphaCactus quit (Quit: kthxbai)
752: [23:16:47] * UncleCheese quit (Quit: UncleCheese)
753: [23:20:09] <guzzlefry> willr: I think the import fails. Trying to remember.
754: [23:27:52] <guzzlefry> Trying to figure out how subclasses are represented in the database...
755: [23:29:26] <guzzlefry> Looks like the data just gets thrown in with the base dataobject's table?
756: [23:42:30] <guzzlefry> ugh, this is a mess
757: [23:45:26] <willr> yep if you extend a class, the only stuff in the new table is if that subclass defined more database fields
758: [23:45:59] <willr> The superclass table will have a 'ClassName' column that you can use to see what that row is actually an instance of
759: [23:46:51] <guzzlefry> ah yeah
760: [23:46:54] <guzzlefry> well what I did was...
761: [23:47:26] <guzzlefry> basically turned a base class into a subclass.
762: [23:48:06] <guzzlefry> Is that going to break a lot of relations, or is the ORM smart enough to see CourseID and check the parent class's ID?
763: [23:48:19] <guzzlefry> Course being a subclass of Product
764: [23:50:45] <willr> Turning a base class into a subclass would be alright. If you moved fields from the base class to the subclass you may have to do a few things
765: [23:51:41] <guzzlefry> willr: Only primitives were moved. That should be okay, right?
766: [23:55:13] <willr> primitives?
767: [23:56:10] <guzzlefry> non-relations
768: [23:57:20] <willr> Haven't tried lately with 3.0 and they can cause issues. Removing it from the base class will rename the column to _obsoleteColumnName, you'll need to copy that column to your new subclass table
769: [23:57:59] <guzzlefry> ok, thanks
770: [23:58:32] <willr> if you haven't got existing data then you don't need to worry
771: [23:59:29] <guzzlefry> I do. :/
772: [23:59:47] <guzzlefry> yay for major refactors :P

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