[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/component/registration.py
Moved events to zope.component.interfaces
Jim Fulton
jim at zope.com
Sun Apr 2 12:59:55 EDT 2006
Log message for revision 66316:
Moved events to zope.component.interfaces
Changed:
U Zope3/branches/jim-adapter/src/zope/app/component/registration.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/registration.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/registration.py 2006-04-02 16:59:52 UTC (rev 66315)
+++ Zope3/branches/jim-adapter/src/zope/app/component/registration.py 2006-04-02 16:59:55 UTC (rev 66316)
@@ -37,22 +37,13 @@
'RegistrationManagerNamespace',
)
-class RegistrationEvent(objectevent.ObjectEvent):
- """An event that is created when a registration-related activity occurred.
- """
- implements(zope.app.component.interfaces.registration.IRegistrationEvent)
+zope.deferredimport.deprecated(
+ "Registration events are now defined in zope.component.interfaces. "
+ "Importing them from zope.app.component.registration will be disallowed "
+ "in Zope 3.5",
+ RegistrationEvent = 'zope.component.interfaces:RegistrationEvent',
+ RegistrationActivatedEvent = 'zope.component.interfaces:Registered',
+ RegistrationDeactivatedEvent = 'zope.component.interfaces:Unregistered',
+ )
-class RegistrationActivatedEvent(RegistrationEvent):
- """An event that is created when a registration is activated."""
- implements(
- zope.app.component.interfaces.registration.IRegistrationActivatedEvent,
- )
-class RegistrationDeactivatedEvent(RegistrationEvent):
- """An event that is created when a registration is deactivated."""
- implements(
- zope.app.component.interfaces.registration.IRegistrationDeactivatedEvent,
- )
-
-
-
More information about the Zope3-Checkins
mailing list