[Checkins] SVN: zc.listcontainer/trunk/src/zc/listcontainer/
subscriber that rips off pertinent attrs on copies.
Gary Poster
gary at zope.com
Tue Apr 18 17:42:29 EDT 2006
Log message for revision 67082:
subscriber that rips off pertinent attrs on copies.
Changed:
U zc.listcontainer/trunk/src/zc/listcontainer/configure.zcml
A zc.listcontainer/trunk/src/zc/listcontainer/subscribers.py
-=-
Modified: zc.listcontainer/trunk/src/zc/listcontainer/configure.zcml
===================================================================
--- zc.listcontainer/trunk/src/zc/listcontainer/configure.zcml 2006-04-18 17:55:23 UTC (rev 67081)
+++ zc.listcontainer/trunk/src/zc/listcontainer/configure.zcml 2006-04-18 21:42:29 UTC (rev 67082)
@@ -9,6 +9,8 @@
/>
</class>
+ <subscriber handler=".subscribers.cleanCopy" />
+
<configure
xmlns:zcml="http://namespaces.zope.org/zcml"
zcml:condition="have apidoc"
Added: zc.listcontainer/trunk/src/zc/listcontainer/subscribers.py
===================================================================
--- zc.listcontainer/trunk/src/zc/listcontainer/subscribers.py 2006-04-18 17:55:23 UTC (rev 67081)
+++ zc.listcontainer/trunk/src/zc/listcontainer/subscribers.py 2006-04-18 21:42:29 UTC (rev 67082)
@@ -0,0 +1,10 @@
+from zope import component
+import zope.app.event.interfaces
+
+from zc.listcontainer import interfaces
+
+ at component.adapter(interfaces.IContained,
+ zope.app.event.interfaces.IObjectCopiedEvent)
+def cleanCopy(new, ev):
+ new.super = new.next = new.previous = None
+
More information about the Checkins
mailing list