[Zope] Tiny Tables Plus's Constructor

Dieter Maurer dieter@handshake.de
Fri, 26 Apr 2002 22:37:36 +0200


Dennis Allison writes:
 > I've been using TTP and find it meets my needs for a "not quite a
 > database"  sort of object.  Up until now, I've created the tables using
 > the usual ZMI management interface.
 > 
 > Now I need to create, delete, and modify the tables programatically.  
 > I've don't quite understand the interface for the product.  A little help
 > would be much appreciated.
 > 
 > As I understand Zope, a Product's constructor is registerd with an
 > ObjectManager and accessed throught it, e.g.,
 > 
 >      self.manage_addproduct['OFSP'].manage_addFolder(id,title)
 > 
 > is the usual pattern for creating a folder.
That's the modern way to add an instance.

If TinyTable would use old style initialization (see mailing list archives),
then it would install its constructor not inside the product
but inside the folder (as so called folder method).
In this case, you would use: "self.manage_addXXXX()"...


Dieter