[ZPT] Confused about Zope
Chris Withers
chrisw@nipltd.com
Thu, 27 Feb 2003 15:31:46 +0000
Jean Jordaan wrote:
>> Not overly pretty, but certainly no less pretty than DTML...
>>
>> <dtml-sqlvar x type="string">
>>
>> <tal:x replace="sql.string:x"/>
Sorry, that should have read:
<tal:x replace="options/sql.string:x"/>
...so you know for definite where x is coming from.
> Myeah, but the whole template will still irrelevantly have to
> validate as xhtml somehow, won't it?
Why? ;-)
The following looks fine to me:
"""
insert into RequestPositionMap(OrganisationPositionID,
EvaluationRequestID,
Status)
values (<tal:x replace="options/sql.string:x"/>)
"""
...and, in fact, already works, bar the use of sql.string:
cheers,
Chris