Changeset 8215 for django/branches/gis/docs/form_wizard.txt
- Timestamp:
- 08/05/08 12:15:33 (5 months ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/docs/form_wizard.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
django/branches/gis/docs/form_wizard.txt
r7354 r8215 18 18 19 19 .. _explained on Wikipedia: http://en.wikipedia.org/wiki/Wizard_%28software%29 20 .. _forms: ../ newforms/20 .. _forms: ../forms/ 21 21 22 22 How it works … … 42 42 just have to do these things: 43 43 44 1. Define a number of ``django. newforms`` ``Form`` classes -- one per wizard44 1. Define a number of ``django.forms`` ``Form`` classes -- one per wizard 45 45 page. 46 46 2. Create a ``FormWizard`` class that specifies what to do once all of your … … 56 56 57 57 The first step in creating a form wizard is to create the ``Form`` classes. 58 These should be standard ``django. newforms`` ``Form`` classes, covered in the59 ` newforms documentation`_.58 These should be standard ``django.forms`` ``Form`` classes, covered in the 59 `forms documentation`_. 60 60 61 61 These classes can live anywhere in your codebase, but convention is to put them … … 66 66 the message itself. Here's what the ``forms.py`` might look like:: 67 67 68 from django import newforms asforms68 from django import forms 69 69 70 70 class ContactForm1(forms.Form): … … 79 79 last one. 80 80 81 .. _ newforms documentation: ../newforms/81 .. _forms documentation: ../forms/ 82 82 83 83 Creating a ``FormWizard`` class … … 95 95 96 96 * ``request`` -- an HttpRequest_ object 97 * ``form_list`` -- a list of ``django. newforms`` ``Form`` classes97 * ``form_list`` -- a list of ``django.forms`` ``Form`` classes 98 98 99 99 In this simplistic example, rather than perform any database operation, the … … 210 210 return str(step) 211 211 212 .. _form prefix documentation: ../ newforms/#prefixes-for-forms212 .. _form prefix documentation: ../forms/#prefixes-for-forms 213 213 214 214 ``render_hash_failure``
