# HG changeset patch # User cmlenz # Date 1188420699 0 # Node ID 8ada29c99c0d1e8980eeb9afac325739303533f8 # Parent 06165fee45ab8c31763ca858fabc2bb37361f7b8 GenshiTutorial: use form filler on comment/reply views. diff --git a/examples/tutorial/geddit/controller.py b/examples/tutorial/geddit/controller.py --- 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): diff --git a/examples/tutorial/geddit/static/layout.css b/examples/tutorial/geddit/static/layout.css --- a/examples/tutorial/geddit/static/layout.css +++ b/examples/tutorial/geddit/static/layout.css @@ -7,7 +7,7 @@ } blockquote { font-style: italic; } -#wrap { background: #fff; width: 800px; margin: 30px auto; } +#wrap { background: #fff; width: 600px; margin: 30px auto; } #content { border-left: 10px solid #b00; min-height: 240px; padding: 10px; } #header img { float: right; margin-top: -20px; margin-right: -37px; } diff --git a/examples/tutorial/geddit/templates/comment.html b/examples/tutorial/geddit/templates/comment.html --- a/examples/tutorial/geddit/templates/comment.html +++ b/examples/tutorial/geddit/templates/comment.html @@ -23,7 +23,7 @@ - +
${errors.content}