[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/component/back35.py Fixed some "imports"/references to reflect backward-compat shuffle

Jim Fulton jim at zope.com
Sun Apr 9 12:06:21 EDT 2006


Log message for revision 66739:
  Fixed some "imports"/references to reflect backward-compat shuffle
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/component/back35.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/back35.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/back35.py	2006-04-09 16:06:18 UTC (rev 66738)
+++ Zope3/branches/jim-adapter/src/zope/app/component/back35.py	2006-04-09 16:06:20 UTC (rev 66739)
@@ -341,9 +341,9 @@
 
         registry = registration.getRegistry()
         if registry and registry.registered(registration):
-            return interfaces.ActiveStatus
+            return ActiveStatus
 
-        return interfaces.InactiveStatus
+        return InactiveStatus
 
     def __set__(self, inst, value):
         registration = inst
@@ -351,14 +351,14 @@
         if registry is None:
             raise ValueError('No registry found.')
 
-        if value == interfaces.ActiveStatus:
+        if value == ActiveStatus:
             if not registry.registered(registration):
                 registry.register(registration)
                 zope.event.notify(
                     zope.component.interfaces.Registered(registration)
                     )
 
-        elif value == interfaces.InactiveStatus:
+        elif value == InactiveStatus:
             if registry.registered(registration):
                 registry.unregister(registration)
                 zope.event.notify(
@@ -534,7 +534,7 @@
     def registrations(self):
         rm = zapi.getParent(self.registerable).registrationManager
         return [reg for reg in rm.values()
-                if (interfaces.IComponentRegistration.providedBy(reg) and
+                if (IComponentRegistration.providedBy(reg) and
                     reg.component is self.registerable)]
 
 



More information about the Zope3-Checkins mailing list