hi *! I'm writing a new Zope Product and from the inside of this Product I would like to access a Zope database adapter. any hints how to that from inside a Zope Product? TIA! /hd
On Wed, Jul 31, 2002 at 01:33:32PM +0200, Hans-Dieter Stich wrote:
hi *!
I'm writing a new Zope Product and from the inside of this Product I would like to access a Zope database adapter.
any hints how to that from inside a Zope Product?
download and study GUF.
TIA!
/hd
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hans-Dieter Stich writes:
I'm writing a new Zope Product and from the inside of this Product I would like to access a Zope database adapter.
any hints how to that from inside a Zope Product? Usually, "self" in your methods is acquisition wrapped (exception "__init__"). In this case, you can use "self.your_database_adapter" to access the DA object via acquisition. Calling it give you a lower level database connection object which has a "query" method. You can pass an SQL command to this method.
More in the mailing list archives. Dieter
participants (3)
-
Dieter Maurer -
Hans-Dieter Stich -
Jim Penny