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

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

change to support csml lat lon only grids without time dimensions

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        c.wfsonly=globalCSMLConnector.listwfsonly()
14        t = templateLoader.load('catalogue.xml')
15        return t.generate(c=c).render()
Note: See TracBrowser for help on using the repository browser.