geonature.core.command.create_gn_module

Module Contents

Functions

install_gn_module(x_arg, module_path, module_code, ...)

Command definition to install a GeoNature module

upgrade_modules_db(directory, sql, tag, x_arg, ...)

geonature.core.command.create_gn_module.install_gn_module(x_arg, module_path, module_code, build, upgrade_db)[source]

Command definition to install a GeoNature module

Parameters

x_arglist

additional arguments

module_pathstr

path of the module directory

module_codestr

code of the module, deprecated in future release

buildboolean

is the frontend rebuild

upgrade_dbboolean

migrate the revision associated with the module

Raises

ClickException

No module found with the given module code

ClickException

No module code was detected in the code

geonature.core.command.create_gn_module.upgrade_modules_db(directory, sql, tag, x_arg, module_codes)[source]