source: products/qRSS2Syndication/trunk/skins/qrss2syndication/validate_rss2_setup.vpy @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 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##
11articles_number = context.REQUEST.get('articles_number')
12try:
13  z = int(articles_number)
14except:
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.')
17return state
18
19
Note: See TracBrowser for help on using the repository browser.