Mercurial > libervia-pubsub
diff sat_pubsub/tap.py @ 280:798cb8962c0b
MAM (XEP-0313) support: first draft
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 09 Jan 2015 10:57:10 +0100 |
parents | 8a71486c3e95 |
children | 30895c49ebd2 |
line wrap: on
line diff
--- a/sat_pubsub/tap.py Fri Jan 09 10:56:38 2015 +0100 +++ b/sat_pubsub/tap.py Fri Jan 09 10:57:10 2015 +0100 @@ -66,6 +66,7 @@ from sat_pubsub.backend import BackendService from sat_pubsub.remote_roster import RosterClient + class Options(usage.Options): optParameters = [ ('jid', None, 'pubsub', 'JID this component will be available at'), @@ -149,4 +150,9 @@ rc.setHandlerParent(cs) bs.roster = rc + if const.FLAG_ENABLE_MAM: + mam_resource = MAMResource() + mam_s = mam.MAMService(mam_resource) + mam_s.setHandlerParent(cs) + return s