common/mixins.py
changeset 2005 e8032965f37a
parent 1977 606923dff11b
child 2058 7ef12c03447c
child 2117 b451bd56c9cd
--- a/common/mixins.py	Fri May 29 14:07:42 2009 +0200
+++ b/common/mixins.py	Fri May 29 14:19:30 2009 +0200
@@ -237,8 +237,8 @@
 
     @obsolete('use EntityFieldsForm.subject_in_state_vocabulary')
     def subject_in_state_vocabulary(self, rschema, limit=None):
-        from cubicweb.web.form import EntityFieldsForm
-        return EntityFieldsForm(self.req, None, entity=self).subject_in_state_vocabulary(rschema, limit)
+        form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
+        return form.subject_in_state_vocabulary(rschema, limit)