# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1240503017 -7200 # Node ID f3d8a9228bd3819bf3308fcea391154dcdfcb521 # Parent 3a3ad51a591ea355c2a6e8d615a39e6c30ffb2e0 reoops diff -r 3a3ad51a591e -r f3d8a9228bd3 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)