Exemplo n.º 1
0
 def get_constructor_meta(cls):
     spec = inspect.getfullargspec(cls)
     meta = ConstructorMeta()
     meta.args = [arg for arg in spec.args if arg != 'self']
     meta.annotations = spec.annotations
     meta.defaults = [
         marshal_object_for_ui(default) for default in spec.defaults
     ]
     meta.metas = {}
     return meta
Exemplo n.º 2
0
 def get_constructor_meta(cls):
     meta = super().get_constructor_meta()
     meta.metas['security_type'] = marshal_object_for_ui(cls.security_type)
     return meta