Mercurial > libervia-backend
comparison plugins/plugin_xep_0100.py @ 48:4392f1fdb064
plugins improvement
- new protocols field in plugins info, useful to know which ones are implemented by the plugin
- XEP-0153 first implementation (vcard avatars)
- plugin vcard: avatar & nick cached, clients are noticed of updated values
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jan 2010 23:56:44 +1100 |
parents | 874de3020e1c |
children | a5b5fb5fc9fd |
comparison
equal
deleted
inserted
replaced
47:9aa2d9dd4045 | 48:4392f1fdb064 |
---|---|
29 | 29 |
30 PLUGIN_INFO = { | 30 PLUGIN_INFO = { |
31 "name": "Gateways Plugin", | 31 "name": "Gateways Plugin", |
32 "import_name": "XEP_0100", | 32 "import_name": "XEP_0100", |
33 "type": "XEP", | 33 "type": "XEP", |
34 "protocols": ["XEP-0100"], | |
34 "dependencies": ["XEP_0077"], | 35 "dependencies": ["XEP_0077"], |
35 "main": "XEP_0100", | 36 "main": "XEP_0100", |
36 "description": """Implementation of Gateways protocol""" | 37 "description": """Implementation of Gateways protocol""" |
37 } | 38 } |
38 | 39 |
77 | 78 |
78 def discoItems(self, disco, request_id, target): | 79 def discoItems(self, disco, request_id, target): |
79 """Look for items with disco protocol, and ask infos for each one""" | 80 """Look for items with disco protocol, and ask infos for each one""" |
80 #FIXME: target is used as we can't find the original iq node (parent is None) | 81 #FIXME: target is used as we can't find the original iq node (parent is None) |
81 # an other way would avoid this useless parameter (is there a way with wokkel ?) | 82 # an other way would avoid this useless parameter (is there a way with wokkel ?) |
82 | |
83 if len(disco._items) == 0: | 83 if len(disco._items) == 0: |
84 debug ("No gateway found") | 84 debug ("No gateway found") |
85 self.host.actionResultExt(request_id,"DICT_DICT",{}) | 85 self.host.actionResultExt(request_id,"DICT_DICT",{}) |
86 return | 86 return |
87 | 87 |