Attention

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

wsgidav.lock_manager.LockManager.acquire

LockManager.acquire(url, locktype, lockscope, lockdepth, lockowner, timeout, principal, tokenList)[source]

Check for permissions and acquire a lock.

On success return new lock dictionary. On error raise a DAVError with an embedded DAVErrorCondition.