1.1 --- a/libxml2dom/__init__.py Mon Dec 12 12:46:16 2005 +0000
1.2 +++ b/libxml2dom/__init__.py Mon Dec 12 12:46:40 2005 +0000
1.3 @@ -2,9 +2,25 @@
1.4
1.5 """
1.6 DOM wrapper around libxml2, specifically the libxml2mod Python extension module.
1.7 +
1.8 +Copyright (C) 2003, 2004, 2005 Paul Boddie <paul@boddie.org.uk>
1.9 +
1.10 +This library is free software; you can redistribute it and/or
1.11 +modify it under the terms of the GNU Lesser General Public
1.12 +License as published by the Free Software Foundation; either
1.13 +version 2.1 of the License, or (at your option) any later version.
1.14 +
1.15 +This library is distributed in the hope that it will be useful,
1.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.18 +Lesser General Public License for more details.
1.19 +
1.20 +You should have received a copy of the GNU Lesser General Public
1.21 +License along with this library; if not, write to the Free Software
1.22 +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
1.23 """
1.24
1.25 -__version__ = "0.3.2"
1.26 +__version__ = "0.3.3"
1.27
1.28 from libxml2dom.macrolib import *
1.29 from libxml2dom.macrolib import \
1.30 @@ -13,7 +29,6 @@
1.31 parseFile as Node_parseFile, \
1.32 toString as Node_toString, toStream as Node_toStream, \
1.33 toFile as Node_toFile
1.34 -import weakref
1.35
1.36 # Attribute and node list wrappers.
1.37
1.38 @@ -391,10 +406,9 @@
1.39
1.40 def __init__(self, node):
1.41 self._node = node
1.42 - self.weakref_ownerDocument = weakref.ref(self)
1.43
1.44 def _ownerDocument(self):
1.45 - return self.weakref_ownerDocument()
1.46 + return self
1.47
1.48 def _parentNode(self):
1.49 return None
2.1 --- a/libxml2dom/macrolib/__init__.py Mon Dec 12 12:46:16 2005 +0000
2.2 +++ b/libxml2dom/macrolib/__init__.py Mon Dec 12 12:46:40 2005 +0000
2.3 @@ -1,8 +1,26 @@
2.4 #!/usr/bin/env python
2.5
2.6 -"DOM macro library for libxml2."
2.7 +"""
2.8 +DOM macro library for libxml2.
2.9 +
2.10 +Copyright (C) 2003, 2004, 2005 Paul Boddie <paul@boddie.org.uk>
2.11 +
2.12 +This library is free software; you can redistribute it and/or
2.13 +modify it under the terms of the GNU Lesser General Public
2.14 +License as published by the Free Software Foundation; either
2.15 +version 2.1 of the License, or (at your option) any later version.
2.16
2.17 -__version__ = "0.3.2"
2.18 +This library is distributed in the hope that it will be useful,
2.19 +but WITHOUT ANY WARRANTY; without even the implied warranty of
2.20 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2.21 +Lesser General Public License for more details.
2.22 +
2.23 +You should have received a copy of the GNU Lesser General Public
2.24 +License along with this library; if not, write to the Free Software
2.25 +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
2.26 +"""
2.27 +
2.28 +__version__ = "0.3.3"
2.29
2.30 # Expose all functions here.
2.31
3.1 --- a/libxml2dom/macrolib/macrolib.py Mon Dec 12 12:46:16 2005 +0000
3.2 +++ b/libxml2dom/macrolib/macrolib.py Mon Dec 12 12:46:40 2005 +0000
3.3 @@ -2,6 +2,22 @@
3.4
3.5 """
3.6 DOM macros for virtual libxml2mod node methods and properties.
3.7 +
3.8 +Copyright (C) 2003, 2004, 2005 Paul Boddie <paul@boddie.org.uk>
3.9 +
3.10 +This library is free software; you can redistribute it and/or
3.11 +modify it under the terms of the GNU Lesser General Public
3.12 +License as published by the Free Software Foundation; either
3.13 +version 2.1 of the License, or (at your option) any later version.
3.14 +
3.15 +This library is distributed in the hope that it will be useful,
3.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
3.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3.18 +Lesser General Public License for more details.
3.19 +
3.20 +You should have received a copy of the GNU Lesser General Public
3.21 +License along with this library; if not, write to the Free Software
3.22 +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
3.23 """
3.24
3.25 import xml.dom