Rather than go external I just used try/except nd asked for [0]. If it's nota list it won't give that up. It's just one line. Thanks. Andrew Edmondson writes:
Have a look at the python 'type' stuff. I think something like: ------- import types def is_list(obj): if type(obj) == types.ListType: return 1 else: return 0 -------
will do this, as an external method.
-Ed
On Tue, 29 Feb 2000, Jason Spisak wrote:
Zopists,
Does anyone know a test to see is an item is a list? <dtml-if "REQUEST.form.keys()[a] is list">
All my best,
-- Jason Spisak 444@hiretechs.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Andrew Edmondson 01684 897433
Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.