Edgewall Software

Changes between Version 20 and Version 21 of GenshiTutorial


Ignore:
Timestamp:
Aug 29, 2007, 7:45:27 PM (17 years ago)
Author:
michael@…
Comment:

Broke out the "from formencode import Invalid" into a code block since I'm stupid and missed it

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v20 v21  
    401401}}}
    402402
    403 Now let's use that class in the `Root.submit()` method. First add the `from formencode import Invalid` and `from geddit.form import SubmissionForm` lines to the imports at the top of the file. Then, update the `submit()` method to match the following:
     403Now let's use that class in the `Root.submit()` method. First add the following to the top of `geddit/controller.py`:
     404
     405{{{
     406#!python
     407from formencode import Invalid
     408from geddit.form import SubmissionForm
     409}}}
     410
     411Then, update the `submit()` method to match the following:
    404412
    405413{{{