source: cows/trunk/cows/pylons/project_templates/cows_server/+package+/controllers/catalogue.py_tmpl @ 4952

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/project_templates/cows_server/+package+/controllers/catalogue.py_tmpl@4952
Revision 4952, 341 bytes checked in by spascoe, 11 years ago (diff)

Missed some template variable substitutions

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