oops tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 23 Apr 2009 18:09:56 +0200
branchtls-sprint
changeset 1458 3a3ad51a591e
parent 1455 a2c8b07d61b4
child 1459 f3d8a9228bd3
oops
web/views/editforms.py
--- a/web/views/editforms.py	Thu Apr 23 17:57:46 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 23 18:09:56 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 eclass is None or not name in self.schema:
+            if eschema is None or not name in self.schema:
                 raise
             rschema = cls_or_self.schema.rschema(name)
             fieldcls = cls_or_self.rfields.etype_rtag(eschema, rschema, role)