Ignore:
Timestamp:
20/03/08 12:22:27 (11 years ago)
Author:
mkochan
Message:

Changed to version 1.0b.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/csml2kmlpylon/csml2kmlpylon/controllers/csmlGrapher.py

    r3641 r3657  
    66# Other imports 
    77import Image 
    8 import pylab 
    98from pylab import * 
    10 from datetime import datetime, timedelta 
     9from matplotlib import dates 
    1110import re 
    12 import urllib 
    1311from cStringIO import StringIO 
    1412from tempfile import NamedTemporaryFile 
    15 from cElementTree import Element, SubElement, ElementTree, XML 
    16 from urllib import quote 
     13import urllib 
    1714 
    1815# CSML and csml2kml imports 
     
    2017import csml2kml.Station 
    2118from csml2kml.utils import wget 
     19from csml2kml.ET import Element, SubElement, ElementTree, XML 
    2220 
    2321log = logging.getLogger(__name__) 
     
    4341        self.displayIntervalEnd = dates.dateutil.parser.parse(grapherConfig.find('DisplayIntervalEnd').text) 
    4442        self.geoServerUrl = grapherConfig.find('GeoServerURL').text 
     43        self.servedFromUrl = grapherConfig.find('ServedFromURL').text 
    4544 
    4645        # Call the __call__ method of the parent class  
     
    269268                featureNameElement = SubElement(rowElement, 'td') 
    270269                anchorElement = SubElement(featureNameElement, 'a') 
    271                 linkToGrapher = 'http://bond.badc.rl.ac.uk:8089/csmlGrapher/plot?station_name=' + station_name + '&feature_id=' + stationFeature.featureId 
     270                linkToGrapher = self.servedFromUrl + '/plot?station_name=' + station_name + '&feature_id=' + stationFeature.featureId 
    272271                anchorElement.set('href', linkToGrapher) 
    273272                anchorElement.text = stationFeature.featureId 
Note: See TracChangeset for help on using the changeset viewer.