[Zope] sql

Spinwing spinwing@inwind.it
Mon, 19 Feb 2001 10:04:52 +0100


Hello

in a previous message I read

....

and then you can call it e.g. from a DMTL method 'createManyTable':

  <dtml-call "REQUEST.set('list',('table1','table2'))">
  <dtml-in list>
    <dtml-call "REQUEST.set('myName',_['sequence-item'])">
   <dtml-call createTable>
  </dtml-in>

.....

the idea is nice, pushing values on top of the REQUEST to resolve them by
the ZSQL method. However, suppose I have a method like:

id: add_dummy_table

create table <dtml-var table_name> (
 dummy INTEGER
)


Now, if I call it in the form

<dtml-var standard_html_header>
<dtml-call expr="add_dummy_table(table_name='test')">
<dtml-var standard_html_footer>

It works as well.

Now my question is, is it just a question of personal style, or there is a
more subtle advantage in pushing values in the REQUEST object?

Thanks and regards
Stefano