Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr Str body Continue If CompareNotIn AttributeLoad NameLoad attr NameLoad body Continue Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad Str body If CompareIn NameLoad AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad If CompareNotEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore BoolOpOr NameLoad ListLoad body If CompareIs NameLoad NameLoad body Continue Assign NameStore Call NameLoad For NameStore NameLoad body If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If BoolOpAnd CompareNotIn AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Continue For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot AttributeLoad NameLoad attr body Continue If CompareEq AttributeLoad NameLoad attr Str body Continue Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Continue If CompareNotEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Continue If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore IfExp Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A datetime datetime jsonmapping SchemaVisitor jsonmapping.value convert_value aleph.core db aleph.util find_subclasses aleph.model.common DatedModel aleph.model.validation resolver validate SchemaModel N/A object N/A N/A Reflect operations for entity updates from a JSON schema. N/A _schema None N/A _schema_recurse False schema_data N/A N/A self N/A N/A N/A N/A N/A self _schema None N/A N/A N/A NotImplementedError N/A No _schema on: %r self N/A N/A _ schema N/A N/A resolver resolve N/A self _schema N/A schema N/A property get_schema_class N/A N/A cls schema N/A N/A N/A subcls N/A find_subclasses cls N/A N/A N/A N/A subcls _schema schema N/A N/A subcls N/A cls N/A classmethod schema_visitor N/A N/A self N/A N/A N/A N/A SchemaVisitor N/A self schema_data resolver N/A property schema_update N/A N/A self data merge N/A False N/A N/A Update the object based on JSON schema properties. N/A N/A validate data N/A self _schema N/A N/A N/A N/A db session add self N/A prop N/A N/A self schema_visitor properties N/A N/A N/A N/A prop name id N/A N/A N/A N/A N/A prop name data N/A N/A N/A prop_data N/A data N/A N/A prop name N/A N/A prop is_value N/A N/A N/A N/A self _schema_update_value prop prop_data N/A N/A N/A N/A prop is_object N/A self _schema_recurse N/A N/A N/A N/A self _schema_update_object prop prop_data N/A N/A N/A N/A prop is_array N/A self _schema_recurse N/A N/A N/A N/A self _schema_update_array prop prop_data merge merge N/A N/A isinstance self DatedModel N/A N/A N/A self updated_at N/A N/A datetime utcnow N/A _schema_update_value N/A N/A self prop data N/A N/A N/A value N/A convert_value prop data N/A N/A setattr self N/A prop name value N/A _get_property_by_column N/A N/A self column N/A N/A N/A Given a model column, find its mapped property name. N/A prop N/A N/A self __mapper__ iterate_properties N/A N/A N/A hasattr prop columns N/A N/A N/A column N/A prop columns N/A N/A N/A prop key N/A _get_associations N/A N/A self obj rel N/A N/A N/A Return both column names for the association. N/A N/A local_col remote_col N/A N/A rel prop local_remote_pairs N/A N/A local N/A N/A self _get_property_by_column local_col N/A remote N/A N/A obj _get_property_by_column remote_col N/A N/A N/A local remote N/A _get_relationship N/A N/A self name direction N/A N/A N/A Get relationship metadata related to a given property. N/A rel N/A getattr N/A type self name N/A N/A N/A N/A N/A rel prop direction name direction N/A N/A N/A TypeError N/A Not a %s relationship! direction N/A N/A N/A issubclass N/A N/A rel mapper class_ SchemaModel N/A N/A N/A TypeError Associated class is not a SchemaModel! N/A rel N/A _schema_update_object N/A N/A self prop data N/A N/A N/A Create or update an associated object. N/A rel N/A N/A self _get_relationship N/A prop name MANYTOONE N/A obj N/A getattr self N/A prop name N/A N/A obj None N/A N/A N/A data None N/A N/A N/A obj N/A N/A N/A rel mapper class_ N/A N/A data None N/A N/A N/A N/A obj update data N/A N/A N/A N/A db session flush N/A N/A N/A N/A obj delete N/A N/A local remote N/A N/A self _get_associations obj rel N/A N/A value N/A getattr obj remote N/A N/A data None N/A N/A value None N/A N/A setattr self local value N/A obj N/A _schema_update_array N/A N/A self prop data merge N/A False N/A N/A Create or update an associated set of objects. N/A rel N/A N/A self _get_relationship N/A prop name ONETOMANY N/A cls N/A N/A rel mapper class_ N/A existing N/A list N/A getattr self N/A prop name N/A ids N/A set N/A item N/A data N/A N/A N/A N/A item None N/A N/A N/A obj N/A cls N/A cand existing N/A N/A N/A N/A N/A item get id N/A N/A cand id N/A N/A item get id N/A N/A obj cand N/A N/A N/A merge N/A N/A cand _merge_compare item N/A N/A obj cand N/A N/A N/A obj update item N/A N/A N/A ids add N/A obj id N/A N/A N/A existing append obj N/A obj existing N/A N/A N/A N/A N/A obj id ids N/A merge N/A N/A N/A N/A obj delete N/A N/A N/A local remote N/A N/A self _get_associations obj rel N/A N/A N/A setattr obj remote N/A getattr self local N/A N/A setattr self N/A prop name existing N/A existing N/A _merge_compare N/A N/A self data N/A N/A N/A prop N/A N/A self schema_visitor properties N/A N/A N/A N/A prop is_value N/A N/A N/A N/A N/A prop name id N/A N/A N/A value N/A getattr self N/A prop name N/A N/A value None N/A N/A N/A N/A value N/A N/A data get N/A prop name N/A N/A False N/A True N/A delete N/A N/A self N/A N/A N/A prop N/A N/A self schema_visitor properties N/A N/A N/A prop is_value N/A N/A N/A N/A N/A prop is_array N/A N/A prop items inline N/A N/A item N/A getattr self N/A prop name N/A N/A N/A N/A item delete N/A N/A N/A prop is_object N/A prop inline N/A N/A value N/A getattr self N/A prop name N/A N/A value None N/A N/A N/A N/A value delete N/A N/A N/A N/A super SchemaModel self delete N/A to_dict N/A N/A self N/A N/A N/A parent N/A super SchemaModel self N/A data N/A N/A hasattr parent to_dict N/A N/A parent to_dict N/A N/A N/A data N/A $schema N/A self _schema N/A prop N/A N/A self schema_visitor properties N/A N/A N/A N/A prop is_value N/A prop inline N/A N/A value N/A getattr self N/A prop name N/A N/A value None N/A N/A N/A data N/A N/A prop name value N/A N/A N/A prop is_array N/A N/A prop items inline N/A N/A value N/A getattr self N/A prop name N/A N/A data N/A N/A prop name N/A list value N/A data N/A N/A