[Zope] some Properties show, others produce an Error /kv
    Dieter Maurer 
    dieter at handshake.de
       
    Fri Nov  7 16:23:23 EST 2003
    
    
  
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
    
    
More information about the Zope
mailing list