--- a/entities/__init__.py Fri May 29 14:07:42 2009 +0200
+++ b/entities/__init__.py Fri May 29 14:19:30 2009 +0200
@@ -242,13 +242,13 @@
@obsolete('use EntityFieldsForm.subject_relation_vocabulary')
def subject_relation_vocabulary(self, rtype, limit):
- from cubicweb.web.form import EntityFieldsForm
- return EntityFieldsForm(self.req, None, entity=self).subject_relation_vocabulary(rtype, limit)
+ form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
+ return form.subject_relation_vocabulary(rtype, limit)
@obsolete('use EntityFieldsForm.object_relation_vocabulary')
def object_relation_vocabulary(self, rtype, limit):
- from cubicweb.web.form import EntityFieldsForm
- return EntityFieldsForm(self.req, None, entity=self).object_relation_vocabulary(rtype, limit)
+ form = self.vreg.select_object('forms', 'edition', self.req, entity=self)
+ return form.object_relation_vocabulary(rtype, limit)
@obsolete('use AutomaticEntityForm.[e]relations_by_category')
def relations_by_category(self, categories=None, permission=None):