Mercurial > libervia-pubsub
view idavoll/tap.py @ 38:c9ddca3cce20
Change exception classes to include stanza error.
Change name of exception base class to Error.
Change backend error map to have a tuple as value: stanza-error, pubsub-error.
Remove empty componentConnected() definition in Service.
Move registering of notification from __init__ to componentConnected in
ComponentServiceFromNotificationService.
Add observers for subscribe, options and configure.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sun, 31 Oct 2004 16:03:50 +0000 |
parents | 4cc41776b7d7 |
children | 7d088c61e131 |
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') ] def makeService(config): return idavoll.makeService(config)