Permalink
Browse files

foo

  • Loading branch information...
1 parent 2048afa commit 8b11afb94e320c549a3f0bd7997905f80ade691c anonymous committed with anandology May 23, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 form.md
View
@@ -12,6 +12,8 @@ Here's a sample script using the new form library:
render = web.template.render('templates/')
+ urls = ('/', 'index')
+
myform = form.Form(
form.Textbox("boe"),
form.Textbox("bax",
@@ -37,6 +39,10 @@ Here's a sample script using the new form library:
# extracting the validated arguments from the form.
print "Grrreat success! boe: %s, bax: %s" % (form.d.boe, form['bax'].value)
+ if __name__=="__main__":
+ web.internalerror = web.debugerror
+ web.run(urls, globals(), web.reloader)
+
And sample formtest.html:
$def with (form)

0 comments on commit 8b11afb

Please sign in to comment.