29 Sep
2001
29 Sep
'01
2:37 p.m.
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