Last change
on this file since 372 was
372,
checked in by chervol, 18 years ago
|
fixed interfaces
|
File size:
419 bytes
|
Line | |
---|
1 | ## Controlled Python Script "validate_dropdownmenu" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind state=state |
---|
7 | ##bind subpath=traverse_subpath |
---|
8 | ##parameters= |
---|
9 | ##title=Validates a drop down menu edit_form contents |
---|
10 | ## |
---|
11 | |
---|
12 | if state.getErrors(): |
---|
13 | context.plone_utils.addPortalMessage('Please correct the indicated errors.') |
---|
14 | return state.set(status='failure') |
---|
15 | return state |
---|
Note: See
TracBrowser
for help on using the repository browser.