Mercurial > libervia-pubsub
comparison idavoll/pubsub.py @ 12:d45e921a5d2a
Return implemented features
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Fri, 09 Jul 2004 15:46:10 +0000 |
parents | 52bd563b7a5d |
children | ce3d0db64da1 |
comparison
equal
deleted
inserted
replaced
11:d599da9179ab | 12:d45e921a5d2a |
---|---|
48 'category': 'pubsub', | 48 'category': 'pubsub', |
49 'type': 'generic', | 49 'type': 'generic', |
50 'name': 'Generic Pubsub Service' | 50 'name': 'Generic Pubsub Service' |
51 }) | 51 }) |
52 return results | 52 return results |
53 | |
54 def getFeatures(self, node): | |
55 return [ | |
56 "http://jabber.org/protocol/pubsub#outcast-affil", | |
57 "http://jabber.org/protocol/pubsub#publisher-affil", | |
58 # We do not really store items yet | |
59 # "http://jabber.org/protocol/pubsub#persistent-items", | |
60 ] | |
53 | 61 |
54 def error(self, failure, iq): | 62 def error(self, failure, iq): |
55 r = failure.trap(*error_map.keys()) | 63 r = failure.trap(*error_map.keys()) |
56 | 64 |
57 xmpp_error.error_from_iq(iq, error_map[r], failure.value.msg) | 65 xmpp_error.error_from_iq(iq, error_map[r], failure.value.msg) |