#silverstripe IRC Log

IRC log for 13 April 2013

All timestamps are in UTC.

1: [00:05:00] * Error404NotFound quit (Ping timeout: 245 seconds)
2: [00:18:00] * Error404NotFound has joined #silverstripe
3: [00:20:00] * azureKnight quit (Quit: azureKnight)
4: [00:27:00] * SightUnseen has joined #silverstripe
5: [00:32:00] * SightUnseen quit (Ping timeout: 264 seconds)
6: [00:51:00] * mobiusnz has joined #silverstripe
7: [00:55:00] * mobiusnz quit (Read error: No route to host)
8: [00:55:00] * Error404NotFound quit (Ping timeout: 245 seconds)
9: [00:57:00] * SightUnseen has joined #silverstripe
10: [00:58:00] * mobiusnz has joined #silverstripe
11: [01:00:00] * mobiusnz1 quit (Read error: Connection reset by peer)
12: [01:00:00] * mobiusnz1 has joined #silverstripe
13: [01:00:00] * mobiusnz2 has joined #silverstripe
14: [01:01:00] * mobiusnz1 has joined #silverstripe
15: [01:01:00] * mobiusnz quit (Read error: Connection reset by peer)
16: [01:02:00] * SightUnseen quit (Ping timeout: 252 seconds)
17: [01:02:00] * mobiusnz2 quit (Read error: Connection reset by peer)
18: [01:05:00] * mobiusnz has joined #silverstripe
19: [01:05:00] * mobiusnz1 quit (Read error: No route to host)
20: [01:14:00] * mobiusnz2 has joined #silverstripe
21: [01:14:00] * mobiusnz quit (Read error: Connection reset by peer)
22: [01:14:00] * mobiusnz1 has joined #silverstripe
23: [01:18:00] * mobiusnz1 quit (Read error: No route to host)
24: [01:22:00] * mobiusnz has joined #silverstripe
25: [01:22:00] * mobiusnz2 quit (Read error: Connection reset by peer)
26: [01:28:00] * SightUnseen has joined #silverstripe
27: [01:33:00] * SightUnseen quit (Ping timeout: 256 seconds)
28: [01:38:00] * mobiusnz1 has joined #silverstripe
29: [01:38:00] * mobiusnz quit (Read error: Connection reset by peer)
30: [01:42:00] * mobiusnz1 quit (Read error: Connection reset by peer)
31: [01:42:00] * mobiusnz has joined #silverstripe
32: [01:59:00] * SightUnseen has joined #silverstripe
33: [02:04:00] * SightUnseen quit (Ping timeout: 256 seconds)
34: [02:15:00] * mobiusnz quit (Read error: Connection reset by peer)
35: [02:30:00] * SightUnseen has joined #silverstripe
36: [02:34:00] * SightUnseen quit (Ping timeout: 264 seconds)
37: [02:59:00] * willr_ quit (Quit: willr_)
38: [03:00:00] * SightUnseen has joined #silverstripe
39: [03:04:00] * howardgrigg has joined #silverstripe
40: [03:05:00] * SightUnseen quit (Ping timeout: 276 seconds)
41: [03:16:00] * cloph_away1 has joined #silverstripe
42: [03:17:00] * cloph_away quit (Ping timeout: 256 seconds)
43: [03:22:00] * simon_w|air has joined #silverstripe
44: [03:30:00] * SightUnseen has joined #silverstripe
45: [03:31:00] * maknz quit (Read error: Connection reset by peer)
46: [03:32:00] * SightUnseen has left #silverstripe
47: [04:03:00] * SightUnseen has left #silverstripe
48: [04:03:00] * SightUnseen has joined #silverstripe
49: [05:12:00] * simon_w|air quit (Quit: This computer has gone to sleep)
50: [05:27:00] * Error404NotFound has joined #silverstripe
51: [05:39:00] * simon_w|air has joined #silverstripe
52: [06:00:00] * Error404NotFound quit (Disconnected by services)
53: [06:00:00] * Err404NotFound has joined #silverstripe
54: [06:02:00] * simon_w|air quit (Quit: This computer has gone to sleep)
55: [06:18:00] * Err404NotFound quit (Read error: Connection reset by peer)
56: [06:18:00] * ^pH has joined #silverstripe
57: [06:19:00] * Err404NotFound has joined #silverstripe
58: [06:22:00] * ^pH- quit (Ping timeout: 276 seconds)
59: [06:27:00] * simon_w|air has joined #silverstripe
60: [06:38:00] * simon_w|air quit (Quit: This computer has gone to sleep)
61: [06:50:00] * joelpittet quit (Ping timeout: 245 seconds)
62: [06:58:00] * joelpittet has joined #silverstripe
63: [07:18:00] * simon_w|air has joined #silverstripe
64: [07:24:00] * simon_w|air quit (Quit: This computer has gone to sleep)
65: [07:35:00] * zfmf has joined #silverstripe
66: [07:40:00] * Shrike_Finland quit (Quit: Leaving.)
67: [07:42:00] * Shrike_Finland has joined #silverstripe
68: [08:02:00] * simon_w has joined #silverstripe
69: [08:02:00] * simon_w quit (Quit: Leaving)
70: [08:08:00] * joelpittet quit (Remote host closed the connection)
71: [08:17:00] * zfmf has left #silverstripe
72: [08:24:00] * howardgrigg quit (Remote host closed the connection)
73: [08:37:00] * SightUnseen has joined #silverstripe
74: [08:37:00] * SightUnseen has left #silverstripe
75: [08:39:00] * howardgrigg has joined #silverstripe
76: [09:12:00] * Err404NotFound quit (Read error: Connection reset by peer)
77: [09:20:00] * zfmf has joined #silverstripe
78: [09:28:00] * Error404NotFound has joined #silverstripe
79: [09:38:00] * ikuen has joined #silverstripe
80: [09:42:00] * ikuen quit (Client Quit)
81: [09:51:00] <elgrodo> but I cannot figure out how to populate the extra field, in this case a season
82: [09:51:00] <elgrodo> with many many extra fields what is the correct way to create the join and populate that field
83: [09:51:00] <elgrodo> I have a list of Teams belonging many many to a Division (that is working)
84: [09:52:00] <elgrodo> (the idea of the model being that Teams belonging to a Division can be ascertained for any given season, allowing promotion and relegation)
85: [09:55:00] * wmk has joined #silverstripe
86: [09:59:00] <simon_w> elgrodo, $list->add($object, array('ExtraField' => $value))
87: [10:19:00] * Error404NotFound quit (Ping timeout: 245 seconds)
88: [10:54:00] * zfmf has left #silverstripe
89: [11:05:00] * UncleCheese has joined #silverstripe
90: [11:06:00] * priithansen has joined #silverstripe
91: [11:10:00] * lx-berlin_ has joined #silverstripe
92: [11:14:00] <UncleCheese> hi
93: [11:14:00] <wmk> Hi UncleCheese
94: [11:14:00] <wmk> sent you some issues for silversmith today
95: [11:21:00] <Marvanni> It is leaving excessive whitespace in the headsection when I use that...?
96: [11:21:00] <wmk> for e.g. adding $searchable_fields i only have to add some stuff to _specs.yml and to the ComponentCode.bedrock, am i right? Same like Summary
97: [11:21:00] <Marvanni> Is the prefered way of adding theme javascript to use require javascript in the Page.ss head?
98: [11:22:00] <simon_w> Marvanni, yes, and so what?
99: [11:23:00] <simon_w> So put them somewhere else? Or all on one line?
100: [11:23:00] <Marvanni> Well I do look at the source code, and its ugly ;)
101: [11:23:00] <simon_w> *it's
102: [11:23:00] <Marvanni> My Dutch language handicap...
103: [11:24:00] <Marvanni> Yes I can do that, but I prefer to conform code standards where possible
104: [11:25:00] <simon_w> There's no standards for location of require calls
105: [11:28:00] <simon_w> They could be important
106: [11:28:00] <wmk> maybe template renderer should/could strip blank lines?
107: [11:29:00] <simon_w> <pre>
108: [11:29:00] <Marvanni> In the Head?
109: [11:29:00] <wmk> simon_w, maybe strip only in live-mode, comments are also stripped.
110: [11:29:00] <simon_w> They could be important
111: [11:29:00] <wmk> e.g?
112: [11:29:00] <Marvanni> I used to add them in Page init, but everytime there is that depricated Note....
113: [11:30:00] <simon_w> There shouldn't be a deprecation notice
114: [11:30:00] <wmk> simon_w, ok, thanks for the info.
115: [11:30:00] <simon_w> Who said anything about only in the head?
116: [11:31:00] <Marvanni> its not the notice, but the Note comment above Page_Controller::init()
117: [11:32:00] <Marvanni> "Note: you should use SS template require tags inside your templates "
118: [11:33:00] <simon_w> Well, what you really should be doing is Requirements::combine_files('site.css', array('themes/theme/css/layout.css', ...))
119: [11:34:00] <Marvanni> true
120: [11:34:00] * lx-berlin_ quit (Ping timeout: 245 seconds)
121: [11:38:00] * howardgrigg quit (Remote host closed the connection)
122: [11:38:00] * howardgrigg has joined #silverstripe
123: [11:38:00] * SphereSilver has joined #silverstripe
124: [11:39:00] * howardgr_ has joined #silverstripe
125: [11:39:00] * howardgrigg quit (Read error: Connection reset by peer)
126: [11:49:00] <elgrodo> simon_w: Coding stalled by Songkran water fights. Inserts working now :)
127: [11:49:00] * C10ne has joined #silverstripe
128: [11:51:00] * howardgrigg has joined #silverstripe
129: [11:51:00] * howardgr_ quit (Remote host closed the connection)
130: [11:52:00] * UncleCheese quit (Quit: UncleCheese)
131: [11:56:00] * howardgrigg quit (Ping timeout: 240 seconds)
132: [11:57:00] * Error404NotFound has joined #silverstripe
133: [12:07:00] * howardgrigg has joined #silverstripe
134: [12:13:00] * lx-berlin_ has joined #silverstripe
135: [12:19:00] * howardgrigg has joined #silverstripe
136: [12:19:00] * howardgrigg quit (Remote host closed the connection)
137: [12:24:00] * howardgrigg quit (Ping timeout: 262 seconds)
138: [12:30:00] * lx-berlin_ quit (Ping timeout: 245 seconds)
139: [12:36:00] * SphereSilver is now known as SphereSleepy
140: [12:45:00] * UncleCheese has joined #silverstripe
141: [12:49:00] * UncleCheese quit (Ping timeout: 252 seconds)
142: [12:52:00] * Zauberfisch has joined #silverstripe
143: [13:26:00] * UncleCheese has joined #silverstripe
144: [13:32:00] * SphereSleepy is now known as SphereSilver
145: [13:40:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
146: [14:01:00] * zfmf has joined #silverstripe
147: [14:52:00] <Marvanni> Any way to know in the templates when I loop over a Menu with a nested include, at what level i am looping?
148: [14:54:00] * UncleCheese quit (Quit: UncleCheese)
149: [15:09:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
150: [15:10:00] * UncleCheese has joined #silverstripe
151: [15:11:00] * gelignite has joined #silverstripe
152: [15:14:00] * joelpitt_ has joined #silverstripe
153: [15:29:00] <Zauberfisch> Marvanni if its an include you can pass a variable to it
154: [15:30:00] <Zauberfisch> <% loop $Level(1) %><% include Menu MyLevel=1 %><% end_loop %><% loop $Level(2) %><% include Menu MyLevel=2 %><% end_loop %>
155: [15:30:00] <Zauberfisch> inside the Includes/Menu.ss you can then use $MyLevel
156: [15:37:00] * priithansen quit (Quit: priithansen)
157: [15:39:00] <Marvanni> thanks!
158: [15:39:00] <Marvanni> hm that might work...
159: [16:06:00] <SphereSilver> Does anyone know how I can add an onSelect to a datepicker field in SS?
160: [16:12:00] <Zauberfisch> but don't ask me how
161: [16:12:00] <Zauberfisch> SphereSilver I am certain you can
162: [16:12:00] <SphereSilver> That's helpful :P
163: [16:12:00] <Zauberfisch> :P
164: [16:13:00] <Zauberfisch> 2) the datefield is not initialized onMatch but rather onclick
165: [16:13:00] <Zauberfisch> 1) the javascript that calls the datepicker is inside the entwine namespace "ss"
166: [16:13:00] <Zauberfisch> well, 2 things you should know:
167: [16:15:00] <SphereSilver> I only need to add a callback on selecting a date
168: [16:16:00] <Zauberfisch> how about just hooking into onchange of the input?
169: [16:16:00] <SphereSilver> But it's not calling back :/
170: [16:16:00] <SphereSilver> (I don't want a submit-button)
171: [16:17:00] <SphereSilver> Not doing bupkiss :/
172: [16:19:00] * ^pH- has joined #silverstripe
173: [16:19:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
174: [16:20:00] <SphereSilver> Then I'm afraid I'm going to have to go with the last option. A submit button :(
175: [16:20:00] <Zauberfisch> hmm, sorry, no idea
176: [16:20:00] * howardgrigg has joined #silverstripe
177: [16:23:00] * ^pH quit (Ping timeout: 276 seconds)
178: [16:24:00] * howardgrigg quit (Ping timeout: 245 seconds)
179: [16:39:00] * Zauberfisch_ has joined #silverstripe
180: [16:43:00] * Zauberfisch quit (Ping timeout: 245 seconds)
181: [16:52:00] * priithansen has joined #silverstripe
182: [16:52:00] * zfmf quit (Ping timeout: 245 seconds)
183: [17:03:00] * UncleCheese quit (Quit: UncleCheese)
184: [17:05:00] * UncleCheese has joined #silverstripe
185: [17:07:00] * joelpitt_ quit (Remote host closed the connection)
186: [17:07:00] * joelpittet has joined #silverstripe
187: [17:10:00] * ZauberfischIPad has joined #silverstripe
188: [17:13:00] * UncleCheese quit (Quit: UncleCheese)
189: [17:14:00] <ss23> pong
190: [17:14:00] <SphereSilver> pong
191: [17:14:00] <ZauberfischIPad> ping
192: [17:19:00] * ZauberfischIPad quit (Ping timeout: 264 seconds)
193: [17:21:00] <ss23> I like how after saying ping, he has a ping timeout
194: [17:33:00] <SphereSilver> AD
195: [17:34:00] * zfmf has joined #silverstripe
196: [17:35:00] <SphereSilver> :D
197: [17:40:00] * zfmf quit (Ping timeout: 260 seconds)
198: [17:45:00] * joelpittet quit (Remote host closed the connection)
199: [17:45:00] * ZauberfischIPad has joined #silverstripe
200: [17:46:00] * ZauberfischIPad quit (Remote host closed the connection)
201: [17:46:00] * joelpittet has joined #silverstripe
202: [17:46:00] * ZauberfischIPad has joined #silverstripe
203: [17:46:00] * ZauberfischIPad quit (Remote host closed the connection)
204: [20:01:00] * wmk quit (Quit: nice to meet you ;))
205: [21:16:00] * joelpittet quit (Remote host closed the connection)
206: [22:11:00] <Zauberfisch_> ss23 ^^
207: [22:12:00] <ss23> waaaat
208: [22:12:00] <ss23> I see
209: [22:12:00] <Zauberfisch_> well, stupid ipad ... :/ this was the only good looking IRC client, but it can only be connected as long as its open, ence I minimize it dissconnects
210: [22:12:00] <ss23> lol
211: [22:13:00] <simon_w> Oh boohoo :p
212: [22:13:00] <Zauberfisch_> well, yeah. I dislike how iOS apps work
213: [22:13:00] <simon_w> Well, yeah. That's how iOS apps work
214: [22:14:00] <ss23> If it makes you feel any better, only simon_w likes anything about *apple*
215: [22:14:00] <ss23> (those are wildcards, not emphasis)
216: [22:15:00] <ss23> lol
217: [22:15:00] <simon_w> mmm, apples
218: [22:16:00] <simon_w> Being case sensitive and all that
219: [22:16:00] <simon_w> Also, your wildcards kinda failed :p
220: [22:17:00] <ss23> simple bash problem
221: [22:17:00] <ss23> simon_w: Wanna help me first?
222: [22:17:00] <ss23> WAIT
223: [22:17:00] <simon_w> I supposed I could
224: [22:17:00] <ss23> However, I need to put in raw hex
225: [22:17:00] <ss23> ./program "stuff here" is how I want to run a program
226: [22:17:00] <simon_w> No excuse :p
227: [22:17:00] <simon_w> And I'm about to go out!
228: [22:17:00] <ss23> It's 10:17am and I haven't slept yet!
229: [22:17:00] <ss23> Whatever
230: [22:17:00] <ss23> lol
231: [22:18:00] <ss23> What do
232: [22:18:00] <ss23> So normally I use like: ./program `perl -e 'print "foo"'`
233: [22:18:00] <ss23> However, in this case, it's like
234: [22:18:00] <ss23> ./program `perl -e 'print "foo bar"'`
235: [22:18:00] <ss23> Which is like running: ./program foo bar
236: [22:18:00] <ss23> However I need to run: ./program "foo bar"
237: [22:18:00] <simon_w> ./program "`perl blah blah`"?
238: [22:19:00] <ss23> WEll, if I go down that route, I end up with
239: [22:19:00] <ss23> Thats a lot more escaping that I would like to be doing
240: [22:19:00] <simon_w> ARG=$(perl -e '...') ./program "$ARG"
241: [22:19:00] * Motoservo quit (Quit: Motoservo)
242: [22:19:00] <ss23> ./program "`perl -e 'print \"%01\\\$x
243: [22:20:00] <ss23> (As you can tell, I am a noob, simon_w :<)
244: [22:20:00] <ss23> Works, and I think I might use that, but can you do that from gdb, simon_w? I want to be changing the arguments I run it easily within gdb
245: [22:21:00] <simon_w> Depends on how much of a shell gdb has
246: [22:21:00] <ss23> Enviroment variables better solution than that hell of escaping
247: [22:21:00] <ss23> Ah k, I will play around
248: [22:22:00] * Motoservo has joined #silverstripe
249: [22:22:00] <ss23> Thanks, simon_w
250: [22:30:00] * joelpittet has joined #silverstripe
251: [22:34:00] * joelpittet has joined #silverstripe
252: [22:34:00] * joelpittet quit (Remote host closed the connection)
253: [22:50:00] * Jakx has joined #silverstripe
254: [22:50:00] <Jakx> yo
255: [22:50:00] <Jakx> is the settings section in the CMS a class ModelAdmin?
256: [22:51:00] <Jakx> simon_w, might be able to answer that
257: [22:52:00] <Zauberfisch|idle> depends on what exactly you want to do
258: [22:52:00] <Jakx> Zauberfisch|idle, thanks. So if I was to replicate this I should use LeftAndMain also?
259: [22:52:00] <Zauberfisch|idle> Jakx no
260: [22:52:00] <Zauberfisch|idle> its a normal LeftAndMain
261: [22:52:00] <Zauberfisch|idle> check the SecurityAdmin class
262: [22:53:00] <ss23> WHEEDLE IS BACK
263: [22:53:00] <Zauberfisch|idle> LeftAndMain is the base class
264: [22:53:00] <Zauberfisch|idle> ModelAdmin extends LeftAndMain
265: [22:53:00] <Zauberfisch|idle> all admin areas extend LeftAndMain
266: [22:53:00] <Jakx> Zauberfisch|idle, just trying to think of a convention to add custom settings to the cms that are global to the site, without extending the security tab
267: [22:54:00] <Zauberfisch|idle> ModelAdmin is designed to profide a fast and easy way to get tables in admin
268: [22:54:00] <Zauberfisch|idle> if you need tables then go with ModelAdmin
269: [22:54:00] <Zauberfisch|idle> if you need a lot of custom stuff ModelAdmin might be to limited for you
270: [22:54:00] <Jakx> Zauberfisch|idle, at this point I'm just doing simple stuff. So I might give both a shot an see which suits!
271: [22:54:00] <Zauberfisch|idle> Jakx glogal settings, why not put them in SiteConfig?
272: [22:55:00] <Jakx> Zauberfisch|idle, that's where I normally put them yeah, this time I'm thinking a dedicated section would be better
273: [22:56:00] <Zauberfisch|idle> Jakx how about copying the code of siteconfig?
274: [22:57:00] <Jakx> Zauberfisch|idle, I looked at SiteConfig and it's a DO. So thought that was the wrong track?
275: [22:57:00] <Zauberfisch|idle> Jakx well, you can change the part where you save that info
276: [22:58:00] <Zauberfisch|idle> but the general way of how to build the admin can by take from siteconfig
277: [22:59:00] <Jakx> Zauberfisch|idle, is it the getCMSFields() method in SiteConfig that creates the settings section in the CMS?
278: [22:59:00] <Jakx> Zauberfisch|idle, I appreciate your effort. But it's still unclear how to achieve what I'm hoping to do...
279: [23:00:00] <ss23> tfw typo costs you 2 hours of debugging
280: [23:00:00] <Zauberfisch|idle> ah, well, sorry, I mean not SiteConfig it self, but rather the Admin that uses SiteConfig
281: [23:00:00] <Zauberfisch|idle> its the class CMSSettingsController
282: [23:01:00] <Zauberfisch|idle> https://github.com/silverstripe/silverstripe-cms/blob/3.0/code/controllers/CMSSettingsController.php
283: [23:01:00] <Jakx> Zauberfisch|idle, perfect. That's exactly what I was looking for. Cheers!
284: [23:03:00] <Jakx> ss23, I know that feel man :( ><
285: [23:16:00] * SphereSilver quit (Ping timeout: 245 seconds)
286: [23:24:00] <Jakx> can you DataObject::create()->write(); ?
287: [23:29:00] * joelpittet quit (Remote host closed the connection)
288: [23:31:00] * UncleCheese has joined #silverstripe
289: [23:45:00] <Zauberfisch_> yes
290: [23:46:00] <Zauberfisch_> if its int, its the ID of the dataobject
291: [23:46:00] * Zauberfisch_ is now known as Zauberfisch
292: [23:46:00] <Zauberfisch_> but write() returns int, not the object
293: [23:46:00] <Zauberfisch_> or boolean, I am not sire
294: [23:46:00] <Zauberfisch_> if its boolean, its a success message
295: [23:48:00] * UncleCheese quit (Quit: UncleCheese)
296: [23:57:00] * robert__ has joined #silverstripe
297: [23:58:00] * robert__ is now known as robert_

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