summaryrefslogtreecommitdiff
path: root/host/utils/observable.py
diff options
context:
space:
mode:
authorNicolas Schodet2009-10-11 20:16:31 +0200
committerNicolas Schodet2009-10-11 20:16:31 +0200
commit48e509336acdda1bb0a449c00bc7a8918fb9df85 (patch)
treed2be6c8708f8f34a4b1aca7f1cd84a550b669657 /host/utils/observable.py
parent4160b0ebb6fffd8dba558ce66ba83e71a09614c1 (diff)
host, digital/io/tools, digital/asserv/tools: notify observers on register
Diffstat (limited to 'host/utils/observable.py')
-rw-r--r--host/utils/observable.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/utils/observable.py b/host/utils/observable.py
index 34f8fa01..5a8127ed 100644
--- a/host/utils/observable.py
+++ b/host/utils/observable.py
@@ -34,6 +34,7 @@ class Observable:
"""Register an observer to this observable."""
assert callable (observer)
self.__observers.append (observer)
+ observer ()
def notify (self):
"""Notify all observers. This should be called after every state