[Zope-DB] How can I dynamically generate a Z Search Interface?

Dieter Maurer dieter@handshake.de
Fri, 30 Aug 2002 22:35:38 +0200


Tena Sakai writes:
 > So far what I have been doing is to generate Z Search Interface
 > statically.  Ie., I have some Z SQL method, which typically looks
 > like:
 >       select  *
 >         from  mytable
 > 
 > and then I manually "add" Z Search Interface based on this Z SQL
 > method.  I use resultant dtml method in the way I want.  It works
 > quite well.
 > 
 > But now I want to do this dynamically. 
I am not sure, what you want precisely:

  You create Z SQL Methods dynamically and want Z Search Interfaces
  for them, right?

  This is easy, when the Z SQL Methods are created as persistent
  objects inside the ZODB.
  Then, my standard hint applies: whatever you can do via
  the ZMI, you can do programmatically. Look at the relevant
  ZMI source and learn how it does its task...

  Search the mailing list archives for "ZMI" and "programmatically"
  to learn more.


Dieter