git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
store and re-use previous pip position and size
[enigma2.git]
/
lib
/
python
/
Components
/
config.py
diff --git
a/lib/python/Components/config.py
b/lib/python/Components/config.py
index 7c7acc345bfa1b3c44a8a0e665ac39cf83661fda..fda44795ec1e84cb01e9e648b92b58e7a0cc993f 100644
(file)
--- a/
lib/python/Components/config.py
+++ b/
lib/python/Components/config.py
@@
-38,6
+38,18
@@
class configFile:
else:
self.configElements[key] = value
else:
self.configElements[key] = value
+ def getResolvedKey(self, key):
+ str = self.configElements[key]
+ if len(str):
+ pos = str.find('*')
+ if pos != -1:
+ str = str[pos+1:]
+ pos = str.find('*')
+ if pos != -1:
+ return str[:pos]
+ return str
+ return None
+
def save(self):
if self.changed == 0: #no changes, so no write to disk needed
return
def save(self):
if self.changed == 0: #no changes, so no write to disk needed
return
@@
-176,6
+188,8
@@
class configSequenceArg:
if (type == "IP"):
return (("."), [(0,255),(0,255),(0,255),(0,255)], "")
# configsequencearg.get ("MAC")
if (type == "IP"):
return (("."), [(0,255),(0,255),(0,255),(0,255)], "")
# configsequencearg.get ("MAC")
+ if (type == "POSITION"):
+ return ((","), [(0,args[0]),(0,args[1]),(0,args[2]),(0,args[3])], "")
if (type == "MAC"):
return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)], "")
# configsequencearg.get ("CLOCK")
if (type == "MAC"):
return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)], "")
# configsequencearg.get ("CLOCK")