[CMF-checkins] CVS: CMF/CMFDefault/interfaces - __init__.py:1.4 portal_membership.py:1.2
Yvo Schubbe
schubbe@web.de
Fri, 21 Feb 2003 06:38:40 -0500
Update of /cvs-repository/CMF/CMFDefault/interfaces
In directory cvs.zope.org:/tmp/cvs-serv30441/CMFDefault/interfaces
Added Files:
__init__.py portal_membership.py
Log Message:
Merged yuppie-collector128-branch:
- Un-hardwired members folder. (Collector #128)
=== CMF/CMFDefault/interfaces/__init__.py 1.3 => 1.4 ===
--- /dev/null Fri Feb 21 06:38:40 2003
+++ CMF/CMFDefault/interfaces/__init__.py Fri Feb 21 06:38:39 2003
@@ -0,0 +1,16 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+#
+##############################################################################
+""" CMFDefault.interfaces package.
+
+$Id$
+"""
=== CMF/CMFDefault/interfaces/portal_membership.py 1.1 => 1.2 ===
--- /dev/null Fri Feb 21 06:38:40 2003
+++ CMF/CMFDefault/interfaces/portal_membership.py Fri Feb 21 06:38:39 2003
@@ -0,0 +1,45 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+#
+##############################################################################
+""" Extended membership tool interface.
+
+$Id$
+"""
+
+from Products.CMFCore.interfaces.portal_membership \
+ import portal_membership as BaseInterface
+
+
+class portal_membership(BaseInterface):
+ """ Declare product-specific APIs for CMFDefault's tool.
+ """
+
+ def setMembersFolderById(id=''):
+ """ Set the members folder object by its id.
+
+ The members folder has to be in the same container as the membership
+ tool. id is the id of an existing folder. If id is empty, member areas
+ are disabled.
+
+ Permission -- Manage portal
+ """
+
+ def getMembersFolder():
+ """ Get the members folder object.
+
+ If no members folder is set or the set folder id doesn't exist, None
+ is returned.
+
+ Permission -- Always available
+
+ Returns -- Members folder object or None
+ """