Module Import alias ImportFrom alias identifier Import alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias identifier alias alias alias alias alias alias alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Str Str FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Expr Call NameLoad ListLoad NameLoad Str NameLoad If BoolOpOr Call NameLoad Str NameLoad body Assign NameStore Call NameLoad Str If UnaryOpNot NameLoad body Expr Call NameLoad Call NameLoad Str Return Expr Call NameLoad Call NameLoad Str For NameStore NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Str NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Expr Call NameLoad ListLoad NameLoad Str NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad Str If NameLoad body Assign NameStore NameLoad orelse Assign NameStore BinOpMod Str BoolOpOr NameLoad Str With Call NameLoad keyword NameLoad body If UnaryOpNot Call NameLoad Call NameLoad NameLoad Str body Expr Call NameLoad Call NameLoad Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr Call NameLoad BinOpMod Str NameLoad orelse Expr Call NameLoad Call NameLoad Str NameLoad With Call NameLoad NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str With Call NameLoad keyword NameLoad body Expr Call NameLoad Call NameLoad Str With Call NameLoad Call NameLoad Str body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Expr Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Str Assign NameStore Call NameLoad NameLoad Str BinOpMod Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str Expr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad Str Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad NameLoad Str Str Expr Call NameLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str keyword Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Expr Call NameLoad Str keyword Str Expr Call NameLoad Str keyword Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad Str Expr Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str SubscriptLoad NameLoad Index Str Expr Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str BinOpMod Str TupleLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str Call AttributeLoad Str attr ListLoad Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Str Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str body Assign NameStore Call NameLoad Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad Str NameLoad keyword NameLoad Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Call NameLoad Str Str Expr Call NameLoad Str BinOpMod Str TupleLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str Call NameLoad Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Assign NameStore Call NameLoad Str Expr BoolOpOr Call NameLoad Str Call NameLoad Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad Str NameLoad orelse Expr Call NameLoad Call NameLoad Str Assign NameStore Dict If NameLoad body TryExcept body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Call NameLoad Str NameLoad Expr Call NameLoad Call NameLoad Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Expr Call NameLoad Str Expr BoolOpAnd NameLoad Call NameLoad Str NameLoad keyword NameLoad Expr BoolOpAnd NameLoad Call NameLoad Str NameLoad keyword NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str Call NameLoad NameLoad Expr Call NameLoad Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpAdd BinOpAdd Call NameLoad Str Str Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign SubscriptStore NameLoad Index Str Dict Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Call NameLoad Str Expr Call NameLoad Call NameLoad Str If Call NameLoad NameLoad body Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad If Call NameLoad NameLoad body Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list NameLoad
N/A N/A os os.path join pjoin N/A json fabric.colors red yellow green blue magenta fabric.api abort task env settings cd run modules nginx supervisor postgresql solr cron doc system modules.database ensure_database ensure_user ensure_language modules.virtualenv update_virtualenv create_virtualenv modules.utils show put_file_with_perms dir_exists PROPER_SUDO_PREFIX SUDO_PREFIX cget cset print_context run_django_cmd upload_template_with_perms local_files_dir get_boolean create_target_directories confirm_or_abort N/A PARENT_DIR N/A N/A N/A os path abspath N/A N/A N/A os path dirname __file__ N/A DEFAULT_CONF_FILE N/A pjoin PARENT_DIR target_defs defaults.json prepare_global_env N/A N/A N/A N/A N/A Ensure global settings - one time only. N/A N/A N/A system install_requirements N/A N/A setup_ssh N/A N/A N/A solr provision update N/A cget setup_environment N/A setup_ssh N/A N/A N/A N/A N/A Uploads ssh from the local folder specified in config. N/A user N/A cget user N/A ssh_target_dir N/A cget ssh_target N/A N/A create_target_directories N/A ssh_target_dir 700 user N/A N/A N/A cget upload_ssh_keys_from_local True N/A N/A files N/A cget ssh_files N/A N/A files N/A N/A N/A show N/A yellow No SSH files to upload. N/A N/A N/A show N/A yellow Uploading SSH configuration and keys N/A name files N/A N/A N/A show N/A N/A File: {0} format name N/A local_path N/A pjoin N/A local_files_dir ssh name N/A remote_path N/A pjoin ssh_target_dir name N/A N/A put_file_with_perms local_path remote_path 600 user user N/A N/A N/A Exception Not implemented! Please set upload_ssh_keys_from_local to True! N/A prepare_target_env N/A N/A N/A N/A N/A Prepare all things needed before source code deployment. N/A user N/A cget user N/A project_dir N/A cget project_dir N/A N/A create_target_directories N/A project_dir 755 user N/A dirs N/A code logs logs/old misc virtualenv media static scripts services N/A dirs N/A N/A pjoin project_dir d N/A d dirs N/A N/A create_target_directories dirs 755 user N/A N/A create_virtualenv N/A fetch_project_code N/A N/A N/A N/A N/A Fetches project code from Github.
        If specified, resets state to selected branch or commit (from context).

     N/A branch N/A cget branch N/A commit N/A cget commit N/A project_dir N/A cget project_dir N/A repo_dir N/A pjoin project_dir code N/A url N/A cget source_url N/A commit N/A N/A rev commit N/A N/A rev N/A origin/%s N/A branch master N/A N/A settings sudo_prefix SUDO_PREFIX N/A N/A N/A N/A dir_exists N/A pjoin repo_dir .git N/A N/A N/A show N/A yellow Cloning repository following: %s rev N/A N/A run N/A git clone %s %s N/A url repo_dir N/A N/A cd repo_dir N/A N/A N/A run N/A git reset --hard %s rev N/A N/A N/A show N/A yellow Updating repository following: %s rev N/A N/A cd repo_dir N/A N/A N/A run git fetch origin N/A N/A run git clean -f N/A N/A run N/A git reset --hard %s rev N/A clear_pyc N/A N/A N/A N/A N/A Removes all pyc file to get rid of stale modules. N/A N/A settings sudo_prefix SUDO_PREFIX N/A N/A N/A show N/A yellow Clearing *.pyc files. N/A N/A cd N/A cget project_dir N/A N/A N/A run find . -type f -name "*.pyc" -delete N/A upload_settings_files N/A N/A N/A N/A N/A Uploads target specific (templated) settings files.
        If specified also uploads user supplied locals.py.

        *Warning*: Settings are uploaded from your local template file.
        Make sure to have proper branch/revision checked out.

     N/A base_dir N/A cget base_dir N/A user N/A cget user N/A locals_path N/A cget locals_path N/A N/A show N/A yellow Uploading Django settings files. N/A context N/A dict N/A env N/A ctx N/A context N/A source N/A pjoin N/A local_files_dir django settings_template.py N/A destination N/A pjoin base_dir settings N/A %s.py N/A cget settings_name N/A N/A upload_template_with_perms source destination context mode 644 user user group user N/A N/A N/A N/A N/A os path isfile locals_path N/A N/A this_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A locals_path N/A pjoin this_dir locals_path N/A N/A N/A N/A N/A os path isfile locals_path N/A N/A msg Warning: Specified local settings path is incorrect: {0}. N/A N/A show N/A red N/A N/A msg format locals_path N/A N/A confirm_or_abort N/A red 
