[Zope] A Better Way (Stupid DTML code)

Dennis Baker dbaker@chw.edu
22 Jul 2000 07:08:19 +0800


Ok,  there has to be a better way of doing this,  I just want to show a
dialog if there minimum value of a field is lower than 20,000.  This is
the only way I could figure out to do this,  Python seems to choke on
variables with Hyphens so I have to use the dtml-let....  It works but
it's a STUPID way to do things.


<dtml-in SQL_list_providers>
  <dtml-let min_provid=min-provid>
    <dtml-if "min_provid < '20000'">
      <dtml-if sequence-start>
        <h3>Search for Member Information</H3>
        <!-- ** Show the Member Search Form **  -->
        <dtml-var MemberSearchForm>
      </dtml-if>
    </dtml-if>
  </dtml-let>
</dtml-in>