source: cowsclient/tags/1.6.0-py2.6/cowsclient/controllers/layertest.py @ 7593

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsclient/tags/1.6.0-py2.6/cowsclient/controllers/layertest.py@7593
Revision 7593, 988 bytes checked in by astephen, 10 years ago (diff)

Tagged version updated to be compatible with:

  • python 2.6
  • pylons 1.0
Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5#
6"""
7 Controller for the 'View' tab - allowing the display of WMC map layers
8
9 @author C Byrom Feb 08, Modified D Lowe, May 09
10"""
11
12from cowsclient.lib.base import *
13from paste.request import parse_querystring
14#from ows_server.models import Utilities
15from cowsclient.lib.wmc_util import *
16from cowsclient.model import selectedItem
17from pylons import config
18import copy, logging
19log = logging.getLogger(__name__)
20import urllib
21
22class LayertestController(BaseController):
23   
24    def index(self):
25        """
26        Default controller method to handle the initial requests to the page
27        """
28       
29        #get server information from config file
30        g.server=config['app_conf']['serverurl']
31       
32        return render('layertest.html')
Note: See TracBrowser for help on using the repository browser.