[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Relational
Database Connectivity
webmaster at zope.org
webmaster at zope.org
Thu May 13 06:20:23 EDT 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/RelationalDatabases.stx#2-36
---------------
Notice that this SQL code also contains DTML. The DTML code in this
template is used to insert the values of the arguments into the SQL
code that gets executed on your database. If the *emp_id* argument
had the value *42*, the *first* argument had the value *Bob* your
*last* argument had the value *Uncle* and the *salary* argument had
the value *50000.00* then the query template would create the
following SQL code::
insert into employees (emp_id, first, last, salary) values
(42,
'Bob',
'Uncle',
50000.00
)
% Anonymous User - May 8, 2004 3:10 am:
Do those of us trying to use ZPT instead of DTML have a tal:type option here, or do we need to use DTML in
this case?
% Anonymous User - May 13, 2004 6:20 am:
No, ZPT is not suitable for constructing anything other than XML type documents. This is by nature of it
being an XML based construction language, rather than a textual substitution language like DTML is.
More information about the ZDP
mailing list