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

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

modified catalogue controller and template to allow for wfs only service endpoints. Add wfsonly.txt to csmlstore directory to use

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.