[Zope] accessing custom properties of file objects
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'"
> <a href="http://sample"
> tal:attributes="href item/getId"
> <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>
> What's really strange is that this works:
> <div tal:condition="python:item.title == 'an_actual_file.zpt'"
Hmm, you do not tell us, it what way the other code does not work...
exception? (which one, with Error Type/Value and tracebach)