Affichage barre de progression et image en local lors de l'upload.
[Plinn.git] / skins / control / topic_add_criterion_control.py
1 ## Script (Python) "topic_addCriterion"
2 ##bind container=container
3 ##bind context=context
4 ##bind namespace=
5 ##bind script=script
6 ##bind subpath=traverse_subpath
7 ##parameters=field, criterion_type, **kw
8 ##title=
9 ##
10
11 try :
12 context.addCriterion(field=field, criterion_type=criterion_type)
13 return context.setStatus(True, 'Criterion added.')
14 except :
15 return context.setStatus(False, 'Criterion adding canceled.')