#silverstripe IRC Log

IRC log for 31 January 2013

All timestamps are in UTC.

1: [00:03:00] * SMaction quit ()
2: [00:05:00] * liam has joined #silverstripe
3: [00:07:00] * Emil_Blume quit (Quit: Leaving.)
4: [00:07:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
5: [00:07:00] * entinteractive has joined #silverstripe
6: [00:08:00] <entinteractive> is there a way to proxy the assets folder completely, so ss sees no difference
7: [00:08:00] <entinteractive> hey guys, quick check to see if anyone has a quick pathway to send me down regarding uploading images to amazon S3 after being resized
8: [00:10:00] * micmania1 quit (Ping timeout: 245 seconds)
9: [00:14:00] <Marvanni> Why does the Tree Menu uses singular_name and the generated css selector the PageClassName?
10: [00:14:00] * mwm__ has joined #silverstripe
11: [00:26:00] <Pyromanik> irogue: I know a place in Taranaki...
12: [00:27:00] <Pyromanik> entinteractive: talk to FrozenFire
13: [00:28:00] <Pyromanik> prob. undef
14: [00:28:00] <FrozenFire> S3 thing isn't me
15: [00:28:00] * FrozenFire redirects the question to UncleCheese... or is it UndefinedOffset?
16: [00:29:00] <FrozenFire> I tried with CloudFuse for Rackspace's cloud files, but it's shit
17: [00:29:00] <Pyromanik> mm, I suppose it would
18: [00:29:00] <FrozenFire> It'd require a FUSE module for exposing S3 as a filesystem
19: [00:29:00] <Pyromanik> \frozenfire, I thiought you;d donr something like that before though
20: [00:29:00] <FrozenFire> As for proxying the assets folder, I'd not recommend it, unless the CDN is in the same datacentre
21: [00:29:00] <Pyromanik> wholey shit eating an ice block and typing is hard
22: [00:30:00] <Pyromanik> provided you're on linux
23: [00:30:00] <FrozenFire> Not sure what it is, but it does
24: [00:30:00] <FrozenFire> Meh. Windows has an equivalent
25: [00:30:00] <Pyromanik> In terms of simple external fiels, I'd look at overriding File
26: [00:33:00] <entinteractive> yeah its looking to be quite complex
27: [00:33:00] <Pyromanik> Generally is
28: [00:33:00] <FrozenFire> The problem could be resolved by fixing the File and Image objects
29: [00:33:00] <entinteractive> im actually using elastic beanstalk with ss.. which means the file system is transient/ removed everytime the instance rebuilds
30: [00:33:00] <FrozenFire> It could relatively-easily be made to support arbitrary filesystems
31: [00:34:00] <FrozenFire> But it's not scalable
32: [00:34:00] <FrozenFire> And not stable
33: [00:34:00] <FrozenFire> So, a FUSE module for mounting your CDN filesystem on the local filesystem would make it transparent to the application
34: [00:34:00] <entinteractive> yeah i agree... i was hoping for something a bit more plug and play haha
35: [00:34:00] <FrozenFire> But at present it is hardcoded for a local filesystem
36: [00:35:00] <entinteractive> seems odd that there is no native way of connecting s3 with EB
37: [00:35:00] <FrozenFire> Wonder if the file wrapper in PHP could be hacked
38: [00:35:00] <FrozenFire> Alternatively, just had a thought
39: [00:35:00] <FrozenFire> Well, S3 and other such cloud file CDNs use an HTTP API for communication
40: [00:35:00] <FrozenFire> EB is an in-datacentre physical virtual storage system
41: [00:36:00] <FrozenFire> There's somewhat incompatible technologies
42: [00:36:00] <entinteractive> i see
43: [00:36:00] * chillu quit (Quit: chillu)
44: [00:36:00] <entinteractive> unless theres another known way for EB to handle file uploads
45: [00:36:00] <FrozenFire> Not sure what you mean
46: [00:37:00] <FrozenFire> EBS volumes are just like regular volumes
47: [00:37:00] * MrGuits quit (Read error: Connection reset by peer)
48: [00:37:00] * MrGuits has joined #silverstripe
49: [00:37:00] <FrozenFire> You can mount them to whatever path you like
50: [00:38:00] <FrozenFire> It's not the way I'd go about it
51: [00:38:00] <entinteractive> i dont know enough about it tbh, im trying to wrap my head around what the problem is
52: [00:38:00] <FrozenFire> Once the device is attached, you can remount its default mount to your assets directory
53: [00:38:00] <FrozenFire> Simply because it's ethereal
54: [00:39:00] <FrozenFire> You could feasibly put a controller in front of the assets directory that checks for the file on your CDN and 302 redirects there if there is one
55: [00:39:00] <entinteractive> ok, so the API would make the most sense? would silverstripe be able to create the _resampled images in the same way?
56: [00:39:00] <FrozenFire> And then have a task which checks your local storage and performs the sync
57: [00:40:00] <FrozenFire> So you either have to be careful about syncing same-named but different directory files to the same CDN
58: [00:40:00] <entinteractive> interesting
59: [00:40:00] <FrozenFire> The biggest problem with a CDN as an assets store is that it has no concept of a folder
60: [00:40:00] <FrozenFire> Or simulate directories
61: [00:41:00] <FrozenFire> CDN container, that is
62: [00:41:00] <FrozenFire> It's a complex problem for sure
63: [00:41:00] <FrozenFire> Scalable cloud applications all suffer pretty heavily from it
64: [00:41:00] <entinteractive> no wonder this hasnt been tackled yet
65: [00:41:00] <entinteractive> yeah
66: [00:41:00] <entinteractive> ...damn
67: [00:42:00] <FrozenFire> There's several ways to go about it, and they all depend on factors of performance and stability.
68: [00:42:00] <FrozenFire> But they're low-stability, and you lose a lot of functionality, since the file isn't local.
69: [00:42:00] <FrozenFire> Direct-to-CDN uploads and serving completely off of the CDN will have higher performance
70: [00:43:00] <FrozenFire> Sync-to-CDN is low-performance and can suffer from replication issues (multiple load balanced application servers have to sync the files down again)
71: [00:43:00] <FrozenFire> But it has high stability for one or two application servers
72: [00:43:00] <entinteractive> that makes sense... unless we still need to be able to resize images using the ss Image class
73: [00:43:00] <entinteractive> i.e. using Uploadify
74: [00:44:00] <FrozenFire> Transparent CDN on the filesystem is high stability, but very low performance (since all operations happen over HTTP to the CDN, at all times)
75: [00:44:00] <FrozenFire> And you also have to still write the logic to redirect assets to the CDN
76: [00:45:00] <FrozenFire> Though that can be mitigated by a SAPI module that handles that redirection
77: [00:45:00] <entinteractive> low performance only while editing images though right? serving to users is a different story?
78: [00:46:00] <FrozenFire> But reading for the application to make changes, and writing, would both suffer.
79: [00:46:00] <FrozenFire> Serving to users would be faster, certainly
80: [00:47:00] <ss23> CDN CDN CDN CLOUD CLOUD RUBY ON RAILS MONGODB
81: [00:47:00] <entinteractive> ok, what would you suggest is the simplest solution, assuming that this is a feature im going to need to rethink... (going live 2moro) :D
82: [00:48:00] <entinteractive> hahaha
83: [00:48:00] * catcher_dev quit (Quit: Leaving)
84: [00:48:00] <FrozenFire> Just make sure that you never run the filesystem sync task
85: [00:48:00] <FrozenFire> Sync-to-CDN is probably the least prone to completely screwing up
86: [00:48:00] <entinteractive> ...farrrrk
87: [00:48:00] <entinteractive> ....take it off EB
88: [00:48:00] <FrozenFire> There is no simple solution. ;)
89: [00:50:00] <entinteractive> ..yeah
90: [00:50:00] <FrozenFire> But realistically, you're not going to manage it for tomorrow
91: [00:50:00] <FrozenFire> It's something I've been mulling for close to a month now
92: [00:50:00] <Marvanni> Member ha a lock_out_after_incorrect_logins option
93: [00:50:00] <Marvanni> Is there also a way to lockout bases on ip address?
94: [00:51:00] <Marvanni> bases = based
95: [00:51:00] <entinteractive> i think EB is going to have to go on standby
96: [00:52:00] <FrozenFire> Marvanni, Why?
97: [00:52:00] <FrozenFire> And I ask that for a good reason. ;)
98: [00:55:00] <FrozenFire> Don't handle that on the application level
99: [00:55:00] <Marvanni> so i can block ips when they are guessing passwords?
100: [00:56:00] <FrozenFire> Use something like fail2ban with a scanner on a login failure log file
101: [00:56:00] * Bollig|DesignCty has joined #silverstripe
102: [00:57:00] <FrozenFire> Blacklisting by IP is a tricky prospect at the best of times.
103: [00:57:00] <Marvanni> hm i dont think this client will dig that for this project
104: [00:57:00] <FrozenFire> Then don't IP ban
105: [00:59:00] <Marvanni> hm... will try if lock_out_after_incorrect_logins will be sufficient
106: [01:01:00] <FrozenFire> That's the preferred method
107: [01:01:00] <FrozenFire> That will lock the Member, as opposed to blocking the IP.
108: [01:02:00] <FrozenFire> A more substantial attack has to be addressed otherwise.
109: [01:02:00] * liam quit (Quit: liam)
110: [01:02:00] * pex__ has left #silverstripe
111: [01:07:00] * liam has joined #silverstripe
112: [01:25:00] * MichaelDesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
113: [01:28:00] * willr_ has joined #silverstripe
114: [01:43:00] * popeshoe has joined #silverstripe
115: [01:49:00] * SightUnseen has joined #silverstripe
116: [01:53:00] * Jakx has joined #silverstripe
117: [01:53:00] <Jakx> yo
118: [01:54:00] <Jakx> whats the most appropriate way to paginate a menu of dataobject in ss 3.0?
119: [01:54:00] * SightUnseen has left #silverstripe
120: [01:55:00] <Jakx> dunno why but I read that page and it just didn't seem clear enough
121: [01:55:00] <willr_> Jakx PaginatedList
122: [01:55:00] <willr_> super simple in 3.0
123: [01:55:00] <willr_> http://doc.silverstripe.org/framework/en/howto/pagination
124: [01:55:00] <Jakx> willr_, awesome ty
125: [01:56:00] <Jakx> but after you affirming it, it clicked.
126: [01:58:00] <willr_> Much better than 2.4 as well from a performance point of view. $Count on that paginated list won't build a dataobjectset of every single record
127: [01:58:00] * popeshoe quit (Quit: This computer has gone to sleep)
128: [02:30:00] * congii has joined #silverstripe
129: [02:31:00] * robert__ has joined #silverstripe
130: [02:33:00] * robert_ quit (Read error: Connection reset by peer)
131: [02:42:00] * mrpink quit (Quit: Page closed)
132: [02:53:00] <Pyromanik> ss23: pfft RoR, all the cool kids node.js now.
133: [02:53:00] <Pyromanik> it's web scale!
134: [02:54:00] <irogue> cos its web scale
135: [02:54:00] <irogue> we should be using Twig
136: [02:55:00] <Pyromanik> the CMS stops working
137: [02:55:00] <Pyromanik> if you load the CMS in dev mode
138: [02:55:00] <Pyromanik> then turn off dev mode
139: [02:55:00] <Pyromanik> moustache
140: [02:55:00] <Pyromanik> pfft
141: [02:55:00] <Pyromanik> because tahts' how the backbone would do it.
142: [02:55:00] <Pyromanik> socket.io all the things
143: [02:55:00] <Pyromanik> interesting
144: [02:56:00] <Pyromanik> and you have to reload it not in dev mode to make it work again.
145: [02:57:00] <Pyromanik> chrome updated today
146: [02:58:00] <Pyromanik> still no support for unprefixed css3
147: [02:58:00] <Pyromanik> linear gradient
148: [02:59:00] <Pyromanik> no userdata
149: [02:59:00] <Pyromanik> sadface
150: [03:07:00] * priithansen quit (Quit: priithansen)
151: [03:07:00] * Err404NotFound has joined #silverstripe
152: [03:07:00] * Error404NotFound quit (Disconnected by services)
153: [03:08:00] <willr_> Pyromanik that'll be in tomorrows v255.308
154: [03:09:00] * mwm__ quit (Ping timeout: 245 seconds)
155: [03:12:00] * robert__ is now known as robert_
156: [03:13:00] * Pyromanik went to check version of chrome, now it's "Updating Chrome, 0%"
157: [03:13:00] <Pyromanik> willr_: oh, you were joking :<
158: [03:13:00] <Pyromanik> ROFL
159: [03:14:00] <Pyromanik> yep, updated again.
160: [03:15:00] * Pyromanik does not care.
161: [03:15:00] <willr_> real men use canary
162: [03:15:00] <Pyromanik> I'm on Aurora though.
163: [03:15:00] <Pyromanik> at home.
164: [03:17:00] * entinteractive quit (Ping timeout: 245 seconds)
165: [03:19:00] <simon_w> Real men don't need gradients.
166: [03:19:00] <simon_w> Or pictures for that matter
167: [03:19:00] * joha has joined #silverstripe
168: [03:20:00] <joha> hey, just a very quick question, for the page module, whats the field which contains the sitetree called?
169: [03:20:00] <joha> the one under "Your site name"
170: [03:21:00] <simon_w> Page module?
171: [03:21:00] <joha> the your site/admin/pages
172: [03:21:00] <Pyromanik> o.0
173: [03:21:00] <joha> yes
174: [03:21:00] <Pyromanik> Settings
175: [03:21:00] <simon_w> So, the CMS
176: [03:21:00] <joha> whats the field called?
177: [03:21:00] <Pyromanik> Settings.
178: [03:21:00] <simon_w> The SiteTree is contained in a field
179: [03:21:00] <Pyromanik> Title
180: [03:21:00] <Pyromanik> You mean the CMS
181: [03:22:00] <joha> i think the answer should be similar to HeaderField/TextField/CustomMenuOrderField
182: [03:22:00] <Pyromanik> simon_w: he means the display name of the site tree in the CMS
183: [03:22:00] <Pyromanik> what
184: [03:22:00] <Pyromanik> what
185: [03:22:00] <Pyromanik> are you even
186: [03:22:00] <Pyromanik> asking?
187: [03:22:00] <Pyromanik> ie SiteConfig.Title
188: [03:23:00] <joha> yes..
189: [03:23:00] <Pyromanik> Yes!
190: [03:23:00] <joha> am not sure whats the name of the field
191: [03:23:00] <Pyromanik> I'm not sure the field of the name
192: [03:24:00] <simon_w> But you're probably after a TreeDropdownField
193: [03:24:00] <joha> ok, there is a field in the pages, which contains "Home/about us/contact us.." as default
194: [03:24:00] <simon_w> The SiteTree isn't contained in a field
195: [03:24:00] <Pyromanik> joha: no one understands what you're asking. Perhaps if you take a screenshot, circle what you mean, and then paste a link to it here
196: [03:25:00] <Pyromanik> the sitetree isn't a treedropdownfield, but close enough.
197: [03:25:00] <Pyromanik> that would make sense.
198: [03:25:00] <Pyromanik> oh
199: [03:26:00] <joha> @simon_w, its close
200: [03:26:00] <Pyromanik> I dont' think that that is a field at all joha
201: [03:26:00] <simon_w> joha, the panel in the CMS that displays the site tree isn't a field
202: [03:26:00] <Pyromanik> ^
203: [03:27:00] <joha> for "$fields->addFieldToTab('Root.Main', new TreeMultiselectField('Pages',_t('CustomMenus.FormPagesPages','Select pages'), "SiteTree"));"
204: [03:27:00] <joha> if I would like to see the siteTree display the same as the one on the pages, what should i do?
205: [03:27:00] <Pyromanik> yeah, that'd work.
206: [03:27:00] <joha> makes sense...
207: [03:28:00] <Pyromanik> a LOT of hacking to make your own custom form field.
208: [03:28:00] <joha> i would like to see the tree without click on the filed
209: [03:28:00] <joha> hmmm
210: [03:28:00] <joha> both php and js?
211: [03:28:00] <Pyromanik> subclass TreeMultiselectField
212: [03:28:00] <Pyromanik> maybe
213: [03:28:00] <Pyromanik> def. php
214: [03:28:00] <joha> you are killing me ..
215: [03:28:00] <Pyromanik> umm
216: [03:29:00] <joha> kk
217: [03:29:00] <Pyromanik> no
218: [03:29:00] <Pyromanik> that would probably involve a knife.
219: [03:29:00] <Jakx> so unimaginative
220: [03:29:00] <joha> thanks anyway
221: [03:29:00] <Pyromanik> Jakx: I don't smoke nearly enough crack to turn into mr stabby
222: [03:29:00] <joha> have you seen this in any other module btw?
223: [03:29:00] <Pyromanik> killing?
224: [03:30:00] <Pyromanik> joha: nope.
225: [03:31:00] <joha> but the page one seems display the SiteTree straight forward
226: [03:32:00] <simon_w> And isn't trying to be used in an actual form
227: [03:33:00] <joha> @simon_w: whats the easier way to achieve this?
228: [03:33:00] <simon_w> Accept the TreeDropdownField or TreeMultiselectField :)
229: [03:34:00] <Pyromanik> ^
230: [03:34:00] <simon_w> Otherwise you get into the mess of proper handling of the checkboxes and the weirdness of getChildrenAsUL()
231: [03:34:00] <Pyromanik> http://assets0.ordienetworks.com/images/GifGuide/DealWithIt/foreverdealwithit.gif
232: [03:35:00] <Pyromanik> simon_w: even if subclass TreeMultiselectField and rendering it's tree() action without the popout?
233: [03:35:00] <joha> if its clear, Pyromanik you are funny
234: [03:35:00] <joha> the problem with TreeMultiselectField is that, it doesnt show the structure of the tree after selected, it only shows one, two, tree, four. and what i need is one{two{three, four}}}
235: [03:36:00] <Pyromanik> joha: if you're really dead set on it, i'd investigate what I just suggested
236: [03:36:00] * liam quit (Read error: Connection reset by peer)
237: [03:37:00] <Pyromanik> I'm really unsure if it'd work or not though.
238: [03:37:00] <simon_w> Pyromanik, TreeMultiselectField is rendered with JS
239: [03:38:00] <joha> thanks a lot
240: [03:39:00] <Pyromanik> or whatever it is
241: [03:39:00] <Pyromanik> if you could just render tree without the extra request
242: [03:39:00] <Pyromanik> all should be fine.
243: [03:39:00] <joha> have you two met each other btw?
244: [03:39:00] <Pyromanik> simon_w: yeah, but requesting Form/Field/ID/tree()
245: [03:39:00] <Pyromanik> no guarantees of course
246: [03:40:00] <Pyromanik> watch your network tab of your favourite debugger when you click the dropdown for the first time after a reload
247: [03:40:00] <joha> Pyromanik, what do you mean?
248: [03:40:00] <Pyromanik> http://api.silverstripe.org/3.0/forms/fields-relational/TreeDropdownField.html#methodtree
249: [03:42:00] <joha> actually the $fields->addFieldToTab('Root.Main', new TreeMultiselectField('Pages',_t('CustomMenus.FormPagesPages','Select pages'), "SiteTree")); is working currently..
250: [03:43:00] <Pyromanik> No reason it wouldn't.
251: [03:44:00] <Pyromanik> it does exactly what you want, just doesn't look the way you want.
252: [03:44:00] <joha> yes thats very true
253: [03:45:00] <joha> can i load the content in <h1> tag to the SiteTree for selection as well?
254: [03:46:00] * Keksters quit (Quit: Page closed)
255: [03:46:00] <Pyromanik> huh?
256: [03:47:00] <joha> i mean duplicate & hacked SiteTree in the TreeMultiselectField.php
257: [03:47:00] * popeshoe has joined #silverstripe
258: [03:47:00] <joha> load the content in <h1>content</h1> according its title in the navigation menu, and load the whole thing to the hacked SiteTree
259: [03:48:00] <joha> i won't change the core file...
260: [03:48:00] <Pyromanik> I'm not sure
261: [03:48:00] <Pyromanik> It might break the JS
262: [03:49:00] <Pyromanik> it uses tree.js
263: [03:49:00] <Pyromanik> jqtree
264: [03:49:00] <Pyromanik> jstree
265: [03:49:00] <Pyromanik> something like that
266: [03:49:00] <joha> it uses javascript/TreeJackDropdownField.js right?
267: [03:50:00] <joha> if i change javascript/TreeJackDropdownField.js as well...is there any possibility i could achieve?
268: [03:51:00] <joha> the thirdparty/jquery-jstree/jquery.jstree.js should adapt the change
269: [03:53:00] <Pyromanik> I honestly have no idea.
270: [03:53:00] <joha> thats ok, am just asking before testing anyway, thanks all :)
271: [03:54:00] <Pyromanik> You're welcome :)
272: [03:55:00] <Pyromanik> Home time!
273: [03:55:00] * Pyromanik has left #silverstripe
274: [03:56:00] * joha quit (Quit: Page closed)
275: [03:59:00] * popeshoe quit (Quit: This computer has gone to sleep)
276: [04:00:00] * nickmolhoek quit (Quit: nickmolhoek)
277: [04:11:00] * weboftalent has joined #silverstripe
278: [04:37:00] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
279: [04:45:00] * cloph_away1 has joined #silverstripe
280: [04:47:00] * cloph_away quit (Ping timeout: 256 seconds)
281: [04:52:00] * willr_ quit (Quit: willr_)
282: [04:52:00] * simon_w|air has joined #silverstripe
283: [05:09:00] * CHIex has joined #silverstripe
284: [05:35:00] * Err404NotFound is now known as Error404NotFound
285: [05:42:00] * Shrike_Finland has joined #silverstripe
286: [06:06:00] * DigNZ quit (Quit: DigNZ)
287: [06:10:00] <congii> hi, how do you made multiplu image upload on front-end. single file upload works.. the multiple image upload only works on CMS in frontend, it seems to upload the files in the asset folder but not properly linking the image to the parent dataobject.
288: [06:12:00] * congii quit (Quit: Page closed)
289: [06:13:00] * congii has joined #silverstripe
290: [06:15:00] * Shrike_Finland quit (Quit: Leaving.)
291: [06:42:00] <congii> anyone?
292: [07:57:00] * openbees has joined #silverstripe
293: [08:00:00] <openbees> Is it possible to translate root url of the site using translatable module .. like for url www.example.com in a language xyz it can translate "example" in xyz language ?
294: [08:37:00] * CHIex quit (Ping timeout: 246 seconds)
295: [08:38:00] * zfmf has joined #silverstripe
296: [08:40:00] * weboftalent_ has joined #silverstripe
297: [08:42:00] * weboftalent quit (Ping timeout: 260 seconds)
298: [08:46:00] * chillu has joined #silverstripe
299: [08:53:00] * zfmf has left #silverstripe
300: [08:58:00] * ivoba has joined #silverstripe
301: [09:04:00] * ARNHOFF has joined #silverstripe
302: [09:04:00] * popeshoe has joined #silverstripe
303: [09:26:00] * PigeonFriend has joined #silverstripe
304: [09:33:00] * ivoba quit (Ping timeout: 252 seconds)
305: [09:34:00] * howardgrigg quit (Ping timeout: 252 seconds)
306: [09:35:00] * howardgrigg has joined #silverstripe
307: [09:35:00] * dnz- quit (Ping timeout: 244 seconds)
308: [09:36:00] * dnz- has joined #silverstripe
309: [09:43:00] * Dotmh has joined #silverstripe
310: [09:45:00] <Dotmh> Hi is there any way to change the date created on a DataObject , its for an importer? without dropping down to raw sql?
311: [09:45:00] * ivoba has joined #silverstripe
312: [09:45:00] <simon_w|air> Dotmh, you have to write it first, set Created then write again
313: [09:47:00] <Dotmh> simon_w|air Ah cool cheers.
314: [09:52:00] * zfmf has joined #silverstripe
315: [09:58:00] * bjrN has joined #silverstripe
316: [10:00:00] <bjrN> How can i count in my template and only show result once
317: [10:03:00] <bjrN> <% if CartItems %> <% if CartItems.Count = 1 %> write this <% else %> Write this for multiple <% end_if %> <% else %> <strong>KURV:</strong> empty <% end_if %>
318: [10:03:00] <bjrN> any suggestions ?
319: [10:06:00] * g4b0 has joined #silverstripe
320: [10:06:00] <g4b0> hi all
321: [10:07:00] <g4b0> SS 3.1.0-beta1
322: [10:07:00] <g4b0> does fieldLabels works also for $summary_fields?
323: [10:16:00] * bjrN quit (Ping timeout: 245 seconds)
324: [10:16:00] * openbees quit (Quit: Leaving)
325: [10:18:00] <MrGuits> Inserting images in a HtmlField on ss3 acts weird.. All images I have inserted in other pages for the last hour lists under "Details & dimensions"
326: [10:18:00] * simon_w|air quit (Read error: Connection reset by peer)
327: [10:19:00] <MrGuits> and "Insert Media" switches name to "Update Media"
328: [10:22:00] * simon_w|air has joined #silverstripe
329: [10:29:00] <MrGuits> Is that how the "Insert Media" should work or is it a bug?
330: [10:44:00] * web_of_talent has joined #silverstripe
331: [10:47:00] * weboftalent_ quit (Ping timeout: 276 seconds)
332: [10:49:00] * gelignite has joined #silverstripe
333: [10:53:00] * kinglozzer has joined #silverstripe
334: [11:07:00] * Unlearned has joined #silverstripe
335: [11:25:00] * CHIex has joined #silverstripe
336: [11:25:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
337: [11:26:00] <Unlearned> any gallery on SS3 ? nothing fancy just basic album and images control ?
338: [11:36:00] * Shrike_Finland has joined #silverstripe
339: [11:42:00] * CHIex quit (Ping timeout: 246 seconds)
340: [11:43:00] * congii quit (Ping timeout: 245 seconds)
341: [11:46:00] * zfmf quit (Ping timeout: 255 seconds)
342: [11:49:00] <Marvanni> Unlearned : deadeasy to create a PageType with has_many Images and a fancy js gallery lib
343: [11:52:00] <Unlearned> Marvanni, thanks for that. I was looking for a quick time saver :)
344: [11:53:00] * CHIex has joined #silverstripe
345: [11:54:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
346: [12:01:00] * ivoba quit (Ping timeout: 248 seconds)
347: [12:02:00] * simon_w|air quit (Quit: This computer has gone to sleep)
348: [12:02:00] * CHIex|2 has joined #silverstripe
349: [12:45:00] * dendeffe has joined #silverstripe
350: [12:46:00] <dendeffe> Hi, my client has a problem: when adding a page under another page, it is often added at the bottom of the page tree instead of of under the selected page.
351: [12:47:00] <dendeffe> I haven't been able to reproduce it, but I think it's intermittent.
352: [12:48:00] <dendeffe> Haven't been able to find any bugs in console.
353: [12:48:00] <dendeffe> Version: 3.0.3
354: [13:02:00] <dendeffe> trying this https://github.com/silverstripe/silverstripe-cms/pull/196#commits-pushed-96be509 - hard to test bug, hope this fixes it
355: [13:06:00] * UndefinedOffset has joined #silverstripe
356: [13:08:00] <Marvanni> it happened to me as well
357: [13:14:00] * CHIex quit (Ping timeout: 246 seconds)
358: [13:14:00] * ivoba has joined #silverstripe
359: [13:14:00] * CHIex|2 quit (Ping timeout: 246 seconds)
360: [13:20:00] * priithansen has joined #silverstripe
361: [13:48:00] * gelignite has joined #silverstripe
362: [13:52:00] * Dotmh quit (Quit: Dotmh)
363: [13:59:00] * instabil has joined #silverstripe
364: [14:23:00] * Shrike_Finland quit (Quit: Leaving.)
365: [14:43:00] * gelignite quit (Ping timeout: 264 seconds)
366: [14:46:00] * Dotmh has joined #silverstripe
367: [14:52:00] * Shrike_Finland has joined #silverstripe
368: [14:53:00] * Shrike_Finland1 has joined #silverstripe
369: [14:55:00] * gelignite has joined #silverstripe
370: [14:57:00] * Shrike_Finland quit (Ping timeout: 260 seconds)
371: [14:57:00] * chillu quit (Quit: chillu)
372: [14:58:00] * zfmf has joined #silverstripe
373: [15:08:00] * web_of_talent quit (Remote host closed the connection)
374: [15:15:00] * webguest has joined #silverstripe
375: [15:15:00] <webguest> UserForms 0.5 with with SS 2.4.9 bug/error/problem : https://github.com/silverstripe/silverstripe-userforms/issues/91
376: [15:21:00] * gelignite quit (Ping timeout: 252 seconds)
377: [15:26:00] * MrGuits quit (Read error: Connection reset by peer)
378: [15:27:00] * MrGuits has joined #silverstripe
379: [15:33:00] * gelignite has joined #silverstripe
380: [15:41:00] * Dotmh quit (Quit: Dotmh)
381: [15:42:00] * catcher has joined #silverstripe
382: [15:43:00] * chillu has joined #silverstripe
383: [15:51:00] * Nivery has joined #silverstripe
384: [15:52:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
385: [15:58:00] <webguest> does any one how to fix : Refused to set unsafe header "Connection"
386: [15:58:00] <webguest> using Google Chrome
387: [15:59:00] <webguest> also having a Newsletter bug in SS 2.4.9 --> https://github.com/silverstripe-labs/silverstripe-newsletter/issues/20
388: [16:14:00] <ivoba> somebody knows how to rename uploaded images?
389: [16:15:00] * poniat has joined #silverstripe
390: [16:15:00] <ivoba> from frontend&backend
391: [16:15:00] * poniat has left #silverstripe
392: [16:26:00] <Marvanni> if $file->FileName is changed, update FileSystem is called. so in onBeforeWrite() I think you can just change the FileName...
393: [16:28:00] <ivoba> do you have an example
394: [16:33:00] <Marvanni> no :).. But I think you can create a DataExtension and and set onBeforeWrite() {$this->owner->Filename = 'myfilename';}
395: [16:36:00] <ivoba> Extension to Image or the DataObject with the has_one
396: [16:36:00] <ivoba> ?
397: [16:41:00] <Marvanni> hm... If you have a MyDO has_one Image, you can rewrite the related image in onAfterWrite() in your MyDO if($image = $this->Image()) {$image->fileName = 'somefilename'; $image->write();}
398: [16:44:00] <ivoba> and also rename the file on the filesystem
399: [16:47:00] <Marvanni> File should take care of that
400: [16:47:00] <PigeonFriend> Hey chillu: Quick chat about the RestfulService changes if you please? The stuff about the useragent. At the moment, it's set using the cURL shortcut and, as horrid as it sounds, I really don't want to spend lots of time making it work as a header just for the 'vanity' of the API. I don't think the UA can be redeclared (many values for one header become comma seperated) so I either rework
401: [16:47:00] <PigeonFriend> how headers are handled completely, leave it as I've done it or remove it. And I'd much rather do one of the last two options. Is it going to be a blocker as it is?
402: [16:51:00] <chillu> PigeonFriend: Then you'll have to remove that aspect. If we follow "API design by least-effort", then we'll end up with even more of a mess in core, particularly on those fringe APIs :)
403: [16:52:00] <chillu> And that's a perfectly good choice, we face the same decision every week in our own projects at SS, sometimes you simply don't have the time to do it right (tm)
404: [16:52:00] <chillu> And that's a perfectly good choice, we face the same decision every week in our own projects at SS, sometimes you simply don't have the time to do it right (???)
405: [16:53:00] <kinglozzer> ^^ Agree on that point. I'd love to partial cache and statically publish all our clients sites but they simply don't pay enough to invest time in it
406: [16:53:00] <chillu> Yep, absolutely - and thanks again for sending that pull request in the first place!
407: [16:53:00] <PigeonFriend> chillu: sure, I'll revert that aspect then. Maybe a future thing to handle the headers in a nicer way! cheers.
408: [16:55:00] <PigeonFriend> chillu: No probs, I'm adding some stuff now and will try to do some tests so the rest can get into core. Any functions in particular that you're concerned about? The header parser one?
409: [16:57:00] * instabil quit (Read error: Connection reset by peer)
410: [16:57:00] * instabil has joined #silverstripe
411: [16:58:00] * zfmf quit (Ping timeout: 248 seconds)
412: [17:00:00] * BabySuperman has joined #silverstripe
413: [17:02:00] * g4b0 quit (Quit: Sto andando via)
414: [17:10:00] * kinglozzer quit (Remote host closed the connection)
415: [17:14:00] * ARNHOFF has joined #silverstripe
416: [17:15:00] * dendeffe quit (Quit: dendeffe)
417: [17:25:00] <ivoba> Marvanni: i tried $image->setName('somefilename.png'); $image->write();
418: [17:26:00] <ivoba> this made a new entry in the File table but did not update the relation
419: [17:27:00] <ivoba> also it seems that it doesnt overwrite files on the filesystem, creation well
420: [17:36:00] * zfmf has joined #silverstripe
421: [17:37:00] * Nivery quit (Quit: Nivery)
422: [17:46:00] <Marvanni> is it possible to recreate a TableField with the new GridField?
423: [17:48:00] <PigeonFriend> Google is not helping me much
424: [17:48:00] <PigeonFriend> does anyone know how to test protected static methods in PHPUnit?
425: [17:49:00] * simon_w|air has joined #silverstripe
426: [18:01:00] * lx-berlin has joined #silverstripe
427: [18:04:00] * popeshoe quit (Quit: Leaving)
428: [18:17:00] * PigeonFriend quit ()
429: [18:18:00] * simon_w|air quit (Quit: This computer has gone to sleep)
430: [18:22:00] * Marvanni_ has joined #silverstripe
431: [18:25:00] * travis-ci has left #silverstripe
432: [18:25:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f633a72921f7...dc75d9a5b45a
433: [18:25:00] <travis-ci> [travis-ci] silverstripe/sapphire#1296 (3.1 - dc75d9a : Ingo Schommer): The build has errored.
434: [18:25:00] * travis-ci has joined #silverstripe
435: [18:25:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4500206
436: [18:33:00] * MrGuits quit (Read error: Connection reset by peer)
437: [18:34:00] * MrGuits has joined #silverstripe
438: [18:34:00] <travis-ci> [travis-ci] silverstripe/sapphire#1296 (3.0 - 1bb1090 : Ingo Schommer): The build has errored.
439: [18:34:00] * travis-ci has joined #silverstripe
440: [18:34:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fd71a3d55e5f...1bb109041fc9
441: [18:34:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4500211
442: [18:34:00] * travis-ci has left #silverstripe
443: [18:45:00] * UndefinedOffset quit (Ping timeout: 252 seconds)
444: [18:47:00] * Marvanni_ quit (Quit: Marvanni_)
445: [19:01:00] * webguest quit (Ping timeout: 245 seconds)
446: [19:04:00] * ivoba quit (Quit: Leaving)
447: [19:06:00] * SightUnseen has joined #silverstripe
448: [19:10:00] * SMaction has joined #silverstripe
449: [19:12:00] * SightUnseen has left #silverstripe
450: [19:12:00] * mwm_ quit (Ping timeout: 245 seconds)
451: [19:19:00] * UncleCheese has joined #silverstripe
452: [19:21:00] * dendeffe has joined #silverstripe
453: [19:22:00] <UncleCheese> anyone here good with composer?
454: [19:22:00] <simon_w> hehe, composer
455: [19:26:00] * Bollig|DesignCty has joined #silverstripe
456: [19:34:00] * lx-berlin has left #silverstripe
457: [19:34:00] * DigNZ has joined #silverstripe
458: [19:34:00] * DigNZ quit (Remote host closed the connection)
459: [19:34:00] * DigNZ has joined #silverstripe
460: [19:38:00] <UncleCheese> oh, right, you're an SVN guy
461: [19:38:00] <UncleCheese> simon_w are you allergic to composer?
462: [19:39:00] <UncleCheese> :)
463: [19:39:00] <simon_w> And?
464: [19:39:00] <UncleCheese> I just assume that means you're not open to anything new
465: [19:40:00] <UncleCheese> i haven't jumped in yet, but those are my fears as well
466: [19:40:00] * nickmolhoek has joined #silverstripe
467: [19:40:00] <simon_w> Their response: "We're not sure that supporting https URLs with SVN is safe"
468: [19:40:00] <UncleCheese> oh, i had a question for you
469: [19:40:00] <simon_w> Let's see, composer is this magic black box that keeps breaking and can't even handle my modules
470: [19:40:00] * nickmolhoek has joined #silverstripe
471: [19:40:00] * nickmolhoek quit (Remote host closed the connection)
472: [19:40:00] <UncleCheese> yeah
473: [19:41:00] <UncleCheese> i'm tired of having 30-character long classnames just so i can ensure their uniqueness
474: [19:41:00] <UncleCheese> that's the one thx
475: [19:41:00] <UncleCheese> do you have a link to something like that?
476: [19:41:00] <UncleCheese> i want to start doing that
477: [19:41:00] <simon_w> https://svn.pocketrent.com/public/oauth/trunk/code/controller/Controller.php
478: [19:41:00] <simon_w> That one?
479: [19:41:00] <UncleCheese> i saw you posted a module once and you made great use of namespaces, so you had, for instance, a class called "Controller" in your module
480: [19:42:00] <UncleCheese> but as of now, SS doesn't use namespaces, so it's a non issue
481: [19:42:00] <simon_w> You can call things from out of a different namespace
482: [19:42:00] <UncleCheese> so you don't have to use the namespace where all the other SS classes are?
483: [19:42:00] <simon_w> Nah
484: [19:42:00] <UncleCheese> like, say, DataObject? those are in the global namespace, so they're automatically discovered?
485: [19:43:00] <UncleCheese> ?
486: [19:43:00] <UncleCheese> why do you need to make your controller aware of that? shouldn't it be already known in the global namespace?
487: [19:43:00] <simon_w> Basically, either stick use \DataObject at the top, or use \DataObject in your code
488: [19:43:00] <UncleCheese> but when you say use \Session
489: [19:43:00] <simon_w> Well, PHP only looks for functions in the global namespace if it can't be found in the current one
490: [19:44:00] <UncleCheese> i see, so by declaring use \Session at the top, you can refer to the class as just Session in your code, not \Session
491: [19:44:00] <simon_w> I'm not in the global namespace, so I import it into the current file
492: [19:45:00] <simon_w> yup
493: [19:45:00] <simon_w> and the "as Req" imports it as an alias
494: [19:45:00] <UncleCheese> k, cool
495: [19:45:00] <UncleCheese> unlike new \Form
496: [19:46:00] <UncleCheese> ohh
497: [19:46:00] <simon_w> It's basically a string replacement at compile time
498: [19:46:00] <UncleCheese> and does it actually do the require() as well, or just imports it to the namespace?
499: [19:47:00] <UncleCheese> it's so weird.. 5.3 is already out of date, and people still haven't adopted namespacing
500: [19:47:00] <simon_w> JS doesn't have namespacing at all :p
501: [19:47:00] <UncleCheese> maybe because it's not as intuitive.. so easy in languages like JS
502: [19:48:00] <simon_w> It's mostly because as soon as you get into cross-namespace anything in any language it's a massive pain
503: [19:49:00] <simon_w> The component frameworks already use some form of namespacing (wether Zend's fake or Sympfony's real) so they don't conflict
504: [19:50:00] <UncleCheese> well, it has defacto namespacing
505: [19:50:00] * Pyromanik has joined #silverstripe
506: [19:50:00] <simon_w> I use them because our code base is massive
507: [19:50:00] <UncleCheese> what part of NZ are you in, simon?
508: [19:50:00] <simon_w> Wellington
509: [19:51:00] <Pyromanik> simon_w: yo momma's so massive she needs namespacing
510: [19:51:00] <Pyromanik> BAD NEWS
511: [19:51:00] <Pyromanik> get there, no aircon again.
512: [19:51:00] <Pyromanik> Run to work because late
513: [19:52:00] <simon_w> No aircon to start with!
514: [19:52:00] * Pyromanik has joined #silverstripe
515: [19:52:00] * Pyromanik has left #silverstripe
516: [19:54:00] * Shrike_Finland1 quit (Quit: Leaving.)
517: [19:56:00] <irogue> [08:40] <@simon_w> Their response: "We're not sure that supporting https URLs with SVN is safe"
518: [19:56:00] * theruss has joined #silverstripe
519: [19:56:00] <simon_w> basically, there's a flag you can pass to svn when running non-interactive that says accept the certificate
520: [19:56:00] * irogue wants some of whatever they're on
521: [19:56:00] <irogue> the fuck?!?
522: [19:56:00] * Shrike_Finland has joined #silverstripe
523: [19:57:00] <irogue> :-P
524: [19:57:00] <Pyromanik> lulz
525: [19:57:00] <Pyromanik> zomg
526: [19:57:00] <Pyromanik> it's Feburary
527: [19:57:00] <simon_w> http://github.com/composer/packagist/issues/255
528: [19:57:00] <Pyromanik> I have not had a caffinated drink all year.
529: [19:57:00] * irogue couriers one to Pyromanik
530: [19:57:00] <Pyromanik> irogue: It's Feburary now
531: [19:57:00] <Pyromanik> no matter what
532: [19:58:00] <Pyromanik> but now...
533: [19:58:00] <Pyromanik> I dunno. Might keep the intake low though.
534: [19:58:00] * irogue sends Pyromanik a pack of No-Doz
535: [19:58:00] <simon_w> You can send it to me instead!
536: [19:58:00] <Pyromanik> I said I'd hold out for at least a month
537: [19:59:00] <UncleCheese> Pyrnomanik: are you good with Composer?
538: [20:00:00] <simon_w> UncleCheese, just ask your question already :p
539: [20:00:00] <UncleCheese> sorta
540: [20:00:00] <UncleCheese> it's like the difference between Git and Github
541: [20:00:00] <simon_w> packagist is a repository
542: [20:00:00] * halkyon has joined #silverstripe
543: [20:00:00] <Pyromanik> Composer and Packagist are different things?
544: [20:00:00] <UncleCheese> how about UndefinedOffset?
545: [20:00:00] <UncleCheese> hahaha
546: [20:00:00] * UndefinedOffset has joined #silverstripe
547: [20:00:00] <Pyromanik> I am not
548: [20:01:00] <theruss> +1 for that comparison @UncleCheese
549: [20:01:00] <Pyromanik> have not found it very flexible
550: [20:01:00] <Pyromanik> a pretty green one
551: [20:01:00] <UncleCheese> this will change when SS starts using its own repository
552: [20:01:00] <Pyromanik> well composer is just a fetcher
553: [20:01:00] <UncleCheese> when you use composer search, it goes to packagist
554: [20:01:00] <UncleCheese> they're really coupled
555: [20:01:00] <UncleCheese> kinda
556: [20:01:00] <simon_w> except with less site-specific stuff
557: [20:01:00] <Pyromanik> ?
558: [20:01:00] <Pyromanik> they're not the same project though
559: [20:02:00] <simon_w> Morning
560: [20:02:00] <Pyromanik> Sun
561: [20:02:00] * dendeffe quit (Quit: dendeffe)
562: [20:02:00] <Pyromanik> Roaring heat
563: [20:02:00] <Pyromanik> sweltering furnace of an office.
564: [20:02:00] <cmoman> hello
565: [20:02:00] <Pyromanik> nor stable.
566: [20:02:00] * cmoman has joined #silverstripe
567: [20:02:00] <UndefinedOffset> eh? whats up? lol
568: [20:03:00] <Pyromanik> some guy cutting the road with a large saw.
569: [20:03:00] <Pyromanik> but it's still loud.
570: [20:03:00] <Pyromanik> he's down.
571: [20:03:00] <simon_w> But is he going down?
572: [20:03:00] <UncleCheese> I just don't get how to set up a project
573: [20:03:00] <Pyromanik> heat, humidity, and piercing noise.
574: [20:03:00] <UndefinedOffset> just seeing unclecheese mentioning me, just getting back online from a power failure, shoulda directed it at him
575: [20:03:00] <Pyromanik> perfect recipe for a fantastic day.
576: [20:03:00] <Pyromanik> all of these things are up.
577: [20:03:00] <UndefinedOffset> lol
578: [20:03:00] <Pyromanik> what's going down?
579: [20:04:00] <UncleCheese> right, but
580: [20:04:00] <irogue> oh look, another U.S. school shooting!
581: [20:04:00] <Pyromanik> Although I haven't tried in the last... month.
582: [20:04:00] <Pyromanik> because it's shitty
583: [20:04:00] <UncleCheese> ok
584: [20:04:00] <Pyromanik> it collapses
585: [20:04:00] <simon_w> Then do a composer update/install
586: [20:04:00] <Pyromanik> it doesn't
587: [20:04:00] <Pyromanik> no
588: [20:04:00] <Pyromanik> it has a fucking nightmare and never works.
589: [20:04:00] <simon_w> Well, you can
590: [20:04:00] <UncleCheese> no?
591: [20:04:00] <Pyromanik> don't do that
592: [20:04:00] <Pyromanik> yeah
593: [20:04:00] <UncleCheese> my inclination is to create my own composer.json file with all the modules i use to start a project
594: [20:04:00] <Pyromanik> but?
595: [20:04:00] <simon_w> UncleCheese, composer init or composer create-project silverstripe/installer 3.0.3
596: [20:05:00] <halkyon> Pyromanik: works for me, that's good enough
597: [20:05:00] <Pyromanik> too true
598: [20:05:00] <Pyromanik> haha
599: [20:05:00] <simon_w> You don't need to run the installer with the installer package :p
600: [20:05:00] <UncleCheese> what weird thigns?
601: [20:05:00] <UncleCheese> ok
602: [20:05:00] <UncleCheese> i don't use the installer, though, so should i just create-proect silverstripe-cms?
603: [20:05:00] <Pyromanik> irogue: what, today?
604: [20:05:00] <Pyromanik> UncleCheese: probably, yaeh
605: [20:05:00] <halkyon> using composer.json yourself is fine to start with
606: [20:05:00] <UncleCheese> ok
607: [20:05:00] <Pyromanik> halkyon: not in my experience.
608: [20:05:00] <irogue> Pyromanik: yup. it's been one per week so far in 2013
609: [20:05:00] <UncleCheese> and then composer install module1,2,3,4
610: [20:05:00] <simon_w> UncleCheese, nope, that will do weird things with the framework folder
611: [20:05:00] <Pyromanik> irogue: are you serious!?
612: [20:06:00] <Pyromanik> installer gives you more than you want?
613: [20:06:00] <simon_w> You end up with cms/framework
614: [20:06:00] <UncleCheese> yeah, that didn't work
615: [20:06:00] <Pyromanik> it depends on cms, framework and simple.
616: [20:06:00] <UncleCheese> it seems to give me more than i want.. that's why i don't use installer
617: [20:07:00] <UncleCheese> fails hard
618: [20:07:00] <Pyromanik> needs version iirc
619: [20:07:00] <Pyromanik> create-project silverstripe/cms 3.0.3
620: [20:07:00] <Pyromanik> or something like that
621: [20:07:00] <Pyromanik> and what was command?
622: [20:07:00] <Pyromanik> what is error?
623: [20:07:00] <UncleCheese> create-project silverstripe/cms
624: [20:07:00] <UncleCheese> ok, let me try the installer and see what it does
625: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 457 Nov 25 15:02 .mergesources.yml
626: [20:08:00] <UncleCheese> drwxr-xr-x 5 aaroncarlino staff 170 Nov 25 15:02 assets
627: [20:08:00] <Pyromanik> really
628: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 689 Nov 25 15:02 .htaccess
629: [20:08:00] <UncleCheese> w-r--r-- 1 aaroncarlino staff 115 Nov 25 15:02 .gitignore
630: [20:08:00] <Pyromanik> so far nothing out of the ordinary
631: [20:08:00] <Pyromanik> wow
632: [20:08:00] <UncleCheese> it gives me like 50 file
633: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 21688 Nov 25 15:02 build.xml
634: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 467 Nov 25 15:02 changelog-definitions.default
635: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 913 Nov 25 15:02 CONTRIBUTING.md
636: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 1064 Nov 25 15:02 Makefile
637: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 247 Nov 25 15:02 build.properties.default
638: [20:08:00] <UncleCheese> -rw-r--r-- 1 aaroncarlino staff 2566 Nov 25 15:02 README.md
639: [20:08:00] <simon_w> oh, the installer
640: [20:08:00] <UncleCheese> s
641: [20:08:00] <UncleCheese> what is all this crap?
642: [20:08:00] <simon_w> composer :p
643: [20:08:00] <Pyromanik> what crap
644: [20:09:00] <halkyon> haha
645: [20:09:00] <Pyromanik> hard
646: [20:09:00] <simon_w> UncleCheese, sspaste.com :p
647: [20:09:00] * UncleCheese has joined #silverstripe
648: [20:09:00] <Pyromanik> rofl
649: [20:09:00] <Pyromanik> oh lol uc got the boot
650: [20:09:00] <halkyon> and also good call, I didn't want to see all that junk
651: [20:09:00] <Pyromanik> that looks like a normal install UndefinedOffset
652: [20:09:00] <halkyon> nice one simon_w
653: [20:09:00] <Pyromanik> 100% normal.
654: [20:09:00] <simon_w> pastie it, dammit
655: [20:09:00] <UncleCheese> fail
656: [20:10:00] <Pyromanik> also
657: [20:10:00] <Pyromanik> 0 files out of ordinary
658: [20:10:00] <UncleCheese> it is? i never have all this stuff in my project
659: [20:10:00] <Pyromanik> and you usually just grab from github don't you UncleCheese?
660: [20:10:00] <simon_w> So delete it
661: [20:10:00] <UncleCheese> what does the other stuff do?
662: [20:10:00] <UncleCheese> i usually just have assets/ cms/ mysite/ framework/
663: [20:10:00] <simon_w> But it's normal
664: [20:10:00] <Pyromanik> that's a normal install
665: [20:10:00] <halkyon> indeed, it's normal but you can just cull away whatever you don't need
666: [20:10:00] <Pyromanik> ^
667: [20:10:00] <UncleCheese> yup
668: [20:11:00] <simon_w> phpunit stuff, IIS stuff, old piston (IIRC) stuff
669: [20:11:00] <UncleCheese> seems like way too much stuff
670: [20:11:00] <Pyromanik> if you've grabbed a tarball in the last... 10 years, it's all there.
671: [20:11:00] <UncleCheese> yeah
672: [20:11:00] <Pyromanik> mm
673: [20:11:00] <halkyon> although, mergesources.yml, is that still used?
674: [20:11:00] <UncleCheese> i dunno
675: [20:11:00] <simon_w> build toolds
676: [20:11:00] <halkyon> license information, readme, xml files for phpunit etc
677: [20:12:00] <Pyromanik> halkyon: how would one add their own repo to an install?
678: [20:12:00] <Pyromanik> hha
679: [20:12:00] <Pyromanik> what a bummer
680: [20:12:00] * zfmf has left #silverstripe
681: [20:12:00] <cmoman> hope its okay to ask but I've set up silverstripe 3.0.2 on an ubuntu (lucid) VPS http://cms.tesla.co.nz. A few months ago it was working fine. Now only http://cms.tesla.co.nz/admin/pages works fine.
682: [20:13:00] <Pyromanik> cmoman: do you have any more information?
683: [20:13:00] <halkyon> heh, how many times do you add modules? :)
684: [20:13:00] <UncleCheese> i thought it was supposed to be a magic box
685: [20:13:00] <UncleCheese> LAME
686: [20:13:00] <halkyon> UncleCheese: yeah
687: [20:13:00] <halkyon> Unyeah
688: [20:13:00] <Pyromanik> cmoman: did someone change the access setting on the site config?
689: [20:13:00] <UncleCheese> do i have to update my .gitignore?
690: [20:13:00] <UncleCheese> so every time i do "composer install some-module"
691: [20:13:00] <halkyon> Pyromanik: using composer?
692: [20:13:00] <simon_w> cmoman, did someone go and delete or unpublish everything?
693: [20:14:00] <Pyromanik> deny everything, allow only your stuff.
694: [20:14:00] <UncleCheese> explain?
695: [20:14:00] <UncleCheese> i just hate stuff like that
696: [20:14:00] <Pyromanik> yeah
697: [20:14:00] <cmoman> Pyromanik: sure. I'm the only one with admin rights to the server but another colleague has been playing lots through the web based editing interface
698: [20:14:00] <UncleCheese> oh?
699: [20:14:00] <UncleCheese> right, but composer should be smart enough to do it. :)
700: [20:14:00] <Pyromanik> UncleCheese: if you're updating your gitignore every time you add something you're doing it wrong.
701: [20:14:00] <UncleCheese> redundancy
702: [20:14:00] <halkyon> it's because the folder is now managed by composer, so git shouldn't look at it anymore
703: [20:14:00] <Pyromanik> not allow everything deny everything individually
704: [20:15:00] <Pyromanik> no
705: [20:15:00] <Pyromanik> well you could
706: [20:15:00] <Pyromanik> but no
707: [20:15:00] <Pyromanik> add to .gitignore /
708: [20:15:00] <UncleCheese> what do you mean by deny? I'm a git n00b
709: [20:15:00] <Pyromanik> I mean ./*
710: [20:15:00] <UncleCheese> ok
711: [20:15:00] <UncleCheese> but then mysite doesn't get checked in
712: [20:15:00] <Pyromanik> ignore everything
713: [20:15:00] <UncleCheese> oh is this in git config?
714: [20:16:00] <Pyromanik> git add mysite
715: [20:16:00] <UncleCheese> yeah!
716: [20:16:00] <Pyromanik> or yeah, what simon_w just said
717: [20:16:00] <cmoman> should the server setting in /mysite/_config be set to localhost or 127.0.0.1 ? setting to localhost causes errors so I'm wondering it that is part of it
718: [20:16:00] <UncleCheese> and composer.lock
719: [20:16:00] <Pyromanik> just don't add all the other stuff to your repo
720: [20:16:00] <UncleCheese> what did simon say?
721: [20:16:00] <Pyromanik> until you !/mysite/*
722: [20:16:00] <simon_w> git add :p
723: [20:16:00] <Pyromanik> yeah
724: [20:16:00] <Pyromanik> git add
725: [20:16:00] <Pyromanik> as in
726: [20:16:00] <simon_w> [09:16:09] <simon_w> git add :p
727: [20:16:00] <Pyromanik> git init
728: [20:16:00] <UncleCheese> smiley?
729: [20:16:00] <UncleCheese> haha
730: [20:17:00] <UncleCheese> perfect
731: [20:17:00] <UncleCheese> commit the whole thing
732: [20:17:00] <UncleCheese> that's what i do now
733: [20:17:00] <cmoman> simon_w: from what I can tell in the administrator section, everything looks like it should publish fine but I will recheck
734: [20:17:00] <UncleCheese> i always do git add .
735: [20:17:00] <UncleCheese> right, right
736: [20:17:00] <Pyromanik> then do not add anything else
737: [20:17:00] <UncleCheese> oh, right
738: [20:17:00] <Pyromanik> git add composer.lock
739: [20:17:00] <Pyromanik> git add themes
740: [20:17:00] <Pyromanik> I do too, but I commit the entire project because I don't composer
741: [20:18:00] * Spittel has joined #silverstripe
742: [20:18:00] <UncleCheese> so that deployment is just "composer install"
743: [20:18:00] <Pyromanik> UncleCheese: it should be anyway
744: [20:18:00] <simon_w> cmoman, what colour is everything in the site tree?
745: [20:18:00] * simon_w <3 his externals
746: [20:18:00] <UncleCheese> what do you guys think about adding a requirement for my "mysite" repository
747: [20:18:00] <Pyromanik> cmoman: it's not the publish, look at the access tab you should look at
748: [20:18:00] <simon_w> Pyromanik, cmoman, no access redirects you to the login page
749: [20:19:00] <simon_w> Pyromanik, yes
750: [20:19:00] <Pyromanik> oh.
751: [20:19:00] <Pyromanik> no?
752: [20:19:00] <UncleCheese> so my composer.json should contain a requirement for my mysite repo?
753: [20:19:00] <Pyromanik> no!
754: [20:19:00] <Pyromanik> you commit your composer.lock and mysite and themes
755: [20:19:00] <Pyromanik> simon_w: oh?
756: [20:20:00] <UncleCheese> then i could deploy in one command!
757: [20:20:00] <UncleCheese> yup
758: [20:20:00] <Pyromanik> you git pull
759: [20:20:00] <Pyromanik> you composer install
760: [20:20:00] <UncleCheese> got it
761: [20:20:00] <UncleCheese> that would be so cool!
762: [20:20:00] <Pyromanik> your git repo looks like: mysite/, themes/, composer.lock
763: [20:21:00] <Pyromanik> cmoman: oh
764: [20:21:00] <UncleCheese> got it
765: [20:21:00] <Pyromanik> oh
766: [20:21:00] <UncleCheese> gotcha
767: [20:21:00] <cmoman> simon_w: this is embarrising, now that I've edited the site from my web browser, it is publishing fine!
768: [20:21:00] <UncleCheese> wait, composer.json isn't in the repo?
769: [20:21:00] <UncleCheese> oh, no
770: [20:21:00] <Pyromanik> either way you have a step of updating composer.lock
771: [20:21:00] <UncleCheese> doesn't need to be
772: [20:21:00] <UncleCheese> sounds like fun
773: [20:21:00] <Pyromanik> did your colleague change the URL Segment of the home page to something that isn't "home" ?
774: [20:21:00] <Pyromanik> so no point in making requirements for mysite, etc.
775: [20:22:00] <cmoman> simon_w: I'll talk with my college to fine out what she is doing. could it be a Internet Explorer thing. I use Firefox
776: [20:22:00] <Pyromanik> as will unpublishing it
777: [20:22:00] <Pyromanik> more likely she unpublished it
778: [20:22:00] <Pyromanik> cmoman: shouldn't be.
779: [20:22:00] <Pyromanik> because that'll stop the homepage from loading
780: [20:23:00] <Pyromanik> no*
781: [20:23:00] <Pyromanik> not changes are made if you click "unpublish"
782: [20:23:00] * UncleCheese quit (Quit: UncleCheese)
783: [20:23:00] <Pyromanik> last changed
784: [20:23:00] <Pyromanik> yeah
785: [20:23:00] <cmoman> Pyromanik: I suspect you're right - though all the pages when I went into the editing window said there were last edited three months ago
786: [20:24:00] <Pyromanik> log in
787: [20:24:00] <Pyromanik> then try and load the home page in draft view
788: [20:24:00] <Pyromanik> or
789: [20:24:00] <Pyromanik> cmoman: easy way to test is to try to load another page that isn't the home page
790: [20:24:00] <cmoman> Pyromanik: ah maybe that what she's been doing
791: [20:25:00] <cmoman> Pyromanik: any preference for localhost or 127.0.0.1 in the /mysite/_config file
792: [20:25:00] <Pyromanik> it sets up automatic 'dev mode'
793: [20:25:00] <Pyromanik> that means nothing
794: [20:25:00] <Pyromanik> don't fiddle with it
795: [20:26:00] <simon_w> massive security problem
796: [20:26:00] <Pyromanik> yeh
797: [20:26:00] <simon_w> cmoman, assuming this is database details, leave them alone :)
798: [20:26:00] <Pyromanik> that's what I thought
799: [20:26:00] <irogue> damn, that was good for my laziness simon_w :P
800: [20:26:00] <Pyromanik> oh
801: [20:26:00] <Pyromanik> do go on simon_w
802: [20:26:00] <Pyromanik> ie. if you load the site, and your ip address is 127.0.0.1, the site automatically loads in dev mode
803: [20:26:00] <simon_w> Pyromanik, no it doesn't :p
804: [20:26:00] <Pyromanik> or something like that
805: [20:26:00] <Pyromanik> iirc
806: [20:26:00] <Pyromanik> no?
807: [20:26:00] <Pyromanik> dunno, I never fiddled with it
808: [20:26:00] <simon_w> Support for dev/test servers is gone
809: [20:26:00] <Pyromanik> mmm, I did think that
810: [20:27:00] <cmoman> simon_w: I added Director::set_environment_type('dev'); to try and trouble shoot
811: [20:27:00] <simon_w> irogue, http://doc.silverstripe.org/framework/en/topics/environment-management :p
812: [20:27:00] * UncleCheese has joined #silverstripe
813: [20:27:00] <Pyromanik> yeah that coudl be it. The other suggestion I had was that it is an old file from an upgrade.
814: [20:27:00] <Pyromanik> cmoman: that's the way to do it
815: [20:28:00] <Pyromanik> yeah, probably something to do with your MySQL setup
816: [20:28:00] <cmoman> the point is when I set to localhost silverstripe cannot connect to mysql.sock but when set to 127.0.0.1 it can
817: [20:28:00] <Pyromanik> oh
818: [20:28:00] <simon_w> So use 127.0.0.1
819: [20:29:00] <simon_w> cmoman, Pyromanik, it'll be either MySQL isn't creating a sock or is in a different place from where PHP's looking
820: [20:29:00] <cmoman> Pyromanik: /etc/hosts looks good
821: [20:29:00] <cmoman> simon_w: okay
822: [20:29:00] <Pyromanik> or your host file not being correctly set up
823: [20:29:00] <Pyromanik> ^
824: [20:30:00] <cmoman> simon_w: will that cause other issues?
825: [20:30:00] <simon_w> localhost tries using the sock, 127.0.0.1 doesn't
826: [20:30:00] <simon_w> nah
827: [20:31:00] <cmoman> we've employed a company to develop a themes and we plan to drop it in on Monday so just trying to get all the duck lined up
828: [20:33:00] <cmoman> simon_w: Pyromanik thanks so much for your help guys (or girls), I've appreciated been able to chat
829: [20:34:00] <Pyromanik> cmoman: that's why we're here!
830: [20:34:00] <Pyromanik> :)
831: [20:35:00] <simon_w> We're also here to tell Pyromanik he's doing it wrong!
832: [20:35:00] <cmoman> simon_w: haha
833: [20:35:00] <cmoman> Pyromanik: :)
834: [20:36:00] * mango9 has joined #silverstripe
835: [20:36:00] <Pyromanik> yes, that happens often.
836: [20:38:00] * sminnee has joined #silverstripe
837: [20:38:00] <UncleCheese> seems kind of weird
838: [20:38:00] <UncleCheese> Does it make sense to put restrictions on the _config directory?
839: [20:38:00] * sminnee quit (Changing host)
840: [20:38:00] * sminnee has joined #silverstripe
841: [20:38:00] <UncleCheese> so ti's not web accessible?
842: [20:38:00] <UncleCheese> i guess there's no sensitive data in there, but still
843: [20:40:00] <simon_w> Whoa, it's sminnee
844: [20:40:00] <sminnee> ;)
845: [20:40:00] <simon_w> UncleCheese, 3.1's .htaccess will block access to .yml files by default
846: [20:40:00] <UncleCheese> perfect
847: [20:40:00] <sminnee> UncleCheese there's a patch to make *.yml files inaccessible, which is the content of _config.
848: [20:40:00] <sminnee> well, that's a good first comment to join IRC on, UncleCheese
849: [20:41:00] <sminnee> simon_w: i'm pretty sure that's being merged back to the next 3.0 release too.
850: [20:41:00] <UncleCheese> :D
851: [20:41:00] <UncleCheese> DatabaseConfig: {username: root, password: password}
852: [20:41:00] <UncleCheese> so should I stop doing this?
853: [20:42:00] <simon_w> That is your friend :)
854: [20:42:00] <UncleCheese> yeah, love _ss_environment
855: [20:42:00] <simon_w> http://doc.silverstripe.org/framework/en/topics/environment-management
856: [20:42:00] <sminnee> UncleCheese: yeah
857: [20:43:00] <simon_w> Oh, I need to check that thing that changed how far it looks up the tree. I have a feeling it screws over symlinks
858: [20:43:00] <UncleCheese> and is more consistent with the design patterns of the framework
859: [20:43:00] <UncleCheese> Should we start promoting the use of the create() method over the use of the "new" keyword?
860: [20:43:00] <UncleCheese> I feel like create() ties in better with the Injector
861: [20:44:00] <UncleCheese> true
862: [20:44:00] <UncleCheese> but it doesn't seem to have caught on
863: [20:44:00] <simon_w> It's also a lot slower
864: [20:44:00] <UncleCheese> is get_called_class() a bottleneck?
865: [20:44:00] <UncleCheese> or just all the overhead in Object?
866: [20:44:00] <simon_w> No, Reflection is :p
867: [20:45:00] <UncleCheese> i think it would be nice to have some clarity on when to use one over the other
868: [20:45:00] <UncleCheese> it's inconsistent in the SS core code
869: [20:46:00] <simon_w> People like using create() when they can chain (since 5.3 is still supported)
870: [20:48:00] <UncleCheese> that's way underused
871: [20:48:00] <UncleCheese> 5.4 puts an end to that though
872: [20:48:00] <UncleCheese> yeah
873: [20:48:00] <UncleCheese> but i like the idea of Object::useCustomClass(), too
874: [20:51:00] <simon_w> And if you could do it without Reflection, I would start pushing people to use it :p
875: [20:52:00] <sminnee> useCustomClass is better deprecated in favour of the Injector.
876: [20:52:00] <sminnee> The Injector is like useCustomClass's big brother.
877: [20:53:00] <sminnee> simon_w: would it be possible to reimplement to not use reflection?
878: [20:53:00] <sminnee> is it just the constructor?
879: [20:53:00] <simon_w> I don't think so, since I don't think calling the constructor directly would work
880: [20:53:00] <sminnee> it's all in Injector now.
881: [20:53:00] <simon_w> And then there's classes without constructors
882: [20:54:00] <sminnee> yeah it's all in the InjectionCreator
883: [20:56:00] <simon_w> Or the old string_create, which just had new $class($arg1, $arg2, $arg3, $arg4...
884: [20:56:00] <sminnee> you could do the old switch on sizeof($args) ;)
885: [20:56:00] <sminnee> yeah if you have default args that breaks things.
886: [20:57:00] <sminnee> at least it's pluggable.
887: [20:59:00] * Marvanni_ has joined #silverstripe
888: [20:59:00] <simon_w> And that still imposes an arbitrary limit on the number of args you can use
889: [20:59:00] <sminnee> gimme a sec
890: [21:02:00] * liam has joined #silverstripe
891: [21:04:00] <Marvanni_> I need the TableListField in SIlverstripe 3.. Is it possible to create a TLF with the new GridField?
892: [21:05:00] <simon_w> Marvanni_, Why? What's missing from GridField?
893: [21:06:00] <Marvanni_> aligned for fields for each record row for quick editing
894: [21:07:00] <simon_w> So inline editing?
895: [21:07:00] <Marvanni_> the 'inline' editing feature from the old TLF
896: [21:07:00] <Marvanni_> yeah
897: [21:08:00] <Marvanni_> ah sry I mean TableField
898: [21:08:00] <simon_w> TableListField didn't have that
899: [21:09:00] <UncleCheese> here come the "just write a component" comments
900: [21:09:00] <UncleCheese> i'll paste it right in here. is that ok?
901: [21:09:00] <simon_w> Yup, or get UncleCheese to do it :p
902: [21:09:00] <UncleCheese> k
903: [21:10:00] <Marvanni_> I found the GridFieldBulkEditingTools but its not quite like I'm used to in ss 2.x
904: [21:11:00] <simon_w> You'd probably call it more along the lines of GridFieldInlineEditing
905: [21:11:00] <Marvanni_> so I have to start with a new <?php class TableListGridFieldComponent for that?
906: [21:11:00] * ARNHOFF quit (Read error: Connection reset by peer)
907: [21:11:00] <UncleCheese> yeah
908: [21:11:00] <UncleCheese> implements this and that, too
909: [21:12:00] <simon_w> probably extend the data columns one, implement the action provider and stick in some JS to handle the change events on the fields
910: [21:12:00] <Marvanni_> night work again...
911: [21:12:00] <UncleCheese> yeah, that's better naming convention
912: [21:13:00] <Marvanni_> ok thanks.. will get some coffee...
913: [21:14:00] <sminnee> Debug (line 1023 of Page.php): (Regular) $injector->createWithArgs('Mailer', array('test')) - Time: 1.130578994751
914: [21:14:00] <sminnee> simon_w: Reflection isn't really the culprit
915: [21:14:00] <sminnee> Debug (line 1032 of Page.php): new Mailer('test') - Time: 0.31029796600342
916: [21:14:00] <sminnee> Debug (line 1042 of Page.php): $reflector->newInstanceArgs(array('test')) - Time: 0.33354091644287
917: [21:14:00] <sminnee> Debug (line 1061 of Page.php): $injectionCreator->create('Mailer', array('test')) Time: 0.3988049030304
918: [21:14:00] <sminnee> Debug (line 1051 of Page.php): $hackyInjectionCreator->create('Mailer', array('test')); Time: 0.31039595603943
919: [21:14:00] <sminnee> Debug (line 1014 of Page.php): (Hacky) $injector->createWithArgs('Mailer', array('test')) - Time: 1.070111989975
920: [21:15:00] <sminnee> That's for 10,000 execs of a few things. The injector is quite a bit slower than raw instantiation.
921: [21:15:00] <simon_w> Interesting. That's not what I'd expect
922: [21:15:00] <sminnee> But creating via a reflector is only 0.33 vs 0.31
923: [21:16:00] <sminnee> it's almost as if the reflection class was written by a grownup ;)
924: [21:16:00] <sminnee> It's the rest of Injector that causes the perf. issues,
925: [21:17:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
926: [21:18:00] * halkyon quit (Quit: Leaving)
927: [21:24:00] * Marvanni_ quit (Quit: Marvanni_)
928: [21:26:00] * liam quit (Quit: liam)
929: [21:28:00] <simon_w> On 3.1, I'm seeing most (about 60%) of the time for the full request's in Config::get, Object::static_lookup and Object::get_extra_config_sources
930: [21:30:00] <Shrike_Finland> What do you think about the current state of 3.1? Will the future be bright? ;)
931: [21:30:00] <Shrike_Finland> Hello guys!
932: [21:31:00] <simon_w> sminnee, If you've got an xhprof reading thing set up, http://www.sspaste.com/paste/show/510ae2b0279c8 is my xhprof run from 10000 Injector::inst()->createWithArgs('Email', array('test')); calls
933: [21:33:00] <sminnee> i have xhgui installed but I don't know how to get that paste into it.
934: [21:34:00] <simon_w> http://assets.simon.geek.nz/510ae1c3c07b9.pr_prof-_home_test.xhprof
935: [21:35:00] <simon_w> That's the file if it helps
936: [21:36:00] <sminnee> what do you use for viewing xhprof
937: [21:36:00] * cmoman quit (Ping timeout: 245 seconds)
938: [21:37:00] <simon_w> Which is basically that, but reads from a folder instead of an upload
939: [21:37:00] <simon_w> I use the web interface that comes with the extension
940: [21:37:00] <sminnee> ooh xhprof.me :)
941: [21:38:00] * UncleCheese has joined #silverstripe
942: [21:38:00] * UncleCheese quit (Quit: UncleCheese)
943: [21:38:00] <sminnee> Config::get() seems to be a bunch of the time...
944: [21:39:00] * normann has joined #silverstripe
945: [21:41:00] <sminnee> simon_w: if you disable this line - $injections = Config::inst()->get(get_class($object), 'dependencies'); - line 598
946: [21:41:00] <sminnee> it gets much quicker
947: [21:42:00] * travis-ci has left #silverstripe
948: [21:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4504045
949: [21:42:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/dc75d9a5b45a...6a1fe051912b
950: [21:42:00] <travis-ci> [travis-ci] silverstripe/sapphire#1299 (3.1 - 6a1fe05 : Sean Harvey): The build passed.
951: [21:42:00] * travis-ci has joined #silverstripe
952: [21:42:00] <sminnee> So, I think the underlying issue is just Config performance.
953: [21:42:00] <sminnee> Which Hamish is aware of and [possibly] working on.
954: [21:45:00] * liam has joined #silverstripe
955: [21:45:00] <simon_w> Ah yup, so it comes back down to that again
956: [21:47:00] <simon_w> What's wrong with that?
957: [21:47:00] <simon_w> It's the profiler I have installed
958: [21:47:00] <spronk> srs what is with all the xhprof love
959: [21:48:00] * UndefinedOffset quit (Quit: Leaving.)
960: [21:53:00] * UncleCheese quit (Quit: UncleCheese)
961: [21:55:00] * UncleCheese has joined #silverstripe
962: [22:01:00] * nickmolhoek quit (Quit: nickmolhoek)
963: [22:06:00] * nickmolhoek has joined #silverstripe
964: [22:06:00] * nickmolhoek quit (Remote host closed the connection)
965: [22:06:00] * nickmolhoek has joined #silverstripe
966: [22:10:00] * UncleCheese quit (Quit: UncleCheese)
967: [22:11:00] * UncleCheese has joined #silverstripe
968: [22:14:00] * pex__ has joined #silverstripe
969: [22:18:00] * SightUnseen has joined #silverstripe
970: [22:18:00] * SightUnseen has left #silverstripe
971: [22:18:00] <irogue> @samfromwgtn: Have been out hunting kittens all morning. Dad owes me $30.
972: [22:26:00] * UncleCheese quit (Quit: UncleCheese)
973: [22:26:00] <catcher> best way to get an SS_List of objects that have a particular many_many relationship set?
974: [22:26:00] <catcher> or exclude records that lack the relationship?
975: [22:27:00] * UncleCheese has joined #silverstripe
976: [22:29:00] <catcher> I lied, one-to-many
977: [22:30:00] <Marvanni> i try to add a saveAndNew Form Action, which works ok, by set the redirect after saving to Controller::join_links($this->gridField->Link('item'), 'new');
978: [22:30:00] <Marvanni> This works ok, but the second time the form is not cleared, the first time I add a new record I do get a cleared form
979: [22:34:00] * mango9 quit (Quit: Page closed)
980: [22:35:00] <Marvanni> the first time after the Ajax POST a new GET is executed, the second time not....
981: [22:36:00] <terryapodaca> is there a way to do HTTP Basic Auth against a user in the DB?
982: [22:36:00] * terryapodaca has joined #silverstripe
983: [22:36:00] <Marvanni> should I add a header that forces reload?
984: [22:39:00] * liam quit (Quit: liam)
985: [22:41:00] * UncleCheese quit (Quit: UncleCheese)
986: [22:46:00] <terryapodaca> or is Basic Auth meant for a hard coded user/pass to validate against?
987: [22:54:00] * mirrors has joined #silverstripe
988: [22:55:00] <mirrors> Hey everyone...I am having troube adding tabs in SS3. I want to add a tab that had a text field and then another tabset
989: [22:55:00] <mirrors> using addfieldtotab and new TabSet() doesnt seems to be working
990: [23:03:00] <simon_w> terryapodaca, the BasicAuth class uses the Members
991: [23:08:00] <simon_w> sminnee, will I get in trouble for being 3-4 times over the suggested word count for a blog post?
992: [23:08:00] <sminnee> simon_w: not if it's interesting ;)
993: [23:09:00] <simon_w> Well, i find it interesting :p Basically a tutorial on how to use our oauth module
994: [23:10:00] * joha has joined #silverstripe
995: [23:10:00] * howardgrigg has joined #silverstripe
996: [23:10:00] <joha> do you remember i asked you about the siteTree on pages page?
997: [23:10:00] * howardgrigg quit (Remote host closed the connection)
998: [23:10:00] <joha> simon_w, hey
999: [23:11:00] <joha> so...do you have any idea why i cant do that? please
1000: [23:11:00] <joha> it seems i have to put exactly the same on the module, not the TreeMultiselectField one
1001: [23:11:00] * howardgrigg quit (Read error: Connection reset by peer)
1002: [23:11:00] * howardgrigg has joined #silverstripe
1003: [23:12:00] <Pyromanik> simon_w: there's a suggested word count?
1004: [23:12:00] <simon_w> Pyromanik, yeah, Brooke sent the actual requirements through to me
1005: [23:12:00] <simon_w> joha, because it's a custom rendering of the SiteTree?
1006: [23:13:00] <joha> can i just duplicate it?
1007: [23:14:00] <joha> can i just duplicate whats on the Pages?
1008: [23:15:00] <simon_w> It's easy enough to do if you don't need the form handling
1009: [23:15:00] <simon_w> You can try
1010: [23:15:00] * terryapodaca has left #silverstripe
1011: [23:15:00] <joha> what i should do instead?
1012: [23:16:00] <simon_w> Using an existing field is definitely the easiest option
1013: [23:16:00] <joha> whats the name of the field please?
1014: [23:17:00] <simon_w> TreeMultiselectField, TreeDropdownField?
1015: [23:17:00] <Pyromanik> 10:47 spronk srs what is with all the xhprof love
1016: [23:21:00] <joha> since its important for user to see what they selected as submenu or mainmenu
1017: [23:21:00] <simon_w> So, you want a list of every page with checkboxes. that doesn't get hidden, has a tree structure and uses header tags instead of spans?
1018: [23:21:00] <joha> yes
1019: [23:21:00] * congii has joined #silverstripe
1020: [23:21:00] <joha> do you have any thoughts in mind?
1021: [23:21:00] <Pyromanik> but but but but but FACEBOOK
1022: [23:21:00] <simon_w> CheckboxsetField?
1023: [23:21:00] <Pyromanik> derp derp derp, must be good.
1024: [23:21:00] <simon_w> What are you actually after in your form?
1025: [23:21:00] <joha> no my boss dont like it
1026: [23:21:00] <joha> he wants to show h1,h2 tag on the siteTree
1027: [23:21:00] <joha> and able to select as the same on Pages
1028: [23:21:00] <joha> if it makes sense to you?
1029: [23:28:00] <Marvanni> How can I access the data from ParentDO in ParentDO has_many ChildDOS when creating a new ChildDO in a Scaffolded Form in ModelAdmin?
1030: [23:28:00] <Pyromanik> wow
1031: [23:28:00] <Pyromanik> edit templates
1032: [23:28:00] <Pyromanik> if it's not templated.. well then you might have difficulty.
1033: [23:28:00] <simon_w> You're going to have to do that yourself. Have a look at http://api.silverstripe.org/3.0/framework/model/Hierarchy.html#methodgetChildrenAsUL for building up the subtrees of all root level pages, stick those together, name it properly, properly handle saving and loading of data into it
1034: [23:28:00] <Pyromanik> your boss sounds like a bit of a dick.
1035: [23:28:00] <congii> hi, good day everyone. i need help. i still cannot figure out how to make multiple upload on the front end. everything works on the CMS side but not on the front-end.
1036: [23:28:00] <Pyromanik> I'd still go with subclassing DropdownTreeField
1037: [23:28:00] <Pyromanik> treedropdown treemultiselect, whatever
1038: [23:28:00] <joha> if if you could provide me a reason that i can persuade him, that would be the best
1039: [23:28:00] <joha> as from what he can see, is very easy to build the same tree as on the Pages
1040: [23:28:00] * Spittel quit (Ping timeout: 245 seconds)
1041: [23:28:00] <joha> and i couldnt tell why...
1042: [23:28:00] <congii> i am using SS3 btw
1043: [23:28:00] <Pyromanik> the hours of work it'll take to recreate a tool when there's already one that does a close enough job?
1044: [23:28:00] <Pyromanik> joha: your boss isn't a developer
1045: [23:28:00] <Pyromanik> I'm guessing
1046: [23:28:00] <joha> he is, but he has no idea of silverstripe
1047: [23:28:00] <Pyromanik> he is?
1048: [23:28:00] <Pyromanik> was not expecting that
1049: [23:28:00] <Pyromanik> congii: not sure that upload field works on the front end
1050: [23:28:00] <Pyromanik> Marvanni: you should have a $belongs_many_many defined on the child
1051: [23:28:00] <Pyromanik> 'child'
1052: [23:28:00] <Pyromanik> oh wait
1053: [23:28:00] <simon_w> Marvanni, new means no relation set. You can't.
1054: [23:28:00] <Pyromanik> I read that wrong
1055: [23:28:00] <joha> "recreate a tool when there's already one", but you said it will take long time to duplicate it
1056: [23:28:00] <Pyromanik> mmm
1057: [23:29:00] <Marvanni> I gues I have to create a new GridFieldDetailEditForm again...
1058: [23:29:00] <simon_w> joha, recreating it to have state would take a long time
1059: [23:29:00] <Pyromanik> joha: I don't understand.
1060: [23:29:00] <Marvanni> But the Form knows it has to set the ParentDOID ?
1061: [23:29:00] <simon_w> Marvanni, no, the grid field just adds the new object to the HasManyList
1062: [23:29:00] <Pyromanik> you have TreeMultiselectField that does exactly what you want, just doesn't quite present the way you want
1063: [23:30:00] <Pyromanik> joha: just so long as you make him realise that it WILL take a long time.
1064: [23:30:00] <Pyromanik> so instead of using that and carrying on, your boss wants to spend over 10 hours of development to re-create the tree in order to just make it LOOK a little different.
1065: [23:30:00] <joha> Pyromanik yes i think so
1066: [23:30:00] <Pyromanik> that's a dick move.
1067: [23:30:00] <Pyromanik> if you're under some kind of time pressure
1068: [23:30:00] <Pyromanik> NOT a good idea
1069: [23:31:00] <Pyromanik> otherwise be sure to get enough time assigned for you to be able to figure it all out
1070: [23:31:00] <joha> o well
1071: [23:32:00] <joha> will be back after lunch
1072: [23:32:00] <joha> thanks
1073: [23:38:00] * theruss quit (Ping timeout: 245 seconds)
1074: [23:39:00] <Marvanni> The GridField shows an unlink button for each row. Is there also an option to just delete the complete record?
1075: [23:40:00] <congii> thanks Pyromanil... is there other way to implement multiple file upload on the front-end?
1076: [23:41:00] <simon_w> Marvanni, a GridFieldDeleteAction with removeRelation set to false
1077: [23:43:00] <Marvanni> ke thanks
1078: [23:49:00] * chillu quit (Quit: chillu)
1079: [23:55:00] * joha quit (Ping timeout: 245 seconds)
1080: [23:58:00] <simon_w> When?
1081: [23:58:00] <Marvanni> onAfterWrite should have the parents has_one Object right?
1082: [23:58:00] <Marvanni> $this->ParentDO() in onAfterWrite does not return anything
1083: [23:59:00] <simon_w> Yes, but when?

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