mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GMG-Devel] [PATCH 04/83] Fix typos in search.models


From: Alon Levy
Subject: [GMG-Devel] [PATCH 04/83] Fix typos in search.models
Date: Tue, 25 Feb 2014 21:57:47 +0200

From: Praveen Kumar <address@hidden>

---
 mediagoblin/plugins/search/models.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/mediagoblin/plugins/search/models.py 
b/mediagoblin/plugins/search/models.py
index 6dba2c5..6063acb 100644
--- a/mediagoblin/plugins/search/models.py
+++ b/mediagoblin/plugins/search/models.py
@@ -1,11 +1,11 @@
-import oggs
+import os
 
-from mediagoblin.tools import plugin_api
-from mediagoblin.plugins.search.exceptions import IndexDoesNotExistError
+from mediagoblin.tools import pluginapi
+from mediagoblin.plugins.search.exceptions import IndexDoesNotExistsError
 
 from whoosh import index
 
-config = plugin_api.get_config('mediagoblin.plugins.search')
+config = pluginapi.get_config('mediagoblin.plugins.search')
 
 SEARCH_INDEX_DIR = config['search_index_dir']
 USE_MULTIPROCESSING = config['use_multiprocessing']
@@ -27,10 +27,10 @@ class SearchIndex(object):
         self.search_index_name = self.__class__.__name__.lower()
         self.search_index_dir = search_index_dir
         self.use_multiprocessing = use_multiprocessing
-    
+
     def _index_exists(self):
         if not self.search_index:
-            raise IndexDoesNotExists(
+            raise IndexDoesNotExistsError(
                 self.search_index_dir, self.search_index_name)
         
         if self.index.exists_in(
-- 
1.8.5.3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]