Do you want to continue? N/A locals_path None N/A locals_path N/A N/A N/A show N/A yellow Uploading your custom local settings files. N/A destination N/A pjoin base_dir settings local.py N/A N/A put_file_with_perms locals_path destination mode 644 user user group user N/A collect_staticfiles N/A N/A N/A N/A N/A Quietly runs `collectstatic` management command N/A N/A show N/A yellow Collecting static files N/A N/A run_django_cmd makejsconf N/A N/A run_django_cmd collectstatic args --noinput N/A compile_messages N/A N/A N/A N/A N/A Runs `compilemessages` management command N/A N/A show N/A yellow Compiling translation messages N/A N/A run_django_cmd compilemessages N/A sync_db N/A N/A N/A N/A N/A Quietly runs `syncdb` management command N/A N/A show N/A yellow Synchronising database N/A N/A run_django_cmd syncdb args --noinput N/A N/A run_django_cmd migrate args --noinput N/A configure_services N/A N/A N/A N/A N/A Ensures correct init and running scripts for services are installed. N/A N/A N/A cron configure N/A N/A N/A supervisor configure N/A N/A N/A postgresql configure N/A N/A N/A nginx configure N/A N/A N/A solr configure N/A setup_database N/A N/A N/A N/A N/A N/A show N/A yellow Setting database up N/A N/A ensure_user N/A cget db_user N/A cget db_password N/A N/A ensure_database N/A cget db_name N/A cget db_user N/A N/A ensure_language N/A cget db_name plpgsql N/A __reload_services N/A N/A N/A N/A N/A Reloads previously configured services N/A N/A N/A supervisor shutdown N/A N/A N/A nginx reload N/A N/A N/A supervisor reload N/A N/A N/A postgresql reload N/A set_instance_conf N/A N/A N/A N/A N/A Compute all instance specific paths and settings.
    Put *all* settings computation login here.
     N/A N/A cset p % N/A N/A cset percent_escape_key p N/A N/A cset user N/A env N/A user N/A N/A cset prefix N/A cget default_prefix N/A N/A cset project_name N/A %s-%s N/A N/A cget prefix N/A cget instance N/A N/A cset settings_full_name N/A N/A . join N/A N/A cget django_project_name settings N/A cget settings_name N/A N/A cset project_dir N/A pjoin N/A cget projects_dir N/A cget project_name N/A N/A cset virtualenv_dir N/A pjoin N/A cget project_dir virtualenv N/A N/A cset deployment_files N/A pjoin N/A cget project_dir code deployment files N/A N/A cset service_dir N/A pjoin N/A cget project_dir services N/A N/A cset script_dir N/A pjoin N/A cget project_dir scripts N/A this_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A deployment_dir N/A N/A N/A os path abspath N/A pjoin this_dir N/A N/A os path pardir N/A N/A cset local_root deployment_dir N/A N/A N/A N/A N/A os path isabs N/A cget manage_py_dir N/A N/A mpy_dir N/A pjoin N/A cget project_dir code N/A cget manage_py_dir N/A N/A cset manage_py_dir mpy_dir force True N/A N/A cset base_dir N/A pjoin N/A cget project_dir code N/A cget project_inner N/A N/A cset log_dir N/A pjoin N/A cget project_dir logs N/A N/A cset doc_dir N/A pjoin N/A cget project_dir doc N/A N/A cset db_name N/A %s_%s N/A N/A cget prefix N/A cget instance N/A N/A cset db_user N/A cget db_name N/A N/A cset db_password N/A cget db_user N/A N/A cset db_port N/A N/A cset db_host localhost N/A user N/A cget user N/A N/A N/A cget ssh_target N/A cset ssh_target N/A /home/%s/.ssh user N/A load_config_files N/A N/A conf_file default_conf use_default N/A DEFAULT_CONF_FILE True N/A N/A Populates env['ctx'] with settings from the provided and default files.
    Keyword arguments:
    conf_file -- configuration file to use
    default_conf -- default configuration file used as a base, global default
    is 'target_defs/defaults.json'
    use_defaults -- allows to avoid using the defaults file.

     N/A conf_file N/A N/A N/A open conf_file f N/A N/A fctx N/A N/A json load f N/A N/A show N/A yellow Using configuration from: %s conf_file N/A N/A N/A show N/A yellow Using sane defaults N/A fctx N/A N/A use_default N/A N/A N/A N/A N/A open default_conf f N/A N/A dctx N/A N/A json load f N/A msg Using default configuration from: %s N/A N/A show N/A yellow msg default_conf N/A N/A N/A Exception N/A e N/A N/A N/A show N/A yellow Default conf file error! %s e N/A N/A confirm_or_abort N/A red 
