[Zope3-dev] Re: What don't file-system-based developers need
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Feb 12 15:19:36 EST 2004
On Thursday 12 February 2004 13:07, Jeffrey P Shell wrote:
> I'd like to have the latter, even if I don't have something akin to SQL
> Methods. I just want a [service|utility] that I can configure and then
> send SQL Statements to and get result objects back from. The DTML SQL
> tags are nice, but I could live without them.
Check out zope/app/rdb/__init__.py. In there, there is a method (that is also
used by SQLScript) called queryForResults(connection, query). So you pass in
a connection and your query and out comes a result set in the usual Zope (2
and 3) format.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-dev
mailing list