Paste Template and Pylons utility functions
PylonsTemplate is a Paste Template sub-class that configures the source directory and default plug-ins for a new Pylons project. The minimal template a more minimal template with less additional directories and layout.
The functions used in this module are to assist Pylons in creating new projects, and handling deprecation warnings for moved Pylons functions.
Pylons context object
All the Pylons Stacked Object Proxies are also stored here, for use in generators and async based operation where the globals can’t be used.
This object is attached in WSGIController instances as _py_object. For example:
class MyController(WSGIController):
def index(self):
pyobj = self._py_object
return "Environ is %s" % pyobj.request.environ