1
"""The base Controller API
3
Provides the BaseController class for subclassing, and other objects
4
utilized by Controllers.
6
from pylons import c, cache, config, g, request, response, session
7
from pylons.controllers import WSGIController
8
from pylons.controllers.util import abort, etag_cache, redirect_to
9
from pylons.decorators import jsonify, validate
10
from pylons.i18n import _, ungettext, N_
11
from pylons.templating import render
13
import blobs.helpers as h
15
from blobs.model import *
17
class BaseController(WSGIController):
18
def __call__(self, environ, start_response):
19
"""Invoke the Controller"""
20
# WSGIController.__call__ dispatches to the Controller method
21
# the request is routed to. This routing information is
22
# available in environ['pylons.routes_dict']
24
return WSGIController.__call__(self, environ, start_response)
28
# Include the '_' function in the public names
29
__all__ = [__name for __name in locals().keys() if not __name.startswith('_') \