Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
441:c59c4d4323e7 | 442:d66a7fa7689b |
---|---|
230 log.warn('user %s not authenticated', user.username) | 230 log.warn('user %s not authenticated', user.username) |
231 | 231 |
232 p = request.environ.get('PATH_INFO') | 232 p = request.environ.get('PATH_INFO') |
233 if request.environ.get('QUERY_STRING'): | 233 if request.environ.get('QUERY_STRING'): |
234 p+='?'+request.environ.get('QUERY_STRING') | 234 p+='?'+request.environ.get('QUERY_STRING') |
235 log.debug('redirecting to login page with %',p) | 235 log.debug('redirecting to login page with %s',p) |
236 return redirect(url('login_home',came_from=p)) | 236 return redirect(url('login_home',came_from=p)) |
237 | 237 |
238 class PermsDecorator(object): | 238 class PermsDecorator(object): |
239 """Base class for decorators""" | 239 """Base class for decorators""" |
240 | 240 |