From ace0e37e03f3f8ba398b579b29dd734377fcb0f1 Mon Sep 17 00:00:00 2001 From: Jacob Mason Date: Sat, 14 Aug 2010 14:48:27 -0500 Subject: [PATCH] fix syntax highlighting in quickstart --- doc/web/quickstart.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/web/quickstart.rst b/doc/web/quickstart.rst index de9b76558..61a432a86 100644 --- a/doc/web/quickstart.rst +++ b/doc/web/quickstart.rst @@ -143,8 +143,7 @@ will then add this data to the COMMENT_OPTIONS that are used in the template. need to prefix the url route with that directory, and give the `docroot` keyword argument when creating the web support object:: - support = WebSupport(... - docroot='docs') + support = WebSupport(..., docroot='docs') @app.route('/docs/') @@ -259,10 +258,9 @@ is added but not displayed, you can pass callable to the object:: def moderation_callback(comment): - Do something... + """Do something...""" - support = WebSupport(... - moderation_callback=moderation_callback) + support = WebSupport(..., moderation_callback=moderation_callback) The moderation callback must take one argument, which will be the same comment dict that is returned by add_comment.