[CMF-checkins] CVS: CMF - disableSyndication.py:1.1 disableSyndication.dtml:NONE

andrew@digicool.com andrew@digicool.com
Wed, 27 Jun 2001 12:01:54 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory korak.digicool.com:/tmp/cvs-serv13884

Added Files:
	disableSyndication.py 
Removed Files:
	disableSyndication.dtml 
Log Message:

*conversion to python script.



--- Added File disableSyndication.py in package CMF ---
## Script (Python) "disableSyndication"
##title=Disable Syndication for a resource
##parameters=

if context.portal_syndication.isSyndicationAllowed(context):
  context.portal_syndication.disableSyndication(context)
  return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Disabled')
else:
  return context.REQUEST.RESPONSE.redirect(context.absolute_url() + '/synPropertiesForm?portal_status_message=Syndication+Not+Allowed')

--- Removed file disableSyndication.dtml from package CMF --