core: minor style/typos fixes
This commit is contained in:
parent
af64d24d52
commit
a29893ac1f
1 changed files with 16 additions and 36 deletions
|
|
@ -630,28 +630,13 @@ class Memory(object):
|
|||
def addToHistory(self, client, data):
|
||||
return self.storage.addToHistory(data, client.profile)
|
||||
|
||||
def _historyGet(
|
||||
self,
|
||||
from_jid_s,
|
||||
to_jid_s,
|
||||
limit=C.HISTORY_LIMIT_NONE,
|
||||
between=True,
|
||||
filters=None,
|
||||
profile=C.PROF_KEY_NONE,
|
||||
):
|
||||
return self.historyGet(
|
||||
jid.JID(from_jid_s), jid.JID(to_jid_s), limit, between, filters, profile
|
||||
)
|
||||
def _historyGet(self, from_jid_s, to_jid_s, limit=C.HISTORY_LIMIT_NONE, between=True,
|
||||
filters=None, profile=C.PROF_KEY_NONE):
|
||||
return self.historyGet(jid.JID(from_jid_s), jid.JID(to_jid_s), limit, between,
|
||||
filters, profile)
|
||||
|
||||
def historyGet(
|
||||
self,
|
||||
from_jid,
|
||||
to_jid,
|
||||
limit=C.HISTORY_LIMIT_NONE,
|
||||
between=True,
|
||||
filters=None,
|
||||
profile=C.PROF_KEY_NONE,
|
||||
):
|
||||
def historyGet(self, from_jid, to_jid, limit=C.HISTORY_LIMIT_NONE, between=True,
|
||||
filters=None, profile=C.PROF_KEY_NONE):
|
||||
"""Retrieve messages in history
|
||||
|
||||
@param from_jid (JID): source JID (full, or bare for catchall)
|
||||
|
|
@ -661,7 +646,8 @@ class Memory(object):
|
|||
- C.HISTORY_LIMIT_NONE or None for unlimited
|
||||
- C.HISTORY_LIMIT_DEFAULT to use the HISTORY_LIMIT parameter value
|
||||
@param between (bool): confound source and dest (ignore the direction)
|
||||
@param filters (str): pattern to filter the history results (see bridge API for details)
|
||||
@param filters (dict[unicode, unicode]): pattern to filter the history results
|
||||
(see bridge API for details)
|
||||
@param profile (str): %(doc_profile)s
|
||||
@return (D(list)): list of message data as in [messageNew]
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue