comparison idavoll/idavoll.py @ 26:c77fdb7ef161

Follow move of memory backend.
author Ralph Meijer <ralphm@ik.nu>
date Sun, 17 Oct 2004 13:53:41 +0000
parents 0861c0f2e3b5
children ddc08757ec1d
comparison
equal deleted inserted replaced
25:256dcda26752 26:c77fdb7ef161
1 from twisted.protocols.jabber import component 1 from twisted.protocols.jabber import component
2 from twisted.application import service 2 from twisted.application import service
3 from twisted.python import components 3 from twisted.python import components
4 import backend 4 import memory_backend
5 import pubsub 5 import pubsub
6 import xmpp_error 6 import xmpp_error
7 7
8 import sys 8 import sys
9 9
81 self.send(xmpp_error.error_from_iq(iq, 'service-unavailable')) 81 self.send(xmpp_error.error_from_iq(iq, 'service-unavailable'))
82 82
83 def makeService(config): 83 def makeService(config):
84 serviceCollection = service.MultiService() 84 serviceCollection = service.MultiService()
85 85
86 pss = backend.MemoryBackendService() 86 b = memory_backend.MemoryBackendService()
87 87
88 # set up Jabber Component 88 # set up Jabber Component
89 c = component.buildServiceManager(config["jid"], config["secret"], 89 c = component.buildServiceManager(config["jid"], config["secret"],
90 ("tcp:%s:%s" % (config["rhost"], config["rport"]))) 90 ("tcp:%s:%s" % (config["rhost"], config["rport"])))
91 91
92 s = component.IService(pss) 92 s = component.IService(b)
93 s.jid = config["jid"] 93 s.jid = config["jid"]
94 s.setServiceParent(c) 94 s.setServiceParent(c)
95 95
96 s = IdavollService() 96 s = IdavollService()
97 s.setServiceParent(c) 97 s.setServiceParent(c)