CVS: Products/ParsedXML - ManageableDOM.py:1.110

Martijn Faassen <[email protected]> Thu, 19 Dec 2002 14:21:36 -0500
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <[email protected]>
Update of /cvs-repository/Products/ParsedXML
In directory cvs.zope.org:/tmp/cvs-serv17085

Modified Files:
	ManageableDOM.py 
Log Message:
Fixed bug in ParsedXML blocking Zope find.


=== Products/ParsedXML/ManageableDOM.py 1.109 => 1.110 ===
--- Products/ParsedXML/ManageableDOM.py:1.109	Mon Dec 16 15:06:50 2002
+++ Products/ParsedXML/ManageableDOM.py	Thu Dec 19 14:21:36 2002
@@ -190,7 +190,11 @@
 
     def getId(self):
         "Return the id of the object as a string."
-        name=getattr(self.aq_base, 'id', None)
+        if hasattr(self.aq_base):
+            base = self.aq_base
+        else:
+            base = self
+        name=getattr(base, 'id', None)
         if name is not None:
             return name
         return self.tpURL()