@classmethod
  @gen.engine
  def AcquireLock(cls, client, viewpoint_id, callback):
    op = Operation.GetCurrent()
    lock = yield gen.Task(Lock.Acquire, client, LockResourceType.Viewpoint, viewpoint_id,
                          op.operation_id)
    ViewpointLockTracker.AddViewpointId(viewpoint_id)
    callback(lock)
Acquires a persistent global lock on the specified viewpoint.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/viewpoint.py/Viewpoint.AcquireLock