[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_issue_followup.py:1.6

Ken Manheimer klm@zope.com
Mon, 29 Oct 2001 00:16:40 -0500


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv23715

Modified Files:
	collector_issue_followup.py 
Log Message:
When completing, just return to the collector default browse.  We
might could qualify the search to issues submitted after the current,
but setting b_start to after the current is **wrong** - b_start refers
to the index in the batch, which generally is way different than the
issue number.  For now, do the simplest thing until it's worth the
trouble to implement the right thing.  (Jim and other heavy collector
users *do* like being able to continue the browse with the issue after
the completed one, so it may be worth the while at some point.)


=== CMF/CMFCollector/skins/collector/collector_issue_followup.py 1.5 => 1.6 ===
 
 if context.status() in ['Resolved', 'Rejected', 'Deferred']:
-    collector = context.aq_parent
-    destination = collector.absolute_url()
-    if len(collector) > int(context.id):
-        destination = destination + "?b_start:int=%s" % int(context.id)
+    destination = context.aq_parent.absolute_url()
 else:
     destination = context.absolute_url()