git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added pin controls
[enigma2.git]
/
lib
/
python
/
Components
/
config.py
diff --git
a/lib/python/Components/config.py
b/lib/python/Components/config.py
index 9c2c3f4384c3bb757b37a59dc308a306c0adf7c3..ba540db2123d5b6923ef4257d0739f280684eda1 100644
(file)
--- 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"):
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)])
# 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]))
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:
num += 1
if self.markedPos >= maxPos:
@@
-327,7
+337,7
@@
class configElement:
value = ""
if value == "":
value = ""
if value == "":
- print "value not found - using default"
+
#
print "value not found - using default"
if self.controlType == configSatlist:
self.value = self.getIndexbyEntry(self.defaultValue)
if self.controlType == configSatlist:
self.value = self.getIndexbyEntry(self.defaultValue)