Django

Code

Show
Ignore:
Timestamp:
08/05/08 12:15:33 (5 months ago)
Author:
jbronn
Message:

gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.

Files:

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  
    1818 
    1919.. _explained on Wikipedia: http://en.wikipedia.org/wiki/Wizard_%28software%29 
    20 .. _forms: ../newforms/ 
     20.. _forms: ../forms/ 
    2121 
    2222How it works 
     
    4242just have to do these things: 
    4343 
    44     1. Define a number of ``django.newforms`` ``Form`` classes -- one per wizard 
     44    1. Define a number of ``django.forms`` ``Form`` classes -- one per wizard 
    4545       page. 
    4646    2. Create a ``FormWizard`` class that specifies what to do once all of your 
     
    5656 
    5757The first step in creating a form wizard is to create the ``Form`` classes. 
    58 These should be standard ``django.newforms`` ``Form`` classes, covered in the 
    59 `newforms documentation`_. 
     58These should be standard ``django.forms`` ``Form`` classes, covered in the 
     59`forms documentation`_. 
    6060 
    6161These classes can live anywhere in your codebase, but convention is to put them 
     
    6666the message itself. Here's what the ``forms.py`` might look like:: 
    6767 
    68     from django import newforms as forms 
     68    from django import forms 
    6969 
    7070    class ContactForm1(forms.Form): 
     
    7979last one. 
    8080 
    81 .. _newforms documentation: ../newforms/ 
     81.. _forms documentation: ../forms/ 
    8282 
    8383Creating a ``FormWizard`` class 
     
    9595 
    9696    * ``request`` -- an HttpRequest_ object 
    97     * ``form_list`` -- a list of ``django.newforms`` ``Form`` classes 
     97    * ``form_list`` -- a list of ``django.forms`` ``Form`` classes 
    9898 
    9999In this simplistic example, rather than perform any database operation, the 
     
    210210        return str(step) 
    211211 
    212 .. _form prefix documentation: ../newforms/#prefixes-for-forms 
     212.. _form prefix documentation: ../forms/#prefixes-for-forms 
    213213 
    214214``render_hash_failure``