0c0406f3dc27d8ad012bc9a83b778e9d29532930
1 ## Script (Python) "topic_addCriterion"
2 ##bind container=container
6 ##bind subpath=traverse_subpath
7 ##parameters=field, criterion_type, **kw
12 context
.addCriterion(field
=field
, criterion_type
=criterion_type
)
13 return context
.setStatus(True, 'Criterion added.')
15 return context
.setStatus(False, 'Criterion adding canceled.')