Ignore:
Timestamp:
06/03/16 10:05:11 (9 years ago)
Author:
Mathieu Morlighem
Message:

NEW: marhsall strings instead of enums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/pairoptions.py

    r17480 r20690  
    159159
    160160                        #Write option name
    161                         WriteData(fid,'enum',(firstindex-1)+2*i+1,'data',name,'format','String')
     161                        WriteData(fid,prefix,'enum',(firstindex-1)+2*i+1,'data',name,'format','String')
    162162
    163163                        #Write option value
    164164                        if   isinstance(value,(str,unicode)):
    165                                 WriteData(fid,'enum',(firstindex-1)+2*i+2,'data',value,'format','String')
     165                                WriteData(fid,prefix,'enum',(firstindex-1)+2*i+2,'data',value,'format','String')
    166166                        elif isinstance(value,(bool,int,long,float)):
    167                                 WriteData(fid,'enum',(firstindex-1)+2*i+2,'data',value,'format','Double')
     167                                WriteData(fid,prefix,'enum',(firstindex-1)+2*i+2,'data',value,'format','Double')
    168168                        else:
    169169                                raise TypeError("Cannot marshall option '%s': format not supported yet." % name)
Note: See TracChangeset for help on using the changeset viewer.