ó
îVc        	   @   sŇ  d  Z  d d l Z d d l m Z d d l Z e j e  j Z e j e  j Z d GHd e j	 f d     YZ
 d g e e  e e  e e  Z i e j e d  6e j e d  6e j e d	  6Z xˇ e e e  D]Ś \ Z Z e d k r e e
 e e j d
 e j j   g   qÝ e e  e k rje e
 e e e e  d e d
 e j j   g   qÝ e d e e e    qÝ We d k rÎx8 e e
  D]' Z e e k r e Ge e
 e  GHq q Wn  d S(   s   
Example on generic model.py file which inspects the arguments
of the compute function and automatically generates a relevant
InputForm class.
i˙˙˙˙N(   t   compute_Manufactured_solutions   Follow the link and add 'MMS't	   InputFormc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s   /Users/fredrikeikelandfossan/Documents/git/tkt4140_digital_compendium/digital_compendium/chapter1/src-ch1/Flask_app_MMS/model.pyR      s   g      đ?i   t    t
   validatorst   defaults   argument %s %s not supportedt   __main__(   t   __doc__t   wtformst   computeR    t   inspectt
   getargspect   argst	   arg_namest   defaultst   FormR   t   Nonet   lent   listt
   FloatFieldt   typet   IntegerFieldt	   TextFieldt	   type2formt   zipt   namet   valuet   setattrR   t   InputRequiredt	   TypeErrorR   t   dirt   itemt   getattr(    (    (    s   /Users/fredrikeikelandfossan/Documents/git/tkt4140_digital_compendium/digital_compendium/chapter1/src-ch1/Flask_app_MMS/model.pyt   <module>   s2   '