[CMF-checkins] CVS: CMF/CMFDefault/interfaces - __init__.py:1.3.2.1 portal_membership.py:1.1.2.1

Yvo Schubbe schubbe@web.de
Tue, 18 Feb 2003 08:08:19 -0500


Update of /cvs-repository/CMF/CMFDefault/interfaces
In directory cvs.zope.org:/tmp/cvs-serv21557/CMFDefault/interfaces

Added Files:
      Tag: yuppie-collector128-branch
	__init__.py portal_membership.py 
Log Message:
- un-hardwired members folder (Collector #128)
- made registerHelp work with 2 directories

=== Added File CMF/CMFDefault/interfaces/__init__.py ===
##############################################################################
#
# 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: __init__.py,v 1.3.2.1 2003/02/18 13:08:18 yuppie Exp $
"""


=== Added File CMF/CMFDefault/interfaces/portal_membership.py ===
##############################################################################
#
# 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: portal_membership.py,v 1.1.2.1 2003/02/18 13:08:18 yuppie Exp $
"""

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
        """