aboutsummaryrefslogtreecommitdiff
path: root/sgdfi/_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'sgdfi/_manager.py')
-rwxr-xr-xsgdfi/_manager.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sgdfi/_manager.py b/sgdfi/_manager.py
index 72cae59..9a734fb 100755
--- a/sgdfi/_manager.py
+++ b/sgdfi/_manager.py
@@ -277,12 +277,13 @@ class _EventsManager:
class Manager(_Decoder):
""" Manage objects from SGDF's intranet. """
- def __init__(self, save = False, folder = None):
+ def __init__(self, save = False, folder = None, debug = False):
super().__init__()
self.__save = save
self.__folder = folder
self.__sessions = _SessionsManager(self)
+ self.__dbg = bool(debug)
# Work out the folder, and make sure it exists.
@@ -304,6 +305,12 @@ class Manager(_Decoder):
self.__evs = _EventsManager(self)
@property
+ def _debug(self):
+ """ Is the manager in debug mode? """
+
+ return self.__dbg
+
+ @property
def sessions(self):
""" Managed sessions. """