[zopeorg-checkins] CVS: Products/ZWiki - SubscriberList.py:1.8

Ken Manheimer klm at zope.com
Fri Dec 14 15:48:03 EST 2001


Update of /cvs-zopeorg/Products/ZWiki
In directory cvs.zope.org:/tmp/cvs-serv14417

Modified Files:
	SubscriberList.py 
Log Message:
Provide for unidexing only (on manage_beforeDelete in ZWikiPage).


=== Products/ZWiki/SubscriberList.py 1.7 => 1.8 ===
             REQUEST.RESPONSE.redirect(REQUEST['URL1'] + '/subscribeform')
 
-    def reindex_subscribers(self):
+    def reindex_subscribers(self, unindex_only=0):
         """Apply the subscribers index if we can acquare a catalog for it."""
         if self.dont_catalog or not hasattr(self, 'REQUEST'):
             pass
         elif hasattr(self, self.subscribers_catalog):
             catalog = getattr(self, self.subscribers_catalog)
             catalog.uncatalog_object(self)
-            catalog.catalog_object(self)
+            if not unindex_only:
+                catalog.catalog_object(self)
 
     ######################################################################
     # METHOD CATEGORY: containing folder subscription





More information about the zopeorg-checkins mailing list