722f3d0cf52744a2e76b824fe19bc4ba6ddc40db
1 ##parameters=addCriterion='', deleteCriteria='', editCriteria='', ajax=''
2 form
= context
.REQUEST
.form
5 context
.topic_add_criterion_control(**form
) and \
6 context
.setRedirect(context
, 'object/edit', ajax
=ajax
) :
9 elif deleteCriteria
and \
10 context
.topic_delete_criteria_control(**form
) and \
11 context
.setRedirect(context
, 'object/edit', ajax
=ajax
) :
14 elif editCriteria
and \
15 context
.topic_edit_criteria_control(**form
) and \
16 context
.setRedirect(context
, 'object/edit', ajax
=ajax
) :
19 options
= {'showAcCriteria' : same_type(context
.aq_parent
, context
)}
20 return context
.topic_edit_template(**options
)