[Zope3-checkins] CVS: Products3/xmldom - core.py:1.4

Steve Alexander steve@cat-box.net
Sat, 7 Jun 2003 14:51:42 -0400


Update of /cvs-repository/Products3/xmldom
In directory cvs.zope.org:/tmp/cvs-serv11850

Modified Files:
	core.py 
Log Message:
Made all classes that need to be ContextAware have ContextAware first
in their bases.


=== Products3/xmldom/core.py 1.3 => 1.4 ===
--- Products3/xmldom/core.py:1.3	Sat Jun  7 13:38:58 2003
+++ Products3/xmldom/core.py	Sat Jun  7 14:51:42 2003
@@ -798,7 +798,7 @@
             return ''
     textContent = DOMProperty(_get_textContent)
 
-class Document(Parentless, TextualContent, Node):
+class Document(ContextAware, Parentless, TextualContent, Node):
     _nodeName = "#document"
     _nodeType = Node.DOCUMENT_NODE
 
@@ -1152,7 +1152,7 @@
                                           nsURI, localName, list)
 
 
-class DocumentFragment(Parentless, TextualContent, Node):
+class DocumentFragment(ContextAware, Parentless, TextualContent, Node):
     _nodeName = "#document-fragment"
     _nodeType = Node.DOCUMENT_FRAGMENT_NODE
     _parentNode = None
@@ -1202,7 +1202,7 @@
 
 # Element _attribute members can be shared with Attr nodes; see comment
 # at the Attr class.
-class Element(TextualContent, Node):
+class Element(ContextAware, TextualContent, Node):
     _nodeType = Node.ELEMENT_NODE
 
     _allowed_child_types = (Node.ELEMENT_NODE,
@@ -1682,7 +1682,7 @@
         raise ValueError, "NodeList.index(x): x not in sequence"
 
 
-class CharacterData(Childless, Node):
+class CharacterData(ContextAware, Childless, Node):
     def __init__(self, data):
         self._in_tree = 0
         self._data = data
@@ -1760,7 +1760,7 @@
     textContent = DOMProperty(_get_textContent)
 
 
-class Text(CharacterData):
+class Text(ContextAware, CharacterData):
     _nodeName = "#text"
     _nodeType = Node.TEXT_NODE
 
@@ -1794,7 +1794,7 @@
         return self.isWhitespaceInElementContent
 
 
-class Comment(CharacterData):
+class Comment(ContextAware, CharacterData):
     _nodeName = "#comment"
     _nodeType = Node.COMMENT_NODE
 
@@ -1810,7 +1810,7 @@
 # list with a single text node, the attr node shares this reference.  Similarly
 # for setAttributeNode.  We could stay with the string in many cases at the
 # cost of complexity.
-class Attr(Parentless, Node):
+class Attr(ContextAware, Parentless, Node):
     _nodeType = Node.ATTRIBUTE_NODE
 
     _in_tree = 0