|
From: Jonathan H. <jon...@on...> - 2002-09-25 10:45:17
|
On 25/9/2002 11:18, Will Partain wrote:
> I am not aware of knowingly changing that stuff; are you
> *sure* that the builtin 2.x minidom thing really worked? I
> personally haven't seen a non-PyXML ARK ever working...
Hmmm. I'm pretty sure it worked when I wrote it. I tried it out on a few
platforms at the time. But that was over a year ago so it's all pretty fuzzy
now. Staring at the CVS-annotated source shows that the portions touched in
the stack trace haven't changed since the dawn of time (i.e., revision 1.1).
Perhaps it's a change in minidom? Looking at the error again:
File "./ark/xmlfile.py", line 722, in zero_attributes
if len(node.attributes) != 0:
TypeError: len() of unsized object
I have a suspicion that 'node.attributes' is something other than a
collection. Perhaps it is being set to 'None' if there are no attributes? A
sensible thing might be to try changing that line to:
if node.attributes and len(node.attributes) != 0:
...
and see if the error goes away. You could give this a go, Luke, if you feel
up to it. However, that still leaves the question of why ARK is using the
builtin minidom implementation instead of the PyXML one...
Jonathan
--
jonathan hogg, one good idea ltd, 131 queen margaret dr., glasgow g20 8pd
http://www.onegoodidea.com/ tel:+44-(0)7976-614338 fax:+44-(0)7970-537451
|