[POS-commit] Kiwi/Kiwi Delegates.py,1.119,1.120
Juan Pinazo
pinazo at async.com.br
Fri Oct 10 22:56:50 BRST 2003
Update of /usr/local/cvssrc/Kiwi/Kiwi
In directory anthem:/tmp/cvs-serv4306/Kiwi
Modified Files:
Delegates.py
Log Message:
Adding a method called dump_list_ordered do ClistDelegate, which returns
the list of objects exactly as they appear in the clist. r=kiko
Index: Delegates.py
===================================================================
RCS file: /usr/local/cvssrc/Kiwi/Kiwi/Delegates.py,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- Delegates.py 28 Aug 2003 21:49:10 -0000 1.119
+++ Delegates.py 10 Oct 2003 22:56:47 -0000 1.120
@@ -485,6 +485,11 @@
"""Returns a copy of the list of instances held by the CListDelegate"""
return self._list[:]
+ def dump_list_ordered(self):
+ """Returns a copy of the list of instances held by the
+ CListDelegate in the same order as it appears in the clist."""
+ return map(lambda row: row['data'], self.clist.get_rows())
+
def get_selected(self):
"""
Returns a tuple of the currently selected instances. A tuple is
More information about the POS-commit
mailing list