source: products/qPloneGoogleSitemaps/tags/0.5/Extensions/

Last change on this file was 1, checked in by myroslav, 16 years ago

Building directory structure

File size: 349 bytes
1from Products.qPloneGoogleSitemaps.utils import ping_google
2from Products.CMFCore.utils import getToolByName
3def  ping_googlesitemap(state_change):
4    """ping sitemap to Google when document has published"""
5    plone_home = getToolByName(state_change.object, 'portal_url').getPortalObject().absolute_url()
6    ping_google(plone_home)
7    return 0 
Note: See TracBrowser for help on using the repository browser.