|
Last change
on this file since 8 was
1,
checked in by myroslav, 21 years ago
|
|
Building directory structure
|
|
File size:
349 bytes
|
| Line | |
|---|
| 1 | from Products.qPloneGoogleSitemaps.utils import ping_google |
|---|
| 2 | from Products.CMFCore.utils import getToolByName |
|---|
| 3 | def 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.