[Zope] database connection in script

Jonathan dev101 at magma.ca
Wed Mar 7 08:00:42 EST 2007


----- Original Message ----- 
From: "javi lopez" <javi80mix at gmail.com>
To: "Jonathan" <dev101 at magma.ca>; <zope at zope.org>
Sent: Wednesday, March 07, 2007 7:54 AM
Subject: Re: [Zope] database connection in script


> my database is Mysql. can you help me?Thanks


The easiest way to do this is to:

1- create a database/table in MySQL
2- use the ZMI to add a Z SQL Method
3- you can then have your python script call the Z SQL Method to access (ie 
add/modify/delete/search) the MySQL db

Here is a link to the relational database connectivity section of the Zope 
Book:

http://www.plope.com/Books/2_7Edition/RelationalDatabases.stx



Jonathan




More information about the Zope mailing list