[Zope-dev] DB Connection Question

Dieter Maurer dieter@handshake.de
Tue, 8 Aug 2000 22:39:38 +0200 (CEST)


Andre Schubert writes:
 > I have written a Product ....
 > and now i want
 > to use a Zope DatabaseConnection added to the same folder.
Unless you are in a constructor, your product's "self"
has an acquisition context.
It usually contains the folder containing your product instance.
Therefore, if "DC" is the name of your database connection,
you can access it by "self.DC" or "getattr(self,'DC')".


Dieter