Wiking branch, master, updated. 1cd30161338c9e1afdf762df901b086e442a6c5b
Boris Dusek
dusek at devel.brailcom.org
Thu Oct 21 15:22:19 CEST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Wiking".
The branch, master has been updated
via 1cd30161338c9e1afdf762df901b086e442a6c5b (commit)
from cdf5af2f03553c2992c468e2cc8ec20bf1bb3f98 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1cd30161338c9e1afdf762df901b086e442a6c5b
Author: Boris Dusek <dusek at brailcom.org>
Date: Thu Oct 21 15:21:29 2010 +0200
Add information whether the user has just logged in.
-----------------------------------------------------------------------
Summary of changes:
lib/wiking/request.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/wiking/request.py b/lib/wiking/request.py
index d889c54..7e242c0 100644
--- a/lib/wiking/request.py
+++ b/lib/wiking/request.py
@@ -511,6 +511,7 @@ class WikingRequest(Request):
password = params['password']
del params['password']
self._credentials = (login, password)
+ self._fresh_login = True
else:
# Return HTTP Basic auth credentials if available
auth_header = self.header('Authorization')
@@ -520,9 +521,13 @@ class WikingRequest(Request):
else:
credentials = None
self._credentials = credentials
+ self._fresh_login = False
self._user = self._UNDEFINED
return params
+ def fresh_login(self):
+ return self._fresh_login
+
def _init_path(self, uri):
prefix = self._uri_prefix
if prefix and uri.startswith(prefix):
hooks/post-receive
--
Wiking
More information about the Wiking-cvs
mailing list