entities/__init__.py
branchtls-sprint
changeset 1182 78e4080252be
parent 1179 70825477c6ce
child 1360 13ae1121835e
equal deleted inserted replaced
1181:620ec8e6ae19 1182:78e4080252be
   250         return wdg
   250         return wdg
   251 
   251 
   252     @obsolete('use EntityFieldsForm.subject_relation_vocabulary')
   252     @obsolete('use EntityFieldsForm.subject_relation_vocabulary')
   253     def subject_relation_vocabulary(self, rtype, limit):
   253     def subject_relation_vocabulary(self, rtype, limit):
   254         from cubicweb.web.form import EntityFieldsForm
   254         from cubicweb.web.form import EntityFieldsForm
   255         return EntityFieldsForm(entity=self).subject_relation_vocabulary(rtype, limit)
   255         return EntityFieldsForm(self.req, None, entity=self).subject_relation_vocabulary(rtype, limit)
   256 
   256 
   257     @obsolete('use EntityFieldsForm.object_relation_vocabulary')
   257     @obsolete('use EntityFieldsForm.object_relation_vocabulary')
   258     def object_relation_vocabulary(self, rtype, limit):
   258     def object_relation_vocabulary(self, rtype, limit):
   259         from cubicweb.web.form import EntityFieldsForm
   259         from cubicweb.web.form import EntityFieldsForm
   260         return EntityFieldsForm(entity=self).object_relation_vocabulary(rtype, limit)
   260         return EntityFieldsForm(self.req, None, entity=self).object_relation_vocabulary(rtype, limit)
   261     
   261     
   262     @obsolete('use AutomaticEntityForm.[e]relations_by_category')
   262     @obsolete('use AutomaticEntityForm.[e]relations_by_category')
   263     def relations_by_category(self, categories=None, permission=None):
   263     def relations_by_category(self, categories=None, permission=None):
   264         from cubicweb.web.views.editforms import AutomaticEntityForm
   264         from cubicweb.web.views.editforms import AutomaticEntityForm
   265         return AutomaticEntityForm.erelations_by_category(self, categories, permission)
   265         return AutomaticEntityForm.erelations_by_category(self, categories, permission)