web/facet.py
changeset 2650 18aec79ec3a3
parent 2312 af4d8f75c5db
child 2656 a93ae0f6c0ad
--- a/web/facet.py	Mon Aug 03 09:37:13 2009 +0200
+++ b/web/facet.py	Mon Aug 03 10:50:57 2009 +0200
@@ -64,8 +64,8 @@
 
 
 def get_facet(req, facetid, rqlst, mainvar):
-    return req.vreg.object_by_id('facets', facetid, req, rqlst=rqlst,
-                                 filtered_variable=mainvar)
+    return req.vreg['facets'].object_by_id(facetid, req, rqlst=rqlst,
+                                           filtered_variable=mainvar)
 
 
 def filter_hiddens(w, **kwargs):