erecord_db package

Submodules

erecord_db.admin module

erecord_db.forms module

erecord_db.models module

erecord_db.models_mixins module

erecord_db.models_mixins

Mixins for models of the erecord_db application

class erecord_db.models_mixins.VlePkgMixin[source]

Bases: object

additional methods for VlePkg

get_datafilename_list()[source]

Defines and returns the name list of data folder files of VlePkg

The data folder is the default one : ‘data’ subdirectory of the vle package.

‘CMakeLists.txt’ is excluded.

class erecord_db.models_mixins.VleRepMixin[source]

Bases: object

additional methods for VleRep

read_and_add_tree()[source]

reads a VleRep tree (its vle packages and their vpz files) in its path and add the relevant VlePkg and VleVpz into the database

read_and_update_tree()[source]

reads a VleRep tree (its vle packages and their vpz files) in its path and add or remove the relevant VlePkg and VleVpz into the database

class erecord_db.models_mixins.VleVpzMixin[source]

Bases: object

additional methods for VleVpz

for_vpzact_creation()[source]

Prepares the creation of a VpzAct from a VleVpz

VpzAct is part of erecord_vpz application models

erecord_db.router module

erecord_db.router

class erecord_db.router.DbRouter[source]

Bases: erecord_cmn.router.DatabaseRouter

The application database router.

app_name = 'erecord_db'
db_name = 'default'

erecord_db.serializers module

erecord_db.urls module

Module contents

erecord_db

This package is part of erecord - Record platform web development

copyright:Copyright (C) 2014-2015 INRA http://www.inra.fr.
license:GPLv3, see License for more details.
authors:see Authors.

Database application

The db application is dedicated to the main erecord database.

The erecord database contains models repositories and their tree (vle packages, vpz files).

The vle models into the database : @include doc/vlemodels_in_database.txt

A models repository is a self independant and consistent group of some vle packages.

‘vle package’ is the vle term for a model (also called ‘project’ in vle). Each vle package has some vpz files.

‘vpz file’ is the vle term for a simulator, or simulation scenario.

The erecord development would allow to manipulate vpz files of vle packages of models repositories (edit, modify, simulate).

See erecord