Removed check for writable path in __init__. Thanks to Jacob Kaplan-Moss for pointing it out.

This commit is contained in:
David Sauve 2011-02-01 14:54:08 -08:00
parent fce97acf33
commit 027e9bf1f1

View File

@ -134,9 +134,6 @@ class SearchBackend(BaseSearchBackend):
if not os.path.exists(settings.HAYSTACK_XAPIAN_PATH):
os.makedirs(settings.HAYSTACK_XAPIAN_PATH)
if not os.access(settings.HAYSTACK_XAPIAN_PATH, os.W_OK):
raise IOError("The path to your Xapian index '%s' is not writable for the current user/group." % settings.HAYSTACK_XAPIAN_PATH)
self.language = language
self._schema = None
self._content_field_name = None