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

@ -1,12 +1,12 @@
aircraftTypeTags = [
"ga", "fighter", "helicopter", "glider", "spaceship", "bomber", "groundvehicle",
"tanker", "cargo", "passenger", "bizjet", "trainer", "airship", "balloon"
"tanker", "cargo", "transport", "bizjet", "trainer", "airship", "balloon"
]
manufacturerTags = [
"boeing", "cessna", "diamond", "douglas", "bell", "piper",
"airbus", "vickers", "lockheed", "fokker",
"embrarer", "bombardier", "pilatus"
"embrarer", "bombardier", "pilatus", "robin"
]
eraTags = [
@ -62,7 +62,9 @@ propulsionTags = [
"supercharged",
"turboprop",
"jet", "afterburner", "rocket",
"electric"
"electric",
"twin-engine",
"single-engine"
]
simFeatureTags = [

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'])