From dec25246dfa40f97200880ccc7000d7afd249553 Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Thu, 5 Nov 2009 16:22:21 +0100 Subject: [PATCH] Missing bits of the last commit (add account parameter to contact constructor) --- src/roster_window.py | 2 +- test/integration/test_roster.py | 2 +- test/unit/test_contacts.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index a50021a6c..8bb0e0288 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2540,7 +2540,7 @@ class RosterWindow: show = roster.getShow(jid+'/'+resource) if not show: show = 'online' - contact = gajim.contacts.create_contact(jid=jid, + contact = gajim.contacts.create_contact(jid=jid, account=account, name=account, groups=['self_contact'], show=show, status=roster.getStatus(jid + '/' + resource), resource=resource, diff --git a/test/integration/test_roster.py b/test/integration/test_roster.py index 10d1ab488..d093d0e64 100644 --- a/test/integration/test_roster.py +++ b/test/integration/test_roster.py @@ -190,7 +190,7 @@ class TestRosterWindowMetaContacts(TestRosterWindowRegrouped): self.test_fill_roster_model() jid = u'coolstuff@gajim.org' - contact = gajim.contacts.create_contact(jid) + contact = gajim.contacts.create_contact(jid, account1) gajim.contacts.add_contact(account1, contact) self.roster.add_contact(jid, account1) self.roster.chg_contact_status(contact, 'offline', '', account1) diff --git a/test/unit/test_contacts.py b/test/unit/test_contacts.py index 623fec1ad..2ec1dd8c4 100644 --- a/test/unit/test_contacts.py +++ b/test/unit/test_contacts.py @@ -55,7 +55,7 @@ class TestGC_Contact(TestCommonContact): def setUp(self): TestCommonContact.setUp(self) - self.contact = GC_Contact("confernce@gajim.org", "account") + self.contact = GC_Contact(room_jid="confernce@gajim.org", account="account") def test_attributes_available(self): '''This test supports the migration from the old to the new contact