Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
9811b441
Commit
9811b441
authored
7 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
Task #10898: also always call plain onObservationStatusChanged
parent
4ef22852
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/OTDB_Services/OTDBBusListener.py
+8
-0
8 additions, 0 deletions
SAS/OTDB_Services/OTDBBusListener.py
with
8 additions
and
0 deletions
SAS/OTDB_Services/OTDBBusListener.py
+
8
−
0
View file @
9811b441
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment