source: qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/catalogue.py @ 6041

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/catalogue.py@6041
Revision 6041, 384 bytes checked in by pnorton, 10 years ago (diff)

Made some minor alterations to the controllers.

Line 
1import logging
2
3import wms_ddc_vis.lib.base as base
4
5log = logging.getLogger(__name__)
6
7class CatalogueController(base.BaseController):
8    """List available endpoints.
9    """
10
11    def index(self):
12        base.c.featureCollections = base.globalCSMLConnector.list()
13       
14        t = base.templateLoader.load('catalogue.xml')
15       
16        return t.generate(c=base.c).render()
Note: See TracBrowser for help on using the repository browser.