#!/usr/bin/python #-!- coding: utf-8 -!- # Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. """ Example TAC for SàT Pubsub. """ from twisted.application import service from twisted.words.protocols.jabber.jid import JID from idavoll import tap application = service.Application("sat_pubsub") config = { 'jid': JID('sat-pubsub.necton3.int'), 'secret': 'pass', 'rhost': '127.0.0.1', 'rport': 5347, 'backend': 'pgsql', 'dbuser': 'user', 'dbpass': 'pass', 'dbname': "pubsub", 'dbhost': "localhost", 'dbport': None, '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