Do you want to continue? N/A dctx N/A N/A N/A N/A dctx update fctx N/A N/A env N/A ctx dctx N/A dctx N/A update_args N/A N/A ctx instance branch commit locals_path requirements setup_environment N/A N/A N/A Check args and update ctx. N/A instance N/A cset instance instance N/A N/A N/A instance N/A N/A N/A instance isalnum N/A N/A N/A abort You have to specify a proper alphanumeric instance name! N/A N/A N/A branch None N/A commit None N/A N/A N/A abort You can only deploy specific commit OR specific branch N/A N/A commit N/A cset commit commit force True N/A N/A branch N/A cset branch branch force True N/A N/A cset locals_path locals_path N/A N/A cset requirements N/A get_boolean requirements N/A N/A cset setup_environment N/A get_boolean setup_environment N/A ctx N/A help N/A N/A N/A N/A N/A Prints help. N/A N/A show N/A green Available options: N/A N/A show N/A N/A N/A red conf_file :  N/A yellow JSON configuration file to use N/A N/A show N/A N/A N/A red instance :  N/A yellow name of the instance (can be specified using in the settings) N/A N/A show N/A N/A N/A magenta setup_environment :  N/A yellow if a full environment configuration should be perfomed (default: False) N/A N/A show N/A N/A N/A magenta requirements :  N/A yellow if requirements should be installed (default: True) N/A N/A show N/A N/A N/A blue locals_path :  N/A yellow path to local settings N/A N/A show N/A N/A N/A blue branch :  N/A yellow repository branch to use N/A N/A show N/A N/A N/A blue commit :  N/A yellow repository commit to use N/A task reload_services N/A N/A N/A N/A N/A Reloads all services. N/A N/A __reload_services N/A task deploy N/A N/A conf_file instance branch commit locals_path setup_environment requirements N/A None None None None None False True N/A N/A Does a full deployment of the project code.
        You have to supply an ``instance`` name (the name of deployment
        target in colocation environment).

        ``conf_file`` should be a path to a properly formatted JSON
        configuration file that will override default values.

        If ``locals_path`` is specified this file is used as
        a local settings file.
        Arguments ``commit`` and ``branch`` can be used to deploy
        some specific state of the codebase.

     N/A N/A env N/A ctx N/A N/A ctx N/A load_config_files conf_file N/A ctx N/A update_args ctx instance branch commit locals_path requirements setup_environment N/A N/A set_instance_conf N/A N/A print_context N/A N/A confirm_or_abort N/A red 
Do you want to continue? N/A N/A show N/A yellow Preparing project environment N/A N/A get_boolean setup_environment N/A N/A N/A prepare_global_env N/A N/A prepare_target_env N/A N/A fetch_project_code N/A N/A clear_pyc N/A N/A upload_settings_files N/A N/A setup_database N/A N/A get_boolean requirements N/A N/A N/A update_virtualenv N/A N/A collect_staticfiles N/A N/A sync_db N/A N/A configure_services N/A N/A __reload_services N/A N/A N/A doc configure N/A N/A N/A doc build N/A task