--- 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)