web/views/baseforms.py
branchtls-sprint
changeset 874 90d98d80af82
parent 869 168ad6d424d1
child 887 51e371245bc5
--- a/web/views/baseforms.py	Thu Feb 19 23:32:51 2009 +0100
+++ b/web/views/baseforms.py	Fri Feb 20 00:05:57 2009 +0100
@@ -104,13 +104,13 @@
             'st1': _(state.name),
             'st2': _(dest.name)}
         self.w(u'<p>%s</p>\n' % msg)
-        form = ChangeStateForm(redirect_path=self.redirectpath(entity)) # self.vreg.select_form('changestateform')
-        self.w(form.form_render(req, entity, state=dest.eid))
+        form = ChangeStateForm(req, entity=entity,
+                               redirect_path=self.redirectpath(entity))
+        self.w(form.form_render(entity, state=dest.eid))
 
     def redirectpath(self, entity):
         return entity.rest_path()
 
-
 class ClickAndEditForm(FormMixIn, EntityView):
     id = 'reledit'
     __select__ = match_kwargs('rtype')