entity.py
changeset 2005 e8032965f37a
parent 1977 606923dff11b
child 2058 7ef12c03447c
child 2125 19861294506f
--- a/entity.py	Fri May 29 14:07:42 2009 +0200
+++ b/entity.py	Fri May 29 14:19:30 2009 +0200
@@ -724,9 +724,8 @@
         If `eid` is None in one of these couples, it should be
         interpreted as a separator in case vocabulary results are grouped
         """
-        from cubicweb.web.form import EntityFieldsForm
         from logilab.common.testlib import mock_object
-        form = EntityFieldsForm(self.req, entity=self)
+        form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
         field = mock_object(name=rtype, role=role)
         return form.form_field_vocabulary(field, limit)