source: MILK/trunk/milk_server/milk_server/lib/helpers.py @ 3536

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/lib/helpers.py@5176
Revision 3536, 214 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 
1"""
2Helper functions
3
4All names available in this module will be available under the Pylons h object.
5"""
6from webhelpers import *
7from pylons.controllers.util import log
8from pylons.i18n import get_lang, set_lang
Note: See TracBrowser for help on using the repository browser.