annotate salut.tac @ 0:d1bc50b64974

initial commit
author Goffi <goffi@goffi.org>
date Tue, 25 Feb 2014 22:22:18 +0100
parents
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)