entity.py
changeset 2830 b0b26b029d08
parent 2829 054a8805da52
child 2831 ddde6cf856a1
--- a/entity.py	Thu Aug 13 13:07:21 2009 +0200
+++ b/entity.py	Thu Aug 13 13:07:46 2009 +0200
@@ -608,20 +608,6 @@
 
     # generic vocabulary methods ##############################################
 
-    @deprecated('[3.4] see new form api')
-    def vocabulary(self, rtype, role='subject', limit=None):
-        """vocabulary functions must return a list of couples
-        (label, eid) that will typically be used to fill the
-        edition view's combobox.
-
-        If `eid` is None in one of these couples, it should be
-        interpreted as a separator in case vocabulary results are grouped
-        """
-        from logilab.common.testlib import mock_object
-        form = self.vreg.select('forms', 'edition', self.req, entity=self)
-        field = mock_object(name=rtype, role=role)
-        return form.form_field_vocabulary(field, limit)
-
     def unrelated_rql(self, rtype, targettype, role, ordermethod=None,
                       vocabconstraints=True):
         """build a rql to fetch `targettype` entities unrelated to this entity