[Zope-DB] Reference DTML-sqlvar in ZPT?
Richard Flaaten
richard at flaaten.com
Mon Jul 30 13:31:23 EDT 2007
I guess my questions are confusing since I am new to Zope. The dtml-sqlvar
is already defined; the results from the Z SQL Method are already
presented; I just want to "remind" the user of what they passed to the Z
SQL Method.
In other words, I only want to print what they selected from a drop-down
list and passed to the Z SQL Method. I just want to print an already
defined variable. The problem is: how to print a dtml-sqlvar in ZPT? I
tried
<p tal:replace="dtml-sqlvar/dropdown-selection">dropdown-selection goes
here</p>
Which did not work.
Richard
<quote who="Charlie Clark">
> Am 30.07.2007, 19:18 Uhr, schrieb Richard Flaaten <richard at flaaten.com>:
>
> Richard,
>
> although this is actually a ZPT issue and nothing specific to do with
> RDBMS.
>
>> All I want to do is use the dtml-sqlvar argument as a string in my ZPT.
> ^^^^^^^^^^^^^^^^^^^^
>
>> My ZPT is simply a report containing the results of the SQL query; I
>> need to
>> use the argument as a title for the page. I am not passing any arguments
> ^^^^^^^^^^^^^^^^^^^^^
>> in the ZPT.
>
> Your explanation is self-contradictory: you seem to want to use an
> argument within ZPT without passing it or defining it? Please provide a
> code snippet.
>
> Charlie
> --
> Charlie Clark
> eGenix.com
>
> Professional Python Services directly from the Source
>>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
> ________________________________________________________________________
>
> :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
>
> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
> Registered at Amtsgericht Duesseldorf: HRB 46611
>
More information about the Zope-DB
mailing list