git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix getServiceInfoValue, which should not be cached
[enigma2.git]
/
lib
/
python
/
Components
/
Converter
/
StringList.py
diff --git
a/lib/python/Components/Converter/StringList.py
b/lib/python/Components/Converter/StringList.py
index ed2646519978415b1b14e02bdcd45f53ebe3781c..1304c6430bf19be16934538008e7a86bc8ab8640 100644
(file)
--- a/
lib/python/Components/Converter/StringList.py
+++ b/
lib/python/Components/Converter/StringList.py
@@
-1,6
+1,6
@@
from Converter import Converter
from enigma import eListboxPythonStringContent
from Converter import Converter
from enigma import eListboxPythonStringContent
-
+from Components.Element import cached
class StringList(Converter):
"""Turns a simple python list into a list which can be used in a listbox."""
class StringList(Converter):
"""Turns a simple python list into a list which can be used in a listbox."""
@@
-20,6
+20,7
@@
class StringList(Converter):
if x is not self.master:
x.index = index
if x is not self.master:
x.index = index
+ @cached
def getCurrent(self):
if self.source is None:
return None
def getCurrent(self):
if self.source is None:
return None
@@
-28,6
+29,7
@@
class StringList(Converter):
current = property(getCurrent)
# pass through: getIndex / setIndex to master
current = property(getCurrent)
# pass through: getIndex / setIndex to master
+ @cached
def getIndex(self):
if self.master is None:
return None
def getIndex(self):
if self.master is None:
return None