[zopeorg-checkins] CVS: Products/ZWiki - SubscriberList.py:1.9
Ken Manheimer
klm at zope.com
Wed Dec 19 18:06:21 EST 2001
Update of /cvs-zopeorg/Products/ZWiki
In directory cvs.zope.org:/tmp/cvs-serv1749
Modified Files:
SubscriberList.py
Log Message:
.reindex_subscribers(): First of all, uncatalog_object() takes a
"uid", which is apparently the '/' delimited path to the object.
Second, we don't need to uncatalog before recataloging, so we only
uncatalog when that's all that's going to be done.
=== Products/ZWiki/SubscriberList.py 1.8 => 1.9 ===
+import string
###########################################################################
# CLASS SubscriberList
@@ -188,8 +189,10 @@
pass
elif hasattr(self, self.subscribers_catalog):
catalog = getattr(self, self.subscribers_catalog)
- catalog.uncatalog_object(self)
- if not unindex_only:
+ if unindex_only:
+ catalog.uncatalog_object(string.join(self.getPhysicalPath(),
+ '/'))
+ else:
catalog.catalog_object(self)
######################################################################
More information about the zopeorg-checkins
mailing list