Last change
on this file since 8 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
607 bytes
|
Rev | Line | |
---|
[1] | 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 | |
---|
| 11 | from Products.qPloneGoogleSitemaps.utils import setWorkflowTransitions |
---|
| 12 | from Products.CMFCore.utils import getToolByName |
---|
| 13 | |
---|
| 14 | if not transitions: |
---|
| 15 | w_tool = getToolByName(context, "portal_workflow") |
---|
| 16 | transitions = [w + "#" for w in w_tool.listWorkflows()] |
---|
| 17 | |
---|
| 18 | setWorkflowTransitions(context, transitions) |
---|
| 19 | |
---|
| 20 | return state.set(portal_status_message = "Plone Google Sitemap updated.") |
---|
Note: See
TracBrowser
for help on using the repository browser.