#9200: Add a session based form wizard
-----------------------------------------------+----------------------------
Reporter: ddurham | Owner: nobody
Status: new | Milestone:
Component: django.contrib.formtools | Version: SVN
Resolution: | Keywords: session wizard
Stage: Design decision needed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
-----------------------------------------------+----------------------------
Changes (by edcrypt):
* needs_better_patch: 0 => 1
* needs_tests: 1 => 0
Comment:
Instead of passing a list of forms (the form_list argument on
SessionWizard.__init__()), would be nice if we could pass a sequence in
the format:
{{{
(('step_slug', Form), ...)
}}}
Instead of {{{r'wizard/(?P<page0>\d+)/$'}}}, that'd be
{{{r'wizard/(?P<step_slug>\w+)/$'}}}.
The form_list can be tuned on a dict ({{{ {'step_slug': Form, ...} }}})
doing {{{ form_dict = dict(form_list) }}}, as you need to get the form
given the url argument.
This change would allow us to have wizards with named pages, not just
numbered.
--
Ticket URL: <http://code.djangoproject.com/ticket/9200#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---