[Mpuls-commits] r5156 - in base/trunk: . mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 7 12:33:15 CEST 2011
Author: bh
Date: 2011-07-07 12:33:14 +0200 (Thu, 07 Jul 2011)
New Revision: 5156
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/controllers/auth.py
Log:
* mpulsweb/controllers/auth.py (AuthController.loginAction): Use
store_dbname_in_session so store the db name selected by the user
in the session instead of accessing the session directly.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-07-07 07:36:59 UTC (rev 5155)
+++ base/trunk/ChangeLog 2011-07-07 10:33:14 UTC (rev 5156)
@@ -1,3 +1,9 @@
+2011-07-07 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/controllers/auth.py (AuthController.loginAction): Use
+ store_dbname_in_session so store the db name selected by the user
+ in the session instead of accessing the session directly.
+
2011-07-07 Torsten Irländer <torsten.irlaender at intevation.de>
* mpulsweb/lib/config.py: Added new config var "create" to enable and
Modified: base/trunk/mpulsweb/controllers/auth.py
===================================================================
--- base/trunk/mpulsweb/controllers/auth.py 2011-07-07 07:36:59 UTC (rev 5155)
+++ base/trunk/mpulsweb/controllers/auth.py 2011-07-07 10:33:14 UTC (rev 5156)
@@ -5,7 +5,8 @@
from pylons.controllers.util import redirect_to
from mpulsweb.lib.base import BaseController, render, session, auth_cookie_name
-from mpulsweb.lib.security import checkLogin, generateID, userIdentity
+from mpulsweb.lib.security import checkLogin, generateID, userIdentity, \
+ store_dbname_in_session
import mpulsweb.lib.helpers as h
@@ -39,9 +40,8 @@
if dbname:
dblist = h.get_db_selectionlist()
if dblist.has_key(dbname):
- session['DB_NAME_FROM_LIST'] = dbname
- session.save()
-
+ store_dbname_in_session(dbname)
+
# Check login
user = checkLogin(login, passwd)
if user:
More information about the Mpuls-commits
mailing list