remove method deprecated since 3.2
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 09:35:28 +0200
changeset 3382 435286b8fe10
parent 3381 9ddc8937e16d
child 3383 c6aff16e5aed
remove method deprecated since 3.2
entity.py
--- a/entity.py	Wed Sep 23 09:35:11 2009 +0200
+++ b/entity.py	Wed Sep 23 09:35:28 2009 +0200
@@ -840,20 +840,6 @@
                     words += entity.get_words()
         return words
 
-    @deprecated('[3.2] 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)
-
 
 # attribute and relation descriptors ##########################################