diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-08-09 00:26:15 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-08-09 00:26:15 +0000 |
| commit | 9d3112aad388b4369a339b851aa2507a02bb2d4f (patch) | |
| tree | 744d27b53a25921978f8df8b1b1c2c836caa442c /lib/python/Components/Converter/StringList.py | |
| parent | ab2ae6bd08a0ef13fc7462d51fc3a9ab15509b17 (diff) | |
| download | enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.tar.gz enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.zip | |
fix caching
Diffstat (limited to 'lib/python/Components/Converter/StringList.py')
| -rw-r--r-- | lib/python/Components/Converter/StringList.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Components/Converter/StringList.py b/lib/python/Components/Converter/StringList.py index ed264651..1304c643 100644 --- 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 Components.Element import cached 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 + @cached 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 + @cached def getIndex(self): if self.master is None: return None |
