[CMF-checkins] CVS: CMF/CMFDefault - RegistrationTool.py:1.15.2.1
Yvo Schubbe
schubbe@web.de
Wed, 18 Dec 2002 16:43:44 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv11139/CMFDefault
Modified Files:
Tag: yuppie-collector096-branch
RegistrationTool.py
Log Message:
ActionProvider interface cleanup:
- Removed listActions() from Contentish and portal_workflow interface.
- Removed redundant or 'None' overriding of listActions().
=== CMF/CMFDefault/RegistrationTool.py 1.15 => 1.15.2.1 ===
--- CMF/CMFDefault/RegistrationTool.py:1.15 Tue Nov 26 13:19:45 2002
+++ CMF/CMFDefault/RegistrationTool.py Wed Dec 18 16:43:44 2002
@@ -19,24 +19,25 @@
from Globals import InitializeClass, DTMLFile
from AccessControl import ClassSecurityInfo
-from Products.CMFCore.interfaces.portal_registration import portal_registration
from Products.CMFCore.utils import UniqueObject
from Products.CMFCore.utils import _checkPermission
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.Expression import Expression
from Products.CMFCore.ActionProviderBase import ActionProviderBase
-from Products.CMFCore.RegistrationTool import RegistrationTool
+from Products.CMFCore.RegistrationTool import RegistrationTool as BaseTool
from Products.CMFCore.CMFCorePermissions import AddPortalMember
from Products.CMFCore.CMFCorePermissions import ManagePortal
from utils import _dtmldir
-class RegistrationTool (RegistrationTool, ActionProviderBase):
+class RegistrationTool(BaseTool):
""" Manage through-the-web signup policies.
"""
- __implements__ = ( portal_registration, )
+
+ __implements__ = BaseTool.__implements__
+
meta_type = 'Default Registration Tool'
_actions = [ ActionInformation( id='join'
@@ -65,16 +66,6 @@
)
)
manage_overview = DTMLFile( 'explainRegistrationTool', _dtmldir )
-
- #
- # ActionProvider interface
- #
- security.declarePublic('listActions')
- def listActions(self, info=None):
- """
- Return actions provided via tool.
- """
- return self._actions
#
# 'portal_registration' interface