comparison idavoll/backend.py @ 169:96afb248df5e

Fix typos in service creation. Make disco not respond when a resource is provided.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 04 Oct 2007 08:03:51 +0000
parents e2c2c2baf483
children bc269696ef42
comparison
equal deleted inserted replaced
168:e2c2c2baf483 169:96afb248df5e
459 d.addCallback(saveMetaData) 459 d.addCallback(saveMetaData)
460 d.errback(self._mapErrors) 460 d.errback(self._mapErrors)
461 return d 461 return d
462 462
463 def getNodes(self, requestor, service): 463 def getNodes(self, requestor, service):
464 if service.resource:
465 return defer.succeed([])
464 d = self.backend.get_nodes() 466 d = self.backend.get_nodes()
465 return d.addErrback(self._mapErrors) 467 return d.addErrback(self._mapErrors)
466 468
467 def publish(self, requestor, service, nodeIdentifier, items): 469 def publish(self, requestor, service, nodeIdentifier, items):
468 d = self.backend.publish(nodeIdentifier, items, requestor) 470 d = self.backend.publish(nodeIdentifier, items, requestor)