7 Nov
2003
7 Nov
'03
9:23 p.m.
Kai Vermehr wrote at 2003-11-6 23:36 +0100:
Why do I get a KeyError (value. content_type) when I ask for the content type:
<td><span tal:replace="result/content_type">content type goes here</span></td>
content_type is a property of the resulting objects (images). 'title', 'id', 'height' and 'width' work perfectly.
What is "result"? If is comes from a catalog search, it is not the true object but only a proxy with the attributes defined by the catalog's "Metadata". Use its "getObject" method to get the true object. -- Dieter