comparison roundup/cgi/templating.py @ 3700:9cc2566cc7d9

This isn't really nice, but now grouping by transitive multilinks works.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Fri, 08 Sep 2006 19:47:31 +0000
parents 976191d749fb
children 06d7816976bc
comparison
equal deleted inserted replaced
3699:976191d749fb 3700:9cc2566cc7d9
2513 # we poke directly at the _value here since MissingValue can screw 2513 # we poke directly at the _value here since MissingValue can screw
2514 # us up and cause Nones to compare strangely 2514 # us up and cause Nones to compare strangely
2515 if self.last_item is None: 2515 if self.last_item is None:
2516 return 1 2516 return 1
2517 for property in properties: 2517 for property in properties:
2518 if property == 'id': 2518 if property == 'id' or isinstance (self.last_item[property], list):
2519 if (self.last_item['id'] != self.current_item['id']): 2519 if (str(self.last_item[property]) !=
2520 str(self.current_item[property])):
2520 return 1 2521 return 1
2521 else: 2522 else:
2522 if (self.last_item[property]._value != 2523 if (self.last_item[property]._value !=
2523 self.current_item[property]._value): 2524 self.current_item[property]._value):
2524 return 1 2525 return 1

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