Changeset 4429 for cows/trunk/cows


Ignore:
Timestamp:
14/11/08 10:05:28 (11 years ago)
Author:
domlowe
Message:

Removing unneeded matplotlib import from wfs. Adding try except to url_for import which has changed in new version of pylons.

Location:
cows/trunk/cows/pylons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/ows_controller.py

    r4393 r4429  
    1111from pylons.controllers import WSGIController 
    1212from pylons.templating import render 
    13 from webhelpers import url_for 
     13try:#pylons has changed the way ithis is imported in newer versions(0.9.7rc3) 
     14    from webhelpers import url_for 
     15except: 
     16    from routes import url_for 
    1417 
    1518from cows import exceptions as OWS_E 
  • cows/trunk/cows/pylons/wfs_controller.py

    r4422 r4429  
    88from cStringIO import StringIO 
    99from sets import Set 
    10 from matplotlib.cm import get_cmap 
    1110from pylons import request, response, c, config 
    1211import ConfigParser 
Note: See TracChangeset for help on using the changeset viewer.