[Checkins] SVN: z3c.formdemo/trunk/ Bugfix: Fixed `wizard` example so it works together with current `z3c.form` version.

Michael Howitz mh at gocept.com
Mon Dec 28 07:37:29 EST 2009


Log message for revision 107215:
  Bugfix: Fixed `wizard` example so it works together with current `z3c.form` version.
  

Changed:
  U   z3c.formdemo/trunk/CHANGES.txt
  U   z3c.formdemo/trunk/src/z3c/formdemo/wizard/wizard.py

-=-
Modified: z3c.formdemo/trunk/CHANGES.txt
===================================================================
--- z3c.formdemo/trunk/CHANGES.txt	2009-12-28 11:58:59 UTC (rev 107214)
+++ z3c.formdemo/trunk/CHANGES.txt	2009-12-28 12:37:29 UTC (rev 107215)
@@ -5,12 +5,13 @@
 Version 2.2.0 (unreleased)
 --------------------------
 
-- ...
+- Bugfix: Fixed `wizard` example so it works together with current
+  `z3c.form` version.
 
 Version 2.1.0 (2009-07-23)
 --------------------------
 
-- Feature: Updated tests and code to latest pacakge versions.
+- Feature: Updated tests and code to latest package versions.
 
 Version 2.0.0 (2009-06-14)
 --------------------------

Modified: z3c.formdemo/trunk/src/z3c/formdemo/wizard/wizard.py
===================================================================
--- z3c.formdemo/trunk/src/z3c/formdemo/wizard/wizard.py	2009-12-28 11:58:59 UTC (rev 107214)
+++ z3c.formdemo/trunk/src/z3c/formdemo/wizard/wizard.py	2009-12-28 12:37:29 UTC (rev 107215)
@@ -153,6 +153,7 @@
         self.updateActions()
         self.step.update()
         self.actions.execute()
+        super(Wizard, self).update()
 
     def finish(self):
         return NotImplementedError
@@ -189,5 +190,8 @@
     @button.handler(IWizardButtons['finish'])
     def handleFinish(self, action):
         session = ISession(self.request)[self.sessionKey]
-        del session['step']
+        try:
+            del session['step']
+        except KeyError:
+            pass
         self.finish()



More information about the checkins mailing list