web/form.py
branchtls-sprint
changeset 874 90d98d80af82
parent 869 168ad6d424d1
child 887 51e371245bc5
--- a/web/form.py	Thu Feb 19 23:32:51 2009 +0100
+++ b/web/form.py	Fri Feb 20 00:05:57 2009 +0100
@@ -407,7 +407,6 @@
     def render(self, form):
         return self.widget.render(form, self)
 
-
 class StringField(Field):
     def __init__(self, max_length=None, **kwargs):
         super(StringField, self).__init__(**kwargs)
@@ -590,9 +589,8 @@
         self.form_add_hidden('__type')
         self.form_add_hidden('eid', eidparam=False)
         
-    def form_render(self, entity, **values):
-        self.form_add_entity_hiddens(entity.e_schema)
-        self.entity = entity
+    def form_render(self, **values):
+        self.form_add_entity_hiddens(self.entity.e_schema)
         return super(EntityFieldsForm, self).form_render(**values)
 
     def form_add_entity_hiddens(self, eschema):