changeset 4:ee9ed5875df0

add a name to the input
author Robert Marianski <rob@marianski.com>
date Mon, 02 Nov 2009 17:50:39 -0500
parents 4dcb932065e4
children f70d8f3aee51
files webob_view/template/+package+/handlers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webob_view/template/+package+/handlers.py	Thu Oct 29 15:28:52 2009 -0400
+++ b/webob_view/template/+package+/handlers.py	Mon Nov 02 17:50:39 2009 -0500
@@ -30,8 +30,8 @@
     def __call__(self):
         name = self.request.GET.get('name', 'world')
         retval = """<html><body><form method="post">Hello,
-<input type="text" value="%s"/></form></body></html>""" 
-        return Response(content_type='text/html', 
+<input type="text" name="name" value="%s"/></form></body></html>"""
+        return Response(content_type='text/html',
                         body=retval % name)
 
 class Post(Handler):