merge
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 31 Mar 2011 09:39:51 +0200
changeset 7150 8f9f542622d9
parent 7148 753b9b48b41e (current diff)
parent 7149 9dfd0dea692b (diff)
child 7152 39c1ffc7d93f
merge
--- a/web/views/editforms.py	Wed Mar 30 16:40:55 2011 +0200
+++ b/web/views/editforms.py	Thu Mar 31 09:39:51 2011 +0200
@@ -99,6 +99,7 @@
     # add yes() so it takes precedence over deprecated views in baseforms,
     # though not baseforms based customized view
     __select__ = one_line_rset() & non_final_entity() & yes()
+    form_id = 'edition'
 
     title = _('modification')
 
@@ -109,7 +110,8 @@
     def render_form(self, entity):
         """fetch and render the form"""
         self.form_title(entity)
-        form = self._cw.vreg['forms'].select('edition', self._cw, entity=entity,
+        form = self._cw.vreg['forms'].select(self.form_id, self._cw,
+                                             entity=entity,
                                              submitmsg=self.submited_message())
         self.init_form(form, entity)
         form.render(w=self.w)