RETIRED, Coda is a Horizon dashboard and panel (both share the name) that facilitates resource clean up of a project once that project is no longer needed
742c52d3bd
Change-Id: Ia27b3b5975590279775e438edfa244cc39da6e42 |
||
---|---|---|
coda | ||
static/coda | ||
templates/coda | ||
templatetags | ||
.gitreview | ||
README | ||
__init__.py | ||
__init__.pyc | ||
coda.py | ||
coda.pyc | ||
create-resources.sh | ||
dashboard.py | ||
dashboard.pyc | ||
models.py | ||
models.pyc | ||
set_coda_env.sh | ||
set_coda_env.sh.example |
README
Coda ====== Coda is a Horizon dashboard and panel (both share the name) that facilitates resource clean up of a project once that project is no longer needed http://openstack.org Coda Dashboard ---------------- Coda Dashboard is an extension for OpenStack Dashboard that provides a UI for Coda. For developer purposes, please place OpenStack Dashboard extension file, located at *local/_42_coda.py* under horizon/openstack_dashboard/local/enabled directory and run horizon as usual. You will need to add the following code to the end of your local_settings.py def load_coda(): import imp #Go up a level, coda should be installed there. local_settings_dir = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0] local_settings_dir+="/dashboards/coda" #print local_settings_dir module = imp.load_source("coda", "%s/coda.py" % local_settings_dir) for attr in dir(module): if not attr.startswith('_'): globals()[attr] = getattr(module, attr) load_coda() This makes sure that the coda.py file containing your settings are imported properly. This is probably a hack but I haven't found a better way to do this yet.