add count() to List source
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 24 Jan 2008 03:43:38 +0000 (03:43 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 24 Jan 2008 03:43:38 +0000 (03:43 +0000)
lib/python/Components/Sources/List.py

index 8250440..71be080 100644 (file)
@@ -26,6 +26,9 @@ to generate HTML."""
        def entry_changed(self, index):
                if not self.disable_callbacks:
                        self.downstream_elements.entry_changed(self, index)
+                       
+       def count(self):
+               return len(self.__list)
 
        def selectionChanged(self, index):
                if self.disable_callbacks: