[ZODB-Dev] Re: [Zope] Help with String conversion in Zope

Dennis Allison allison at sumeru.stanford.EDU
Thu Jun 12 07:54:59 EDT 2003


<dtml-if expr="_.same_type(standardkit_cost, 'Test')">
               ^^
You need to specify the name space.

On Thu, 12 Jun 2003, enrica dente wrote:

> Dear all,
> 
> I have a problem checking if an input from a form is a string or not and 
> then change it into a float. The Zope code I have written is as follows but 
> it does not work.
> 
> <dtml-if expr="same_type(standardkit_cost, 'Test')">
>    <dtml-call "REQUEST.set ('standardkit_cost', _.float(standardkit_cost))">
> 
> </dtml-if>
> 




More information about the ZODB-Dev mailing list