# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1240502996 -7200 # Node ID 3a3ad51a591ea355c2a6e8d615a39e6c30ffb2e0 # Parent a2c8b07d61b42c19584d6a96fcb33ecd1336fd48 oops diff -r a2c8b07d61b4 -r 3a3ad51a591e 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)