source: qesdi/graphplotter/trunk/graphplotter/controllers/buildplot.py @ 6311

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/graphplotter/trunk/graphplotter/controllers/buildplot.py@6311
Revision 6311, 1.1 KB checked in by pnorton, 10 years ago (diff)

First version of graphplotter.

RevLine 
[6311]1import logging
2
3from pylons import request, response, session, tmpl_context as c
4from pylons.controllers.util import abort, redirect_to
5
6from graphplotter.lib.base import BaseController, render
7
8from graphplotter.lib.df_config_reader import DFConfigReader
9from graphplotter.lib.utils import getParams
10
11log = logging.getLogger(__name__)
12
13class BuildplotController(BaseController):
14
15    def index(self):
16       
17        # need a list of all the available data files
18        cr = DFConfigReader()
19       
20        c.dataFiles = [''] + cr.getDataFileList()
21       
22        params = getParams(request)
23       
24        c.selectedDataFile = params.get('datafile_select')
25       
26        # if datafile is selected,
27       
28        #  need to know all the variables
29       
30        #  if a variable is selected
31       
32        #    need to know all the axis
33       
34        #    if a plot axis is selected
35       
36        #      need to make a selection
37       
38        #      need to the ranges for numeric axis
39       
40        #      need to the possible values for index axis
41       
42        return render('buildplot.html')
Note: See TracBrowser for help on using the repository browser.