Mercurial > genshi > mirror
changeset 616:8ada29c99c0d trunk
GenshiTutorial: use form filler on comment/reply views.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 20:51:39 +0000 |
parents | 06165fee45ab |
children | 4fefe77c332a |
files | examples/tutorial/geddit/controller.py examples/tutorial/geddit/static/layout.css examples/tutorial/geddit/templates/comment.html |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
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):
--- 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; }
--- a/examples/tutorial/geddit/templates/comment.html +++ b/examples/tutorial/geddit/templates/comment.html @@ -23,7 +23,7 @@ </tr><tr> <th><label for="comment">Comment:</label></th> <td> - <textarea id="comment" name="content" rows="6" cols="70"></textarea> + <textarea id="comment" name="content" rows="6" cols="50"></textarea> <span py:if="'content' in errors" class="error"><br />${errors.content}</span> </td> </tr></tbody></table>