

def clean_search_index_file(self):
    'Validate that the specified index file is valid.\n\n        This checks to make sure that the provided file path is an absolute\n        path, and that the directory is writable by the web server.\n        '
    index_file = index_file.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

dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py GeneralSettingsForm.clean_search_index_file/VarMisuse@14/94 `self`->`index_file`