aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/ServiceList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-15 12:48:55 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-15 12:48:55 +0000
commit42a0556e68162bd6befa9d81f9e285f0d73055b5 (patch)
treeaecec720ef53b8424b428c47a6fb532d02c1b12b /lib/python/Components/Sources/ServiceList.py
parent9fabf78619c384aeabc9f6ac941918531200fbb5 (diff)
downloadenigma2-42a0556e68162bd6befa9d81f9e285f0d73055b5.tar.gz
enigma2-42a0556e68162bd6befa9d81f9e285f0d73055b5.zip
allow disable of service validation
Diffstat (limited to 'lib/python/Components/Sources/ServiceList.py')
-rw-r--r--lib/python/Components/Sources/ServiceList.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/Sources/ServiceList.py b/lib/python/Components/Sources/ServiceList.py
index 4d184152..91a6866e 100644
--- a/lib/python/Components/Sources/ServiceList.py
+++ b/lib/python/Components/Sources/ServiceList.py
@@ -2,10 +2,11 @@ from Source import Source
from enigma import eServiceCenter, eServiceReference
class ServiceList(Source):
- def __init__(self, root, command_func = None):
+ def __init__(self, root, command_func = None, validate_commands = True):
Source.__init__(self)
self.root = root
self.command_func = command_func
+ self.validate_commands = validate_commands
def getServicesAsList(self, format = "SN"):
services = self.getServiceList()
@@ -34,7 +35,7 @@ class ServiceList(Source):
def handleCommand(self, cmd):
print "ServiceList handle command"
- if not self.validateReference(cmd):
+ if self.validate_commands and not self.validateReference(cmd):
print "Service reference did not validate!"
return