it seems i was performing some uneccessary steps here. i can just print the getContentType method. the problem is trying to trap just the object type. this works: <ul> <dtml-in expr="PARENTS[0].objectValues('File')"> <li><a href="<dtml-var absolute_url>"><dtml-var id></a> <dtml-var getContentType></li> </dtml-in> </ul> so the problem is with this: <dtml-if sequence-item.objectValues(['File'])> i must find another way to trap for File objects during the iteration. -<mike>- -----Original Message----- From: Jonothan Farr [mailto:jfarr@real.com] Sent: Tuesday, March 06, 2001 5:37 PM To: michaelangelo@webmind.com Cc: zope Subject: Re: [Zope] stupid question Python doesn't like the "sequence-item.getContentType()" part. Try: "_['sequence-item'].getContentType()" --jfarr ----- Original Message ----- From: "michael angelo ruberto" <michaelangelo@webmind.com> To: <zope@zope.org> Sent: Tuesday, March 06, 2001 2:26 PM Subject: [Zope] stupid question
hi,
why doesn't this work?
<dtml-if sequence-item.objectValues(['File'])> <td bgcolor="#EEEEEE"><dtml-let cType="sequence-item.getContentType()"><dtml-var cType></dtml-let></td> <dtml-else> <td bgcolor="#EEEEEE"><dtml-var meta_type></td> </dtml-if>
is there some other way to display the content type of a file?
thanks
-<mike>-
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )