changeset 230:57d1d78190d0

renamed idavoll.tac to sat_pubsub.tac
author Goffi <goffi@goffi.org>
date Thu, 10 May 2012 23:07:42 +0200
parents f23fcdc19f7f
children d99047cd90f9
files sat_pubsub.tac
diffstat 1 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_pubsub.tac	Thu May 10 23:07:42 2012 +0200
@@ -0,0 +1,37 @@
+#!/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': 'goffi',
+    'dbpass': 'toto',
+    '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