web/box.py
changeset 2710 40789c3044f3
parent 2381 caad2367d940
child 2757 c8e28e1754f0
--- a/web/box.py	Wed Aug 05 19:14:07 2009 +0200
+++ b/web/box.py	Wed Aug 05 19:14:39 2009 +0200
@@ -11,6 +11,7 @@
 from logilab.mtconverter import xml_escape
 
 from cubicweb import Unauthorized, role as get_role, target as get_target
+from cubicweb.schema import display_name
 from cubicweb.selectors import (one_line_rset,  primary_view,
                                 match_context_prop, partial_has_related_entities,
                                 accepts_compat, has_relation_compat,
@@ -219,8 +220,8 @@
             return entity.unrelated(self.rtype, self.etype, get_role(self)).entities()
         # in other cases, use vocabulary functions
         entities = []
-        form = self.vreg.select('forms', 'edition', self.req, rset=self.rset,
-                                row=self.row or 0)
+        form = self.vreg['forms'].select('edition', self.req, rset=self.rset,
+                                         row=self.row or 0)
         field = form.field_by_name(self.rtype, get_role(self), entity.e_schema)
         for _, eid in form.form_field_vocabulary(field):
             if eid is not None: