示例#1
0
	def addAutoTimerSilent(self, event, service):
		try:
			from Plugins.Extensions.AutoTimer.AutoTimerEditor import addAutotimerFromEventSilent
			addAutotimerFromEventSilent(self.session, evt=event, service=service)
			self.refreshTimer.start(3000)
		except ImportError:
			self.session.open(MessageBox, self.noAutotimer, type=MessageBox.TYPE_INFO, timeout=10)
示例#2
0
 def addAutoTimerSilent(self):
     try:
         from Plugins.Extensions.AutoTimer.AutoTimerEditor import addAutotimerFromEventSilent
         event, service = self["list"].getCurrent()[:2]
         if event is None:
             return
         addAutotimerFromEventSilent(self.session,
                                     evt=event,
                                     service=service)
         self.refreshTimer.start(3000)
     except ImportError:
         self.session.open(MessageBox,
                           self.noAutotimer,
                           type=MessageBox.TYPE_INFO,
                           timeout=10)