Commit f89f70af authored by Jim Fulton's avatar Jim Fulton

Implemented a new ownership a new protocol for overriding the "super

cannot create" rule.  We define a __creatable_by_super__ method that
returns a true so that user folders (BasicUserFolder) could make
themselves addable by super for bootstrapping purposes.
parent 10eac4ab
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.104 $'[11:-2] __version__='$Revision: 1.105 $'[11:-2]
import Globals, socket, regex, SpecialUsers import Globals, socket, regex, SpecialUsers
from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping
...@@ -656,6 +656,8 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager, ...@@ -656,6 +656,8 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
if hasattr(self, 'aq_base'): self=self.aq_base if hasattr(self, 'aq_base'): self=self.aq_base
container.__allow_groups__=self container.__allow_groups__=self
def __creatable_by_super__(self): return 1
def _setId(self, id): def _setId(self, id):
if id != self.id: if id != self.id:
raise Globals.MessageDialog( raise Globals.MessageDialog(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment