wsgidav.lock_man.lock_manager.LockManager.acquire

LockManager.acquire(*, url, lock_type, lock_scope, lock_depth, lock_owner, timeout, principal, token_list)[source]

Check for permissions and acquire a lock.

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