Really fix invites
This commit is contained in:
parent
fe64b7c6d4
commit
e79a5f5e98
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user