wsgidav.lock_man.lock_storage.LockStorageDict.create#
- LockStorageDict.create(path, lock)[source]#
Create a direct lock for a resource path.
- path:
Normalized path (utf8 encoded string, no trailing ‘/’)
- lock:
lock dictionary, without a token entry
- Returns:
<lock
- Return type:
New unique lock token.
Note: the lock dictionary may be modified on return:
lock[‘root’] is ignored and set to the normalized <path>
lock[‘timeout’] may be normalized and shorter than requested
lock[‘token’] is added