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

Ken Manheimer klm@zope.com
Mon, 22 Oct 2001 17:08:00 -0400


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

Modified Files:
	collector_search.py 
Log Message:
Resolve the path-index problem - use a path-join of the physical path
(.getPhysicalPath()), since that's how the CatalogTool indexes them.

Also wrapped some long lines.  (Yikes - when did i check in some
gruesome long lines?)


=== CMF/CMFCollector/skins/collector/collector_search.py 1.5 => 1.6 ===
 query['sort_on'] = 'created'
 query['Type'] = "Collector Issue"
-query['path'] = context.absolute_url(1)
+query['path'] = "/".join(context.getPhysicalPath())
 
 reqget = context.REQUEST.get
 subj_items = []
@@ -14,12 +14,14 @@
     val = reqget(field, None)
     if val:
         query[index_name] = val
-def supplement_subject_one(field, index_name=None, reqget=reqget, items=subj_items):
+def supplement_subject_one(field, index_name=None,
+                           reqget=reqget, items=subj_items):
     if not index_name: index_name = field
     val = reqget(field, None)
     if val:
         items.append('%s:%s' % (index_name, val))
-def supplement_subject_many(field, index_name=None, reqget=reqget, items=subj_items):
+def supplement_subject_many(field, index_name=None,
+                            reqget=reqget, items=subj_items):
     if not index_name: index_name = field
     vals = reqget(field, [])
     for i in vals: