diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-10-12 23:38:27 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-10-12 23:38:27 +0000 |
| commit | 84f04f5d7473fa875372c53af82b11791da572dc (patch) | |
| tree | b577f29dabc53f50c6375de7961c3ac1b939ae58 /lib/python/Components/config.py | |
| parent | a6178fc05f6d296533718694bf8d4ae4bb80f994 (diff) | |
| download | enigma2-84f04f5d7473fa875372c53af82b11791da572dc.tar.gz enigma2-84f04f5d7473fa875372c53af82b11791da572dc.zip | |
activate the bounds in configSequence
Diffstat (limited to 'lib/python/Components/config.py')
| -rw-r--r-- | lib/python/Components/config.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 9c2c3f43..4585620b 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -116,7 +116,7 @@ class configSequenceArg: def get(self, type, args = ()): # configsequencearg.get ("IP") if (type == "IP"): - return (("."), [(1,255),(1,255),(1,255),(1,255)]) + return (("."), [(1,255),(0,255),(0,255),(0,255)]) # configsequencearg.get ("MAC") if (type == "MAC"): return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)]) @@ -141,6 +141,16 @@ class configSequence: num = 0 for i in self.parent.value: maxPos += len(str(self.valueBounds[num][1])) + while (self.valueBounds[num][0] > self.parent.value[num]): + self.parent.value[num] += 1 + + while (self.valueBounds[num][1] < self.parent.value[num]): + self.parent.value[num] -= 1 + +# if (self.valueBounds[num][0] <= i <= self.valueBounds[num][1]): + #pass + #else: + #self.parent.value[num] = self.valueBounds[num][0] num += 1 if self.markedPos >= maxPos: |
