[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/component/interfaces/registration.py Moved registration events to zope.component.interfaces

Jim Fulton jim at zope.com
Sun Apr 2 12:59:36 EDT 2006


Log message for revision 66309:
  Moved registration events to zope.component.interfaces
  

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

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/interfaces/registration.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/interfaces/registration.py	2006-04-02 16:59:33 UTC (rev 66308)
+++ Zope3/branches/jim-adapter/src/zope/app/component/interfaces/registration.py	2006-04-02 16:59:35 UTC (rev 66309)
@@ -41,26 +41,24 @@
     'IRegistered',
     )
 
+zope.deferredimport.deprecated(
+    "Registration events are not defined in zope.component.interfaces. "
+    "Importing them from zope.app.component.registration will be disallowed "
+    "in Zope 3.5",
+    IRegistrationEvent = 'zope.component.interfaces:IRegistrationEvent',
+    IRegistrationActivatedEvent = 'zope.component.interfaces:IRegistered',
+    IRegistrationDeactivatedEvent = 'zope.component.interfaces:IUnregistered',
+    )
 
-class IRegistrationEvent(zope.app.event.interfaces.IObjectEvent):
-    """An event that involves a registration"""
-
-class IRegistrationActivatedEvent(IRegistrationEvent):
-    """This event is fired, when a component's registration is activated."""
-
-class IRegistrationDeactivatedEvent(IRegistrationEvent):
-    """This event is fired, when a component's registration is deactivated."""
-
-
 class IComponent(zope.schema.interfaces.IField):
-    """A component path
+    """A component 
 
     This is just the interface for the ComponentPath field below.  We'll use
     this as the basis for looking up an appropriate widget.
     """
 
 class Component(schema.Field):
-    """A component path
+    """A component 
 
     Values of the field are absolute unicode path strings that can be
     traversed to get an object.



More information about the Zope3-Checkins mailing list