geonature.core.gn_meta.schemas#
Classes#
This mixin add a cruved field which serialize to a dict "{action: boolean}". |
|
This mixin add a cruved field which serialize to a dict "{action: boolean}". |
Module Contents#
- class geonature.core.gn_meta.schemas.DatasetActorSchema[source]#
Bases:
utils_flask_sqla.schema.SmartRelationshipsMixin
,geonature.utils.env.MA.SQLAlchemyAutoSchema
- class geonature.core.gn_meta.schemas.DatasetSchema[source]#
Bases:
geonature.utils.schema.CruvedSchemaMixin
,utils_flask_sqla.schema.SmartRelationshipsMixin
,geonature.utils.env.MA.SQLAlchemyAutoSchema
- This mixin add a cruved field which serialize to a dict « {action: boolean} ».
example: {« C »: False, « R »: True, « U »: True, « V »: False, « E »: True, « D »: False}
The schema must have a __module_code__ property (and optionally a __object_code__property) to indicate from which permissions must be verified. The model must have an has_instance_permission method which take the scope and retrurn a boolean. The cruved field is excluded by default and may be added to serialization with only=[« +cruved »].
- class geonature.core.gn_meta.schemas.BibliographicReferenceSchema[source]#
Bases:
utils_flask_sqla.schema.SmartRelationshipsMixin
,geonature.utils.env.MA.SQLAlchemyAutoSchema
- class geonature.core.gn_meta.schemas.AcquisitionFrameworkActorSchema[source]#
Bases:
utils_flask_sqla.schema.SmartRelationshipsMixin
,geonature.utils.env.MA.SQLAlchemyAutoSchema
- class geonature.core.gn_meta.schemas.AcquisitionFrameworkSchema[source]#
Bases:
geonature.utils.schema.CruvedSchemaMixin
,utils_flask_sqla.schema.SmartRelationshipsMixin
,geonature.utils.env.MA.SQLAlchemyAutoSchema
- This mixin add a cruved field which serialize to a dict « {action: boolean} ».
example: {« C »: False, « R »: True, « U »: True, « V »: False, « E »: True, « D »: False}
The schema must have a __module_code__ property (and optionally a __object_code__property) to indicate from which permissions must be verified. The model must have an has_instance_permission method which take the scope and retrurn a boolean. The cruved field is excluded by default and may be added to serialization with only=[« +cruved »].