Back to index

plone3  3.1.7
disableSyndication.py
Go to the documentation of this file.
00001 ## Script (Python) "disableSyndication"
00002 ##title=Disable Syndication for a resource
00003 ##parameters=
00004 
00005 if context.portal_syndication.isSyndicationAllowed(context):
00006   context.portal_syndication.disableSyndication(context)
00007   return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Disabled')
00008 else:
00009   return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Not+Allowed')