[Checkins]
SVN: z3c.authentication/trunk/src/z3c/authentication/simple/
Fix permission configuration issues
Roger Ineichen
roger at projekt01.ch
Mon Apr 2 01:11:52 EDT 2007
Log message for revision 73972:
Fix permission configuration issues
Changed:
U z3c.authentication/trunk/src/z3c/authentication/simple/browser/add.py
U z3c.authentication/trunk/src/z3c/authentication/simple/interfaces.py
U z3c.authentication/trunk/src/z3c/authentication/simple/member.zcml
-=-
Modified: z3c.authentication/trunk/src/z3c/authentication/simple/browser/add.py
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/simple/browser/add.py 2007-04-02 00:16:20 UTC (rev 73971)
+++ z3c.authentication/trunk/src/z3c/authentication/simple/browser/add.py 2007-04-02 05:11:51 UTC (rev 73972)
@@ -69,8 +69,14 @@
self.context.contentName = name
return obj
+ def add(self, object):
+ # use the add method of the MemberContainer
+ ob = self.context.context.add(object)
+ self._finished_add = True
+ return ob
+
class GroupContainerAddForm(form.AddForm):
"""GroupContainer add form."""
Modified: z3c.authentication/trunk/src/z3c/authentication/simple/interfaces.py
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/simple/interfaces.py 2007-04-02 00:16:20 UTC (rev 73971)
+++ z3c.authentication/trunk/src/z3c/authentication/simple/interfaces.py 2007-04-02 05:11:51 UTC (rev 73972)
@@ -166,6 +166,8 @@
contains(IMember)
+ def add(member):
+ """Add a IMember object."""
# principal interfaces
Modified: z3c.authentication/trunk/src/z3c/authentication/simple/member.zcml
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/simple/member.zcml 2007-04-02 00:16:20 UTC (rev 73971)
+++ z3c.authentication/trunk/src/z3c/authentication/simple/member.zcml 2007-04-02 05:11:51 UTC (rev 73972)
@@ -15,17 +15,19 @@
<implements
interface="zope.annotation.interfaces.IAttributeAnnotatable"
/>
-
<require
- permission="zope.ManageServices"
- interface="zope.app.container.interfaces.IContainer"
+ permission="zope.Public"
+ interface="zope.app.container.interfaces.IReadContainer"
/>
-
<require
permission="zope.ManageServices"
- attributes="prefix"
+ attributes="add"
+ set_schema="zope.app.container.interfaces.IWriteContainer"
/>
-
+ <require
+ permission="zope.Public"
+ interface="z3c.authentication.simple.interfaces.IAuthenticatorPlugin"
+ />
</class>
<adapter
More information about the Checkins
mailing list