Re: [Zope] type checking

2008-04-15 Thread Chris Withers

Jaroslav Lukesh wrote:



   Variable is integer

   Variable is not integer


   Variable is not number



Argggh! My eyes! They bleed!

Please dear god just use a python script or external method...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type checking

2008-04-14 Thread Jonathan


- Original Message - 
From: "Jaroslav Lukesh" <[EMAIL PROTECTED]>

To: "Garry Saddington" <[EMAIL PROTECTED]>; 
Sent: Monday, April 14, 2008 4:48 PM
Subject: Re: [Zope] type checking





   Variable is integer

   Variable is not integer


   Variable is not number



The 'same_type' function  may be what you are looking for:


 a is a list

 a is a dict





Jonathan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type checking

2008-04-14 Thread Jaroslav Lukesh

Sorry, syntax error:


---^

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type checking

2008-04-14 Thread Jaroslav Lukesh



   Variable is integer

   Variable is not integer


   Variable is not number



- Original Message - 
From: "Garry Saddington" <[EMAIL PROTECTED]>




Is there any way to do data type checking in dtml-if, for example to check
that a variable is an integer? 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )