cmn.models_mixins package

Submodules

cmn.models_mixins.info module

cmn.models_mixins.info

Mixins about info field of some models

info : data information (JSON value as str)

class cmn.models_mixins.info.InfoMixin

Bases: object

Additional methods for a model having an ‘info’ field

info : data information (JSON value as str)

extract_from_info()

Extracts and returns python type from info (JSON value as str)

info_update_and_save_from(I)

Updates info from I (python type) and saves it into the database

cmn.models_mixins.priv module

cmn.models_mixins.priv

Mixins about priv field of some models

priv : private information (JSON value as str)

class cmn.models_mixins.priv.PrivMixin

Bases: object

Additional methods for a model having a ‘priv’ field

priv : private information (JSON value as str)

extract_from_priv()

Extracts and returns python type from priv (JSON value as str)

priv_update_and_save_from(P)

Updates priv from P (python type) and saves it into the database

Module contents

cmn.models_mixins

This package is part of ws web services

copyright

Copyright (C) 2020-2024 INRAE http://www.inrae.fr

license

GPLv3, see LICENSE file for more details

authors

see AUTHORS file

Mixins common to models of cmn application