[Zope] ZClasses and ZSQL

Dieter Maurer dieter@handshake.de
Tue, 8 Jan 2002 23:13:46 +0100


David Kyte writes:
 > Has anyone any experience of using ZSQL in 
 > ZCLASSES. 
Yes, me (e.g.).

 > I installed a connector in the ZCLASS within my
 > product. The ZSQL method couldn't find the connector.
 > I then placed the connector in the Product directory
 > and the ZSQL method found it ok. I could then test
 > the ZSQL method - works fine.
The Connection in your Product is just for creating and testing
the Z SQL Method.

 > I then tried to install my product and couldn't get 
 > the class to find the connector.
Create an additional Connection in the acquisition chain of
your instance. This may either be a "Method" in the ZClass
or a Connection somewhere in a folder on the way from your
instance up to the root.

 > I guess my problem is one object referring to 
 > another object in the ZCLASS.
No. It is an unintuitive name lookup order.


Dieter