annotate salut.tac @ 3:593345584d21 default tip

replace ad-hoc commands "subscribe" and "unsubscribe" with a single "update" command
author souliane <souliane@mailoo.org>
date Wed, 02 Sep 2015 14:02:50 +0200
parents d1bc50b64974
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
1 from twisted.application import service
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
2 from twisted.words.protocols.jabber import jid
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
3 from wokkel.component import Component
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
4
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 from salut import SalutGateway
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
6
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
7 application = service.Application("Salut directory")
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
8
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
9 xmppcomponent = Component("necton3.int", 5347, "salut.necton3.int", "pass")
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
10 # xmppcomponent.logTraffic = True
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
11 salut = SalutGateway()
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
12 salut.setHandlerParent(xmppcomponent)
d1bc50b64974 initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
13 xmppcomponent.setServiceParent(application)