[views/reledit] bw compat code is unneeded there stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 17 Sep 2010 19:30:22 +0200
branchstable
changeset 6289 163a7f1d5bba
parent 6288 17cd9ae3d2d5
child 6290 f68dd9dd3af2
[views/reledit] bw compat code is unneeded there
web/views/reledit.py
--- a/web/views/reledit.py	Fri Sep 17 17:55:55 2010 +0200
+++ b/web/views/reledit.py	Fri Sep 17 19:30:22 2010 +0200
@@ -153,18 +153,6 @@
     def _compute_best_vid(self, eschema, rschema, role):
         vid = self._rules.get('rvid', None)
         if vid is None:
-            try:
-                if eschema.rdef(rschema, role).role_cardinality(role) in '+*':
-                    vid = self._many_rvid
-                    warn('[3.9] %s overriding _one_rvid is deprecated, use '
-                         'reledit_ctrl rtag to control this' % self, DeprecationWarning)
-                else:
-                    vid = self._one_rvid
-                    warn('[3.9] %s overriding _many_rvid is deprecated, use '
-                         'reledit_ctrl rtag to control this' % self, DeprecationWarning)
-            except AttributeError:
-                pass
-        if vid is None:
             vid = 'autolimited'
         return vid