[Zope-DB] Basic Zope-DB question
Jim Abramson
jabramson at wgen.net
Thu Jul 21 09:48:00 EDT 2005
let's say your DA 'instance' is located at /Database/cx1
In your FS Product code, you'd probably be able to get your hands on it
like this: self.Database.cx1
(This makes some very broad assumptions about how your Product is
structured, but hopefully it's a start for you)
Personally I think it's easier, as long as you're in an FS-based
Product, to deal directly with whatever database interface (bypassing
its Zope adapter and Zope's transaction machinery). The thing you
either lose or gain by doing this (it depends what your goals are): you
have to handle RDBMS transactions 'manually'.
hth
Jim
_____
From: zope-db-bounces at zope.org [mailto:zope-db-bounces at zope.org]
On Behalf Of Nicholas Wieland
Sent: Thursday, July 21, 2005 9:18 AM
To: zope-db at zope.org
Subject: [Zope-DB] Basic Zope-DB question
Hi *,
I'm developing a FS based product with Zope, and I need to
fetch some data from a DB (SQLServer).
I've installed the DA, got a connection, now I need to query the
db from within my product.
I've searched the web for documentation, but didn't find the
information I'm searching. From what I understand I have to acquire the
connection from Zope, but I don't know how.
TIA
ngw
_____
Yahoo! Mail
<http://us.rd.yahoo.com/mail_it/taglines/*http://it.mail.yahoo.com> :
gratis 1GB per i messaggi, antispam, antivirus, POP3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-db/attachments/20050721/4028b6a0/attachment.htm
More information about the Zope-DB
mailing list