wsgidav.lock_man.lock_storage.LockStorageShelve.get_lock_list#

LockStorageShelve.get_lock_list(path, *, include_root, include_children, token_only)#

Return a list of direct locks for <path>.

Expired locks are not returned (but may be purged).

path:

Normalized path (utf8 encoded string, no trailing ‘/’)

include_root:

False: don’t add <path> lock (only makes sense, when include_children is True).

include_children:

True: Also check all sub-paths for existing locks.

token_only:

True: only a list of token is returned. This may be implemented more efficiently by some providers.

Returns:

List of valid lock dictionaries (may be empty).