[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/copypastemove/__init__.py
normalize whitespace
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Jun 3 16:37:47 EDT 2005
Log message for revision 30631:
normalize whitespace
Changed:
U Zope3/trunk/src/zope/app/copypastemove/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/copypastemove/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/copypastemove/__init__.py 2005-06-03 20:34:15 UTC (rev 30630)
+++ Zope3/trunk/src/zope/app/copypastemove/__init__.py 2005-06-03 20:37:46 UTC (rev 30631)
@@ -674,7 +674,7 @@
>>> seen = []
>>> def handler(ob, event):
... seen.append((ob, event.object))
-
+
Finally, we need to register our handler for copy events:
>>> from zope.app.tests import ztapi
@@ -682,13 +682,13 @@
>>> ztapi.handle([None, IObjectCopiedEvent], handler)
and this function as a dispatcher:
-
+
>>> ztapi.handle([None, IObjectCopiedEvent], dispatchToSublocations)
When we notify that our root object has been copied:
-
+
>>> notify(ObjectCopiedEvent(c))
-
+
we see that our handler has seen all of the subobjects:
>>> seenreprs = map(repr, seen)
More information about the Zope3-Checkins
mailing list