...
 
<tal:block tal:define="information_list here/getAttachmentInformationList">
<ul>
<li tal:repeat="information information_list">
<a tal:content="information/filename | information/uid" tal:attributes="href python:'getAttachmentData?index:int=%s' % information['index']"/>
<a target="_blank" tal:content="information/filename | information/uid" tal:attributes="href python:'%s/getAttachmentData?index:int=%s' % (context.absolute_url(), information['index'])"/>
(<tal:block tal:content="information/content_type" />)
</li>
</ul>
......
......@@ -460,7 +460,16 @@ class ProxyField(ZMIField):
if candidate_folder is not None:
proxy_form = candidate_folder._getOb(form_id, None)
if proxy_form is not None:
proxy_field = proxy_form._getOb(field_id, None)
# proxy_form was retrieved outside of skin magic, fake the
# acquisition context skin magic would have produced so it
# works the same (ex: for acquired permissions).
# The drawback is that the form the field is actually comming
# from will be harder to identify, but that's just how skins
# work.
proxy_field = aq_base(proxy_form).__of__(portal)._getOb(
field_id,
None,
)
if proxy_field is not None:
break
......