Last change
on this file since 359 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
551 bytes
|
Line | |
---|
1 | ## Controlled Python Script "validate_rss2_setup" |
---|
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 an email |
---|
10 | ## |
---|
11 | articles_number = context.REQUEST.get('articles_number') |
---|
12 | try: |
---|
13 | z = int(articles_number) |
---|
14 | except: |
---|
15 | state.setError('articles_number', 'The articles number value should be integer') |
---|
16 | return state.set(status='failure', portal_status_message='Please correct the indicated errors.') |
---|
17 | return state |
---|
18 | |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.