#NEWLINE# def clear_lock( self , back = None , remote = None ) : #NEWLINE# #INDENT# '\n        Clear the update lock for the enabled fileserver backends\n\n        back\n            Only clear the update lock for the specified backend(s). The\n            default is to clear the lock for all enabled backends\n\n        remote\n            If specified, then any remotes which contain the passed string will\n            have their lock cleared.\n        ' #NEWLINE# back = self . _gen_back ( back ) #NEWLINE# cleared = [ ] #NEWLINE# errors = [ ] #NEWLINE# for fsb in back : #NEWLINE# #INDENT# fstr = '{0}.clear_lock' . format ( fsb ) #NEWLINE# if ( fstr in self . servers ) : #NEWLINE# #INDENT# ( good , bad ) = clear_lock ( self . servers [ fstr ] , fsb , remote = remote ) #NEWLINE# cleared . extend ( good ) #NEWLINE# errors . extend ( bad ) #NEWLINE# #UNINDENT# #UNINDENT# return ( cleared , errors )