comparison idavoll/tap.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 ef22e4150caa
children 958e69630e52
comparison
equal deleted inserted replaced
168:e2c2c2baf483 169:96afb248df5e
45 cs.factory.maxDelay = 900 45 cs.factory.maxDelay = 900
46 46
47 if config["verbose"]: 47 if config["verbose"]:
48 cs.logTraffic = True 48 cs.logTraffic = True
49 49
50 FallbackHandler().setHanderParent(cs) 50 FallbackHandler().setHandlerParent(cs)
51 VersionHandler('Idavoll', __version__).setHanderParent(cs) 51 VersionHandler('Idavoll', __version__).setHandlerParent(cs)
52 DiscoHandler().setHanderParent(cs) 52 DiscoHandler().setHandlerParent(cs)
53 53
54 if config['backend'] == 'pgsql': 54 if config['backend'] == 'pgsql':
55 from idavoll.pgsql_storage import Storage 55 from idavoll.pgsql_storage import Storage
56 st = Storage(user=config['dbuser'], 56 st = Storage(user=config['dbuser'],
57 database=config['dbname'], 57 database=config['dbname'],
62 62
63 bs = BackendService(st) 63 bs = BackendService(st)
64 bs.setServiceParent(s) 64 bs.setServiceParent(s)
65 65
66 ps = IPubSubService(bs) 66 ps = IPubSubService(bs)
67 ps.setHanderParent(cs) 67 ps.setHandlerParent(cs)
68 ps.hideNodes = config["hide-nodes"] 68 ps.hideNodes = config["hide-nodes"]
69 ps.serviceJID = JID(config["jid"]) 69 ps.serviceJID = JID(config["jid"])
70 70
71 return s 71 return s