From 1b4aad48a679d50a81692082e02040c56a9920a9 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 24 Jan 2008 03:43:38 +0000 Subject: [PATCH] add count() to List source --- lib/python/Components/Sources/List.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py index 82504401..71be0807 100644 --- a/lib/python/Components/Sources/List.py +++ b/lib/python/Components/Sources/List.py @@ -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: -- 2.30.2