Permalink
Browse files

More straightforward call of form.

  • Loading branch information...
1 parent 7cebdf9 commit 822269a22374addc6b9f290c8f53a18f769d5ae2 @marios-zindilis marios-zindilis committed Aug 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 form.md
View
@@ -33,7 +33,7 @@ The form module defines 2 primary classes: the Form class, and the Input class.
A basic login form would look like this:
- login = form.Form(
+ login = web.form.Form(
form.Textbox('username'),
form.Password('password'),
form.Button('Login'),
@@ -158,4 +158,4 @@ And sample formtest.html (place this in the *templates* subdirectory):
<form name="main" method="post">
$if not form.valid: <p class="error">Try again, AmeriCAN:</p>
$:form.render()
- <input type="submit" /> </form>
+ <input type="submit" /> </form>

0 comments on commit 822269a

Please sign in to comment.