Пример #1
0
    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']

        request.identity = request.environ.get('repoze.who.identity')
        tmpl_context.identity = request.identity
        jquery_js.inject()
        return TGController.__call__(self, environ, start_response)
Пример #2
0
    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']

        request.identity = request.environ.get('repoze.who.identity')
        tmpl_context.identity = request.identity
        jquery_js.inject()
#        from tw.jquery.ui import ui_tabs_js, jquery_ui_all_js
#        from tw.uitheme import uilightness_css
#        jquery_ui_all_js.inject()
#        uilightness_css.inject()
        return TGController.__call__(self, environ, start_response)