source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/visualise.py @ 2854

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/visualise.py@2854
Revision 2854, 528 bytes checked in by spascoe, 14 years ago (diff)

Wired the Visualise tab to a controller/template. It doesn't do much yet.

Line 
1from ows_server.lib.base import *
2from ows_server.lib.ndgInterface import interface
3
4
5class VisualiseController(BaseController):
6    def index(self):
7        c.datasets = {}
8
9        for uri, dif in session.get('selection', []):
10            (rstatus, dataset) = interface.GetParsedCSML(uri)               
11            if not rstatus: 
12                c.xml='<div class="error">%s</div>'%dataset
13                return render_response('error')
14
15            c.datasets[uri] = dataset
16
17        return render_response('visualise')
Note: See TracBrowser for help on using the repository browser.