Edgewall Software

Changes between Version 39 and Version 40 of GenshiTutorial


Ignore:
Timestamp:
Aug 30, 2007, 7:32:25 PM (17 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v39 v40  
    329329[[Image(tutorial01.png)]]
    330330
    331 == Adding a Submission Form ==
     331=== Adding a Submission Form ===
    332332
    333333In the previous step, we've already added a link to a submission form to the template, but we haven't implemented the logic to handle requests to that link yet.
     
    397397Please note though that we're not performing ''any'' kind of validation on the input, and that's of course a bad thing. So let's add validation next.
    398398
    399 == Adding Form Validation ==
     399=== Adding Form Validation ===
    400400
    401401We'll use [http://formencode.org/ FormEncode] to do the validation, but we'll keep it all fairly basic. Let's declare our form in a separate file, namely `geddit/form.py`, which will have the following content: