[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.37
Ken Manheimer
klm@zope.com
Fri, 14 Dec 2001 21:57:38 -0500
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv20748
Modified Files:
CollectorIssue.py
Log Message:
Add issue invisibility, making it excluded from cataloging, hence not
visible in searches. This is necessary for the stub object, which we
need for the workflow-statuses introspection from the collector config
activity.
=== CMF/CMFCollector/CollectorIssue.py 1.36 => 1.37 ===
submitter_email = None
submitter_name = None
+ invisible = 0
version_info = ''
def __init__(self,
- id, container,
+ id, container,
title='', description='',
submitter_id=None, submitter_name=None,
submitter_email=None,
@@ -114,9 +115,11 @@
creation_date=None, modification_date=None,
effective_date=None, expiration_date=None,
assignees=None,
- file=None, fileid=None, filetype=None):
+ file=None, fileid=None, filetype=None,
+ invisible=0):
""" """
+ self.invisible = invisible
SkinnedFolder.__init__(self, id, title)
self._set_collector_path(container)
@@ -629,6 +632,8 @@
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
'indexObject')
def indexObject(self):
+ if self.invisible:
+ return
for i in (self._get_internal_catalog(),
getToolByName(self, 'portal_catalog', None)):
if i is not None:
@@ -645,6 +650,8 @@
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
'reindexObject')
def reindexObject(self, internal_only=0):
+ if self.invisible:
+ return
catalogs = [self._get_internal_catalog()]
if not internal_only:
catalogs.append(getToolByName(self, 'portal_catalog', None))