Changeset 5088 for cows


Ignore:
Timestamp:
10/03/09 16:09:52 (11 years ago)
Author:
spascoe
Message:

Fixed dependencies and added some code for compatibility with Pylons-0.9.7

Location:
cows/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/project_templates/cows_server/+package+/config/middleware.py_tmpl

    r4917 r5088  
    1111from pylons.wsgiapp import PylonsApp 
    1212 
     13from pylons import __version__ as pylons_version 
     14if pylons_version >= '0.9.7': 
     15    from beaker.middleware import CacheMiddleware, SessionMiddleware 
     16    from routes.middleware import RoutesMiddleware 
     17 
     18 
    1319from {{package}}.config.environment import load_environment 
     20 
    1421 
    1522def make_app(global_conf, full_stack=True, **app_conf): 
     
    3845 
    3946    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) 
     47     
     48    if pylons_version >= '0.9.7': 
     49        app = RoutesMiddleware(app, config['routes.map']) 
     50        app = SessionMiddleware(app, config) 
     51        app = CacheMiddleware(app, config) 
    4052 
    4153    if asbool(full_stack): 
  • cows/trunk/setup.py

    r5059 r5088  
    1212    # We only list dependencies that we are confident will easy_install without 
    1313    # a hitch here. 
    14     install_requires=['Paste>=1.7', 'matplotlib>=0.98'], 
     14    install_requires=['Pylons', 'genshi', 'numpy', 'cdat_lite', 'csml', 
     15                      'matplotlib>=0.98'], 
     16    find_links=['http://ndg.nerc.ac.uk/dist'], 
    1517 
    1618    classifiers=[ 
Note: See TracChangeset for help on using the changeset viewer.