incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [4/16] git commit: [#5145] Fixed non-production tools showing up for install on new projects
Date Fri, 26 Oct 2012 20:32:54 GMT
[#5145] Fixed non-production tools showing up for install on new projects

Signed-off-by: Cory Johns <johnsca@geek.net>


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

Branch: refs/heads/cj/5145
Commit: d3f88cce738ab93b9257f46c9da042978521e8ae
Parents: 88c64df
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Oct 24 16:51:24 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Fri Oct 26 20:32:10 2012 +0000

----------------------------------------------------------------------
 Allura/allura/lib/plugin.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/d3f88cce/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index d6f4ee3..02d652a 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -314,8 +314,9 @@ class ProjectRegistrationProvider(object):
         ## Dynamically generating CheckboxSet of installable tools
         self.add_project_widget.fields.tools = forms.ew.CheckboxSet(
             name="tools", options=[
-                forms.ew.Option(label=tool.tool_label, html_value=ep) \
-                for ep,tool in g.entry_points["tool"].iteritems() if tool.installable
+                forms.ew.Option(label=tool.tool_label, html_value=ep)
+                for ep,tool in g.entry_points["tool"].iteritems()
+                if tool.installable and tool.status == 'production'
             ], selected=True
         )
         # have to update it via index as well because of crazy


Mime
View raw message