Ejemplo n.º 1
0
 def _addTuner(self, host, type):
     self._changed = True
     vtunerClientConfig.addTuner(host, type)
     vtunerClientConfig.save()
     self._reload()
     self.session.toastManager.showToast(
         _("New Tuner added! GUI restart required!"))
Ejemplo n.º 2
0
	def _remove(self):
		current = self["list"].getCurrent()
		Log.w(current)
		if current and len(current) == 3:
			text, tunerEntry, index = current
			if vtunerClientConfig.removeTuner(index, tunerEntry):
				self._changed = True
				vtunerClientConfig.save()
				self.session.toastManager.showToast(_("Tuner {0} / {1} removed").format(tunerEntry.ipAddress, tunerEntry.tunerType))
			else:
				self.session.toastManager.showToast(_("Tuner {0} / {1} NOT REMOVED. Consicentcy Check failed!").format(tunerEntry.ipAddress, tunerEntry.tunerType))
			self._reload()
Ejemplo n.º 3
0
 def _remove(self):
     current = self["list"].getCurrent()
     Log.w(current)
     if current and len(current) == 3:
         text, tunerEntry, index = current
         if vtunerClientConfig.removeTuner(index, tunerEntry):
             self._changed = True
             vtunerClientConfig.save()
             self.session.toastManager.showToast(
                 _("Tuner {0} / {1} removed").format(
                     tunerEntry.ipAddress, tunerEntry.tunerType))
         else:
             self.session.toastManager.showToast(
                 _("Tuner {0} / {1} NOT REMOVED. Consicentcy Check failed!"
                   ).format(tunerEntry.ipAddress, tunerEntry.tunerType))
         self._reload()
Ejemplo n.º 4
0
	def _addTuner(self, host, type):
		self._changed = True
		vtunerClientConfig.addTuner(host, type)
		vtunerClientConfig.save()
		self._reload()
		self.session.toastManager.showToast(_("New Tuner added! GUI restart required!"))