[CMF-checkins] CVS: CMF/CMFCollector - Collector.py:1.14

Ken Manheimer klm@zope.com
Sat, 27 Oct 2001 14:18:34 -0400


Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv6283

Modified Files:
	Collector.py 
Log Message:
addCollector(): Grant AccessInactivePortalContent to Anonymous, so
nobody has portal-catalog automatic culling of inactive occur.
Reason (from KNOWN_PROBLEMS.txt):

  Oct 27, 2001 Catalog search "active" content culling disabled --
    The CMF catalog search is supposed to automatically cull out items
    with expired expirration_date or unreached effective_date, unless
    the visitor has AccessInactivePortalContent permission.  This
    culling is not working correctly for the collector's internal
    catalog, at least in some versions, culling out *all* results.

    This looks like a CMF and/or ZCatalog bug, and i haven't been able
    to track where the proper behavior is supposed to be implemented.
    Hence, i've punted on this, and am setting collectors to grant
    Anonymous AccessInactivePortalContent (in Collector.py
    addCollectorIssue()), meaning that the active-status culling will
    not be happening for anyone.


=== CMF/CMFCollector/Collector.py 1.13 => 1.14 ===
                          roles=['Reviewer', 'Owner'],
                          acquire=1)
+    it.manage_permission(CMFCorePermissions.AccessInactivePortalContent,
+                         roles=['Anonymous', 'Reviewer', 'Manager', 'Owner'],
+                         acquire=1)
     if REQUEST is not None:
         try:    url=self.DestinationURL()
         except: url=REQUEST['URL1']