annotate salut.tac @ 2:77b77f48c975

don't expect queries to specify all the fields
author souliane <souliane@mailoo.org>
date Thu, 23 Jul 2015 21:05:51 +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)