8 Aug
2000
8 Aug
'00
8:39 p.m.
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