diff pylons_app/lib/auth.py @ 442:d66a7fa7689b

moved loged in user propagation out of forms, update user model to get auto update last login. bugfix with redirect log fixed forms logic a little bit some other tweeks
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 01 Sep 2010 23:32:47 +0200
parents 930f8182a884
children a3d9d24acbec
line wrap: on
line diff
--- a/pylons_app/lib/auth.py	Wed Sep 01 12:13:03 2010 +0200
+++ b/pylons_app/lib/auth.py	Wed Sep 01 23:32:47 2010 +0200
@@ -232,7 +232,7 @@
             p = request.environ.get('PATH_INFO')
             if request.environ.get('QUERY_STRING'):
                 p+='?'+request.environ.get('QUERY_STRING')
-            log.debug('redirecting to login page with %',p)                
+            log.debug('redirecting to login page with %s',p)                
             return redirect(url('login_home',came_from=p))
 
 class PermsDecorator(object):