source: products/qPloneGoogleSitemaps/tags/0.4.10/Extensions/ping_googlesitemap.py @ 1

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

Building directory structure

File size: 349 bytes
RevLine 
[1]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.