/[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 1020 by phornby, Mon Mar 12 10:12:36 2007 UTC revision 1042 by gross, Mon Mar 19 03:50:34 2007 UTC
# Line 691  class ParameterSet(LinkableObject): Line 691  class ParameterSet(LinkableObject):
691              parameters[pname] = pvalue              parameters[pname] = pvalue
692    
693          # Create the instance of ParameterSet          # Create the instance of ParameterSet
694          o = cls(debug=esysxml.debug)          try:
695               o = cls(debug=esysxml.debug)
696            except TypeError, inst:
697               print inst.args[0]
698               if inst.args[0]=="__init__() got an unexpected keyword argument 'debug'":
699                  raise TypeError("The Model class %s __init__ needs to have argument 'debug'.")
700               else:
701                  raise inst
702          o.declareParameters(parameters)          o.declareParameters(parameters)
703          esysxml.registerLinkableObject(o, node)          esysxml.registerLinkableObject(o, node)
704          return o          return o

Legend:
Removed from v.1020  
changed lines
  Added in v.1042

  ViewVC Help
Powered by ViewVC 1.1.26