geonature.utils.module#

Functions#

iter_modules_dist()

get_module_config_path(module_code)

get_module_config(module_dist)

get_dist_from_code(module_code)

iterate_revisions(script, base_revision)

Iterate revisions without following depends_on directive.

alembic_branch_in_use(branch_name, directory, x_arg)

Return true if at least one revision of the given branch is applied.

module_db_upgrade(module_dist[, directory, sql, tag, ...])

Module Contents#

geonature.utils.module.iter_modules_dist()[source]#
geonature.utils.module.get_module_config_path(module_code)[source]#
geonature.utils.module.get_module_config(module_dist)[source]#
geonature.utils.module.get_dist_from_code(module_code)[source]#
geonature.utils.module.iterate_revisions(script, base_revision)[source]#

Iterate revisions without following depends_on directive. Useful to find all revisions of a given branch.

geonature.utils.module.alembic_branch_in_use(branch_name, directory, x_arg)[source]#

Return true if at least one revision of the given branch is applied.

geonature.utils.module.module_db_upgrade(module_dist, directory=None, sql=False, tag=None, x_arg=[])[source]#