def without_document_lock(f):
 @wraps(f)
 def wrapper(*args, **kw):
  return f(*args, **kw)
 wrapper.nolock = True
 return wrapper

def without_document_lock ( f ) : @ wraps ( f ) def wrapper ( * args , ** kw ) : return f ( * args , ** kw ) wrapper . nolock = True return wrapper
mark a callback function to execute without first obtaining the document lock .