[Zope] Running SQL agains tDA

Chris Bruce chris at chrisbruce.com
Tue Mar 2 12:57:25 EST 2004


How do I get the connection object in Product?  restrictedTraverse?  Also,
what do I call?


Chris

----- Original Message ----- 
From: Chris Withers
To: Chris Bruce
Cc: zope at zope.org
Sent: Tuesday, March 02, 2004 6:39 AM
Subject: Re: [Zope] Running SQL agains tDA


Chris Bruce wrote:

> I am trying to figure out how to execute queries against ZMysqlDA
connection
> through my python based product.  I would really like to use the DA
> interface so that my product will work with any database connection.  Can
> someone provide an example or tell me which method I should be calling?

If you call the mysql connection object, you should get something that'll be
useful to you :-)

cheers,

Chris




More information about the Zope mailing list