Ignore:
Timestamp:
27/02/08 15:41:06 (14 years ago)
Author:
cbyrom
Message:

Upgrade the server code to make consistent with newer pylons codebase - v0.9.6.1.
This mainly involves the replacement of the Response object, and associated methods,
with the inbuild, default response object. Typical changes include:

render_response -> render - with required settings on the response object
made before the render call against the response object

Response(...) -> response.write() - for content + response.headers.. = .. for headers info

  • also included the replacement of depricated functions, as highlighted by

the server logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py

    r3503 r3536  
    55from routes import Mapper 
    66 
    7 def make_map(global_conf={}, app_conf={}): 
     7def make_map(): 
    88    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
    99 
     
    4545    map.connect('retrieve/:uri', controller = 'retrieve') 
    4646    map.connect('selectedItems',controller='selectedItems',action='index') 
     47    map.connect('viewItems',controller='viewItems',action='index') 
    4748    map.connect('addSelectedItem/:entryid/:kmlurl/:wmcurl/:title/:divid', 
    4849                controller='selectedItems',action='addSelectedItem',kmlurl='',wmcurl='') 
Note: See TracChangeset for help on using the changeset viewer.