djangocms_installer package¶
Subpackages¶
Submodules¶
djangocms_installer.utils module¶
-
class
djangocms_installer.utils.
chdir
(newPath)[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