def clean_search_index_file(self):
        index_file = self.cleaned_data['search_index_file'].strip()

        if index_file:
            if not os.path.isabs(index_file):
                raise ValidationError(
                    _("The search index path must be absolute."))

            if (os.path.exists(index_file) and
                    not os.access(index_file, os.W_OK)):
                raise ValidationError(
                    _('The search index path is not writable. Make sure the '
                      'web server has write access to it and its parent '
                      'directory.'))

        return index_file
Initialize RGBW group.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py/GeneralSettingsForm.clean_search_index_file--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/limitlessled.py/LimitlessLEDRGBWGroup.__init__