view doc/examples/idavoll.tac @ 202:77c61e2b8c75

Use `domish.Element`s to represent items, instead of serialized XML.
author Ralph Meijer <ralphm@ik.nu>
date Wed, 25 Jun 2008 12:27:55 +0000
parents 5974e718f395
children 51af2ed8bd50
line wrap: on
line source

# 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