Really fix invites

This commit is contained in:
Marco Pesenti Gritti 2006-09-15 16:19:56 +02:00
parent fe64b7c6d4
commit e79a5f5e98
2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ import conf
from sugar import env
from sugar.p2p import Stream
from sugar.presence import PresenceService
from model.Friends import Friends
from model.Invites import Invites
PRESENCE_SERVICE_TYPE = "_presence_olpc._tcp"
@ -31,10 +31,10 @@ class ShellOwner(object):
self._pservice = PresenceService.get_instance()
self._friends = Friends()
self._invites = Invites()
def get_friends(self):
return self._friends
def get_invites(self):
return self._invites
def announce(self):
# Create and announce our presence

View File

@ -1,7 +1,7 @@
import gobject
from sugar.presence import PresenceService
from model.Invites import Invites
from model.Friends import Friends
from model.Owner import ShellOwner
class ShellModel(gobject.GObject):
@ -25,13 +25,13 @@ class ShellModel(gobject.GObject):
self._owner = ShellOwner()
self._owner.announce()
self._invites = Invites()
self._friends = Friends()
def get_friends(self):
return self._owner.get_friends()
return self._friends
def get_invites(self):
return self._invites
return self._owner.get_invites()
def get_owner(self):
return self._owner