----- Original Message -----
From: "Christian Steinhauer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, December 01, 2006 8:50 AM
Subject: RE: [Zope] How to get the type of an object by dtml
Could anyone help me.. how do I use DTML to return the type of the
object I'm currently working with?
I missed the beginning of this thread, but if you are trying to find out the
basic type (int, float, list etc), you can use the same_type method.
eg.
<dtml-let r="2.0">
<dtml-if "_.same_type(r, 1.0)">
found float
</dtml-if>
</dtml-let>
same_type will return TRUE if the two parameters are the same type. You can
use this to test for float, int, list, etc.
hth
Jonathan
_______________________________________________
Zope maillist - [email protected]
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 )