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
|
Rev | Line | |
---|
[1] | 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 | |
---|
| 9 | if 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 | |
---|
| 19 | context.send_form() |
---|
| 20 | |
---|
| 21 | if context.getSentRedirect(): |
---|
| 22 | return state.set(next_action='redirect_to:string:'+context.getSentRedirect()) |
---|
| 23 | |
---|
| 24 | return state |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.