diff options
author | Stephan Erb <steve-e@h3c.de> | 2009-11-05 18:22:21 +0300 |
---|---|---|
committer | Stephan Erb <steve-e@h3c.de> | 2009-11-05 18:22:21 +0300 |
commit | dec25246dfa40f97200880ccc7000d7afd249553 (patch) | |
tree | 19a6e35e9414055eb8a19bde04eaca7979136dd1 | |
parent | 06129f45ef6adfb3403fc5a4bf8268bac8e77226 (diff) |
Missing bits of the last commit (add account parameter to contact constructor)
-rw-r--r-- | src/roster_window.py | 2 | ||||
-rw-r--r-- | test/integration/test_roster.py | 2 | ||||
-rw-r--r-- | 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 |