summaryrefslogtreecommitdiff
path: root/doc/web
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-21 20:49:51 +0100
committerGeorg Brandl <georg@python.org>2010-11-21 20:49:51 +0100
commit9831baca6ff6e49c2322a4965542684c89e6799b (patch)
treef393109ca3b80f0c471190526e9742a17924057b /doc/web
parented501c8347c9651ac2d432da86a4a2bc2b07f6c6 (diff)
downloadsphinx-9831baca6ff6e49c2322a4965542684c89e6799b.tar.gz
Remove more mentions of reject_comment.
Diffstat (limited to 'doc/web')
-rw-r--r--doc/web/quickstart.rst13
-rw-r--r--doc/web/storagebackends.rst2
2 files changed, 3 insertions, 12 deletions
diff --git a/doc/web/quickstart.rst b/doc/web/quickstart.rst
index 0627c9c3..bd0f71a7 100644
--- a/doc/web/quickstart.rst
+++ b/doc/web/quickstart.rst
@@ -228,8 +228,8 @@ pass the `displayed` keyword argument::
username=username, proposal=proposal,
displayed=False)
-You can then create two new views to handle the moderation of comments. The
-first will be called when a moderator decides a comment should be accepted and
+You can then create a new view to handle the moderation of comments. It
+will be called when a moderator decides a comment should be accepted and
displayed::
@app.route('/docs/accept_comment', methods=['POST'])
@@ -239,14 +239,7 @@ displayed::
support.accept_comment(comment_id, moderator=moderator)
return 'OK'
-The next is very similar, but used when rejecting a comment::
-
- @app.route('/docs/reject_comment', methods=['POST'])
- def reject_comment():
- moderator = g.user.moderator if g.user else False
- comment_id = request.form.get('id')
- support.reject_comment(comment_id, moderator=moderator)
- return 'OK'
+Rejecting comments happens via comment deletion.
To perform a custom action (such as emailing a moderator) when a new comment is
added but not displayed, you can pass callable to the :class:`~.WebSupport`
diff --git a/doc/web/storagebackends.rst b/doc/web/storagebackends.rst
index a46ea9e5..d191b43e 100644
--- a/doc/web/storagebackends.rst
+++ b/doc/web/storagebackends.rst
@@ -42,5 +42,3 @@ StorageBackend Methods
.. automethod:: StorageBackend.update_username
.. automethod:: StorageBackend.accept_comment
-
-.. automethod:: StorageBackend.reject_comment