[Zope] stupid question

Jonothan Farr jfarr@real.com
Tue, 6 Mar 2001 14:37:05 -0800


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 )
>