[Zope3-checkins] CVS: zopeproducts/xml/dom - core.py:1.2
Philipp von Weitershausen
philikon@philikon.de
Fri, 20 Jun 2003 18:13:34 -0400
Update of /cvs-repository/zopeproducts/xml/dom
In directory cvs.zope.org:/tmp/cvs-serv15190
Modified Files:
core.py
Log Message:
Make Node persistent.
=== zopeproducts/xml/dom/core.py 1.1 => 1.2 ===
--- zopeproducts/xml/dom/core.py:1.1 Fri Jun 20 11:11:38 2003
+++ zopeproducts/xml/dom/core.py Fri Jun 20 18:13:34 2003
@@ -24,6 +24,8 @@
import string
import xml.dom
+from persistence import Persistent
+
from zope.interface import implements
from zope.context import ContextProperty, ContainmentIterator
from zope.context import ContextAwareDescriptors
@@ -183,7 +185,7 @@
theDOMImplementation = DOMImplementation()
-class Node:
+class Node(Persistent):
implements(INode)
ContextAwareDescriptors()
@@ -252,16 +254,8 @@
type, name, id(getbaseobject(self)))
def _changed(self):
- # Mark the tree as changed this way since nodes can be
- # modified while they're not part of the tree (say, after
- # being removed but before being added somewhere else; the
- # real marking of the tree occurs when the node is re-inserted
- # into the tree).
- pass # XXX
- #try:
- # self.aq_acquire('__changed__')(1)
- #except AttributeError:
- # pass
+ # tell the persistence machinery we have changed
+ self._p_changed = True
def _get_attributes(self):
return None