Mercurial > libervia-pubsub
view idavoll/tap.py @ 153:753b8432460f
Work towards JEP-0060 1.8
- Remove subscription information from <affiliations/> result.
- Add handling of <subscriptions/> entity use case.
- Make <subscribe/> return <subscription/> instead of <entity/>.
- Move <purge/> and <delete/> to owner namespace.
- Don't use 'self' in interfaces.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sat, 06 May 2006 19:47:53 +0000 |
parents | cf918d581da5 |
children | 5191ba7c4df8 |
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'), ('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)