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'] set_ui_theme_name('dark-hive') request.identity = request.environ.get('repoze.who.identity') tmpl_context.identity = request.identity return TGController.__call__(self, environ, start_response)
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 tmpl_context.menu_widget = MainMenu tmpl_context.dialog_widget = ReadmeDialog tmpl_context.from_date_widget = FromDateWidget tmpl_context.to_date_widget = ToDateWidget set_ui_theme_name('excite-bike') return TGController.__call__(self, environ, start_response)
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'] set_ui_theme_name('hot-sneaks') entry = model.ServerHit( remote_addr=environ['REMOTE_ADDR'], path_info=environ['PATH_INFO'], query_string=environ['QUERY_STRING'], ) model.DBSession.add(entry) model.DBSession.flush() request.identity = request.environ.get('repoze.who.identity') tmpl_context.identity = request.identity return TGController.__call__(self, environ, start_response)
def with_ui_theme(f, *args, **kw): set_ui_theme_name('hot-sneaks') # hell yes return f(*args, **kw)
def with_ui_theme(f, *args, **kw): set_ui_theme_name("hot-sneaks") # hell yes return f(*args, **kw)