summaryrefslogtreecommitdiff
path: root/voctocore/lib/notifications.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/notifications.py')
-rw-r--r--voctocore/lib/notifications.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/voctocore/lib/notifications.py b/voctocore/lib/notifications.py
new file mode 100644
index 0000000..1e101e1
--- /dev/null
+++ b/voctocore/lib/notifications.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python3
+
+# If you know a better way to do this, go for it...
+
+import logging
+
+log = logging.getLogger("Notifications")
+controlserver = None
+
+def notify_all(msg):
+ try:
+ controlserver.notify_all(msg)
+ except Exception as e:
+ log.warn(e)