[Pkg-debile-commits] [debile-master] 23/26: Fixed PAUSED variable globalness
Sylvestre Ledru
sylvestre at alioth.debian.org
Tue Aug 20 16:22:39 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository debile-master.
commit ce1c1225c7b63d682d32dab94eefbba35479c268
Author: Léo Cavaillé <leo at cavaille.net>
Date: Fri Aug 16 14:21:24 2013 +0200
Fixed PAUSED variable globalness
---
lucy/server.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lucy/server.py b/lucy/server.py
index 453091c..20a424b 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -90,10 +90,12 @@ def admin_method(fn):
class LucyInterface(object):
@admin_method
def get_paused_status(self):
+ global PAUSED
return PAUSED
@admin_method
def set_paused_status(self, status):
+ global PAUSED
PAUSED = status
if PAUSED:
logging.info("PAUSING ALL THE WORKERS UNTIL FURTHER INSTRUCTION RECEIVED")
@@ -273,6 +275,7 @@ class LucyInterface(object):
* a list of job types supported
If lucy is paused, return nothing.
"""
+ global PAUSED
if PAUSED:
return None
session = Session()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list