Fix incorrect kwarg in auth middleware example
When calling memcache_client.set(), timeout was deprecated and is now removed as a keyword arg, use time instead. Change-Id: Iedbd5b064853ef2b386963246f639fbcd3931cd3
This commit is contained in:
parent
6ade2908cc
commit
e15960a5d8
@ -375,7 +375,7 @@ folks a start on their own code if they want to use repoze.what::
|
|||||||
expiration = float(resp.getheader('x-auth-ttl'))
|
expiration = float(resp.getheader('x-auth-ttl'))
|
||||||
user = resp.getheader('x-auth-user')
|
user = resp.getheader('x-auth-user')
|
||||||
memcache_client.set(key, (time(), expiration, user),
|
memcache_client.set(key, (time(), expiration, user),
|
||||||
timeout=expiration)
|
time=expiration)
|
||||||
return user
|
return user
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user