[POS-commit] CVS: Kiwi/tests test_CListDelegate.py,1.26,1.27

Christian Reis kiko at async.com.br
Sun Feb 2 15:04:03 BRDT 2003


Update of /cvs/Kiwi/tests
In directory anthem:/tmp/cvs-serv29349/tests

Modified Files:
	test_CListDelegate.py 
Log Message:
Implement handling of None as a possible column value in CListDelegate.
In with this goes a small fix to sorting when pixmap columns are
involved, and some cleanups.


Index: test_CListDelegate.py
===================================================================
RCS file: /cvs/Kiwi/tests/test_CListDelegate.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- test_CListDelegate.py	2 Feb 2003 14:44:25 -0000	1.26
+++ test_CListDelegate.py	2 Feb 2003 16:04:00 -0000	1.27
@@ -57,7 +57,9 @@
 p = Person("Johan Dahlin", "R. Thomaz Antonio Gonzaga 75 Ap. 22",
            2, "M", 223.33, 2, FALSE)
 pl.append(p)
-p = Person("Pedro Bó", None, 21, "X", 666.66, 1, None)
+p = Person("Pedro Bó", None, 21, "X", 666.66, None, None)
+pl.append(p)
+p = Person("Xico Sergio", None, 99, "X", None, 0, None)
 pl.append(p)
 p = Person("Manuela Tiça", "R. dos Carvalhos, 532, Santa Rita do Passa Quatro",
            84, "M", 11.33, 3, TRUE)
@@ -75,8 +77,8 @@
 }
 
 pixhash2 = {
-    TRUE : "true.xpm",
     FALSE : "false.xpm",
+    TRUE : "true.xpm",
 }
 
 columns_simple = [ Column("name", title="Name", sorted=TRUE),



More information about the POS-commit mailing list