Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If BoolOpOr UnaryOpNot Call NameLoad NameLoad Str BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot AttributeLoad NameLoad attr body Print Str Expr Call NameLoad Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Print Call AttributeLoad Str attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A 
********************************************************************************
* Name: collectworkspaces.py
* Author: Nathan Swain
* Created On: August 6, 2015
* Copyright: (c) Brigham Young University 2015
* License: BSD 2-Clause
********************************************************************************
 N/A os N/A shutil django.core.management.base BaseCommand django.conf settings tethys_apps.helpers get_installed_tethys_apps Command N/A BaseCommand N/A N/A 
    Command class that handles the syncstores command. Provides persistent store management functionality.
     handle N/A N/A self N/A args options N/A N/A 
        Symbolically link the static directories of each app into the static/public directory specified by the STATIC_ROOT
        parameter of the settings.py. Do this prior to running Django's collectstatic method.
         N/A N/A N/A N/A hasattr settings TETHYS_WORKSPACES_ROOT N/A N/A hasattr settings TETHYS_WORKSPACES_ROOT N/A N/A settings TETHYS_WORKSPACES_ROOT N/A N/A WARNING: Cannot find the TETHYS_WORKSPACES_ROOT setting in the settings.py file. Please provide the path to the static directory using the TETHYS_WORKSPACES_ROOT setting and try again. N/A N/A exit 1 N/A workspaces_root N/A settings TETHYS_WORKSPACES_ROOT N/A installed_apps N/A get_installed_tethys_apps N/A N/A N/A INFO: Moving workspace directories of apps to "{0}" and linking back. format workspaces_root N/A N/A app path N/A N/A installed_apps iteritems N/A N/A workspaces_path N/A N/A N/A os path join path workspaces N/A workspaces_root_path N/A N/A N/A os path join workspaces_root app N/A N/A N/A N/A N/A os path isdir workspaces_path N/A N/A N/A N/A os path islink workspaces_path N/A N/A N/A N/A N/A N/A os remove workspaces_root_path N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A shutil rmtree workspaces_root_path N/A N/A N/A OSError N/A N/A N/A N/A N/A shutil move workspaces_path workspaces_root_path N/A N/A N/A N/A os path isdir workspaces_root_path N/A N/A N/A N/A os symlink workspaces_root_path workspaces_path N/A N/A N/A INFO: Successfully linked "workspaces" directory to TETHYS_WORKSPACES_ROOT for app "{0}". format app N/A N/A