add modifyEntry
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 10 Feb 2009 21:30:03 +0000 (22:30 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 10 Feb 2009 21:30:03 +0000 (22:30 +0100)
lib/python/Components/Sources/List.py

index 26c68ab5a874f30ef6e29ab6eadb9e2d9b80bf9b..23b5395727fd3784f74842c9088a4ddfdad525bb 100644 (file)
@@ -28,7 +28,11 @@ to generate HTML."""
        def entry_changed(self, index):
                if not self.disable_callbacks:
                        self.downstream_elements.entry_changed(self, index)
-                       
+
+       def modifyEntry(self, index, data):
+               self.__list[index] = data
+               self.entry_changed(index)
+
        def count(self):
                return len(self.__list)