projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d56107
)
Fix astakos middleware.
author
Antony Chazapis
<chazapis@gmail.com>
Wed, 4 Jan 2012 17:16:13 +0000
(19:16 +0200)
committer
Antony Chazapis
<chazapis@gmail.com>
Wed, 4 Jan 2012 17:16:13 +0000
(19:16 +0200)
pithos/middleware/astakos.py
patch
|
blob
|
history
diff --git
a/pithos/middleware/astakos.py
b/pithos/middleware/astakos.py
index
f52d394
..
ec289eb
100644
(file)
--- a/
pithos/middleware/astakos.py
+++ b/
pithos/middleware/astakos.py
@@
-46,10
+46,10
@@
def get_user_from_token(token):
try:
status, headers, user = authenticate(host, token)
return json.loads(user)
- except Fault, f:
+ except:
return None
-class AuthMiddleware(object):
+class AstakosMiddleware(object):
def process_request(self, request):
request.user = None
request.user_uniq = None