Remove unused old registry code
This commit is contained in:
@@ -16,28 +16,12 @@
|
||||
|
||||
import gobject
|
||||
|
||||
import conf
|
||||
from sugar.presence import PresenceService
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
|
||||
class Invite:
|
||||
def __init__(self, issuer, bundle_id, activity_id):
|
||||
self._issuer = issuer
|
||||
self._activity_id = activity_id
|
||||
self._bundle_id = bundle_id
|
||||
|
||||
def get_icon(self):
|
||||
reg = conf.get_activity_registry()
|
||||
return reg.get_activity(self._bundle_id).get_icon()
|
||||
|
||||
def get_color(self):
|
||||
pservice = PresenceService.get_instance()
|
||||
buddy = pservice.get_buddy_by_name(self._issuer)
|
||||
if buddy != None:
|
||||
return IconColor(buddy.get_color())
|
||||
else:
|
||||
return IconColor('white')
|
||||
|
||||
def get_activity_id(self):
|
||||
return self._activity_id
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import gobject
|
||||
|
||||
import conf
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
from sugar.presence import PresenceService
|
||||
from model.BuddyModel import BuddyModel
|
||||
|
||||
Reference in New Issue
Block a user