[Zope] Dynamically choosing a ZSQLMethod to run
Holger Hoffmann
hohoff@rz.uni-potsdam.de
Thu, 06 Jan 2000 12:18:48 +0100
Hi,
you could try something like:
--- /
|
|-- dtml_method
|
+-- folder_a
| |
| |-- zsql_method
|
+-- folder_b
|
|-- zsql_method
and in dtml_method:
<dtml-in zsql_method>
...
</dtml-in>
Now /folder_a/dtml_method and /folder_b/dtml_method should do
what you want.
... Holger Hoffmann
Michael Wang-Helmke wrote:
>
> hi all,
>
> I have an application where I have several different SQL queries I want to
> do but I want to use the same DTML method to render the output. I imagine
> that I should be able to store a reference to a ZSQLMethod in a variable
> like thing and set it to the right query before I call the DTML method.
> Otherwise it seems like I need N display functions for the N queries. How
> can I do this?
>
> I have moderate experience in Python and enough experience in Zope to have
> built a bug tracking database system entirely in DTML (no external methods
> or external python products).
>
> thanks
>
> Michael Wang-Helmke
> Play, Incorporated
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )