10
|
1 This is the first try at rewriting Idavoll using Twisted Python. |
|
2 |
|
3 |
|
4 What is Idavoll |
|
5 =============== |
|
6 |
|
7 A pubsub service, as defined in JEP-0060, aiming to be fully compliant and |
|
8 mostly complete. The goal is to build a /generic/ pubsub service, but of which |
|
9 parts can be reused for building custom pubsub services for specific |
|
10 applications. |
|
11 |
|
12 |
|
13 Current Status |
|
14 ============== |
|
15 |
|
16 It is still very experimental, has hardcoded nodes and subscriptions and no |
|
17 storage for items. |
|
18 |
|
19 It does implement the mimimal requirements of JEP-0060 version 1.4. It also |
|
20 returns the following features defined in version 1.5 of the specification: |
|
21 |
|
22 http://jabber.org/protocol/pubsub#outcast-affil |
|
23 http://jabber.org/protocol/pubsub#publisher-affil |
|
24 |
|
25 It lacks support for requesting the current affiliations, and doesn't allow |
|
26 for discoing for meta-data of nodes. Therefore it is not compliant with 1.5, |
|
27 yet. |
|
28 |
|
29 Requirements |
|
30 ============ |
|
31 |
|
32 - Twisted >= 1.2.0 |
|
33 - The following patches to the twisted/xish directory: |
|
34 |
|
35 http://mag.ik.nu/~ralphm/tmp/domish.py.patch |
|
36 http://mag.ik.nu/~ralphm/tmp/utility.py.patch |
|
37 http://mag.ik.nu/~ralphm/tmp/xpath.py.patch |
|
38 |
|
39 - A jabber server like jabberd 1.4 |
|
40 |
|
41 Usage |
|
42 ===== |
|
43 |
|
44 For jabberd 1.4 configuration, put the following in jabber.xml: |
|
45 |
|
46 <service id='pubsub.localhost'> |
|
47 <accept> |
|
48 <ip>127.0.0.1</ip> |
|
49 <port>1238</port> |
|
50 <secret>mysecret</secret> |
|
51 </accept> |
|
52 </service> |
|
53 |
|
54 and restart jabberd. |
|
55 |
|
56 Then, in the same directory as this file run: |
|
57 |
|
58 mktap idavoll --rport=1238 --jid=pubsub.localhost --secret=1238 |
|
59 twistd -rf idavoll.tap |
|
60 |