#NEWLINE# def _process_patch_operation( self , operation , team ) : #NEWLINE# #INDENT# '\n        Args:\n            operation (dict) - one patch operation in RFC 6902 format.\n            team (Team) - team instance which is needed to be patched.\n            state (dict) - inter-operations state storage.\n\n        Returns:\n            processing_status (bool) - True if operation was handled, otherwise False.\n        ' #NEWLINE# if ( 'value' not in operation ) : #NEWLINE# #INDENT# abort ( code = http_exceptions . UnprocessableEntity . code , message = 'value is required' ) #NEWLINE# #UNINDENT# assert ( operation [ 'path' ] [ 0 ] == '/' ) , 'Path must always begin with /' #NEWLINE# field_name = operation [ 'path' ] [ 1 : ] #NEWLINE# field_value = operation [ 'value' ] #NEWLINE# if ( operation [ 'op' ] == parameters . PatchTeamDetailsParameters . OP_REPLACE ) : #NEWLINE# #INDENT# setattr ( team , field_name , field_value ) #NEWLINE# return True #NEWLINE# #UNINDENT# return False