Changeset 1860 for TI02-CSML


Ignore:
Timestamp:
14/12/06 10:51:43 (13 years ago)
Author:
domlowe
Message:

test code to try adding elements to already existing moles doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml2MolesStuff/TEST.py

    r1859 r1860  
    251251     
    252252    addNewElement(dgMeta.dgMetadataRecord, 'dgStructuredKeyword', dgSK) 
    253      
    254     #if hasattr(dgMeta.dgMetadataRecord, 'dgStructuredKeyword'): 
    255         #if dgMeta.dgMetadataRecord.dgStructuredKeyword is list: 
    256             #dgMeta.dgMetadataRecord.dgStructuredKeyword.append(dgSK) 
    257         #else:  
    258             #newlist=[dgMeta.dgMetadataRecord.dgStructuredKeyword] 
    259             #newlist.append(dgSK) 
    260             #dgMeta.dgMetadataRecord.dgStructuredKeyword=newlist         
    261     #else: 
    262         #dgMeta.dgMetadataRecord.dgStructuredKeyword=dgSK 
     253 
    263254 
    264255    molestree=dgMeta.toXML() 
Note: See TracChangeset for help on using the changeset viewer.