core (memory): entities cache improvments:
- entities cache is no more limited to bare jid
- resources are now automatically updated in bare jid cache
This commit is contained in:
parent
2dcca42c19
commit
382d49a628
2 changed files with 118 additions and 70 deletions
|
|
@ -320,8 +320,8 @@ class DbusObject(dbus.service.Object):
|
|||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='s', out_signature='a{sa{s(sia{ss})}}',
|
||||
async_callbacks=None)
|
||||
def getPresenceStatus(self, profile_key="@DEFAULT@"):
|
||||
return self._callback("getPresenceStatus", unicode(profile_key))
|
||||
def getPresenceStatuses(self, profile_key="@DEFAULT@"):
|
||||
return self._callback("getPresenceStatuses", unicode(profile_key))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='s', out_signature='s',
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ doc_param_0=contact_jid: jid of the contact
|
|||
doc_param_1=%(doc_profile_key)s
|
||||
doc_return=the last resource connected of the contact, or ""
|
||||
|
||||
[getPresenceStatus]
|
||||
[getPresenceStatuses]
|
||||
type=method
|
||||
category=core
|
||||
sig_in=s
|
||||
|
|
|
|||
Loading…
Reference in a new issue