On s'apprête à customiser le comportement aux requêtes PUT. Copie telle quelle du...
[Plinn.git] / skins / content / topic_edit_form.py
1 ##parameters=addCriterion='', deleteCriteria='', editCriteria='', ajax=''
2 form = context.REQUEST.form
3
4 if addCriterion and \
5 context.topic_add_criterion_control(**form) and \
6 context.setRedirect(context, 'object/edit', ajax=ajax) :
7 return
8
9 elif deleteCriteria and \
10 context.topic_delete_criteria_control(**form) and \
11 context.setRedirect(context, 'object/edit', ajax=ajax) :
12 return
13
14 elif editCriteria and \
15 context.topic_edit_criteria_control(**form) and \
16 context.setRedirect(context, 'object/edit', ajax=ajax) :
17 return
18
19 options = {'showAcCriteria' : same_type(context.aq_parent, context)}
20 return context.topic_edit_template(**options)