Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3699:976191d749fb
grouping by ID and grouping by transitive multilinks didn't work correctly.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 08 Sep 2006 19:28:37 +0000 |
| parents | c2d232b377d5 |
| children | 9cc2566cc7d9 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Sep 06 08:14:59 2006 +0000 +++ b/roundup/cgi/templating.py Fri Sep 08 19:28:37 2006 +0000 @@ -800,6 +800,8 @@ self._nodeid, prop, items[0], value, self._anonymous) if htmlprop is not None: if has_rest: + if isinstance(htmlprop, MultilinkHTMLProperty): + return [h[items[1]] for h in htmlprop] return htmlprop[items[1]] return htmlprop @@ -2513,9 +2515,13 @@ if self.last_item is None: return 1 for property in properties: - if (self.last_item[property]._value != - self.current_item[property]._value): - return 1 + if property == 'id': + if (self.last_item['id'] != self.current_item['id']): + return 1 + else: + if (self.last_item[property]._value != + self.current_item[property]._value): + return 1 return 0 # override these 'cos we don't have access to acquisition
