Changeset 1588


Ignore:
Timestamp:
16/10/06 08:45:49 (13 years ago)
Author:
domlowe
Message:

csmlContainer now returns path rather than string)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/csmlContainer.py

    r1557 r1588  
    6464        print self.fm 
    6565        csmlout=self.ds.toXML() 
    66         #parse and pretty print the result 
     66        #parse and pretty print the result to file 
    6767        strCSML=csml.parser_extra.PrettyPrint(csmlout) 
    6868        strCSML=csml.parser_extra.removeInlineNS(strCSML) 
    69         self.containerContents.append(strCSML) 
     69        f=open(self.csmlpath,'w') 
     70        f.write(strCSML) 
     71        f.close() 
     72        self.containerContents.append(self.csmlpath) 
    7073        for ncfile in self.ncfiles: 
    7174            self.containerContents.append(ncfile) 
Note: See TracChangeset for help on using the changeset viewer.