[Zope] form-script-zsql

javi lopez javi80mix at gmail.com
Wed Mar 7 07:05:23 EST 2007


I´m doing a form with username and email, these values go script
python and with a zsql method inside script, it stored in DB
I have a zpt with a form
I have a script python::

Connection DB::
db_system_type = REQUEST.get('db_system_type', 'mysql')
from Products.ZMySQLDA import DA
DA.manage_addZMySQLConnection(self, db_conn_id, '',
REQUEST.get('db_conn_str', 'zzz at localhost zzz zzz'))

#now i have to do zsql method to store the values in DB
how can i do it??? Can you help me???Thanks

When I fill in the form and i push "send" button, it store username
and email in DB


More information about the Zope mailing list