source: products/qPloneGoogleSitemaps/tags/0.6/skins/qPloneGoogleSitemaps/gsm_edit_pinging.cpy

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

Building directory structure

File size: 607 bytes
Line 
1## Script (Python) "gsm_edit_pinging"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=transitions=[]
8##title=Configure Plone Google Sitemap
9##
10
11from Products.qPloneGoogleSitemaps.utils import setWorkflowTransitions
12from Products.CMFCore.utils import getToolByName
13
14if not transitions:
15    w_tool = getToolByName(context, "portal_workflow")
16    transitions = [w + "#" for w in w_tool.listWorkflows()]
17
18setWorkflowTransitions(context, transitions)
19
20return state.set(portal_status_message = "Plone Google Sitemap updated.")
Note: See TracBrowser for help on using the repository browser.