Hello all, I'm sure this is a terribly newbie question, but couldn't concoct a useful search of the archives. Feel free to just point me to some reference if appropriate. First I'll show what does work, and then a variation on it that doesn't work. --------- Example #1 (this works - REQUEST is passed to the script): DTML Method 'foo' <form method="get" action="processForm"> ... </form> Python Script 'processForm' (parameter list = REQUEST) ... do something with REQUEST ... ---------- Example #2 (doesn't work - REQUEST isn't passed to script) DTML Method 'foo' <form method="get" action="processFormResponse"> ... </form> DTML Method 'processFormResponse' <dtml-call processForm> Python Script 'processForm' (parameter list = REQUEST) ... do something with REQUEST... With this sequence, I get an error that indicates REQUEST is not being passed to the script. Questions: 1. In example #2, how can I make REQUEST get passed to script automatically, as it is in example #1? 2. In example #2, how can I explicitly pass the REQUEST object from the DTML method 'processFormResponse' to Python script 'processForm' using <dtml-call>? Thanks for any help at all, Dave __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Dave Still wrote:
[snip]
With this sequence, I get an error that indicates REQUEST is not being passed to the script.
[snip]
Thanks for any help at all, Dave
In general you do not need to explicitly pass REQUEST to a Python script. use "context.REQUEST" to access it. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
Casey, Yes, that is one of the myriad things I've tried. In my example #2, REQUEST is apparently not in the context. Dave --- Casey Duncan <cduncan@kaivo.com> wrote:
In general you do not need to explicitly pass REQUEST to a Python script.
use "context.REQUEST" to access it.
-- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
participants (2)
-
Casey Duncan -
Dave Still