cac3ae550ca724b2f58db95e0e12ce8d657b867e
1 ##parameters=change='', change_and_view='', ajax=''
3 form
= context
.REQUEST
.form
5 context
.link_edit_control(**form
) and \
6 context
.setRedirect(context
, 'object/edit', ajax
=ajax
):
8 elif change_and_view
and \
9 context
.link_edit_control(**form
) and \
10 context
.setRedirect(context
, 'object/view', ajax
=ajax
):
17 target
= context
.getActionInfo('object/edit')['url']
18 #buttons.append( {'name': 'change', 'value': 'Change'} )
19 buttons
.append( {'name': 'change_and_view', 'value': 'Change and View'} )
20 options
['form'] = { 'action': target
,
21 'listButtonInfos': tuple(buttons
) }
23 options
['ajax'] = ajax
25 return context
.link_edit_template(**options
)