source: MILK/trunk/milk_server/milk_server/lib/ @ 3536

Subversion URL:
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

2Helper functions
4All names available in this module will be available under the Pylons h object.
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.