## Controller Python Script "editSynProperties"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind state=state
##bind subpath=traverse_subpath
##parameters=
##title=Edit Syndication Properties
##

REQUEST=context.REQUEST
pSyn = context.portal_syndication
pSyn.editSyInformationProperties(context,
                                 REQUEST['updatePeriod'],
                                 REQUEST['updateFrequency'],
                                 REQUEST['updateBase'],
                                 REQUEST['max_items'],
                                 REQUEST)
from Products.CMFPlone import transaction_note
transaction_note('Updated syndication properties for %s at %s' % (context.title_or_id(), context.absolute_url()))

return state.set(portal_status_message='Syndication properties updated.')
