def _handle_v1_publisher(self, ann_t): # for_v1
     # they don't speak V2, so fall back to the old 'publish' method
     # (which takes an unsigned tuple of bytestrings)
     self.log("falling back to publish_v1",
              level=log.UNUSUAL, umid="9RCT1A")
     ann_v1 = convert_announcement_v2_to_v1(ann_t)
     self._debug_outstanding += 1
     d = self._publisher.callRemote("publish", ann_v1)
     d.addBoth(self._debug_retired)
     return d
Exemple #2
0
 def _handle_v1_publisher(self, ann_t):  # for_v1
     # they don't speak V2, so fall back to the old 'publish' method
     # (which takes an unsigned tuple of bytestrings)
     self.log("falling back to publish_v1",
              level=log.UNUSUAL,
              umid="9RCT1A")
     ann_v1 = convert_announcement_v2_to_v1(ann_t)
     self._debug_outstanding += 1
     d = self._publisher.callRemote("publish", ann_v1)
     d.addBoth(self._debug_retired)
     return d
Exemple #3
0
 def wrap_announce_v2(self, announcements):
     anns_v1 = [convert_announcement_v2_to_v1(ann) for ann in announcements]
     return self.original.callRemote("announce", set(anns_v1))
Exemple #4
0
 def wrap_announce_v2(self, announcements):
     anns_v1 = [convert_announcement_v2_to_v1(ann) for ann in announcements]
     return self.original.callRemote("announce", set(anns_v1))