[Zope] accessing custom properties of file objects
Dieter Maurer
dieter@handshake.de
Thu, 20 Jun 2002 21:40:06 +0200
Jesse Goerz writes:
> I've been following the Zopebook and I'm trying to customize the file
> library. I have divided the files up into sections by adding a section
> property to each file. Here's a portion of the code:
>
> <div tal:condition="python:item.section == 'c'"
> tal:omit-tag>
> <td>
> <a href="http://sample"
> tal:attributes="href item/getId"
> tal:content="item/getId">File_link</a>
> </td>
> <td tal:content="item/file_size">Type</td>
> <td tal:content="item/title">Description</td>
> <td tal:content="item/date_mod" align="center">Last modified</td>
> </div>
>
> What's really strange is that this works:
> <div tal:condition="python:item.title == 'an_actual_file.zpt'"
> tal:omit-tag>
Hmm, you do not tell us, it what way the other code does not work...
exception? (which one, with Error Type/Value and tracebach)
wrong result?
something else?
Dieter