djangocms_installer package

Submodules

djangocms_installer.compat module

djangocms_installer.compat.clean(value)[source]

djangocms_installer.main module

djangocms_installer.main.execute()[source]

djangocms_installer.utils module

class djangocms_installer.utils.chdir(new_path)[source]

Bases: object

Context manager for changing the current working directory

djangocms_installer.utils.format_val(val)[source]

Returns val as integer or as escaped string according to its value :param val: any value :return: formatted string

djangocms_installer.utils.less_than_version(value)[source]

Converts the current version to the next one for inserting into requirements in the ‘ < version’ format

djangocms_installer.utils.query_yes_no(question, default=None)[source]

Ask a yes/no question via raw_input() and return their answer.

Parameters:
  • question – A string that is presented to the user.
  • default – The presumed answer if the user just hits <Enter>. It must be “yes” (the default), “no” or None (meaning an answer is required of the user).

The “answer” return value is one of “yes” or “no”.

Code borrowed from cookiecutter https://github.com/audreyr/cookiecutter/blob/master/cookiecutter/prompt.py

djangocms_installer.utils.supported_versions(django, cms)[source]

Convert numeric and literal version information to numeric format

Module contents