[GMG-Devel] [PATCH 51/83] Change view function for the search page.

Alon Levy alon at pobox.com
Tue Feb 25 14:58:33 EST 2014


From: Praveen Kumar <praveen97uma at gmail.com>

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

diff --git a/mediagoblin/plugins/search/__init__.py b/mediagoblin/plugins/search/__init__.py
index 3701223..890c593 100644
--- a/mediagoblin/plugins/search/__init__.py
+++ b/mediagoblin/plugins/search/__init__.py
@@ -38,7 +38,7 @@ def register_indices():
 
     registry.IndexRegistry.register(media_entry_search_index)
     _log.info("Registered %(index_name)s index for %(model_name)s"%({
-        'index_name': media_entry_search_index.__class__.__name__,
+        'index_name': media_entry_search_index.identifier,
         'model_name': MediaEntry.__name__}))
     
     media_tag_search_index = indices.MediaTagSearchIndex(
@@ -47,7 +47,7 @@ def register_indices():
     )
     registry.IndexRegistry.register(media_tag_search_index)
     _log.info("Registered %(index_name)s index for %(model_name)s"%({
-        'index_name': media_tag_search_index.__class__.__name__,
+        'index_name': media_tag_search_index.identifier,
         'model_name': MediaTag.__name__}))
 
 def activate_orm_events_listeners():
@@ -67,7 +67,7 @@ def setup_plugin():
     routes = [
         ('mediagoblin.plugins.search.search',
          '/search/',
-         'mediagoblin.plugins.search.views:search'),
+         'mediagoblin.plugins.search.views:search_query'),
     ]
 
     pluginapi.register_routes(routes)
-- 
1.8.5.3



More information about the devel mailing list