source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/app_globals.py @ 3536

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/app_globals.py@3536
Revision 3536, 88 bytes checked in by cbyrom, 12 years ago (diff)

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

Line 
1from pylons import config
2
3class Globals(object):
4    def __init__(self):
5        pass
6
Note: See TracBrowser for help on using the repository browser.