core: minor docstring fixes
This commit is contained in:
parent
c3aea2f388
commit
9bd81494d1
2 changed files with 6 additions and 7 deletions
|
|
@ -541,9 +541,8 @@ class SAT(service.Service):
|
|||
return treatments
|
||||
|
||||
def sendAndStoreMessage(self, mess_data, skip_send=False, profile=None):
|
||||
"""Actually send and store the message to history, after all the treatments
|
||||
have been done. This has been moved outside the main sendMessage method
|
||||
because it is used by XEP-0033 to complete a server-side feature not yet
|
||||
"""Actually send and store the message to history, after all the treatments have been done.
|
||||
This has been moved outside the main sendMessage method because it is used by XEP-0033 to complete a server-side feature not yet
|
||||
implemented by the prosody plugin.
|
||||
@param mess_data: message data dictionary
|
||||
@param skip_send: set to True to skip sending the message to only store it
|
||||
|
|
@ -646,10 +645,10 @@ class SAT(service.Service):
|
|||
"""Discover if a server or its items offer a given feature
|
||||
@param feature: the feature to check
|
||||
@param jid_: the jid of the server, local server if None
|
||||
@param cache_only: expect the result to be in cache and don't actually
|
||||
make any request. This can be used anytime for requesting a feature on
|
||||
the local server because the data are cached for sure.
|
||||
@param cache_only: expect the result to be in cache and don't actually make any request.
|
||||
This can be used anytime for requesting a feature on the local server because the data are cached for sure.
|
||||
@result: the Deferred entity jid offering the feature, or None
|
||||
|
||||
"""
|
||||
profile = self.memory.getProfileName(profile_key)
|
||||
|
||||
|
|
|
|||
|
|
@ -975,7 +975,7 @@ class Memory(object):
|
|||
"""Tell if the specified server has the required feature
|
||||
@param feature: requested feature
|
||||
@param jid_: the jid of the target server (None for profile's server)
|
||||
@param profile: which profile is asking this server?
|
||||
@param profile_key: %(doc_profile_key)s
|
||||
"""
|
||||
profile = self.getProfileName(profile_key)
|
||||
if not profile:
|
||||
|
|
|
|||
Loading…
Reference in a new issue