reoops tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 23 Apr 2009 18:10:17 +0200
branchtls-sprint
changeset 1459 f3d8a9228bd3
parent 1458 3a3ad51a591e
child 1465 42f13c790f11
reoops
web/views/editforms.py
--- a/web/views/editforms.py	Thu Apr 23 18:09:56 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 23 18:10:17 2009 +0200
@@ -266,7 +266,7 @@
         try:
             return super(AutomaticEntityForm, cls_or_self).field_by_name(name, role)
         except FieldNotFound: # XXX should raise more explicit exception
-            if eschema is None or not name in self.schema:
+            if eschema is None or not name in cls_or_self.schema:
                 raise
             rschema = cls_or_self.schema.rschema(name)
             fieldcls = cls_or_self.rfields.etype_rtag(eschema, rschema, role)