+ from Components.Button import Button
+ from Components.ActionMap import HelpableActionMap
+ class MovieSelectionNoMenu(MovieSelection):
+ def __init__(self, session):
+ MovieSelection.__init__(self, session)
+ self.skinName = "MovieSelection"
+ self["key_red"] = Button(_("Edit title"))
+ self["key_green"] = Button(_("Add"))
+ self["ColorActions"] = HelpableActionMap(self, "ColorActions",
+ {
+ "red": (self.movieSelected, _("Add a new title")),
+ "green": (self.insertWithoutEdit, ("insert without cutlist editor"))
+ })
+ def updateTags(self):
+ pass
+ def doContext(self):
+ print "context menu forbidden inside DVDBurn to prevent calling multiple instances"
+ def insertWithoutEdit(self):
+ current = self.getCurrent()
+ if current is not None:
+ current.edit = False
+ self.close(current)
+ def movieSelected(self):
+ current = self.getCurrent()
+ if current is not None:
+ current.edit = True
+ self.close(current)
+ self.session.openWithCallback(self.selectedSource, MovieSelectionNoMenu)