31 Jul
2002
31 Jul
'02
9:55 p.m.
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