diff options
author | Georg Brandl <georg@python.org> | 2010-11-21 13:17:11 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-21 13:17:11 +0100 |
commit | bdf27419e46bc005de470207fdecd4a07a1c8e57 (patch) | |
tree | f43e39134f78da338e4874bf7af118de80f43776 /sphinx/websupport/storage/sqlalchemy_db.py | |
parent | 69713fb26d028dcbd43708f9bd156edf8ba705b2 (diff) | |
download | sphinx-git-bdf27419e46bc005de470207fdecd4a07a1c8e57.tar.gz |
Support complete comment deletion.
Diffstat (limited to 'sphinx/websupport/storage/sqlalchemy_db.py')
-rw-r--r-- | sphinx/websupport/storage/sqlalchemy_db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/websupport/storage/sqlalchemy_db.py b/sphinx/websupport/storage/sqlalchemy_db.py index 4e2757a9e..dd4bf8822 100644 --- a/sphinx/websupport/storage/sqlalchemy_db.py +++ b/sphinx/websupport/storage/sqlalchemy_db.py @@ -33,7 +33,7 @@ class Node(Base): def nested_comments(self, username, moderator): """Create a tree of comments. First get all comments that are - descendents of this node, then convert them to a tree form. + descendants of this node, then convert them to a tree form. :param username: the name of the user to get comments for. :param moderator: whether the user is moderator. @@ -56,6 +56,7 @@ class Node(Base): # Filter out all comments not descending from this node. q = q.filter(Comment.path.like(str(self.id) + '.%')) + # Filter out all comments that are not moderated yet. if not moderator: q = q.filter(Comment.displayed == True) |