Public feed
#380930
# for this below, the return is: <img src="http://localhost:8080/oguaira/fotos/wall8-1.jpg/image" alt="wall" title="wall" height="1200" width="1600"/>
imagem = context.uid_catalog.searchResults(UID=uid)[0]
foto = imagem.getObject()
return foto
# I'm trying this now to return an image_preview
imagem = context.uid_catalog.searchResults(UID=uid)[0]
foto = imagem.getObject()
return foto.absolute_url().image_preview()
# In page template, I make this:
<img tal:replace="structure foto/image_preview"/>
# But, in script python, I don't know how to make this.
# Any idea ?