web/form.py
branchtls-sprint
changeset 1530 849fd3d64f11
parent 1525 cc2e2cbd7019
parent 1529 7d1794175e40
child 1545 53d3d783370f
child 1561 85752d14c15d
--- 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))