IRC log of #zope3-dev for Tuesday, 2007-07-31

*** pbugni has joined #zope3-dev00:01
*** MrTopf has joined #zope3-dev00:17
srichter(2) set the template within the <page> directive00:21
srichter(3) use the viewtemplate/template pattern from z3c to assign a template00:21
*** jinty has joined #zope3-dev00:24
*** jsadjohnson has joined #zope3-dev00:27
*** MrTopf has quit IRC00:39
*** norro has quit IRC00:42
*** rcrafton has quit IRC00:42
*** benji has quit IRC00:44
*** dtremea has joined #zope3-dev00:47
*** nerdalert has quit IRC00:48
*** jsadjohnson has quit IRC00:48
*** deo has quit IRC00:48
*** dtremea is now known as deo00:49
*** RaFromBRC is now known as RaFromBRC|afk00:54
*** edgordon has joined #zope3-dev00:57
edgordonI want to allow site users to configure addable content via a local utility. all the content will implement interfaces that extend a single base interface class. what is the best way to get a list of all classes that implement this base class?00:59
srichteredgordon: register their factories under a special IMyFactory interface01:02
edgordonand i would need to do that per item?01:04
*** lucielejard has quit IRC01:14
*** projekt01 has joined #zope3-dev01:15
*** netshade has quit IRC01:17
*** torkel_ has joined #zope3-dev01:31
*** RaFromBRC|afk is now known as RaFromBRC01:35
*** philiKON_ is now known as philiKON01:37
*** jsadjohnson has joined #zope3-dev01:40
*** jfroche has quit IRC01:46
*** timte has quit IRC01:50
*** jsadjohnson has quit IRC01:54
*** csmiga has quit IRC02:01
*** jsadjohnson has joined #zope3-dev02:03
*** Pietones has joined #zope3-dev02:08
*** instantfoo has left #zope3-dev02:11
*** Pietones has left #zope3-dev02:11
*** tarek has quit IRC02:12
*** instantfoo has joined #zope3-dev02:12
*** schwendinger has quit IRC02:14
*** ek-vis has joined #zope3-dev02:16
*** pcardune has quit IRC02:19
*** greenman has quit IRC02:25
*** pcardune has joined #zope3-dev02:38
*** fcorrea has quit IRC02:46
*** dunny has joined #zope3-dev02:48
*** nathany has quit IRC02:51
*** natea_ has joined #zope3-dev03:24
*** ferrafox has quit IRC03:50
*** jinty has quit IRC04:30
*** projekt01 has left #zope3-dev04:45
*** ek-vis has quit IRC05:09
*** deo has quit IRC05:16
*** natea_ has quit IRC05:17
*** redir has joined #zope3-dev05:23
*** huajie has joined #zope3-dev05:25
*** xxbeanxx has joined #zope3-dev05:36
*** Cripps has joined #zope3-dev05:37
*** RaFromBRC has quit IRC05:49
*** xbeanx has quit IRC05:51
*** niemeyer has quit IRC05:51
*** CrippsFX has quit IRC05:52
*** reco has quit IRC06:00
*** fdrake has left #zope3-dev06:07
*** reedobrien has joined #zope3-dev06:10
*** redir has quit IRC06:21
*** philiKON_ has joined #zope3-dev06:22
*** torkel_ has quit IRC06:32
*** philiKON has quit IRC06:37
*** pcardune has quit IRC06:43
*** `ro has joined #zope3-dev06:49
*** huajie has quit IRC06:55
*** reedobrien has quit IRC06:58
*** `ro has quit IRC07:22
*** baijum has joined #zope3-dev07:34
*** natea_ has joined #zope3-dev07:40
*** ktwilight_ has joined #zope3-dev07:59
*** ktwilight has quit IRC07:59
*** afd has joined #zope3-dev08:02
*** cursor has joined #zope3-dev08:03
*** natea_ has quit IRC08:05
*** zagy_ has quit IRC08:19
*** afd_ has joined #zope3-dev08:19
*** d2m has joined #zope3-dev08:23
*** zagy has joined #zope3-dev08:35
*** afd has quit IRC08:36
*** zagy has quit IRC08:36
*** zagy has joined #zope3-dev08:37
*** sorin has joined #zope3-dev08:37
*** sorin is now known as sorindregan08:37
*** kleist has joined #zope3-dev08:39
*** kleist is now known as kleist^lurking08:40
*** afd__ has joined #zope3-dev08:52
*** afd_ has quit IRC09:03
*** romanofski has joined #zope3-dev09:20
romanofskimoin09:21
*** rocky|away has quit IRC09:34
*** rocky has joined #zope3-dev09:36
*** jodok has joined #zope3-dev09:52
*** schwendinger has joined #zope3-dev10:05
*** schwendinger has quit IRC10:06
*** philiKON_ has quit IRC10:15
*** timte has joined #zope3-dev10:28
*** pelle_ has joined #zope3-dev10:34
*** greenman has joined #zope3-dev10:35
*** schwendinger has joined #zope3-dev10:38
*** afd_ has joined #zope3-dev10:40
*** dunny has quit IRC10:41
*** zez_zez has joined #zope3-dev10:41
*** MJ has joined #zope3-dev10:46
*** markusleist has quit IRC10:51
*** chacha_chaudhry has joined #zope3-dev10:53
*** afd__ has quit IRC10:58
*** b52laptop has quit IRC11:00
*** yvl has joined #zope3-dev11:02
*** afd_ has quit IRC11:06
*** jfroche has joined #zope3-dev11:15
*** jinty has joined #zope3-dev11:16
*** junkafarian has joined #zope3-dev11:31
*** chacha_chaudhry has quit IRC11:55
*** mkerrin has joined #zope3-dev11:59
*** markusleist has joined #zope3-dev12:09
*** zez_zez has quit IRC12:11
*** cursor_ has joined #zope3-dev12:12
*** richardkan has joined #zope3-dev12:14
*** cursor has quit IRC12:18
*** b52laptop has joined #zope3-dev12:20
*** timte has quit IRC12:21
*** projekt01 has joined #zope3-dev12:24
*** jodok has quit IRC12:24
*** jodok has joined #zope3-dev12:29
*** timte has joined #zope3-dev12:30
*** norro has joined #zope3-dev12:54
*** afd_ has joined #zope3-dev12:58
junkafariandoes anyone know how i cant manage principal permissions in file representation views13:00
junkafariani added an FTP credentials plugin to the PAU13:00
*** Aiste has quit IRC13:00
*** jodok has quit IRC13:07
*** Aiste has joined #zope3-dev13:11
*** MJ is now known as MJ|lunch13:24
junkafarians/how/why13:26
dennis_the view is registered for a context, and the permission of the context is what is considered (both for wether the view is available to the current principal, and what information of the context it can access)13:36
*** Ariel_Calzada has joined #zope3-dev13:37
*** jfroche has quit IRC13:38
*** MJ|lunch is now known as MJ13:45
junkafariandennis_: i am trying to edit the permissions on an object for a specific principal which should prevent them for viewing the object13:49
junkafarianhowever when i log in via FTP it does not reference the correct permissions13:50
*** lisppaste6 has quit IRC13:58
*** alga has joined #zope3-dev14:07
*** lisppaste6 has joined #zope3-dev14:08
*** Newfie2007 has joined #zope3-dev14:11
*** torkel_ has joined #zope3-dev14:12
*** ferrafox has joined #zope3-dev14:13
junkafarianin fact i cant seem to restrict any permissions on the objects in the FTP view14:16
*** dobee has joined #zope3-dev14:26
*** dobee has left #zope3-dev14:26
*** faassen has joined #zope3-dev14:27
*** ignas has joined #zope3-dev14:29
*** salfield has joined #zope3-dev14:30
junkafarian^^ anyone? :(14:49
*** niemeyer has joined #zope3-dev15:02
*** torkel_ has quit IRC15:05
*** alga has quit IRC15:07
dennis_junkafarian you could paste some code/configs http://paste.lisp.org/new/zope3-dev and hope people have a look15:14
*** MJ has joined #zope3-dev15:15
*** greenman has quit IRC15:20
*** greenman has joined #zope3-dev15:21
*** jfroche has joined #zope3-dev15:23
*** jsadjohnson has quit IRC15:30
lisppaste6junkafarian pasted "File Representation Configuration" at http://paste.lisp.org/display/4539115:40
*** benji has joined #zope3-dev15:41
lisppaste6junkafarian annotated #45391 with "filerepresentation.py" at http://paste.lisp.org/display/45391#115:42
junkafarian^ re previous questions15:42
*** jodok has joined #zope3-dev15:44
*** rcrafton has joined #zope3-dev15:46
*** jodok has quit IRC15:50
*** mgedmin has joined #zope3-dev15:51
*** jodok has joined #zope3-dev15:55
*** alga has joined #zope3-dev15:55
*** dobee has joined #zope3-dev16:01
*** greenman has quit IRC16:02
dennis_junkafarian I don't have any immediate ideas .. sorry, do you set the permissions on the right object? (folder versus object etc)16:04
junkafarianyeah16:04
*** dobee has quit IRC16:04
junkafarianbasically the video objects are being displayed as folders16:04
*** cursor_ has quit IRC16:04
junkafarianso i can attribute/process various files to them16:05
junkafarianso i restricted the permissions on a video object16:05
junkafarian(eg to stop it being listed)16:05
junkafarianhowever it was still there16:05
*** marianom has joined #zope3-dev16:05
junkafariani cant seem to restrict the permissions on any object16:06
Crippssrichter: I've tried setting the template attribute by doing "self.template = ViewPageTemplateFile('templates/display.pt')" in the button handler, and I get "TypeError: __call__() takes at least 2 arguments (1 given)" as the final line of the traceback, and when I set template in the <page> directive, after the button is clicked, it just kicks me back to my form and prints out self.status ... I get the same thing with z3c.template/z3c.viewtempl16:06
Crippsate16:06
dennis_showing the video as a folder, or showing its contents ?16:06
junkafarianthe video doesnt contain any objects16:07
dennis_cripps if you set self.template like that, you must do    self.template = BoundedPageTemplate( ViewPageTemplateFile('blah.pt'), self )16:07
*** waa has quit IRC16:08
junkafarianhowever the code in filerepresentation.py synthesises files to display16:08
junkafarianso there is a metadata/data file ending in ".info"16:08
junkafarianhowever, you can also upload a video file which will then be processed by the logic16:09
*** greenman has joined #zope3-dev16:10
*** waa has joined #zope3-dev16:12
dennis_junkafarian the idea is quite cool, I will someday need to have something like that :) but I'm not sure what is causing the problems right now16:17
junkafariandennis_: if you're interested have a look at pesto.largeblue.net/trac16:18
junkafarians/ http://pesto.largeblue.net/trac16:18
*** lucielejard has joined #zope3-dev16:18
*** ferrafox_ has joined #zope3-dev16:19
junkafariandennis_: + thanks for looking ;)16:20
dennis_are your users hardcoded in the principals.zcml or in some kind of principal folder?16:20
junkafarianin a principal folder16:21
junkafarianonly the permissions/roles are hardcoded16:21
dennis_do you keep videos in the zodb ?   (getting a bit off-topic reading your architecture docs)16:22
junkafarianon the filesystem16:23
junkafarianwe need to provide a scalable framework16:23
dennis_ah yeah could have told that from your code :)16:23
junkafarian:P16:23
Crippsdennis_: ahh. thank you. Is BoundedPageTemplate in the same package as ViewPageTemplateFile ?16:26
dennis_yup16:27
edgordonthe 'add' menu doesn't seem to do any sort of checking to respect item prconditions. is there a standard way to do this (ie, items are only shown in the add menu if they can actually be added)16:33
*** Newfie2007 has quit IRC16:34
*** netshade has joined #zope3-dev16:36
*** ferrafox has quit IRC16:37
*** philiKON has joined #zope3-dev16:42
*** ferrafox_ is now known as ferrafox16:46
*** baijum has quit IRC16:48
Crippsdennis_: yeah, it was "BoundPageTemplate" ... but yeah, that was exactly what it's looking for, now it's no longer bitching to me about classes, but about errors in the template file. Thanks :)16:52
dennis_and another step closer :)16:53
*** chacha_chaudhry has joined #zope3-dev16:55
*** chacha_chaudhry has quit IRC16:56
*** chacha_chaudhry has joined #zope3-dev16:56
Crippsdennis_: that's the truth ... and that's all I can reasonably ask for ;)17:01
* junkafarian is still struggling with his FTP view :(17:02
* junkafarian feels ignorant17:02
*** tarek has joined #zope3-dev17:02
*** pcardune has joined #zope3-dev17:04
*** sorindregan has quit IRC17:04
*** philiKON has quit IRC17:04
*** eldar has joined #zope3-dev17:05
*** philiKON has joined #zope3-dev17:06
Crippsdennis_: excellent ... now that I have my template errors fixed, it works BEAUTIFULLY ... I'm excited now ...17:06
Crippswanna go for a beer? ;)17:07
dennis_anytime17:07
CrippsphiliKON: is the third edition of your book going to have a section on formlib?17:07
Crippsdennis_: :)17:07
philiKONCripps: the 2nd ed. already has17:08
CrippsphiliKON: which chapter is that?17:08
philiKONchapte r817:08
philiKONor so17:08
CrippsphiliKON: right ... custom add and edit forms.17:08
Crippsforgot about that ;)17:09
*** zagy has quit IRC17:10
*** zagy has joined #zope3-dev17:10
* junkafarian has found philiKON's book very helpful17:11
Crippsjunkafarian: I think you speak for everyone when you say that.17:11
*** whit has joined #zope3-dev17:12
junkafarianCripps: :P17:12
junkafarianyeah17:12
*** whit has quit IRC17:12
Crippswe really should stop saying that every time Phil comes around though ... it might start getting to his head ;)17:12
zagyhehehe17:12
junkafarianphiliKON: I did run into trouble with the example code in on Authentication and User Management :P17:13
*** jfroche has quit IRC17:13
* philiKON afk17:13
*** jfroche has joined #zope3-dev17:14
junkafarianonly open to praise eh? :P17:14
*** Newfie2007 has joined #zope3-dev17:20
*** jukart has joined #zope3-dev17:24
*** jukart_ has joined #zope3-dev17:27
*** jodok has quit IRC17:27
*** jodok has joined #zope3-dev17:27
*** huajie has joined #zope3-dev17:31
*** jukart has quit IRC17:43
*** pcardune has quit IRC17:43
*** jfroche has quit IRC17:47
*** MJ has quit IRC17:56
*** fcorrea has joined #zope3-dev17:59
*** nerdalert has joined #zope3-dev18:04
*** jodok has quit IRC18:05
*** Newfie2007 has quit IRC18:07
*** Ariel_Calzada has quit IRC18:13
*** timte has quit IRC18:20
*** nathany has joined #zope3-dev18:22
*** jodok has joined #zope3-dev18:27
* junkafarian apologises in advance18:30
junkafariani dont suppose any one has had a chance to have a look into my earlier query :(18:30
*** nathany has quit IRC18:31
*** nathany has joined #zope3-dev18:31
*** waa has quit IRC18:32
*** philiKON has quit IRC18:32
*** natea_ has joined #zope3-dev18:32
*** ksmith99 has joined #zope3-dev18:34
*** whit has joined #zope3-dev18:36
*** jukart_ has quit IRC18:36
*** jfroche has joined #zope3-dev18:39
*** huajie has quit IRC18:40
*** chacha_chaudhry has quit IRC18:41
*** Newfie2007 has joined #zope3-dev18:43
* junkafarian takes that as a no18:43
*** lucielejard_ has joined #zope3-dev18:48
*** netshade_ has joined #zope3-dev18:49
*** dennis_ has quit IRC18:54
*** netshade has quit IRC18:55
*** lucielejard has quit IRC18:55
*** jinty_ has joined #zope3-dev18:58
*** RaFromBRC has joined #zope3-dev19:03
*** pbugni has quit IRC19:04
*** Aiste has quit IRC19:07
*** Aiste has joined #zope3-dev19:08
*** b52lap has joined #zope3-dev19:08
*** b52laptop has quit IRC19:09
*** romanofski has quit IRC19:09
*** jinty has quit IRC19:12
*** natea_ is now known as natea19:14
*** csmiga has joined #zope3-dev19:15
*** projekt01 has left #zope3-dev19:15
* junkafarian renews his plea for FTP permissions help :(19:16
junkafarian / and apologises for his repetition and ignorance19:17
*** philiKON has joined #zope3-dev19:17
junkafarianis there some kind of FTP authentication plugin/check that i am not doing?19:20
*** Aiste has quit IRC19:25
*** rcrafton has quit IRC19:28
*** philiKON has quit IRC19:29
*** eldar is now known as eldar|lunch19:44
*** salfield has quit IRC19:55
*** rcrafton has joined #zope3-dev19:57
*** jodok has quit IRC20:00
*** goplus has joined #zope3-dev20:03
*** schwendinger has quit IRC20:11
*** goplus has left #zope3-dev20:11
*** pbugni has joined #zope3-dev20:16
*** tarek has left #zope3-dev20:17
*** pelle_ has quit IRC20:20
*** pbugni has quit IRC20:21
*** whit has quit IRC20:29
*** whit has joined #zope3-dev20:30
*** timte has joined #zope3-dev20:37
*** markusleist has quit IRC20:41
*** b52lap has quit IRC20:46
*** CSWookie has quit IRC20:47
*** mgedmin has quit IRC20:48
*** alga has quit IRC20:49
*** mkerrin has quit IRC20:52
*** kleist^lurking has left #zope3-dev20:53
*** sm has joined #zope3-dev20:58
*** jsadjohnson has joined #zope3-dev21:00
*** rocky has quit IRC21:01
*** rocky has joined #zope3-dev21:02
*** ignas has quit IRC21:09
*** philiKON has joined #zope3-dev21:12
*** philiKON has quit IRC21:16
*** philiKON has joined #zope3-dev21:24
*** richardkan has quit IRC21:40
*** markusleist has joined #zope3-dev21:48
*** Newfie2007 has quit IRC21:57
edgordonso, am i correct in observing that the 'add' menu in the zmi respects 'contains' rules but does not check preconditions?22:01
*** romanofski has joined #zope3-dev22:03
*** Aiste has joined #zope3-dev22:09
*** eldar|lunch is now known as eldar22:12
*** ksmith99 has left #zope3-dev22:13
*** dobee has joined #zope3-dev22:15
*** dobee has quit IRC22:22
*** d2m has quit IRC22:23
*** jodok has joined #zope3-dev22:23
*** lucielejard_ is now known as lucielejard22:32
*** edgordon has quit IRC22:33
*** ferrafox has quit IRC22:35
*** regebro has joined #zope3-dev22:35
*** junkafarian has left #zope3-dev22:36
*** Aiste has quit IRC22:38
*** deo has joined #zope3-dev22:50
*** b52laptop has joined #zope3-dev22:57
*** edgordon has joined #zope3-dev23:10
*** tdoggette has joined #zope3-dev23:11
*** AVN` has joined #zope3-dev23:11
tdoggettesrichter: Me and AVN`are having problems with the testbrowser.23:12
tdoggetteIt sees only a schooltool calendar, no matter what it's pointed at.23:12
tdoggetteeldar said you said it might be a zcml problem?23:13
*** marianom has left #zope3-dev23:18
*** marianom has joined #zope3-dev23:24
srichtertdoggette: make sure your ftesting.zcml file includes all the package configuration that you expect it to23:31
tdoggetteYup. Looks all normal to me.23:32
tdoggetteThat is, it includes the package we're testing in the list.23:32
*** jukart has joined #zope3-dev23:36
*** jukart_ has joined #zope3-dev23:37
*** ayers has joined #zope3-dev23:38
*** whit has quit IRC23:39
*** whit has joined #zope3-dev23:39
*** dunny has joined #zope3-dev23:44
ayersHello... I've got a user question which no-one on #zope was able to help me with... I'd appreciate if someone here could simply point to the coorect manual so I can RTFM23:47
ayersI'm looking for a Zope3 - schema based example in which the "Bytes" contents of an attribute is rendered as a link to a temporarly created file.23:47
ayersI've tried adapting the PDF example in the Web Components Development with Zope 3 book but I'm having little success.23:48
ayersI get: "TypeError: The result should be adaptable to IResult" when I tried to adapt that example23:48
*** regebro has left #zope3-dev23:50
*** sm is now known as sm-afk23:52
*** jukart has quit IRC23:54
instantfooayers: hmm.. make a that returns the tempfile and add a @property decorator?23:56
instantfoo*make a function23:56

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!