allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#7111] Handle referenced entry-points that are not available
Date Wed, 05 Feb 2014 22:12:18 GMT
Updated Branches:
  refs/heads/master 9413f606e -> 41b2c9c3d


[#7111] Handle referenced entry-points that are not available

Signed-off-by: Cory Johns <cjohns@slashdotmedia.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/41b2c9c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/41b2c9c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/41b2c9c3

Branch: refs/heads/master
Commit: 41b2c9c3deac150efdf295704c1d8286d964f5b2
Parents: 9413f60
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Feb 5 22:11:51 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Feb 5 22:11:51 2014 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/41b2c9c3/ForgeImporters/forgeimporters/base.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/base.py b/ForgeImporters/forgeimporters/base.py
index 4353fd2..d03e838 100644
--- a/ForgeImporters/forgeimporters/base.py
+++ b/ForgeImporters/forgeimporters/base.py
@@ -387,7 +387,8 @@ class ToolImporterMeta(type):
         """
         if not getattr(cls, 'target_app', None):
             cls.target_app = [g.entry_points['tool'][ep_name]
-                    for ep_name in aslist(cls.target_app_ep_names)]
+                    for ep_name in aslist(cls.target_app_ep_names)
+                    if ep_name in g.entry_points['tool']]
         return type.__call__(cls, *args, **kw)
 
 


Mime
View raw message