web/controller.py
changeset 8697 574bb05e40a4
parent 8696 0bb18407c053
child 9229 739ae5366bed
--- a/web/controller.py	Thu Feb 14 16:01:24 2013 +0100
+++ b/web/controller.py	Thu Feb 14 16:45:07 2013 +0100
@@ -127,9 +127,9 @@
         msg = self._cw.message
         if msg:
             newparams['_cwmsgid'] = self._cw.set_redirect_message(msg)
-        if self._cw.form.has_key('__action_apply'):
+        if '__action_apply' in self._cw.form:
             self._return_to_edition_view(newparams)
-        if self._cw.form.has_key('__action_cancel'):
+        if '__action_cancel' in self._cw.form:
             self._return_to_lastpage(newparams)
         else:
             self._return_to_original_view(newparams)