[Zope] REQUEST question

Bocquillon Philippe Philippe.Bocquillon@trasys.be
Sat, 29 Sep 2001 16:37:32 +0200


Hello,

I am using <dtml-tree> to display (and edit) the contents of an XML
document.
In this document several elements can have the same tag name 'item'.
It can be that the person who is editing the XML doc has expanded and edited
only one of these items, in that case the REQUEST object is containing a
string.
If more than one item are expanded, REQUEST contains a list of strings.
How can my Python code processing the REQUEST know that REQUEST.item is
simply a string or a list of strings ?
How can I check the type/class of an object in Python ?

Thanks a lot in advance,

Philippe