Re: [Zope3-Users] Re: ZCML, practicality, purity (was "Excellent perspective...")

2006-01-17 Thread Martijn Faassen
Jeff Shell wrote: [snip lots of good stuff about configuration in python code and its drawbacks] But if that were a route one decided to use, one would have to lay down VERY strict rules. Otherwise we lose all the benefits of the Component Architecture and start heading back into a free-for-al

[Zope3-Users] Re: URL Traversal/SelectedManagementView

2006-01-17 Thread Jeff Rush
David Johnson wrote: I want to create an instance of a class that does not reside in the Zope DB, and yet manage it through the ZMI. Yes, I'm working on that as well. That is what I have done so far. I created a package called “customers”, which has an instance in the Zope DB. It has a v

[Zope3-Users] Seeking Zope 3 Equivalent to Zope 2 "LocalFS"

2006-01-17 Thread Jeff Rush
In my Zope 3 application I need to expose an underlying directory tree via a portion of the URL space, to receive images via FTP and then to serve them via URL (along with some special upon-arrival processing I won't bore you with). Basically is there any portion of Zope 3 that already has this

[Zope3-Users] Re: Seeking Zope 3 Equivalent to Zope 2 "LocalFS"

2006-01-17 Thread Michael Haubenwallner
Jeff Rush wrote: In my Zope 3 application I need to expose an underlying directory tree via a portion of the URL space, to receive images via FTP and then to serve them via URL (along with some special upon-arrival processing I won't bore you with). Basically is there any portion of Zope 3 th

Re: [Zope3-Users] Seeking Zope 3 Equivalent to Zope 2 "LocalFS"

2006-01-17 Thread Stephan Richter
On Tuesday 17 January 2006 07:05, Jeff Rush wrote: > Basically is there any portion of Zope 3 that already has this capability, > of providing IFolder but sending file I/O requests into the underlying > filesystem? Michael mentions the way to do this for resources. But if you want something more

Re: [Zope3-Users] Permissions of a given object

2006-01-17 Thread Frank Burkhardt
Hi, On Sun, Jan 15, 2006 at 11:20:47AM -0500, Stephan Richter wrote: > On Thursday 12 January 2006 08:13, Frank Burkhardt wrote: > > but the problem remains: canAccess returns True for all inaccessible > > objects. > > It is hard to guess where your setup is wrong. Does it not work for unit > te

Re: [Zope3-Users] Permissions of a given object

2006-01-17 Thread Gary Poster
On Jan 17, 2006, at 10:38 AM, Frank Burkhardt wrote: Hi, On Sun, Jan 15, 2006 at 11:20:47AM -0500, Stephan Richter wrote: On Thursday 12 January 2006 08:13, Frank Burkhardt wrote: but the problem remains: canAccess returns True for all inaccessible objects. It is hard to guess where your s

Re: [Zope3-Users] Permissions of a given object

2006-01-17 Thread Frank Burkhardt
Hi, On Tue, Jan 17, 2006 at 10:53:12AM -0500, Gary Poster wrote: [snip] > The meaning of "objects a user can access" varies significantly from > application to application. You will probably want to optimize this > filter by creating an index eventually. For some policies and questions, > this

[Zope3-Users] Convert from string to class

2006-01-17 Thread Florian Lindner
Hello, I've a string like "zope.app.folder.Folder" and I want to get the class zope.app.folder.Folder from this string. How can I do that? It's probably more a python problem that Zope... but I hope you excuse. Thanks, Florian ___ Zope3-users mailing

Re: [Zope3-Users] Convert from string to class

2006-01-17 Thread Marc Rijken
Hi Florian, This function will do the job: def translateDottedName(i): names = i.split('.') module = __import__('.'.join(names[:-1]), {}, {}, ['*']) return getattr(module, names[-1]) Marc Florian Lindner wrote: Hello, I've a string like "zope.app.folder.Folder" and I want to ge

Re: [Zope3-Users] Convert from string to class

2006-01-17 Thread Gary Poster
On Jan 17, 2006, at 5:10 PM, Florian Lindner wrote: Hello, I've a string like "zope.app.folder.Folder" and I want to get the class zope.app.folder.Folder from this string. How can I do that? It's probably more a python problem that Zope... but I hope you excuse. Was just rewriting this f

Re: [Zope3-Users] Convert from string to class

2006-01-17 Thread Markus Leist
Hello, what about: http://www.talkaboutprogramming.com/group/comp.lang.python/messages/318370.html Markus 17.01.2006 23:10, Florian Lindner: > Hello, > I've a string like "zope.app.folder.Folder" and I want to get the class > zope.app.folder.Folder from this string. How can I do that? > It's pro

[Zope3-Users] CalCore from CPS and Zope3?

2006-01-17 Thread Roman Susi
Hi! I am intrested in making CalCore to work Zope3, however, I have not found anything that says CalCore can work inside Zope3 fo rnow. Are there any plans on this if anybody knows? Is it easy to DIY? Thanks! Sincerely yours, Roman Suzi ___ Zope3-user

[Zope3-Users] Re: Seeking Zope 3 Equivalent to Zope 2 "LocalFS"

2006-01-17 Thread Jeff Rush
Michael Haubenwallner wrote: Jeff Rush wrote: The Resource directive exposes a single file, say a .CSS or favicon.png, but I'm not seeing that it can expose an entire directory tree. > The browser:resourceDirectory works for me, here is eg. the 'configure.zcml' of a package that just holds