def apply_patch_on_plone_instance(self,portal):
        """ 
        Apply patch on all content object on package installation 
        """
        
        catalog = getToolByName(portal, 'portal_catalog')

        ## query catalog for all content objects that 
        ## provide IContentish interface
        all_objects = catalog(object_provides=IContentish.__identifier__)

        ## call patch method for all content objects
        for obj in all_objects:
            info = "Patch Object: %s at path: %s\n" % (obj.id, obj.getPath() )
            self.request.response.write(info)
            self.request.response.flush()
            logger.info(info)
            patch_object(obj)
def patch_base64_images_on_create(context, event):
    """ 
    Patch created content if it contains an inline images coded as base64 
    """
    patch_object(context)
def patch_base64_images_on_create(context, event):
    """ 
    Patch created content if it contains an inline images coded as base64 
    """
    patch_object(context)