@gen.coroutine
def RemoveViewpoint(client, obj_store, user_id, device_id, request):
 request['user_id'] = user_id
 viewpoint_id = request['viewpoint_id']
 if (base.ViewfinderContext.current().user.private_vp_id == viewpoint_id):
  raise PermissionError(('User is not allowed to remove their default viewpoint: %s' % viewpoint_id))
 (yield gen.Task(Operation.CreateAndExecute, client, user_id, device_id, 'RemoveViewpointOperation.Execute', request))
 logging.info(('REMOVE VIEWPOINT: user: %d, device: %d, viewpoint: %s' % (user_id, device_id, viewpoint_id)))
 raise gen.Return({})

@ gen . coroutine def RemoveViewpoint ( client , obj_store , user_id , device_id , request ) : request [ 'user_id' ] = user_id viewpoint_id = request [ 'viewpoint_id' ] if ( base . ViewfinderContext . current ( ) . user . private_vp_id == viewpoint_id ) : raise PermissionError ( ( 'User is not allowed to remove their default viewpoint: %s' % viewpoint_id ) ) ( yield gen . Task ( Operation . CreateAndExecute , client , user_id , device_id , 'RemoveViewpointOperation.Execute' , request ) ) logging . info ( ( 'REMOVE VIEWPOINT: user: %d, device: %d, viewpoint: %s' % ( user_id , device_id , viewpoint_id ) ) ) raise gen . Return ( { } )
remove a viewpoint from a users inbox .