comparison frontends/src/bridge/DBus.py @ 1224:f0c9b149ed99

bridge, memory: add "search" attribute to getHistory (filter the results with a unix globbing pattern)
author souliane <souliane@mailoo.org>
date Sat, 04 Oct 2014 10:25:32 +0200
parents bf2927e6a0f5
children c1e916594e09
comparison
equal deleted inserted replaced
1223:802b7e6bf098 1224:f0c9b149ed99
162 return self.db_core_iface.getContactsFromGroup(group, profile_key) 162 return self.db_core_iface.getContactsFromGroup(group, profile_key)
163 163
164 def getEntityData(self, jid, keys, profile): 164 def getEntityData(self, jid, keys, profile):
165 return self.db_core_iface.getEntityData(jid, keys, profile) 165 return self.db_core_iface.getEntityData(jid, keys, profile)
166 166
167 def getHistory(self, from_jid, to_jid, limit, between=True, profile="@NONE@", callback=None, errback=None): 167 def getHistory(self, from_jid, to_jid, limit, between=True, search='', profile="@NONE@", callback=None, errback=None):
168 return self.db_core_iface.getHistory(from_jid, to_jid, limit, between, profile, timeout=const_TIMEOUT, reply_handler=callback, error_handler=lambda err:errback(dbus_to_bridge_exception(err))) 168 return self.db_core_iface.getHistory(from_jid, to_jid, limit, between, search, profile, timeout=const_TIMEOUT, reply_handler=callback, error_handler=lambda err:errback(dbus_to_bridge_exception(err)))
169 169
170 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): 170 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"):
171 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) 171 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key))
172 172
173 def getMenuHelp(self, menu_id, language): 173 def getMenuHelp(self, menu_id, language):