wsgidav.lock_manager.LockManager.get_lock

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

Return lock_dict, 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.