web/form.py
branchtls-sprint
changeset 1315 86bddd181e03
parent 1312 df7f847e1388
child 1318 50e1a778c5ee
equal deleted inserted replaced
1314:dc5499bff1a9 1315:86bddd181e03
   358             for linkto in self.req.list_form_param('__linkto'):
   358             for linkto in self.req.list_form_param('__linkto'):
   359                 self.form_add_hidden('__linkto', linkto)
   359                 self.form_add_hidden('__linkto', linkto)
   360                 msg = '%s %s' % (msg, self.req._('and linked'))
   360                 msg = '%s %s' % (msg, self.req._('and linked'))
   361             self.form_add_hidden('__message', msg)
   361             self.form_add_hidden('__message', msg)
   362         
   362         
   363     def form_build_context(self, values):
   363     def form_build_context(self, values=None):
   364         self.form_add_entity_hiddens(self.edited_entity.e_schema)
   364         self.form_add_entity_hiddens(self.edited_entity.e_schema)
   365         return super(EntityFieldsForm, self).form_build_context(values)
   365         return super(EntityFieldsForm, self).form_build_context(values)
   366 
   366 
   367     def form_add_entity_hiddens(self, eschema):
   367     def form_add_entity_hiddens(self, eschema):
   368         for field in self.fields[:]:
   368         for field in self.fields[:]: