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
Go to file
Nam Nguyen Hoai 742c52d3bd Remove white space between print ()
Change-Id: Ia27b3b5975590279775e438edfa244cc39da6e42
2017-01-19 11:56:49 +07:00
coda Remove white space between print () 2017-01-19 11:56:49 +07:00
static/coda Initial commit of coda project. 2015-12-21 21:09:04 -07:00
templates/coda Initial commit of coda project. 2015-12-21 21:09:04 -07:00
templatetags Initial commit of coda project. 2015-12-21 21:09:04 -07:00
.gitreview Added .gitreview 2015-12-17 09:57:17 +00:00
README Initial commit of coda project. 2015-12-21 21:09:04 -07:00
__init__.py Initial commit of coda project. 2015-12-21 21:09:04 -07:00
__init__.pyc Initial commit of coda project. 2015-12-21 21:09:04 -07:00
coda.py Initial commit of coda project. 2015-12-21 21:09:04 -07:00
coda.pyc Initial commit of coda project. 2015-12-21 21:09:04 -07:00
create-resources.sh Initial commit of coda project. 2015-12-21 21:09:04 -07:00
dashboard.py Initial commit of coda project. 2015-12-21 21:09:04 -07:00
dashboard.pyc Initial commit of coda project. 2015-12-21 21:09:04 -07:00
models.py Initial commit of coda project. 2015-12-21 21:09:04 -07:00
models.pyc Initial commit of coda project. 2015-12-21 21:09:04 -07:00
set_coda_env.sh Initial commit of coda project. 2015-12-21 21:09:04 -07:00
set_coda_env.sh.example Initial commit of coda project. 2015-12-21 21:09:04 -07:00

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.