[Zope3-checkins] CVS: Products3/z3checkins - message.py:1.8
Marius Gedminas
mgedmin@codeworks.lt
Fri, 18 Apr 2003 02:58:19 -0400
Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv1143
Modified Files:
message.py
Log Message:
z3checkins: do not place bookmarks if the user is not looking at the first
batch.
=== Products3/z3checkins/message.py 1.7 => 1.8 ===
--- Products3/z3checkins/message.py:1.7 Wed Apr 16 18:01:48 2003
+++ Products3/z3checkins/message.py Fri Apr 18 02:57:48 2003
@@ -262,6 +262,8 @@
def placeBookmark(self):
"""Place a new bookmark after the latest checkin message in a
cookie."""
+ if int(self.request.get('start', 0)) > 0:
+ return # The user can't see the newest checkins
if not hasattr(self, '_archive'):
self._archive = getAdapter(self.context, ICheckinMessageArchive)
if not self._archive: