

def clean_logging_directory(self):
    'Validate that the logging_directory path is valid.\n\n        This checks that the directory path exists, and is writable by the web\n        server.\n        '
    logging_dir = logging_dir.cleaned_data['logging_directory']
    if (not os.path.exists(logging_dir)):
        raise ValidationError(_('This path does not exist.'))
    if (not os.path.isdir(logging_dir)):
        raise ValidationError(_('This is not a directory.'))
    if (not os.access(logging_dir, os.W_OK)):
        raise ValidationError(_('This path is not writable by the web server.'))
    return logging_dir

dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py LoggingSettingsForm.clean_logging_directory/VarMisuse@14/74 `self`->`logging_dir`