Changeset 2187
- Timestamp:
- 19/02/07 18:53:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/csml2Moles/molesReadWrite.py
r2183 r2187 70 70 if child.attrib.has_key('name'): 71 71 if child.attrib['name'][-4:]=='Type': 72 if child.attrib['name'] in ['dgDataSetType' ]: #add other rogue 'names' ending in Type to this list72 if child.attrib['name'] in ['dgDataSetType','dgFeatureType']: #add other rogue 'names' ending in Type to this list 73 73 childname=child.attrib['name'] 74 74 else: 75 75 childname=child.attrib['name'][:-4] 76 76 else: 77 childname=child.attrib['name'] 77 childname=child.attrib['name'] 78 78 if child.attrib.has_key('type'): 79 79 if child.attrib['type'][:6]=='moles:': … … 93 93 if not self.sequences.has_key(childname): 94 94 self.sequences[childname]=[] 95 self. __checkChildren(childname,child)95 self.__checkChildren(childname,child) 96 96 else: 97 97 if self.__isParent(child): 98 self. __checkChildren(parentclassname,child)98 self.__checkChildren(parentclassname,child) 99 99 100 100 def __resolveTypes(self): … … 302 302 'contactDetails',\ 303 303 'address',\ 304 'dgActivity',\ 305 'relatedActivity',\ 306 'dgActivityDataCollection',\ 307 'dgActivityDataProject',\ 308 'dgActivityDataCampaign',\ 309 'dgActivityDataInvestigation',\ 310 'dgActivityRole',\ 311 'dgActivityDeployment',\ 312 'dgActivityCoverage',\ 313 'dgActivityDuration',\ 304 314 ] 305 315
Note: See TracChangeset
for help on using the changeset viewer.