form-controllerPythonScript-ZSQL
"javi lopez" <[email protected]> Wed, 7 Mar 2007 10:35:04 +0100
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone:
i´m doing a form where i get email and one ask. when I check that
email is valid, I do Controller Python Script where i want to create:
- DB conecction
- ZSQL method to modify DB
- get user session
and after i call a zpt, it tell me that all it´s ok
DB conection:
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', 'zforum@localhost zforum zforum'))
zsql:
how to do it????
Thanks for your help