def columns_from_model(column, **kwargs): return create_members_from_model( member_params_by_member_name=column, default_factory=Column.from_model, **kwargs )
def variables_from_model(**kwargs): kwargs = collect_namespaces(kwargs) kwargs['db_field'] = kwargs.pop('variable', {}) return create_members_from_model(default_factory=Variable.from_model, **kwargs)
def variables_from_model(variable, **kwargs): return create_members_from_model( member_params_by_member_name=variable, default_factory=Variable.from_model, **kwargs )
def columns_from_model(**kwargs): kwargs = collect_namespaces(kwargs) kwargs['db_field'] = collect_namespaces(kwargs.pop('column', {})) return create_members_from_model(default_factory=Column.from_model, **kwargs)