#NEWLINE# @ gen . coroutine #NEWLINE# def _RemoveViewpoint( self ) : #NEWLINE# #INDENT# 'Orchestrates the update follower operation by executing each of the phases in turn.' #NEWLINE# lock = ( yield gen . Task ( Viewpoint . AcquireLock , self . _client , self . _viewpoint_id ) ) #NEWLINE# try : #NEWLINE# #INDENT# if ( not ( yield self . _Check ( ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . _client . CheckDBNotModified ( ) #NEWLINE# ( yield self . _Update ( ) ) #NEWLINE# ( yield self . _Account ( ) ) #NEWLINE# ( yield Operation . TriggerFailpoint ( self . _client ) ) #NEWLINE# ( yield self . _Notify ( ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# ( yield gen . Task ( Viewpoint . ReleaseLock , self . _client , self . _viewpoint_id , lock ) )