xml comments and empty tags values raise errors on imports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope CMF buildout |
Fix Released
|
Medium
|
yuppie |
Bug Description
With the previous realease, it was possible to add <!-- comments --> inside xml setup files.
Now, CMFSetup.
> for child in node.childNodes:
> name = child.nodeName
>
> if name == '#comment' :
> continue
There's also a problem with attribute-less tags which have an empty value. (typically an empty description tag for a typeinfo). A KeyError is raised in this case.
To fix that, replace (line 210) :
> if key is None:
> info = info[key]
by :
> if key is None:
> info = info.get(key, '')
Status: Pending => Accepted
Supporters added: yuppie
Thanks for reporting this. I'll have a look at it.