Mercurial > libervia-pubsub
view idavoll/tap.py @ 82:758cb81b97ce
Enable ItemRetrievalService for pgsql backend.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Tue, 09 Nov 2004 14:54:17 +0000 |
parents | 66fac7cd9edc |
children | cf918d581da5 |
line wrap: on
line source
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, None), ('rhost', None, '127.0.0.1'), ('rport', None, '6000'), ('backend', None, 'memory'), ('dbuser', None, ''), ('dbname', None, 'pubsub'), ] optFlags = [('verbose', 'v', 'Show traffic')] def postOptions(self): if self['backend'] not in ['pgsql', 'memory']: raise usage.UsageError, "Unknown backend!" def makeService(config): return idavoll.makeService(config)