{ "info": { "author": "David Glick", "author_email": "davidglick@groundwire.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Zope2", "License :: OSI Approved :: GNU General Public License (GPL)" ], "description": "Introduction\n============\n\nThis library implements a simple z3c.form-based wizard. The wizard is composed\nof multiple steps. Each step is a form. Data is stored in a session until\nthe user clicks the Finish button on the last step.\n\nIn order to make good use of this library you'll need to be reasonably familiar\nwith z3c.form first. Here are some places to start:\n\n * Official documentation: http://docs.zope.org/z3c.form\n \n * Slides from Stephan Richter's tutorial at Plone Conference 2008:\n http://svn.zope.org/\\*checkout\\*/z3c.talk/trunk/Z3CForms/Z3CForms.html?rev=92118\n \n\nWizard Step\n-----------\n\nA wizard step is a normal z3c.form form with a few additional features.\n\nBy default, the content accessed by this form will be a dictionary\nwithin the wizard's session, with a key equal to the step's prefix.\n\nAdditional attributes:\n\n wizard\n The wizard this step is being used in.\n\n available\n Boolean indicating whether the current step can be accessed via the\n wizard navigation links. By default, only steps for which there is already\n data stored in the session can be accessed. (The next and previous steps\n can always be accessed via the respective buttons regardless of the value\n of this property.)\n\n completed\n Boolean indicating whether the user should be allowed to move on to the\n next step. Defaults to True. If False, the Continue button will be\n disabled.\n\n cssid\n String. A user-supplied CSS id for the form tag.\n\nAdditional methods:\n\n applyChanges(data)\n Saves changes from this step to its content (typically a PersistentDict\n in the wizard's session.)\n\n load(context):\n Loads the session data for this step based on a context.\n\n apply(context):\n Updates a context based on the session data for this step.\n\n\nWizard Group Step\n-----------------\n\nSame as a Wizard Step; it just handles a list of groups just like a z3c.form\nGroupForm.\n\nAdditional attributes:\n\n groups\n The list of groups you'd like to show up in the form as separate fieldsets\n\n\nWizard\n------\n\nThe wizard is also a form, with a list of steps and built-in logic for\nmoving between those steps.\n\nClass attributes. Override these to affect how the wizard behaves:\n\n steps\n A sequence of step classes that will be instantiated when the wizard's\n update method is called.\n\n sessionKey\n Returns the unique session key used by this wizard instance. By default,\n this is a tuple of 'collective.z3cform.wizard' and the URL\n path to the wizard.\n\nAttributes set during the update method:\n\n activeSteps\n A sequence of wizard step instances.\n\n currentStep\n The wizard step instance currently being displayed.\n\n currentIndex\n The (0-based) index of the current step within the activeSteps sequence.\n\n session\n The session where data for this wizard is persisted.\n\n onFirstStep\n Boolean. True if the first step of the wizard is being displayed.\n\n onLastStep\n Boolean. True if the last step of the wizard is being displayed.\n\n allStepsFinished\n Boolean. True if the 'available' attribute of each wizard step is True.\n\n finished\n Boolean. True if the wizard has been completed.\n\n absolute_url\n The URL of the wizard.\n\n validate_back\n Boolean. True if you want the Wizard to validate the input if a user\n uses the Back button on a Step. False if you don't and abandon\n all user input (data). Default behavior is True. [Spanky]\n\nMethods:\n\n initialize()\n Called the first time a wizard is viewed in a given session.\n \n This method may be used to populate the session with data from some\n source.\n \n The default implementation calls the loadSteps method.\n \n loadSteps(context)\n Loads the wizard session data from a context.\n \n The default implementation calls the 'load' method of each wizard step.\n \n finish()\n Called when a wizard is successfully completed, after validation of the\n final step.\n \n Use this method to carry out some actions based on the values that have\n been filled out during completion of the wizard.\n \n The default implementation calls the applySteps method.\n \n applySteps(context)\n Updates a context based on the wizard session data.\n \n The default implementation calls the 'apply' method of each wizard step.\n \n sync()\n Mark the session as having changed, to ensure that changes get\n persisted. This is required since we aren't using a\n persistence-aware dictionary class for our session variables.\n\n\nCompatibility\n=============\n\nThis package has been tested in Zope 2.10 with Plone 3.3, and in Zope 2.12 with\nPlone 4.\n\nIt should be pretty easy to get it to work in other environments supported by\nz3c.form, such as Zope 3, but I'll need someone familiar with those environments\nto tell me how sessions work there, for example.\n\nCredits\n=======\n\nThis package is inspired by and based on the non-session-based z3c.form wizard\nincluded in the collective.singing package, which was implemented by Daniel\nNouri.\n\nSession support, miscellaneous improvements, and repackaging by David Glick.\n\nThanks also to Nathan van Gheem, Laurence Rowe, and Tom \"Spanky\" Kapanka.\n\nChangelog\n=========\n\n1.4.8 (2013-04-18)\n------------------\n\n* Fix pagetemplate import for Plone 4.3 compatibility.\n [jone]\n\n* Add Chinese translation.\n [jianaijun]\n\n* Clear action now updates active steps (needed to cover dynamic wizards)\n [gotcha, schminitz]\n\n* Fix step data initial load in case of dynamic wizards (ie when steps are\n depending on user data)\n [gotcha, schminitz]\n\n* Enabling overriding button conditions in descendant classes\n [gotcha]\n\n* In wizard.Wizard, the absolute_url property will throw a TypeError if \n self.__name__ is None. Not any more! The problem now is this means that \n absolute_url will inaccurate in that circumstance. TODO\n [spanky]\n\n* Add French translation.\n [mpeeters]\n\n1.4.7 (2012-01-05)\n------------------\n\n* Add ability to skip validation of current input if the user\n uses the Back button. Default remains unchanged.\n [spanky]\n\n* Add \"id\" as an attribute of the form tag\n [spanky]\n\n1.4.6 (2011-10-19)\n------------------\n\n* Add Spanish translation.\n [davisagli]\n\n1.4.5 (2011-10-19)\n------------------\n\n* Make sure wizard step labels are translated.\n [davisagli]\n\n1.4.4 (2011-10-17)\n------------------\n\n* Avoid using any() to restore compatibility with Python 2.4.\n [davisagli]\n\n1.4.3 (2011-07-13)\n------------------\n\n* Don't count browser views when determining if the user has left the\n wizard.\n [davisagli]\n\n1.4.2 (2011-05-04)\n------------------\n\n* Fix AutoWizard widget traverser registration.\n [elro]\n\n1.4.1 (2011-05-04)\n------------------\n\n* Add an AutoWizard for use with plone.autoform.\n [elro]\n\n* Add a Clear button that clears the session and goes back to step 1.\n [elro]\n\n* Reorder buttons so Finish and Continue both appear before Back.\n [elro]\n\n1.4 (2011-05-04)\n----------------\n\n* Remove