cubicweb/web/form.py
changeset 12542 85194bd49119
parent 12503 b01dd0ef43aa
child 12567 26744ad37953
--- a/cubicweb/web/form.py	Tue Mar 26 13:08:13 2019 +0100
+++ b/cubicweb/web/form.py	Fri Mar 22 17:42:36 2019 +0100
@@ -18,8 +18,6 @@
 """abstract form classes for CubicWeb web client"""
 
 
-from warnings import warn
-
 from six import add_metaclass
 
 from logilab.common.decorators import iclassmethod
@@ -273,10 +271,7 @@
             try:
                 return self.form_valerror.errors.pop(field.role_name())
             except KeyError:
-                if field.role and field.name in self.form_valerror:
-                    warn('%s: errors key of attribute/relation should be suffixed by "-<role>"'
-                         % self.form_valerror.__class__, DeprecationWarning)
-                    return self.form_valerror.errors.pop(field.name)
+                pass
         return None
 
     def remaining_errors(self):