[Zope-dev] OrderSupport: small improvement

2004-04-07 Thread yuppie
Hi! Currently the OrderSupport API always orders sub-objects relative to the complete list of sub-objects. This causes problems if some hidden sub-objects are not shown. From an UI point of view, moving sub-objects should always be relative to the visible subset of sub-objects. I'd like to

[Zope-dev] setup.py and unittests

2004-04-07 Thread yuppie
Hi! Trying to run unittests from a Zope HEAD installation, I stumbled over these setup.py issues: - the new 'transaction' package is missing - testrunner.py is installed, not test.py - some files needed to run unittests are missing - SearchIndex.UnIndex still imports BTree and IOBTree which

[Zope-dev] Using a truely revision based storage for Zope ?

2004-04-07 Thread Jean-Francois . Doyon
Hello, A co-worker of mine had an idea I thought was interesting and would like to investigate further. First of all, the history behind: We had requirements for: - Out of synch editing: Editing objects that are currently published and publishing those only once they've been workflowed

[Zope-dev] manage_permission from script

2004-04-07 Thread Erik A . Dahl
I'm trying to use manage_permission from a script against the root application object. When I do I get the following error from ObjectManager. This definitely works from within zope since I'm able to edit permissions from the ZMI. I guess the app object returned from Zope.app() doesn't have

RE: [Zope-dev] manage_permission from script

2004-04-07 Thread zope
For setting permission on the root application object, use setPermissionDefault of SecurityInfo. e.g. in your product: class MyClass: security = ClassSecurityInfo() security.setPermissionDefault(Permissions.view, ('Owner',)) Reagrds, Sandor -Original Message- From: [EMAIL

RE: [Zope-dev] manage_permission from script

2004-04-07 Thread zope
For setting permission on the root application object, use setPermissionDefault of SecurityInfo. Eh, this only works for my own defined permissions. However I just tried this from my product and it does what it supposed to do: self.getPhysicalRoot().manage_permission('View', ['Owner'])