Mercurial > libervia-pubsub
comparison idavoll/backend.py @ 172:9bfb00edd0cc
Fix Backend's getNodeInfo so that it properly adds its errback.
Author: ralphm.
Fixes #9.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Tue, 15 Jan 2008 14:00:07 +0000 |
parents | bc269696ef42 |
children | 79d451d186b1 |
comparison
equal
deleted
inserted
replaced
171:bc269696ef42 | 172:9bfb00edd0cc |
---|---|
453 d = defer.succeed(nodeIdentifier) | 453 d = defer.succeed(nodeIdentifier) |
454 d.addCallback(self.backend.get_node_type) | 454 d.addCallback(self.backend.get_node_type) |
455 d.addCallback(saveType) | 455 d.addCallback(saveType) |
456 d.addCallback(self.backend.get_node_meta_data) | 456 d.addCallback(self.backend.get_node_meta_data) |
457 d.addCallback(saveMetaData) | 457 d.addCallback(saveMetaData) |
458 d.errback(self._mapErrors) | 458 d.addErrback(self._mapErrors) |
459 return d | 459 return d |
460 | 460 |
461 def getNodes(self, requestor, service): | 461 def getNodes(self, requestor, service): |
462 if service.resource: | 462 if service.resource: |
463 return defer.succeed([]) | 463 return defer.succeed([]) |