def _do_extra_actions(api_content, cc_content, request_fields, actions_form, context, request):
 for (field, form_value) in actions_form.cleaned_data.items():
  if ((field in request_fields) and (form_value != api_content[field])):
   api_content[field] = form_value
   if (field == 'following'):
    _handle_following_field(form_value, context['cc_requester'], cc_content)
   elif (field == 'abuse_flagged'):
    _handle_abuse_flagged_field(form_value, context['cc_requester'], cc_content)
   elif (field == 'voted'):
    _handle_voted_field(form_value, cc_content, api_content, request, context)
   elif (field == 'read'):
    _handle_read_field(api_content, form_value, context['cc_requester'], cc_content)
   else:
    raise ValidationError({field: ['Invalid Key']})

def _do_extra_actions ( api_content , cc_content , request_fields , actions_form , context , request ) : for ( field , form_value ) in actions_form . cleaned_data . items ( ) : if ( ( field in request_fields ) and ( form_value != api_content [ field ] ) ) : api_content [ field ] = form_value if ( field == 'following' ) : _handle_following_field ( form_value , context [ 'cc_requester' ] , cc_content ) elif ( field == 'abuse_flagged' ) : _handle_abuse_flagged_field ( form_value , context [ 'cc_requester' ] , cc_content ) elif ( field == 'voted' ) : _handle_voted_field ( form_value , cc_content , api_content , request , context ) elif ( field == 'read' ) : _handle_read_field ( api_content , form_value , context [ 'cc_requester' ] , cc_content ) else : raise ValidationError ( { field : [ 'Invalid Key' ] } )
perform any necessary additional actions related to content creation or update that require a separate comments service request .