comparison libervia/backend/memory/disco.py @ 4327:554a87ae17a6

plugin XEP-0048, XEP-0402; CLI (bookmarks): implement XEP-0402 (PEP Native Bookmarks): - Former bookmarks implementation is now labeled as "legacy". - XEP-0402 is now used for bookmarks when relevant namespaces are found, and it fallbacks to legacy XEP-0048/XEP-0049 bookmarks otherwise. - CLI legacy bookmark commands have been moved to `bookmarks legacy` - CLI bookmarks commands now use the new XEP-0402 (with fallback to legacy one automatically used if necessary).
author Goffi <goffi@goffi.org>
date Wed, 20 Nov 2024 11:43:27 +0100
parents 94e0968987cd
children e9971a4b0627
comparison
equal deleted inserted replaced
4326:5fd6a4dc2122 4327:554a87ae17a6
133 ) -> bool: 133 ) -> bool:
134 """Tell if an entity has the required feature 134 """Tell if an entity has the required feature
135 135
136 @param feature: feature namespace 136 @param feature: feature namespace
137 @param jid_: jid of the target, or None for profile's server 137 @param jid_: jid of the target, or None for profile's server
138 @param node(unicode): optional node to use for disco request 138 @param node: optional node to use for disco request
139 @return: a Deferred which fire a boolean (True if feature is available) 139 @return: a Deferred which fire a boolean (True if feature is available)
140 """ 140 """
141 disco_infos = await self.get_infos(client, jid_, node) 141 disco_infos = await self.get_infos(client, jid_, node)
142 return feature in disco_infos.features 142 return feature in disco_infos.features
143 143