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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins da6cbda514 OpenDev Migration Patch 1 month ago
coda Cleanup repository to remove extraneous compiled Python files. 2 years ago
static/coda Initial commit of coda project. 3 years ago
templates/coda Initial commit of coda project. 3 years ago
templatetags Cleanup repository to remove extraneous compiled Python files. 2 years ago
.gitreview OpenDev Migration Patch 1 month ago
README Initial commit of coda project. 3 years ago
__init__.py Initial commit of coda project. 3 years ago
coda.py Initial commit of coda project. 3 years ago
create-resources.sh Initial commit of coda project. 3 years ago
dashboard.py Initial commit of coda project. 3 years ago
models.py Initial commit of coda project. 3 years ago
set_coda_env.sh Initial commit of coda project. 3 years ago
set_coda_env.sh.example Initial commit of coda project. 3 years ago

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.