diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-20 10:27:38 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-20 10:27:38 (GMT) |
commit | 09db49cc18d45d1dc3d3eaaf8132b45492554476 (patch) | |
tree | d9bfc2a1377ee90863b46fd5dfe967cf152deb7b /shell/model | |
parent | d0f23744f05d1c91c50ec41938c25919179feb9a (diff) |
s/BuddyInfo/BuddyModel
Diffstat (limited to 'shell/model')
-rw-r--r-- | shell/model/BuddyModel.py (renamed from shell/model/BuddyInfo.py) | 2 | ||||
-rw-r--r-- | shell/model/Friends.py | 6 | ||||
-rw-r--r-- | shell/model/Makefile.am | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/shell/model/BuddyInfo.py b/shell/model/BuddyModel.py index 68f0a44..b6a65dc 100644 --- a/shell/model/BuddyInfo.py +++ b/shell/model/BuddyModel.py @@ -1,7 +1,7 @@ from sugar.presence import PresenceService from sugar.canvas.IconColor import IconColor -class BuddyInfo: +class BuddyModel: def __init__(self, buddy=None): if buddy: self.set_name(buddy.get_name()) diff --git a/shell/model/Friends.py b/shell/model/Friends.py index a11acc0..b90f9d9 100644 --- a/shell/model/Friends.py +++ b/shell/model/Friends.py @@ -3,7 +3,7 @@ from ConfigParser import ConfigParser import gobject -from model.BuddyInfo import BuddyInfo +from model.BuddyModel import BuddyModel from sugar import env class Friends(gobject.GObject): @@ -31,7 +31,7 @@ class Friends(gobject.GObject): def make_friend(self, buddy): if not self.has_buddy(buddy): - self.add_friend(BuddyInfo(buddy)) + self.add_friend(BuddyModel(buddy)) self.save() def remove(self, buddy_info): @@ -47,7 +47,7 @@ class Friends(gobject.GObject): if cp.read([self._path]): for name in cp.sections(): - buddy = BuddyInfo() + buddy = BuddyModel() buddy.set_name(name) buddy.set_color(cp.get(name, 'color')) self.add_friend(buddy) diff --git a/shell/model/Makefile.am b/shell/model/Makefile.am index ce24668..322e732 100644 --- a/shell/model/Makefile.am +++ b/shell/model/Makefile.am @@ -1,7 +1,7 @@ sugardir = $(pkgdatadir)/shell/model sugar_PYTHON = \ __init__.py \ - BuddyInfo.py \ + BuddyModel.py \ Friends.py \ Invites.py \ Owner.py \ |