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/01/31 17:47:20 UTC
[2/5] git commit: [#4943] ticket:259 * added exc_info=True to
log.info * refactored install_anchored_tools
[#4943] ticket:259
* added exc_info=True to log.info
* refactored install_anchored_tools
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2abc5e20
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2abc5e20
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2abc5e20
Branch: refs/heads/db/4943
Commit: 2abc5e20e7a70237c6566f201b66ab8b39ea7915
Parents: 9f83a54
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Tue Jan 22 08:51:05 2013 +0400
Committer: Dave Brondsema <db...@geek.net>
Committed: Wed Jan 30 18:59:10 2013 +0000
----------------------------------------------------------------------
Allura/allura/model/neighborhood.py | 1 +
Allura/allura/model/project.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2abc5e20/Allura/allura/model/neighborhood.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/neighborhood.py b/Allura/allura/model/neighborhood.py
index d22064a..c572ce6 100644
--- a/Allura/allura/model/neighborhood.py
+++ b/Allura/allura/model/neighborhood.py
@@ -244,4 +244,5 @@ class Neighborhood(MappedClass):
try:
return OrderedDict((tool.split(':')[0].lower(), tool.split(':')[1]) for tool in anchored_tools)
except Exception:
+ log.info("anchored_tools isn't valid", exc_info=True)
return dict()
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2abc5e20/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index be121df..f12673f 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -445,10 +445,10 @@ class Project(MappedClass, ActivityNode, ActivityObject):
installed_tools = [tool.tool_name.lower() for tool in self.app_configs]
i = 0
if not self.is_nbhd_project:
- for tool in anchored_tools.keys():
+ for tool, label in anchored_tools.iteritems():
if tool not in installed_tools:
try:
- self.install_app(tool, tool, anchored_tools[tool], i)
+ self.install_app(tool, tool, label, i)
except Exception:
log.error('%s is not available' % tool, exc_info=True)
i += 1