Attention

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

wsgidav.lock_manager.LockManager.getLock

LockManager.getLock(token, key=None)[source]

Return lockDict, or None, if not found or invalid.

Side effect: if lock is expired, it will be purged and None is returned.

key:
name of lock attribute that will be returned instead of a dictionary.