[Python-checkins] CVS: python/dist/src/Lib/xml/sax saxutils.py,1.10,1.11
Lars Marius Garshol
python-dev@python.org
Wed, 11 Oct 2000 15:35:04 -0700
Update of /cvsroot/python/python/dist/src/Lib/xml/sax
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30249
Modified Files:
saxutils.py
Log Message:
Added parent attribute with getters and setters on XMLFilterBase.
Index: saxutils.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/saxutils.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** saxutils.py 2000/10/06 21:11:20 1.10
--- saxutils.py 2000/10/11 22:35:00 1.11
***************
*** 105,108 ****
--- 105,112 ----
through."""
+ def __init__(self, parent = None):
+ xmlreader.XMLReader.__init__(self)
+ self._parent = parent
+
# ErrorHandler methods
***************
*** 193,196 ****
--- 197,208 ----
def setProperty(self, name, value):
self._parent.setProperty(name, value)
+
+ # XMLFilter methods
+
+ def getParent(self):
+ return self._parent
+
+ def setParent(self, parent):
+ self._parent = parent
# --- Utility functions