[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_memberdata.py:1.5.12.1 portal_membership.py:1.5.12.1
Yvo Schubbe
schubbe@web.de
Thu, 19 Dec 2002 13:20:08 -0500
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv9134/CMFCore/interfaces
Modified Files:
Tag: yuppie-collector096-branch
portal_memberdata.py portal_membership.py
Log Message:
tool interface cleanup:
- added portal_properties interface
- added interface tests and made them pass
=== CMF/CMFCore/interfaces/portal_memberdata.py 1.5 => 1.5.12.1 ===
--- CMF/CMFCore/interfaces/portal_memberdata.py:1.5 Thu Aug 1 15:05:12 2002
+++ CMF/CMFCore/interfaces/portal_memberdata.py Thu Dec 19 13:20:07 2002
@@ -10,14 +10,20 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Membership data storage tool interface description.
+""" Membership data storage tool interface.
$Id$
"""
-from Interface import Attribute, Base
+from Interface import Attribute
+try:
+ from Interface import Interface
+except ImportError:
+ # for Zope versions before 2.6.0
+ from Interface import Base as Interface
-class portal_memberdata(Base):
+
+class portal_memberdata(Interface):
'''A helper for portal_membership that transparently adds
member data to user objects.
'''
@@ -48,3 +54,13 @@
tool with the list in the actual underlying acl_users
and delete anything not in acl_users
'''
+
+class MemberData(Interface):
+ """ MemberData interface.
+ """
+
+ def setProperties(properties=None, **kw):
+ """ Allows the authenticated member to set his/her own properties.
+
+ Permission -- SetOwnProperties
+ """
=== CMF/CMFCore/interfaces/portal_membership.py 1.5 => 1.5.12.1 ===
--- CMF/CMFCore/interfaces/portal_membership.py:1.5 Thu Aug 1 15:05:12 2002
+++ CMF/CMFCore/interfaces/portal_membership.py Thu Dec 19 13:20:07 2002
@@ -10,19 +10,31 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
-""" Membership tool interface description.
+""" Membership tool interface.
$Id$
"""
-from Interface import Attribute, Base
+from Interface import Attribute
+try:
+ from Interface import Interface
+except ImportError:
+ # for Zope versions before 2.6.0
+ from Interface import Base as Interface
-class portal_membership(Base):
+
+class portal_membership(Interface):
'''Deals with the details of how and where to store and retrieve
members and their member folders.
'''
id = Attribute('id', 'Must be set to "portal_membership"')
+ def setPassword(password, domains=None):
+ """ Allows the authenticated member to set his/her own password.
+
+ Permission -- SetOwnPassword
+ """
+
#getAuthenticatedMember__roles__ = None # Allow all.
def getAuthenticatedMember():
'''