def __init__(self, tab_type, selected_tabs): Display.__init__(self) self.widget = guidecontroller.GuideTab(selected_tabs[0].browser) app.info_updater.item_list_callbacks.add(u'guide-sidebar', None, self.on_item_list), app.info_updater.item_changed_callbacks.add(u'guide-sidebar', None, self.on_item_changed), messages.TrackItems(u'guide-sidebar', None).send_to_backend() app.display_manager.add_permanent_display(self) # once we're loaded,
def setUp(self): TrackerTest.setUp(self) self.items = [] self.feed = Feed(u'dtv:manualFeed') self.make_item(u'http://example.com/', u'my first item') self.make_item(u'http://example.com/2', u'my second item') self.runUrgentCalls() messages.TrackItems('feed', self.feed.id).send_to_backend() self.runUrgentCalls()
def setUp(self): TrackerTest.setUp(self) self.items = [] self.feed = Feed(u'dtv:manualFeed') self.playlist = SavedPlaylist(u'test playlist') self.make_item(u'http://example.com/') self.make_item(u'http://example.com/2') self.runUrgentCalls() messages.TrackItems('playlist', self.playlist.id).send_to_backend() self.runUrgentCalls()
def _send_track_items_message(self): messages.TrackItems(self.type, self.id).send_to_backend()
def track_items(self): messages.TrackItems('feed', self.feed.id).send_to_backend() self.runUrgentCalls()