[Checkins] SVN: CMF/branches/2.1/CMFDefault/ Removed utility registrations from CMFDefault tools, where the underlying CMFCore tool is not regist

Hanno Schlichting plone at hannosch.info
Wed Jun 27 13:29:41 EDT 2007


Log message for revision 77150:
  Removed utility registrations from CMFDefault tools, where the underlying CMFCore tool is not regist
  ered.
  

Changed:
  U   CMF/branches/2.1/CMFDefault/DiscussionTool.py
  U   CMF/branches/2.1/CMFDefault/MembershipTool.py
  U   CMF/branches/2.1/CMFDefault/RegistrationTool.py

-=-
Modified: CMF/branches/2.1/CMFDefault/DiscussionTool.py
===================================================================
--- CMF/branches/2.1/CMFDefault/DiscussionTool.py	2007-06-27 17:26:11 UTC (rev 77149)
+++ CMF/branches/2.1/CMFDefault/DiscussionTool.py	2007-06-27 17:29:41 UTC (rev 77150)
@@ -29,7 +29,6 @@
 from Products.CMFCore.interfaces.portal_discussion \
         import portal_discussion as z2IDiscussionTool
 from Products.CMFCore.utils import getToolByName
-from Products.CMFCore.utils import registerToolInterface
 from Products.CMFCore.utils import UniqueObject
 
 from DiscussionItem import DiscussionItemContainer
@@ -127,4 +126,3 @@
         return content.talkback
 
 InitializeClass( DiscussionTool )
-registerToolInterface('portal_discussion', IDiscussionTool)

Modified: CMF/branches/2.1/CMFDefault/MembershipTool.py
===================================================================
--- CMF/branches/2.1/CMFDefault/MembershipTool.py	2007-06-27 17:26:11 UTC (rev 77149)
+++ CMF/branches/2.1/CMFDefault/MembershipTool.py	2007-06-27 17:29:41 UTC (rev 77150)
@@ -23,11 +23,9 @@
 from Globals import InitializeClass
 from zope.interface import implements
 
-from Products.CMFCore.ActionProviderBase import ActionProviderBase
 from Products.CMFCore.MembershipTool import MembershipTool as BaseTool
 from Products.CMFCore.utils import _checkPermission
 from Products.CMFCore.utils import _getAuthenticatedUser
-from Products.CMFCore.utils import registerToolInterface
 
 from Document import addDocument
 from interfaces import IMembershipTool
@@ -57,7 +55,7 @@
     """
 
     implements(IMembershipTool)
-    __implements__ = (z2IMembershipTool, ActionProviderBase.__implements__)
+    __implements__ = (z2IMembershipTool, )
 
     meta_type = 'Default Membership Tool'
     membersfolder_id = 'Members'
@@ -216,5 +214,4 @@
             return None
 
 InitializeClass(MembershipTool)
-registerToolInterface('portal_membership', IMembershipTool)
 

Modified: CMF/branches/2.1/CMFDefault/RegistrationTool.py
===================================================================
--- CMF/branches/2.1/CMFDefault/RegistrationTool.py	2007-06-27 17:26:11 UTC (rev 77149)
+++ CMF/branches/2.1/CMFDefault/RegistrationTool.py	2007-06-27 17:29:41 UTC (rev 77150)
@@ -28,7 +28,6 @@
 from Products.CMFCore.RegistrationTool import RegistrationTool as BaseTool
 from Products.CMFCore.utils import _checkPermission
 from Products.CMFCore.utils import getToolByName
-from Products.CMFCore.utils import registerToolInterface
 from Products.CMFCore.utils import postonly
 
 from permissions import ManagePortal
@@ -217,4 +216,3 @@
     editMember = postonly(editMember)
 
 InitializeClass(RegistrationTool)
-registerToolInterface('portal_registration', IRegistrationTool)



More information about the Checkins mailing list