web/views/magicsearch.py
changeset 4084 69739e6ebd2a
parent 4045 f4a52abb6f4f
child 4252 6c4f109c2b03
--- a/web/views/magicsearch.py	Wed Dec 09 15:47:01 2009 +0100
+++ b/web/views/magicsearch.py	Wed Dec 09 16:05:01 2009 +0100
@@ -174,7 +174,7 @@
         rqlst = parse(uquery, print_errors=False)
         schema = self._cw.vreg.schema
         # rql syntax tree will be modified in place if necessary
-        translate_rql_tree(rqlst, trmap(self._cw.config, schema, self._cw.lang),
+        translate_rql_tree(rqlst, trmap(self._cw.vreg.config, schema, self._cw.lang),
                            schema)
         return rqlst.as_string(),
 
@@ -211,7 +211,7 @@
         """
         etype = word.capitalize()
         try:
-            return trmap(self._cw.config, self._cw.vreg.schema, self._cw.lang)[etype]
+            return trmap(self._cw.vreg.config, self._cw.vreg.schema, self._cw.lang)[etype]
         except KeyError:
             raise BadRQLQuery('%s is not a valid entity name' % etype)
 
@@ -223,7 +223,7 @@
         # Need to convert from unicode to string (could be whatever)
         rtype = word.lower()
         # Find the entity name as stored in the DB
-        translations = trmap(self._cw.config, self._cw.vreg.schema, self._cw.lang)
+        translations = trmap(self._cw.vreg.config, self._cw.vreg.schema, self._cw.lang)
         try:
             translations = translations[rtype]
         except KeyError: