Author: asterix Date: 2008-04-20 16:29:39 +0200 (Sun, 20 Apr 2008) New Revision: 9498
Modified: trunk/src/remote_control.py Log: no need of unread events in dbus informations. see #3655
Modified: trunk/src/remote_control.py =================================================================== --- trunk/src/remote_control.py 2008-04-20 14:01:04 UTC (rev 9497) +++ trunk/src/remote_control.py 2008-04-20 14:29:39 UTC (rev 9498) @@ -455,7 +455,7 @@ if acct in accounts: for jid in gajim.contacts.get_jid_list(acct): item = self._contacts_as_dbus_structure( - gajim.contacts.get_contacts(acct, jid), acct) + gajim.contacts.get_contacts(acct, jid)) if item: result.append(item) return result @@ -604,7 +604,7 @@ # We have not found it as jid nor as nick, probably a not in roster jid return jid
- def _contacts_as_dbus_structure(self, contacts, account): + def _contacts_as_dbus_structure(self, contacts): ''' get info from list of Contact objects and create dbus dict ''' if not contacts: return None @@ -632,8 +632,6 @@ contact_dict['groups'] = dbus.Array([], signature='(s)') for group in prim_contact.groups: contact_dict['groups'].append((DBUS_STRING(group),)) - contact_dict['unread_msgs_number'] = DBUS_STRING( - gajim.events.get_nb_roster_events(account, prim_contact.jid)) return contact_dict
@dbus.service.method(INTERFACE, in_signature='', out_signature='s')