##parameters=change='', change_and_view='', ajax=''

form = context.REQUEST.form
if change and \
   context.plinndocument_edit_control(**form) and \
   context.setRedirect(context, 'object/edit', ajax=ajax) :
	return
elif change_and_view and \
	 context.plinndocument_edit_control(**form) and \
	 context.setRedirect(context, 'object/view', ajax=ajax) :
	return

return context.plinndocument_edit_template()
