Changeset 3911


Ignore:
Timestamp:
19/05/08 17:18:50 (11 years ago)
Author:
cbyrom
Message:

Add escape to code to avoid abstractText element being created twice

  • NB, this is a temporary hack to deal with the problem of MRW not

being able to cope with namespaces in element names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csml2Moles/molesReadWrite.py

    r3866 r3911  
    189189           if item == '{http://ndg.nerc.ac.uk/moles}': 
    190190                continue 
     191                     
     192           # avoid abstractText being output twice 
     193           # NB, this is a hack to fix the problem of this class not handling 
     194           # namespaces correctly - ideally this is what should be fixed here 
     195           if str(molesFrag.tag) == "abstract": 
     196                if len(molesFrag) > 0: 
     197                    continue 
     198             
    191199           if hasattr(self, item): 
    192200                if isinstance(self.__dict__[item], molesElement): 
Note: See TracChangeset for help on using the changeset viewer.