rendered paste body<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" i18n:domain="plone"><body><div metal:define-macro="portlet"><tal:recentlist tal:define="caminho python: context.retornaPasta(); results python:request.get('items', here.portal_catalog.searchResults({ 'path': caminho, 'portal_type': ['ATPhoto','ATPhotoAlbum']}));"><p tal:replace="structure caminho"/><div class="portlet" id="portlet-recent"> <!-- span class="portletTopLeft" /--> <!-- span class="portletTopRight" /--> <tal:items tal:repeat="obj results"> <div class="portletItem" tal:define="oddrow repeat/obj/odd; item_wf_state obj/review_state; item_wf_state_class python:'state-' + here.plone_utils.normalizeString(item_wf_state); item_type_class python: 'contenttype-' + normalizeString(obj.portal_type);" tal:attributes="class item_type_class; style string:margin-bottom:1em"> <a href="" tal:attributes="href string:${obj/getURL}/view; title obj/Description; class string:$item_wf_state_class"> <img tal:replace="structure python:obj.getObject().tag(scale='tile')"/> </a> </div> </tal:items> <!-- span class="portletBottomLeft" /--> <!-- span class="portletBottomRight" /--></div></tal:recentlist></div></body></html>