Fixes for tag extraction in catalog building.

This commit is contained in:
James Turner
2014-06-12 18:39:32 +01:00
parent dc11e32420
commit cc7bc8fdbf
2 changed files with 8 additions and 5 deletions

View File

@@ -159,11 +159,12 @@ class PropsHandler(handler.ContentHandler):
if (name == 'PropertyList'):
return
index = 0
if 'n' in attrs.keys():
index = int(attrs['n'])
self._current = self._current.getChild(name, index, create=True)
else:
self._current = self._current.addChild(name)
self._current = self._current.getChild(name, index, create=True)
if 'include' in attrs.keys():
self.handleInclude(attrs['include'])