

def clean_enabled_services(self):
    'Clean the enabled_services field.\n\n        Raises:\n            django.core.exceptions.ValidationError:\n                Raised if an unknown service is attempted to be enabled.\n        '
    for service_id in self.cleaned_data['enabled_services']:
        if (not avatar_services.has_service(service_id)):
            raise ValidationError(('Unknown service "%s"' % service_id))
    return self.cleaned_data['enabled_services']

dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py AvatarServicesForm.clean_enabled_services/original