--- a/web/form.py Wed Apr 29 08:58:41 2009 +0200
+++ b/web/form.py Wed Apr 29 09:03:31 2009 +0200
@@ -481,7 +481,7 @@
"""overriden to add edit[s|o] hidden fields and to ensure schema fields
have eidparam set to True
- edit[s|o] hidden fields are used t o indicate the value for the
+ edit[s|o] hidden fields are used to indicate the value for the
associated field before the (potential) modification made when
submitting the form.
"""
@@ -600,7 +600,7 @@
"""
entity = self.edited_entity
if isinstance(rtype, basestring):
- rtype = self.schema.rschema(rtype)
+ rtype = entity.schema.rschema(rtype)
done = None
assert not rtype.is_final(), rtype
if entity.has_eid():
@@ -622,7 +622,7 @@
"""
entity = self.edited_entity
if isinstance(rtype, basestring):
- rtype = self.schema.rschema(rtype)
+ rtype = entity.schema.rschema(rtype)
done = None
if entity.has_eid():
done = set(e.eid for e in getattr(entity, 'reverse_%s' % rtype))