## Controller Python Script "anon_reply"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind state=state
##bind subpath=traverse_subpath
##parameters=
##title=Send an URL to a friend
##
from Products.CMFCore.utils import getToolByName

REQUEST=context.REQUEST

anontool = getToolByName(context, 'portal_anonymailer')
msg_key = REQUEST.get('msg_key')
state_values = anontool.anonReply(msg_key, REQUEST.form)
return state.set(**state_values)
