Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.lock_storage.LockStorageDict.refresh

LockStorageDict.refresh(token, timeout)[source]

Modify an existing lock’s timeout.

token:
Valid lock token.
timeout:
Suggested lifetime in seconds (-1 for infinite). The real expiration time may be shorter than requested!
Returns:Lock dictionary. Raises ValueError, if token is invalid.