incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [14/14] git commit: [#6545] 'All' forums is empty string, not None
Date Tue, 10 Sep 2013 16:17:34 GMT
[#6545] 'All' forums is empty string, not None

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/27f2b34a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/27f2b34a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/27f2b34a

Branch: refs/heads/master
Commit: 27f2b34ac5b0c35dc1c5dbe824298b5499ac3c5f
Parents: 657d510
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Tue Sep 10 15:31:53 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 10 15:31:53 2013 +0000

----------------------------------------------------------------------
 ForgeDiscussion/forgediscussion/controllers/root.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/27f2b34a/ForgeDiscussion/forgediscussion/controllers/root.py
----------------------------------------------------------------------
diff --git a/ForgeDiscussion/forgediscussion/controllers/root.py b/ForgeDiscussion/forgediscussion/controllers/root.py
index fdf8f11..5ec19ad 100644
--- a/ForgeDiscussion/forgediscussion/controllers/root.py
+++ b/ForgeDiscussion/forgediscussion/controllers/root.py
@@ -237,7 +237,7 @@ class RootController(BaseController, DispatchIndex, FeedController):
 
         discussion_id_q = {
             '$in': [d._id for d in c.app.forums
-                    if d.shortname == forum or forum is None]
+                    if d.shortname == forum or not forum]
         }
         # must be ordered dict, so that sorting by this works properly
         grouping = OrderedDict()


Mime
View raw message