> 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']
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 PR
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
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 (Ob
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 w
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 ad