Mercurial > libervia-pubsub
comparison idavoll/idavoll.py @ 92:878a5b7697f2
Consume errors in DeferredLists.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Wed, 17 Nov 2004 21:00:03 +0000 |
parents | 47ee5369c410 |
children | cf918d581da5 |
comparison
equal
deleted
inserted
replaced
91:47ee5369c410 | 92:878a5b7697f2 |
---|---|
50 | 50 |
51 for c in self.parent: | 51 for c in self.parent: |
52 if components.implements(c, component.IService): | 52 if components.implements(c, component.IService): |
53 if hasattr(c, "get_disco_info"): | 53 if hasattr(c, "get_disco_info"): |
54 dl.append(c.get_disco_info(node)) | 54 dl.append(c.get_disco_info(node)) |
55 d = defer.DeferredList(dl, fireOnOneErrback=1) | 55 d = defer.DeferredList(dl, fireOnOneErrback=1, consumeErrors=1) |
56 d.addCallback(self._disco_info_results, iq, node) | 56 d.addCallback(self._disco_info_results, iq, node) |
57 d.addErrback(self._error, iq) | 57 d.addErrback(self._error, iq) |
58 d.addCallback(self.send) | 58 d.addCallback(self.send) |
59 | 59 |
60 iq.handled = True | 60 iq.handled = True |
82 | 82 |
83 for c in self.parent: | 83 for c in self.parent: |
84 if components.implements(c, component.IService): | 84 if components.implements(c, component.IService): |
85 if hasattr(c, "get_disco_items"): | 85 if hasattr(c, "get_disco_items"): |
86 dl.append(c.get_disco_items(node)) | 86 dl.append(c.get_disco_items(node)) |
87 d = defer.DeferredList(dl, fireOnOneErrback=1) | 87 d = defer.DeferredList(dl, fireOnOneErrback=1, consumeErrors=1) |
88 d.addCallback(self._disco_items_result, iq, node) | 88 d.addCallback(self._disco_items_result, iq, node) |
89 d.addErrback(self._error, iq) | 89 d.addErrback(self._error, iq) |
90 d.addCallback(self.send) | 90 d.addCallback(self.send) |
91 | 91 |
92 iq.handled = True | 92 iq.handled = True |