aiida.common.additions.old_migrations package

Submodules

class aiida.common.additions.old_migrations.migration_05dj_to_06dj.Migration[source]

Bases: object

This class converts the configuration from the AiiDA version with one backend (Django) as it is described in commit e048939 (version to to the implementation that supports DJango and SQLAlchemy.

It is assumed that it is already (correctly) defined the place that the various configuration files are found in the aiida.common.setup.

DAEMON_CONF_FILE = 'aiida_daemon.conf'
DEFAULT_UMASK = 63
__dict__ = dict_proxy({'__module__': 'aiida.common.additions.old_migrations.migration_05dj_to_06dj', 'perform_migration': <function perform_migration>, 'install_daemon_files': <function install_daemon_files>, 'DAEMON_CONF_FILE': 'aiida_daemon.conf', '__dict__': <attribute '__dict__' of 'Migration' objects>, 'adding_backend': <function adding_backend>, 'DEFAULT_UMASK': 63, '__weakref__': <attribute '__weakref__' of 'Migration' objects>, '__doc__': '\n This class converts the configuration from the AiiDA version with one\n backend (Django) as it is described in commit e048939 (version to to the implementation\n that supports DJango and SQLAlchemy.\n\n It is assumed that it is already (correctly) defined the place that the\n various configuration files are found in the aiida.common.setup.\n ', '__init__': <function __init__>})
__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'aiida.common.additions.old_migrations.migration_05dj_to_06dj'
__weakref__

list of weak references to the object (if defined)

adding_backend()[source]

Gets the main AiiDA configuration and searches if there is a backend defined. If there isn’t any then Django is added.

install_daemon_files(aiida_dir, daemon_dir, log_dir, local_user)[source]

Install the files needed to run the daemon.

perform_migration()[source]
class aiida.common.additions.old_migrations.migration_06dj_to_07dj.Migration[source]

Bases: object

This class converts the configuration from the AiiDA 0.6.0 version (Django) to version 0.7.0 (Django).

It is assumed that it is already (correctly) defined the place that the various configuration files are found in the aiida.common.setup.

DAEMON_CONF_FILE = 'aiida_daemon.conf'
DEFAULT_UMASK = 63
__dict__ = dict_proxy({'__module__': 'aiida.common.additions.old_migrations.migration_06dj_to_07dj', 'perform_migration': <function perform_migration>, 'install_daemon_files': <function install_daemon_files>, 'DAEMON_CONF_FILE': 'aiida_daemon.conf', '__dict__': <attribute '__dict__' of 'Migration' objects>, 'DEFAULT_UMASK': 63, '__weakref__': <attribute '__weakref__' of 'Migration' objects>, '__doc__': '\n This class converts the configuration from the AiiDA 0.6.0 version (Django)\n to version 0.7.0 (Django).\n\n It is assumed that it is already (correctly) defined the place that the\n various configuration files are found in the aiida.common.setup.\n ', '__init__': <function __init__>})
__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

__module__ = 'aiida.common.additions.old_migrations.migration_06dj_to_07dj'
__weakref__

list of weak references to the object (if defined)

install_daemon_files(daemon_dir, log_dir, local_user)[source]

Install the files needed to run the daemon.

perform_migration()[source]