Skip to content
Snippets Groups Projects
Commit 9811b441 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10898: also always call plain onObservationStatusChanged

parent 4ef22852
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,14 @@ class OTDBBusListener(AbstractBusListener):
else:
logger.info("OTDBBusListener.handleMessage - handled unknown state: %s", msg.content['state'])
# apart from calling the above methods for known predefined states,
# also always call plain onObservationStatusChanged
# so subclasses can act on any status in this generic method.
self.onObservationStatusChanged(treeId, msg.content['state'], modificationTime)
def onObservationStatusChanged(self, treeId, new_status, modificationTime):
pass
def onObservationDescribed(self, treeId, modificationTime):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment