Blame | Last modification | View Log | RSS feed
# -*- coding: utf-8 -*-"""The base Controller API."""from tg import TGController, tmpl_contextfrom tg.render import renderfrom pylons.i18n import _, ungettext, N_from tw.api import WidgetBunchimport wiki20.model as model__all__ = ['Controller', 'BaseController']class BaseController(TGController):"""Base class for the controllers in the application.Your web application should have one of these. The root ofyour application is used to compute URLs used by your app."""def __call__(self, environ, start_response):"""Invoke the Controller"""# TGController.__call__ dispatches to the Controller method# the request is routed to. This routing information is# available in environ['pylons.routes_dict']return TGController.__call__(self, environ, start_response)