incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: Preserve mro order
Date Thu, 23 Jan 2014 17:32:39 GMT
Updated Branches:
  refs/heads/tv/fix-subclassed-app 1cd0d2875 -> eba8c17b2


Preserve mro order

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/eba8c17b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/eba8c17b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/eba8c17b

Branch: refs/heads/tv/fix-subclassed-app
Commit: eba8c17b2b8d737f819bae42308239be3d863fec
Parents: 1cd0d28
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Jan 23 17:32:19 2014 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Jan 23 17:32:19 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/eba8c17b/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 72c8695..9885296 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -794,7 +794,7 @@ def get_tool_packages(tool_name):
     app = g.entry_points['tool'].get(tool_name.lower())
     if not app:
         return []
-    classes = set(app.mro()) - {Application, object}
+    classes = [c for c in app.mro() if c not in (Application, object)]
     return [cls.__module__.split('.')[0] for cls in classes]
 
 


Mime
View raw message