You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/12/18 22:05:58 UTC
[14/16] git commit: [#5502] ticket:505 Removed unnecessary
_intallable_tools attr
[#5502] ticket:505 Removed unnecessary _intallable_tools attr
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/73d89ae8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/73d89ae8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/73d89ae8
Branch: refs/heads/master
Commit: 73d89ae82dee7e840a5647aa06bf83f1e4a0e4aa
Parents: 64aca6c
Author: Andriy Sherepa <as...@gmail.com>
Authored: Wed Dec 18 12:23:01 2013 +0200
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Dec 18 20:38:58 2013 +0000
----------------------------------------------------------------------
Allura/allura/ext/admin/admin_main.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/73d89ae8/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index 54766d3..918e1cd 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -99,8 +99,6 @@ class AdminApp(Application):
@staticmethod
def installable_tools_for(project):
- cls = AdminApp
-
limited_tools = []
for tool in project.app_configs:
if not project.app_instance(tool).installable:
@@ -112,8 +110,7 @@ class AdminApp(Application):
if k not in limited_tools and v.max_instances > 0:
tools.append(dict(name=k, app=v))
tools.sort(key=lambda t: (t['app'].status_int(), t['app'].ordinal))
- cls._installable_tools = [t for t in tools]
- return [t for t in cls._installable_tools
+ return [t for t in tools
if t['app'].status in project.allowed_tool_status]