comparison 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
comparison
equal deleted inserted replaced
3367:a23863a95326 3369:18f1631c9b85
2339 2339
2340 def propchanged(self, property): 2340 def propchanged(self, property):
2341 ''' Detect if the property marked as being the group property 2341 ''' Detect if the property marked as being the group property
2342 changed in the last iteration fetch 2342 changed in the last iteration fetch
2343 ''' 2343 '''
2344 # we poke directly at the _value here since MissingValue can screw
2345 # us up and cause Nones to compare strangely
2344 if (self.last_item is None or 2346 if (self.last_item is None or
2345 self.last_item[property] != self.current_item[property]): 2347 self.last_item[property]._value !=
2348 self.current_item[property]._value):
2346 return 1 2349 return 1
2347 return 0 2350 return 0
2348 2351
2349 # override these 'cos we don't have access to acquisition 2352 # override these 'cos we don't have access to acquisition
2350 def previous(self): 2353 def previous(self):

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