source: products/PloneSMSCommunicator/trunk/skins/portal_smsCommunicator/validate_smsCommunicator.vpy @ 2284

Last change on this file since 2284 was 1, checked in by myroslav, 15 years ago

Building directory structure

File size: 514 bytes
Line 
1## Controller Python Script "validate_smsCommunicator"
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 = server_url
9##title=
10##
11from Products.PloneSMSCommunicator.Utils import isUrl
12if isUrl(server_url):
13    return state.set(status='success', portal_status_message='PloneSMSCommunicator properties was updated')
14else:
15    return state.set(status='failure', portal_status_message='Server address is incorrect')
Note: See TracBrowser for help on using the repository browser.