Skip to content

Commit

Permalink
WIP: handle resource and datum docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ-Wright committed Mar 10, 2019
1 parent e58b13e commit 9e57aff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xpdan/startup/tomo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@ def descriptor(self, doc):
s.emit(("start", self.start_doc))
s.emit(("descriptor", doc))

def resource(self, resource):
super().resource(resource)
for s in self.sources:
s.emit(("resource", resource))

def datum(self, doc):
super().datum(doc)
for s in self.sources:
s.emit(("datum", doc))

def event(self, doc):
doc = super().event(doc)
for s in self.sources:
Expand Down

0 comments on commit 9e57aff

Please sign in to comment.