/[escript]/trunk/escript/py_src/modelframe.py
ViewVC logotype

Diff of /trunk/escript/py_src/modelframe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 266 by elspeth, Wed Nov 30 00:21:51 2005 UTC
# Line 487  class ParameterSet(LinkableObject): Line 487  class ParameterSet(LinkableObject):
487    
488          def _boolfromValue(doc):          def _boolfromValue(doc):
489              return bool(doc.nodeValue.strip())              return bool(doc.nodeValue.strip())
490    
491            def _nonefromValue(doc):
492                return None
493                
494          # Mapping from text types in the xml to methods used to process trees of that type          # Mapping from text types in the xml to methods used to process trees of that type
495          ptypemap = {"Simulation": Simulation.fromDom,          ptypemap = {"Simulation": Simulation.fromDom,
# Line 497  class ParameterSet(LinkableObject): Line 500  class ParameterSet(LinkableObject):
500                      "int":_intfromValue,                      "int":_intfromValue,
501                      "str":_stringfromValue,                      "str":_stringfromValue,
502                      "bool":_boolfromValue                      "bool":_boolfromValue
503                        "NoneType":_nonefromValue,
504                      }                      }
505    
506  #        print doc.toxml()  #        print doc.toxml()

Legend:
Removed from v.155  
changed lines
  Added in v.266

  ViewVC Help
Powered by ViewVC 1.1.26