[Zope3-checkins] CVS: Zope3/lib/python/Zope/ObjectHub - IHubEvent.py:1.2
Jim Fulton
jim@zope.com
Tue, 3 Sep 2002 16:16:51 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ObjectHub
In directory cvs.zope.org:/tmp/cvs-serv14518
Modified Files:
IHubEvent.py
Log Message:
Got rid of INotificationHubEvent.
Got rid of some DOS line endings.
Fixed up formatting on some doc strings.
=== Zope3/lib/python/Zope/ObjectHub/IHubEvent.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/ObjectHub/IHubEvent.py:1.1 Thu Aug 22 13:05:24 2002
+++ Zope3/lib/python/Zope/ObjectHub/IHubEvent.py Tue Sep 3 16:16:50 2002
@@ -33,42 +33,35 @@
def getObject():
"""Returns the object."""
-
-class IRegistrationHubEvent(IHubEvent):
- """Some work could be done on registration or deregistration of an object."""
+class IRegistrationHubEvent(IHubEvent):
+ """Some work could be done on registration or deregistration of an object.
+ """
class IObjectRegisteredHubEvent(IRegistrationHubEvent):
"""An ruid has been freshly created and mapped against an object."""
-
+
class IObjectUnregisteredHubEvent(IRegistrationHubEvent):
"""We are no longer interested in this object."""
-
-class INotificationHubEvent(IHubEvent):
- """Some work has be done on a registrated object."""
-
-class IObjectAddedHubEvent(INotificationHubEvent):
+class IObjectAddedHubEvent(IObjectRegisteredHubEvent):
"""An ruid has been freshly created and mapped against an object.
Also, implies the object has been newly added."""
-class IObjectModifiedHubEvent(INotificationHubEvent):
+class IObjectModifiedHubEvent(IHubEvent):
"""An object with an ruid has been modified."""
-class IObjectMovedHubEvent(INotificationHubEvent):
+class IObjectMovedHubEvent(IHubEvent):
"""An object with an ruid has had its context changed. Typically, this
means that it has been moved."""
-
-class IObjectRemovedHubEvent(INotificationHubEvent):
- """An object with an ruid has been removed."""
-
- def getLocation():
- """Returns the object's location before it was removed."""
+ def getFromLocation():
+ """Returns the location before the move
+ """
- def getObject():
- """Returns the object, or None if the object is unavailable."""
+class IObjectRemovedHubEvent(IHubEvent):
+ """An object with an ruid has been removed."""