[Zope-Checkins] CVS: Zope2 - Catalog.py:1.60.2.11

chrism@serenade.digicool.com chrism@serenade.digicool.com
Thu, 19 Apr 2001 13:07:30 -0400


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory serenade.digicool.com:/home/chrism/sandboxes/2_3Branch/lib/python/Products/ZCatalog

Modified Files:
      Tag: zope-2_3-branch
	Catalog.py 
Log Message:
Fixed bug in deleting sort specs from passed-in kw mapping.


--- Updated File Catalog.py in package Zope2 --
--- Catalog.py	2001/04/17 17:01:04	1.60.2.10
+++ Catalog.py	2001/04/19 17:07:29	1.60.2.11
@@ -635,12 +635,10 @@
         # Compute "sort_index", which is a sort index, or none:
         if kw.has_key('sort-on'):
             sort_index=kw['sort-on']
-            del kw['sort-on']
         elif hasattr(self, 'sort-on'):
             sort_index=getattr(self, 'sort-on')
         elif kw.has_key('sort_on'):
             sort_index=kw['sort_on']
-            del kw['sort_on']
         else: sort_index=None
         sort_order=''
         if sort_index is not None: