[Zope-DB] ZPTs and database accesses

Charlie Clark charlie at egenix.com
Thu Apr 28 17:48:58 EDT 2005

On 2005-04-28 at 20:26:47 [+0200], Ken Winter <ken at sunward.org> wrote:
> Andreas -
> Thanks for your answer.  I'm relieved to know that the ZPT-ZSQL combination
> will suffice for database accesses.  As a Zope neophyte, though, I still
> need an example or tutorial showing me how to get data from page to database
> via ZPTs and ZSQL objects.  Can you point me to such a reference?

Yes, the Zope book is the place to look.

You create a ZSQL method with the SQL code

You then call this method through your ZPT or better in the case of posting 
from page to database a PythonScript which in turn calls the ZSQL method and 
passes the parameters.

Charlie Clark

Professional Python Services directly from the Source
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

More information about the Zope-DB mailing list