web/views/workflow.py
branchtls-sprint
changeset 1318 50e1a778c5ee
parent 1305 395ef7f2b95b
child 1398 5fe84a5f7035
--- a/web/views/workflow.py	Thu Apr 09 13:59:44 2009 +0200
+++ b/web/views/workflow.py	Thu Apr 09 14:31:32 2009 +0200
@@ -17,6 +17,7 @@
                                 relation_possible, match_form_params)
 from cubicweb.interfaces import IWorkflowable
 from cubicweb.web import stdmsgs, action, component, form
+from cubicweb.web.form import FormViewMixIn
 from cubicweb.web.formfields import StringField,  RichTextField
 from cubicweb.web.formwidgets import HiddenInput, SubmitButton, Button
 from cubicweb.web.views import TmpFileViewMixin
@@ -42,7 +43,7 @@
                      Button(stdmsgs.NO, cwaction='cancel')]
 
         
-class ChangeStateFormView(view.EntityView):
+class ChangeStateFormView(FormViewMixIn, view.EntityView):
     id = 'statuschange'
     title = _('status change')
     __select__ = implements(IWorkflowable) & match_form_params('treid')