plone/Products.ResourceRegistries — pull request #4 by datakurre (2012-03-17 00:48:51+00:00)
Title: Adds support for OFS.Image.File-objects using OFS.Image.Pdata

This should fix https://dev.plone.org/ticket/12479

Currently (at least with Zope 2.13.10), if you happen to override a resource registered in a resource registry by uploading a resource as a OFS.Image.File into the custom folder under portal_skins, resource registries fail to merge the resource. This happens also, when you accidentally "customize" a registered "Filesystem File" from some skin folder and save it as such into the custom-folder (it becomes OFS.Image.File).

The failure is caused by BaseRegistryTool.getResourceContent not supporting OFS.Image.File, but calling its index_html-method, which 1) steals the response and 2) returns only an empty string for merging.