[Zope] ParsedXML attribute Error
Brad Clements
bkc@murkworks.com
Fri, 11 Jan 2002 14:50:58 -0500
I'm using the CVS version of ParsedXML on Zope 2.5B3... The following used to work
on ParsedXML Beta 1.1b1
I have recreated my ParsedXML object (called ProductCategories), however I still get a
traceback executing this code:
<dtml-in "ProductCategories.getElementsByTagName('Category')">
Gives AttributeError on __getattr__ in the ParsedXML.getElementsByTagName()
method, line 251
def getElementsByTagName(self, tagName):
return self.__getattr__("getElementsByTagName")(tagName)
I must say, this is really weird looking Python. I think what's happening here is that this
code wants to get ManagableDocument's implementation of getElementsByTagName
So I changed it to this:
def getElementsByTagName(self, tagName):
return ManageableDocument.getElementsByTagName(self,tagName)
And now it works!
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com AOL-IM: BKClements