source: products/qPloneCaptchas/trunk/skins/captchas_ploneformmailer/2.5/formmailer_send.cpy @ 1

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

Building directory structure

  • Property svn:eol-style set to native
File size: 569 bytes
Line 
1# Controller Python Script "formmailer_send"
2##bind context=context
3##bind state=state
4##parameters=
5##title=Sends a formmailer form.
6##
7
8
9if context.getCPYAction():
10    state.setNextAction('traverse_to:'+context.getCPYAction())
11
12    # Need to change the state to something other than success, so that
13    # FormController can notice our overriding of the action.
14
15    state.set(status='scriptaction')
16
17    return state
18
19context.send_form()
20
21if context.getSentRedirect():
22    return state.set(next_action='redirect_to:string:'+context.getSentRedirect())
23
24return state
25
Note: See TracBrowser for help on using the repository browser.