# HG changeset patch # User Sylvain Thénault # Date 1250161666 -7200 # Node ID b0b26b029d08f6e2b595e1996c86a27e5d643abe # Parent 054a8805da5262e202bc30b067a37527951e218f remove 3.2 bw compat code diff -r 054a8805da52 -r b0b26b029d08 entity.py --- 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