comparison sat_pubsub/tap.py @ 242:a6170637690d

remote roster partial support
author Goffi <goffi@goffi.org>
date Sun, 27 May 2012 15:36:06 +0200
parents d2bdff8a4b45
children 2a948abb77ed
comparison
equal deleted inserted replaced
241:d2bdff8a4b45 242:a6170637690d
62 from wokkel.iwokkel import IPubSubResource 62 from wokkel.iwokkel import IPubSubResource
63 from wokkel.pubsub import PubSubService 63 from wokkel.pubsub import PubSubService
64 64
65 from sat_pubsub import __version__ 65 from sat_pubsub import __version__
66 from sat_pubsub.backend import BackendService 66 from sat_pubsub.backend import BackendService
67 from sat_pubsub.remote_roster import RosterClient
67 68
68 class Options(usage.Options): 69 class Options(usage.Options):
69 optParameters = [ 70 optParameters = [
70 ('jid', None, 'pubsub', 'JID this component will be available at'), 71 ('jid', None, 'pubsub', 'JID this component will be available at'),
71 ('secret', None, 'secret', 'Jabber server component secret'), 72 ('secret', None, 'secret', 'Jabber server component secret'),
140 141
141 ps = PubSubService(resource) 142 ps = PubSubService(resource)
142 ps.setHandlerParent(cs) 143 ps.setHandlerParent(cs)
143 resource.pubsubService = ps 144 resource.pubsubService = ps
144 145
146 rc = RosterClient()
147 rc.setHandlerParent(cs)
148 bs.roster = rc
149
145 return s 150 return s