[CMF-checkins] CVS: CMF/CMFCore - RegistrationTool.py:1.16.8.1

Yvo Schubbe schubbe@web.de
Wed, 18 Dec 2002 16:42:07 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv10810/CMFCore

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/CMFCore/RegistrationTool.py 1.16 => 1.16.8.1 ===
--- CMF/CMFCore/RegistrationTool.py:1.16	Tue Aug 20 13:59:54 2002
+++ CMF/CMFCore/RegistrationTool.py	Wed Dec 18 16:42:06 2002
@@ -36,11 +36,17 @@
 from utils import getToolByName
 from utils import _dtmldir
 
+from interfaces.portal_registration \
+        import portal_registration as IRegistrationTool
+
 
 class RegistrationTool(UniqueObject, SimpleItem, ActionProviderBase):
 
     """ Create and modify users by making calls to portal_membership.
     """
+
+    __implements__ = (IRegistrationTool, ActionProviderBase.__implements__)
+
     id = 'portal_registration'
     meta_type = 'CMF Registration Tool'
 
@@ -60,10 +66,6 @@
     #
     #   'portal_registration' interface methods
     #
-    security.declarePrivate('listActions')
-    def listActions(self, info):
-        return None 
-
     security.declarePublic('isRegistrationAllowed')
     def isRegistrationAllowed(self, REQUEST):
         '''Returns a boolean value indicating whether the user