Mercurial > libervia-pubsub
view idavoll/tap.py @ 155:5191ba7c4df8
Work towards first release 0.5.0.
- Add licensing information (MIT)
- Improve installation instructions.
- Use new plugins framework in twisted.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Mon, 21 Aug 2006 16:05:35 +0000 |
parents | cf918d581da5 |
children | 6250905b72f6 |
line wrap: on
line source
# Copyright (c) 2003-2006 Ralph Meijer # See LICENSE for details. from twisted.application import internet, service from twisted.internet import interfaces from twisted.python import usage import idavoll class Options(usage.Options): optParameters = [ ('jid', None, 'pubsub'), ('secret', None, 'secret'), ('rhost', None, '127.0.0.1'), ('rport', None, '5347'), ('backend', None, 'memory'), ('dbuser', None, ''), ('dbname', None, 'pubsub'), ] optFlags = [ ('verbose', 'v', 'Show traffic'), ('hide-nodes', None, 'Hide all nodes for disco') ] def postOptions(self): if self['backend'] not in ['pgsql', 'memory']: raise usage.UsageError, "Unknown backend!" def makeService(config): return idavoll.makeService(config)