Mercurial > libervia-pubsub
changeset 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 | 958e69630e52 |
files | idavoll/backend.py idavoll/tap.py |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/idavoll/backend.py Wed Oct 03 19:07:50 2007 +0000 +++ b/idavoll/backend.py Thu Oct 04 08:03:51 2007 +0000 @@ -461,6 +461,8 @@ return d def getNodes(self, requestor, service): + if service.resource: + return defer.succeed([]) d = self.backend.get_nodes() return d.addErrback(self._mapErrors)
--- a/idavoll/tap.py Wed Oct 03 19:07:50 2007 +0000 +++ b/idavoll/tap.py Thu Oct 04 08:03:51 2007 +0000 @@ -47,9 +47,9 @@ if config["verbose"]: cs.logTraffic = True - FallbackHandler().setHanderParent(cs) - VersionHandler('Idavoll', __version__).setHanderParent(cs) - DiscoHandler().setHanderParent(cs) + FallbackHandler().setHandlerParent(cs) + VersionHandler('Idavoll', __version__).setHandlerParent(cs) + DiscoHandler().setHandlerParent(cs) if config['backend'] == 'pgsql': from idavoll.pgsql_storage import Storage @@ -64,7 +64,7 @@ bs.setServiceParent(s) ps = IPubSubService(bs) - ps.setHanderParent(cs) + ps.setHandlerParent(cs) ps.hideNodes = config["hide-nodes"] ps.serviceJID = JID(config["jid"])