[Zope] A Better Way (Stupid DTML code)
Baker, Dennis [sjmr]
DBaker@CHW.edu
Mon, 24 Jul 2000 14:54:39 -0700
I suppose my smug reply would be that min-XXXX is a variable generated by
dtml-in, I didn't pick the variable name.
> -----Original Message-----
> From: Andy McKay [mailto:AndyM@ActiveState.com]
> Sent: Friday, July 21, 2000 5:27 PM
> To: zope@zope.org
> Subject: Re: [Zope] A Better Way (Stupid DTML code)
>
>
> Other smug answers include:
> - dont put - in your SQL methods
> - use your SQL to give the variable a different name
> - use python
>
> ----- Original Message -----
> From: "Phil Harris" <phil.harris@zope.co.uk>
> To: <zope@zope.org>; "Dennis Baker" <dbaker@chw.edu>
> Sent: Friday, July 21, 2000 4:29 PM
> Subject: Re: [Zope] A Better Way (Stupid DTML code)
>
>
> > <dtml-in SQL_list_providers>
> > <dtml-if "_.int(_['min-provid']) < 20000">
> > <dtml-if sequence-start>
> > <h3>Search for Member Information</H3>
> > <dtml-var MemberSearchForm>
> > </dtml-if>
> > </dtml-if>
> > </dtml-in>
> >
> > ----- Original Message -----
> > From: Dennis Baker <dbaker@chw.edu>
> > To: <zope@zope.org>
> > Sent: Saturday, July 22, 2000 12:08 AM
> > Subject: [Zope] A Better Way (Stupid DTML code)
> >
> >
> > > 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>
> > >
> > >
> > > _______________________________________________
> > > Zope maillist - Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>