# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238170107 -3600 # Node ID 78e4080252bea3cf9d0f522c2effa06d2bf0c881 # Parent 620ec8e6ae19eeda771b695afa108db2d64f4891 fix form instantiation diff -r 620ec8e6ae19 -r 78e4080252be common/mixins.py --- a/common/mixins.py Fri Mar 27 12:31:42 2009 +0100 +++ b/common/mixins.py Fri Mar 27 17:08:27 2009 +0100 @@ -234,7 +234,7 @@ @obsolete('use EntityFieldsForm.object_relation_vocabulary') def subject_in_state_vocabulary(self, rschema, limit=None): from cubicweb.web.form import EntityFieldsForm - return EntityFieldsForm(entity=self).subject_in_state_vocabulary(rtype, limit) + return EntityFieldsForm(self.req, None, entity=self).subject_in_state_vocabulary(rschema, limit) diff -r 620ec8e6ae19 -r 78e4080252be entities/__init__.py --- a/entities/__init__.py Fri Mar 27 12:31:42 2009 +0100 +++ b/entities/__init__.py Fri Mar 27 17:08:27 2009 +0100 @@ -252,12 +252,12 @@ @obsolete('use EntityFieldsForm.subject_relation_vocabulary') def subject_relation_vocabulary(self, rtype, limit): from cubicweb.web.form import EntityFieldsForm - return EntityFieldsForm(entity=self).subject_relation_vocabulary(rtype, limit) + return EntityFieldsForm(self.req, None, entity=self).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(entity=self).object_relation_vocabulary(rtype, limit) + return EntityFieldsForm(self.req, None, entity=self).object_relation_vocabulary(rtype, limit) @obsolete('use AutomaticEntityForm.[e]relations_by_category') def relations_by_category(self, categories=None, permission=None):