Discuss from ZPT(forms) to python scripts? in the Python Programming forum on Dev Shed. from ZPT(forms) to python scripts? Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
from ZPT(forms) to python scripts?
Hi,
Im now working with forms from zope page templates. Im accepting inputs of the Username and Password. The names of the input on the forms are '__ac_name' and '__ac_password'
They are named this way because of the use of cookies in Plone.
I would then create a python script but i couldnt pass in the parameter because "_" is not a valid character for parameters. I figure a variable passed is only a string. Is there any way around this?
Last edited by JuiceMan : January 16th, 2004 at 04:21 PM.
if success == 'true':
return context.restrictedTraverse(login_success)()
return context.restrictedTraverse(login_failed)()
I'm working from the ZMI and the zmi gives me this error message:
Line 1: "__ac_name" is an invalid variable name because it starts with "_"
Line 1: "__ac_password" is an invalid variable name because it starts with "_"