diff examples/tutorial/geddit/controller.py @ 616:80a9c247ca80

GenshiTutorial: use form filler on comment/reply views.
author cmlenz
date Wed, 29 Aug 2007 20:51:39 +0000
parents 0dc152d128f5
children 5a2059ce1f0b
line wrap: on
line diff
--- a/examples/tutorial/geddit/controller.py
+++ b/examples/tutorial/geddit/controller.py
@@ -83,7 +83,7 @@
             errors = {}
 
         return template.render(submission=submission, comment=None,
-                               errors=errors)
+                               errors=errors) | HTMLFormFiller(data=data)
 
     @cherrypy.expose
     @template.output('comment.html')
@@ -107,7 +107,7 @@
             errors = {}
 
         return template.render(submission=submission, comment=comment,
-                               errors=errors)
+                               errors=errors) | HTMLFormFiller(data=data)
 
 
 def main(filename):
Copyright (C) 2012-2017 Edgewall Software