Changes between Version 39 and Version 40 of GenshiTutorial
- Timestamp:
- Aug 30, 2007, 7:32:25 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiTutorial
v39 v40 329 329 [[Image(tutorial01.png)]] 330 330 331 == Adding a Submission Form==331 === Adding a Submission Form === 332 332 333 333 In 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. … … 397 397 Please 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. 398 398 399 == Adding Form Validation==399 === Adding Form Validation === 400 400 401 401 We'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: