[Zope] type checking
    Chris Withers 
    chris at simplistix.co.uk
       
    Tue Apr 15 05:50:05 EDT 2008
    
    
  
Jaroslav Lukesh wrote:
> <dtml-try>
> <dtml-if "_.int(variable) = variable">
>    Variable is integer
> <dtml-else>
>    Variable is not integer
> </dtml-if>
> <dtml-except>
>    Variable is not number
> </dtml-try>
Argggh! My eyes! They bleeeeeed!
Please dear god just use a python script or external method...
Chris
-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk
    
    
More information about the Zope
mailing list