[Zope3-checkins] CVS: Products3/z3checkins - message.py:1.10

Marius Gedminas mgedmin@codeworks.lt
Fri, 18 Apr 2003 04:40:21 -0400


Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv15581

Modified Files:
	message.py 
Log Message:
z3checkins: make sure "same as previous" works in the presence of bookmarks.


=== Products3/z3checkins/message.py 1.9 => 1.10 ===
--- Products3/z3checkins/message.py:1.9	Fri Apr 18 04:30:35 2003
+++ Products3/z3checkins/message.py	Fri Apr 18 04:39:50 2003
@@ -325,12 +325,15 @@
         html = []
         previous_message = None
         for item in self.checkins(start=start, size=size):
-            same_as_previous = item.log_message == previous_message
+            if ICheckinMessage.isImplementedBy(item):
+                same_as_previous = item.log_message == previous_message
+                previous_message = item.log_message
+            else:
+                same_as_previous = None
             view = getView(item, 'html', self.request)
             output = view(template_usage=usage,
                           same_as_previous=same_as_previous)
             html.append(output)
-            previous_message = item.log_message
         return "".join(html)
 
     def count(self):