| 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: |
| | 403 | Now 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 |
| | 407 | from formencode import Invalid |
| | 408 | from geddit.form import SubmissionForm |
| | 409 | }}} |
| | 410 | |
| | 411 | Then, update the `submit()` method to match the following: |