comparison doc/examples/idavoll.tac @ 194:5974e718f395

Check in missing file, also part of Idavoll 0.7.3.
author Ralph Meijer <ralphm@ik.nu>
date Fri, 30 May 2008 10:05:23 +0000
parents
children 51af2ed8bd50
comparison
equal deleted inserted replaced
193:8ab16e319bb8 194:5974e718f395
1 # Copyright (c) 2003-2008 Ralph Meijer
2 # See LICENSE for details.
3
4 """
5 Example TAC for Idavoll.
6 """
7
8 from twisted.application import service
9 from twisted.words.protocols.jabber.jid import JID
10
11 from idavoll import tap
12
13 application = service.Application("Idavoll")
14
15 config = {
16 'jid': JID('pubsub.example.org'),
17 'secret': 'secret',
18 'rhost': '127.0.0.1',
19 'rport': 5347,
20 'backend': 'memory',
21 'verbose': True,
22 'hide-nodes': False,
23 }
24
25 idavollService = tap.makeService(config)
26 idavollService.setServiceParent(application)
27
28 # Set the maximum delay until trying to reconnect.
29 componentService = idavollService.getServiceNamed('component')
30 componentService.factory.maxdelay = 300