[Zope] Zope Products and SQL

Dieter Maurer dieter@handshake.de
Sun, 1 Apr 2001 21:28:58 +0200 (CEST)


Farrell, Troy writes:
 > Is there any way (aside from importing database modules ie PoPy) to execute
 > SQL from a Zope Product?  Is it feasible to make the product inherit from
 > ZSQL methods and have them that way, or it is just easiest to use ZClasses?
You can have many types of use of Z SQL methods from products:

 * use a Z SQL method instance located and managed in
   the Zope hierarchy.
   Such instances would usually be accessed through acquisition.

 * instantiate a new Z SQL method instance as part
   of your product instances

 * derive one of your product classes from Z SQL methods
   (though I think this is rather rare)

 * ....


Dieter