[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_edit.py:1.6
Ken Manheimer
klm@zope.com
Sun, 28 Oct 2001 23:53:06 -0500
Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv19222
Modified Files:
collector_edit.py
Log Message:
Providing for different recataloging options.
=== CMF/CMFCollector/skins/collector/collector_edit.py 1.5 => 1.6 ===
changes = "Changed: " + changes
-if context.REQUEST.get('recatalog', None):
- context.reinstate_catalog()
- changes = changes + ", Reinstated catalog"
+recatalog = context.REQUEST.get('recatalog', None)
+if recatalog:
+ if recatalog == 1:
+ context.reinstate_catalog(internal_only=1)
+ changes += ", reinstated catalog, reindexed internally"
+ else:
+ context.reinstate_catalog(internal_only=0)
+ changes += ", reinstated catalog, reindexed internally and site wide"
msg = '?portal_status_message=%s.' % url_quote_plus(changes)