Skip to content

Commit 93a637e

Browse files
author
Ralf Schlatterbeck
committed
grouping by ID and grouping by transitive multilinks didn't work correctly.
1 parent a8d5c24 commit 93a637e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

roundup/cgi/templating.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ def __getitem__(self, item):
800800
self._nodeid, prop, items[0], value, self._anonymous)
801801
if htmlprop is not None:
802802
if has_rest:
803+
if isinstance(htmlprop, MultilinkHTMLProperty):
804+
return [h[items[1]] for h in htmlprop]
803805
return htmlprop[items[1]]
804806
return htmlprop
805807

@@ -2513,9 +2515,13 @@ def propchanged(self, *properties):
25132515
if self.last_item is None:
25142516
return 1
25152517
for property in properties:
2516-
if (self.last_item[property]._value !=
2517-
self.current_item[property]._value):
2518-
return 1
2518+
if property == 'id':
2519+
if (self.last_item['id'] != self.current_item['id']):
2520+
return 1
2521+
else:
2522+
if (self.last_item[property]._value !=
2523+
self.current_item[property]._value):
2524+
return 1
25192525
return 0
25202526

25212527
# override these 'cos we don't have access to acquisition

0 commit comments

Comments
 (0)