# HG changeset patch # User Sylvain Thénault # Date 1264534068 -3600 # Node ID 72a5a8e075e92cd7167104d1a5b6b0106d6bb5f3 # Parent 785c56bdacc66f647c7df01578731c1661f2c8b3 should have been in previous commit (moved below in the module) diff -r 785c56bdacc6 -r 72a5a8e075e9 web/views/autoform.py --- a/web/views/autoform.py Tue Jan 26 20:25:56 2010 +0100 +++ b/web/views/autoform.py Tue Jan 26 20:27:48 2010 +0100 @@ -46,18 +46,6 @@ # which relations should be edited display_fields = None - def _generic_relations_field(self): - try: - srels_by_cat = self.srelations_by_category('generic', 'add', strict=True) - warn('[3.6] %s: srelations_by_category is deprecated, use uicfg or ' - 'override editable_relations instead' % classid(form), - DeprecationWarning) - except AttributeError: - srels_by_cat = self.editable_relations() - if not srels_by_cat: - raise form.FieldNotFound('_cw_generic_field') - return editviews.GenericRelationsField(self.editable_relations()) - @iclassmethod def field_by_name(cls_or_self, name, role=None, eschema=None): """return field with the given name and role. If field is not explicitly