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 2014/02/14 21:45:41 UTC

git commit: [#7142] check config, not zmq package, to determine whether to try to send a zarkov event

Updated Branches:
  refs/heads/db/7142 [created] 1a532a115


[#7142] check config, not zmq package, to determine whether to try to send a zarkov event


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

Branch: refs/heads/db/7142
Commit: 1a532a1158e1a1207cfd896c13aa96ca5b1cd55a
Parents: def3d73
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Feb 14 20:45:28 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Feb 14 20:45:28 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/app_globals.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1a532a11/Allura/allura/lib/app_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/app_globals.py b/Allura/allura/lib/app_globals.py
index 0ebb370..f46c1eb 100644
--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -63,7 +63,7 @@ from allura.lib.widgets import analytics
 from allura.lib.security import Credentials
 from allura.lib.async import Connection, MockAMQ
 from allura.lib.solr import MockSOLR, make_solr_from_config
-from allura.lib.zarkov_helpers import ZarkovClient, zmq
+from allura.lib.zarkov_helpers import ZarkovClient
 
 log = logging.getLogger(__name__)
 
@@ -334,7 +334,7 @@ class Globals(object):
             mount_point=None,
             is_project_member=False)
 
-        if not zmq:
+        if not config.get('zarkov.host'):
             return
 
         user = user or getattr(c, 'user', None)