summaryrefslogtreecommitdiff
path: root/voctocore/lib/notifications.py
diff options
context:
space:
mode:
authorMarkus Otto <otto@fs.tum.de>2015-08-22 19:15:22 +0200
committerMaZderMind <git@mazdermind.de>2015-08-31 20:02:04 +0200
commit46aace37db5c035a6d6b432db261dc7c417456f4 (patch)
treecc98a569c8c02491ce59cbf5b9a5613c96fd78b2 /voctocore/lib/notifications.py
parent5c243f1cac5cc489f3bbb821ab5064d9edf7d449 (diff)
make protocol work, some gui stuff
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)