[zopeorg-checkins] CVS: Products/ZWiki - ZWikiPage.py:1.67
Ken Manheimer
klm at zope.com
Fri Dec 14 15:58:40 EST 2001
Update of /cvs-zopeorg/Products/ZWiki
In directory cvs.zope.org:/tmp/cvs-serv20225
Modified Files:
ZWikiPage.py
Log Message:
Add update of subscribers index upon page "lifecycle events" (add,
delete, clone).
Include the SubscriberList properties among the published ones.
=== Products/ZWiki/ZWikiPage.py 1.66 => 1.67 ===
{'id':'last_editor', 'type': 'string', 'mode': 'w'},
{'id':'last_log', 'type': 'string', 'mode': 'w'},
- )
+ ) + SubscriberList._properties
# define permissions
__ac_permissions__=(
@@ -1631,6 +1631,7 @@
pass # In artificial situations, eg migr.py.
elif hasattr(self, 'default_catalog') and self.default_catalog:
self.index_object()
+ self.reindex_subscribers()
def manage_beforeDelete(self, item, container):
"Unindex content object before it is deleted."
@@ -1641,6 +1642,7 @@
self.unindex_object()
except:
pass
+ self.reindex_subscribers(unindex_only=1)
def manage_afterClone(self, item):
"Used when copying and pasting"
@@ -1648,6 +1650,7 @@
pass # In artificial situations, eg migr.py.
elif hasattr(self, 'default_catalog') and self.default_catalog:
self.index_object()
+ self.reindex_subscribers()
def prep_citation(self, rfind=string.rfind, strip=string.strip):
"""Quote text for use in literal citations.
@@ -3117,7 +3120,7 @@
</dtml-comment>
<dtml-try>
<dtml-if expr="(not nonmember)">
- <dtml-let catalogurl="SiteIndex.absolute_url()">
+ <dtml-let catalogurl="SubscribersIndex.absolute_url()">
Click <a href=
"&dtml-catalogurl;/search?subscribers=&dtml.url_quote-username;">here</a>
to search for all your page subscriptions.
More information about the zopeorg-checkins
mailing list