diff roundup/cgi/templating.py @ 3369:18f1631c9b85

sort/group by missing values correctly [SF#1198623]
author Richard Jones <richard@users.sourceforge.net>
date Fri, 24 Jun 2005 07:06:14 +0000
parents 7bc1e9c42a26
children c1c67c62b699
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Fri Jun 24 06:47:44 2005 +0000
+++ b/roundup/cgi/templating.py	Fri Jun 24 07:06:14 2005 +0000
@@ -2341,8 +2341,11 @@
         ''' Detect if the property marked as being the group property
             changed in the last iteration fetch
         '''
+        # we poke directly at the _value here since MissingValue can screw
+        # us up and cause Nones to compare strangely
         if (self.last_item is None or
-                self.last_item[property] != self.current_item[property]):
+                self.last_item[property]._value !=
+                self.current_item[property]._value):
             return 1
         return 0
 

Roundup Issue Tracker: http://roundup-tracker.org/