[Zope] form-script-zsql

robert rottermann robert at redcor.ch
Wed Mar 7 07:13:09 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

result = context.db_conn_id.db.query('YOUR QUERY HERE')
robert

javi lopez schrieb:
> 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
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF7qxVGaryJ0T9kUYRAkSHAJ9DrgVCp5K79z1NAsQv6hZQtLZMHQCeP8i/
7ewGRmvUrDkvr0zBDI1tHas=
=Tlfx
-----END PGP SIGNATURE-----


More information about the Zope mailing list