Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 2148:a543eda2c923
core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 20:43:20 +0100 |
parents | 33c8c4973743 |
children | e67e8cd24141 |
comparison
equal
deleted
inserted
replaced
2147:bca699faf416 | 2148:a543eda2c923 |
---|---|
103 | 103 |
104 def _checkFeaturesEb(self, fail): | 104 def _checkFeaturesEb(self, fail): |
105 return {'available': C.BOOL_FALSE} | 105 return {'available': C.BOOL_FALSE} |
106 | 106 |
107 def getFeatures(self, profile): | 107 def getFeatures(self, profile): |
108 d = self.host.checkFeatures([], identity=('pubsub', 'pep'), profile=profile) | 108 client = self.host.getClient(profile) |
109 d = self.host.checkFeatures(client, [], identity=('pubsub', 'pep')) | |
109 d.addCallbacks(self._checkFeaturesCb, self._checkFeaturesEb) | 110 d.addCallbacks(self._checkFeaturesCb, self._checkFeaturesEb) |
110 return d | 111 return d |
111 | 112 |
112 ## plugin management methods ## | 113 ## plugin management methods ## |
113 | 114 |