[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/registration/registration.py Bug (more of a typeo) fix.

Garrett Smith garrett at mojave-corp.com
Sat Feb 5 08:26:10 EST 2005


Log message for revision 29054:
  Bug (more of a typeo) fix.

Changed:
  U   Zope3/trunk/src/zope/app/registration/registration.py

-=-
Modified: Zope3/trunk/src/zope/app/registration/registration.py
===================================================================
--- Zope3/trunk/src/zope/app/registration/registration.py	2005-02-05 00:58:43 UTC (rev 29053)
+++ Zope3/trunk/src/zope/app/registration/registration.py	2005-02-05 13:26:10 UTC (rev 29054)
@@ -133,12 +133,12 @@
        When a registration is activated or deactivated, an event is published
        to which one can subscribe; in our case the registration components
        themselves subscribe to these events to set their status.
-         
+
          >>> def setActive(event):
          ...     event.object.active = True
          >>> subscribe((interfaces.IRegistrationActivatedEvent,), None,
          ...           setActive)
-         
+
          >>> def unsetActive(event):
          ...     event.object.active = False
          >>> subscribe((interfaces.IRegistrationDeactivatedEvent,), None,
@@ -147,7 +147,7 @@
 
        We create a registration stack by providing it with a parent:
 
-         >>> from zope.app.registration.registration import RegistrationStack 
+         >>> from zope.app.registration.registration import RegistrationStack
          >>> stack = RegistrationStack(42)
          >>> stack.__parent__
          42
@@ -484,7 +484,7 @@
          ...     event.object.active = True
          >>> subscribe((interfaces.IRegistrationActivatedEvent,), None,
          ...           setActive)
-         
+
          >>> def unsetActive(event):
          ...     event.object.active = False
          >>> subscribe((interfaces.IRegistrationDeactivatedEvent,), None,
@@ -568,7 +568,7 @@
         self.__parent__.notifyActivated(self, registration)
 
     def _deactivate(self, registration):
-        super(NotifyingRegistrationStack, self)._activate(registration)
+        super(NotifyingRegistrationStack, self)._deactivate(registration)
         self.__parent__.notifyDeactivated(self, registration)
 #############################################################################
 
@@ -675,7 +675,7 @@
 
     def __BBB_old_getComponent(self, path):
         service_manager = zapi.getServices(self)
-        
+
         # Get the root and unproxy it
         if path.startswith("/"):
             # Absolute path
@@ -706,7 +706,7 @@
         self._component = component
 
     component = property(__BBB_getComponent, __BBB_setComponent)
-    
+
     def __BBB_getComponentPath(self):
         warnings.warn(
             "`componentPath` is deprecated. You can get to the component "
@@ -731,14 +731,14 @@
     def __setstate__(self, dict):
         super(ComponentRegistration, self).__setstate__(dict)
         # For some reason the component path is not set correctly by the
-        # default __setstate__ mechanism. 
+        # default __setstate__ mechanism.
         if 'componentPath' in dict:
             self._component = NULL_COMPONENT
             self._BBB_componentPath = dict['componentPath']
 
         if isinstance(self._BBB_componentPath, (str, unicode)):
             self._component = NULL_COMPONENT
-    
+
     ###########################################################################
 
 



More information about the Zope3-Checkins mailing list