[Zope] Python, Pre-Fill Form Fields
AdvertisingDept
Layne.Bilyeu at robbstucky.net
Mon Feb 23 15:49:25 EST 2004
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)
More information about the Zope
mailing list