thanks Paul, you're very patient. Unfortunately, I still can't set the FORM section of the REQUEST. I keep getting the error: 'dict' object has no attribute 'set' for either of the following scripts. Any ideas where I am going wrong? Python Script ------------------------------- #Get the HTML request object myrequest = container.REQUEST #preset the request field myrequest.form.set('aformfield', 'a value') #go to the form return context.theform(REQUEST=myrequest) Python Script ------------------------------- #preset the request field container.REQUEST.form.set('aformfield', 'a value') #go to the form return context.theform(REQUEST=container.REQUEST)
On Mon, Feb 23, 2004 at 03:49:25PM -0500, AdvertisingDept wrote:
thanks Paul, you're very patient.
Unfortunately, I still can't set the FORM section of the REQUEST.
I keep getting the error: 'dict' object has no attribute 'set'
Oops. I don't muck with request.form directly very much, as you may have noticed ;-) does it work if you treat it like a plain python dict? (which apparently it is). #Get the HTML request object myrequest = container.REQUEST #preset the request field myrequest.form['aformfield'] = 'a value' #go to the form return context.theform(REQUEST=myrequest) -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's GARGANTUAN GUITAR OF CHRISTMAS! (random hero from isometric.spaceninja.com)
participants (2)
-
AdvertisingDept -
Paul Winkler