[Zope] how improving dtml-in nested?

mbr yourpadre at gmail.com
Tue Jun 20 10:58:38 EDT 2006


i have two dtml-in nested

....
   <dtml-in ZSQLMethod>
      <tr>
         <td>&dtml-field1; </td><td>&dtml-field2; </td>
         <td>
            <select>
               <dtml-in AnotherZSQLMethod>
                   <option <dtml-if
expr="anotherfield1==field3">selected</dtml-if>
value="&dtml-anotherfield1;">&dtml-anotherfield2;</option>
               </dtml-in>
            </select>
         </td>
      </tr>
   </dtml-in>
....


but they are many calls to AnotherZSQLMethod.
So I am trying this

<dtml-let RS=AnotherZSQLMethod>   <----return results to one variable
   <dtml-in ZSQLMethod>
      <tr>
         <td>&dtml-field1; </td><td>&dtml-field2; </td>
         <td>
            <select>
               <dtml-in RS>
                   <option <dtml-if
expr="anotherfield1==field3">selected</dtml-if>
value="&dtml-anotherfield1;">&dtml-anotherfield2;</option>
               </dtml-in>
            </select>
         </td>
      </tr>
   </dtml-in>
</dtml-let>

i think this is more quick Check data in memory (variable RS) what a
ZSQLMethod. But is real. RS is a result of ZSQL or a instance?


ps. Sorry for my english.
-- 
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida


More information about the Zope mailing list