# HG changeset patch # User Ralph Meijer # Date 1212141923 0 # Node ID 5974e718f395aa0f8b68d80001859e69f89e5b4f # Parent 8ab16e319bb812e1681a7668f553d98273780fd0 Check in missing file, also part of Idavoll 0.7.3. diff -r 8ab16e319bb8 -r 5974e718f395 doc/examples/idavoll.tac --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/examples/idavoll.tac Fri May 30 10:05:23 2008 +0000 @@ -0,0 +1,30 @@ +# Copyright (c) 2003-2008 Ralph Meijer +# See LICENSE for details. + +""" +Example TAC for Idavoll. +""" + +from twisted.application import service +from twisted.words.protocols.jabber.jid import JID + +from idavoll import tap + +application = service.Application("Idavoll") + +config = { + 'jid': JID('pubsub.example.org'), + 'secret': 'secret', + 'rhost': '127.0.0.1', + 'rport': 5347, + 'backend': 'memory', + 'verbose': True, + 'hide-nodes': False, +} + +idavollService = tap.makeService(config) +idavollService.setServiceParent(application) + +# Set the maximum delay until trying to reconnect. +componentService = idavollService.getServiceNamed('component') +componentService.factory.maxdelay = 300