* src/GrampsDBCallback.py: look for GRAMPS_SIGNAL environment

variable equal to 1 to enable signal debugging


svn: r5097
This commit is contained in:
Don Allingham
2005-08-17 18:21:43 +00:00
parent b2e194b8ec
commit 9d1cb02e41
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
2005-08-17 Don Allingham <don@gramps-project.org> 2005-08-17 Don Allingham <don@gramps-project.org>
* src/GrampsDBCallback.py: look for GRAMPS_SIGNAL environment
variable equal to 1 to enable signal debugging
* src/ChooseParents.py: disconnect signals on close, do fewer * src/ChooseParents.py: disconnect signals on close, do fewer
commits commits

View File

@@ -36,6 +36,7 @@
or the UI code. or the UI code.
""" """
import sys import sys
import os
import types import types
import traceback import traceback
import inspect import inspect
@@ -213,6 +214,10 @@ class GrampsDBCallback(object):
# If this is True logging will be turned on for all instances # If this is True logging will be turned on for all instances
# whether or not instance based logging is enabled. # whether or not instance based logging is enabled.
try:
__LOG_ALL = int(os.environ.get('GRAMPS_SIGNAL',"0")) == 1
print __LOG_ALL
except:
__LOG_ALL = False __LOG_ALL = False
def __init__(self): def __init__(self):