aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-23 16:02:47 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-23 16:02:47 +0000
commit10bcb34f8993ecc000f027ecc8ce7fc89f0bda2b (patch)
treea2059963f51d30b77471fe45c51fd2f42dc41500 /lib/python/Screens
parentc8e724bf4828077d60b2d969fc210c0c5b722506 (diff)
downloadenigma2-10bcb34f8993ecc000f027ecc8ce7fc89f0bda2b.tar.gz
enigma2-10bcb34f8993ecc000f027ecc8ce7fc89f0bda2b.zip
fix enq answer handling of numbers with beginning zero's
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/Ci.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py
index f6593551..01df7947 100644
--- a/lib/python/Screens/Ci.py
+++ b/lib/python/Screens/Ci.py
@@ -71,13 +71,13 @@ class CiMmi(Screen):
if entry[0] == "TEXT": #handle every item (text / pin only?)
list.append( (entry[1], entry[2]) )
if entry[0] == "PIN":
+ self.pinlength = entry[1]
if entry[3] == 1:
# masked pins:
- x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (entry[1], "*")))
+ x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (self.pinlength, "*")))
else:
# unmasked pins:
- x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (entry[1], "")))
-
+ x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (self.pinlength, "")))
self["subtitle"].setText(entry[2])
self.pin = getConfigListEntry("",x)
list.append( self.pin )
@@ -97,7 +97,10 @@ class CiMmi(Screen):
self.showWait()
elif self.tag == "ENQ":
answer = str(self.pin[1].parent.value[0])
- print "answer ENQ", answer
+ length = len(answer)
+ while length < self.pinlength:
+ answer = '0'+answer
+ length+=1
eDVBCI_UI.getInstance().answerEnq(self.slotid, answer)
self.showWait()