Last change
on this file was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
File size:
786 bytes
|
Line | |
---|
1 | ## Script (Python) "gsm_edit_settings" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters=states, portalTypes, blackout_list, reg_exp, urls |
---|
8 | ##title=Configure Plone Google Sitemap |
---|
9 | ## |
---|
10 | |
---|
11 | from Products.CMFCore.utils import getToolByName |
---|
12 | from Products.qPloneGoogleSitemaps.utils import setWorkflowTransitions |
---|
13 | import Products.qPloneGoogleSitemaps.config as config |
---|
14 | |
---|
15 | props = getToolByName(context,'portal_properties').googlesitemap_properties |
---|
16 | props.manage_changeProperties( states=states, portalTypes=portalTypes, |
---|
17 | blackout_list=blackout_list, reg_exp = reg_exp, |
---|
18 | urls = urls) |
---|
19 | |
---|
20 | return state.set(portal_status_message = 'Plone Google Sitemap updated.') |
---|
Note: See
TracBrowser
for help on using the repository browser.