Ticket #3103 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Adding PubSub support for any PubSub service

Reported by: Olli Owned by: asterix
Priority: normal Milestone: 0.12
Component: None Version: hg
Severity: normal Keywords:
Cc: Blocked By:
OS: All Blocking:

Description

I add some minor changes with this patch so that any PubSub? service which supports xep-0060 can be used in a rudimentary way. PubSub?.org doesn't work anymore and it was not xep-0060 conform. (take a look at the appended patch) Now you are able to get ATOM notifications and subscribe/unsubscribe on a node while using a pubsub service with a flat hirarchy ( pubsub.ik.nu ). Please check my changes for correctness.

Iam no python guy so i have no idea how to add creating/destroying/configuring a pubsub node, browse a pubsub hirarchy, add functionality to discover the features of a pubsub node and so on. Iam very glad to see this cool stuff in the next releases of gajim :)

Attachments

pubsub-diff-gajim.diff (4.6 KB) - added by Olli 3 years ago.
Diff against svn for pubsub functionality with normal pubsub services

Change History

Changed 3 years ago by Olli

Diff against svn for pubsub functionality with normal pubsub services

follow-up: ↓ 2   Changed 3 years ago by anonymous

Sounds nice. Can you explain please how to use PubSub? on the domain posted above?

in reply to: ↑ 1   Changed 3 years ago by Olli

  • version set to svn
  • milestone 0.12 deleted

Replying to anonymous:

Sounds nice. Can you explain please how to use PubSub? on the domain posted above?

Hm it looks that this server shows a strange behavior. On my amessage.de account browsing this server (ik.nu) is no problem. With my other account disco won't work as expected. You can also try it on any other pubsub service with flat hierarchy.

  Changed 3 years ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.12

(In [c06525d5a3b15a569487d7eff5209e4a23ca544a]) improve pubsub support. fixes #3103

  Changed 3 years ago by steve-e

  • os set to All

I tried to register something on pubsub.ik.nu, but nothing happened. After closing the window I got the following TB:

Traceback (most recent call last):
  File "projekte/python/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events
    obj.pollin()
  File "projekte/python/gajim/src/common/xmpp/transports_nb.py", line 361, in pollin
    self._do_receive()
  File "projekte/python/gajim/src/common/xmpp/transports_nb.py", line 500, in _do_receive
    self.on_receive(received)
  File "projekte/python/gajim/src/common/xmpp/dispatcher_nb.py", line 352, in dispatch
    handler['func'](session,stanza)
  File "projekte/python/gajim/src/common/pubsub.py", line 49, in _PubSubCB
    cb(conn, stanza, *args, **kwargs)
  File "projekte/python/gajim/src/disco.py", line 1954, in _subscribeCB
    for row in model:
TypeError: 'NoneType' object is not iterable }}}

  Changed 3 years ago by asterix

(In [7bf7eca099e0c815823578e2c953d8d6d042e6f0]) fix TB when we close pubsub window before we get the answer from the server. see #3103

  Changed 3 years ago by asterix

it's because you closed the window before you got the answer from the server. I fixed that in [7bf7eca099e0c815823578e2c953d8d6d042e6f0] But that's true that there is a problem with this pubsub server. registration are not kept. It works better with the one on gajim.org for example.

Add/Change #3103 (Adding PubSub support for any PubSub service)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
Next status will be 'needinfo'
 
Note: See TracTickets for help on using tickets.