geonature.core.gn_meta.models.aframework
Module Contents
Classes
The base class of the |
- class geonature.core.gn_meta.models.aframework.TAcquisitionFramework[source]
Bases:
geonature.core.gn_meta.models.commons.db.Model
The base class of the
SQLAlchemy.Model
declarative model class.To define models, subclass
db.Model
, not this. To customizedb.Model
, subclass this and pass it asmodel_class
toSQLAlchemy
. To customizedb.Model
at the metaclass level, pass an already created declarative model class asmodel_class
.- static get_id(uuid_af)[source]
return the acquisition framework’s id from its UUID if exist or None
- static get_user_af(user, only_query=False, only_user=False)[source]
get the af(s) where the user is actor (himself or with its organism - only himelsemf id only_use=True) or digitizer param:
user from TRole model
only_query: boolean (return the query not the id_datasets allowed if true)
only_user: boolean: return only the dataset where user himself is actor (not with its organoism)
return: a list of id_dataset or a query