should have been in previous commit (moved below in the module)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 20:27:48 +0100
changeset 4379 72a5a8e075e9
parent 4378 785c56bdacc6
child 4380 5613d7c06339
should have been in previous commit (moved below in the module)
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