[Mpuls-commits] r1466 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Feb 10 15:41:26 CET 2010
Author: torsten
Date: 2010-02-10 15:41:26 +0100 (Wed, 10 Feb 2010)
New Revision: 1466
Modified:
wasko/branches/2.0/mpulsweb/controllers/mpuls.py
Log:
Get current user from session and import app_globals as 'g'
Modified: wasko/branches/2.0/mpulsweb/controllers/mpuls.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/mpuls.py 2010-02-10 14:40:42 UTC (rev 1465)
+++ wasko/branches/2.0/mpulsweb/controllers/mpuls.py 2010-02-10 14:41:26 UTC (rev 1466)
@@ -1,6 +1,6 @@
import logging
-from pylons import request, response, session, tmpl_context as c
+from pylons import request, response, session, tmpl_context as c, app_globals as g
from pylons.controllers.util import abort, redirect_to
from mpulsweb.model.news import NewsList
@@ -14,6 +14,7 @@
class MpulsController(BaseController):
def index(self):
+ user = session['USER_AUTHORIZED']
# LOAD NEWS
if g.mpuls_config.is_enabled('module', 'news'):
More information about the Mpuls-commits
mailing list