def getImageTile(self, proxy):
     """Returns a 16px icon from an ImageInnerContentProxy object
     """
     
     if not IImageInnerContentProxy.providedBy(proxy):
         raise ValueError, "Proxy must implements IImageInnerContentProxy"
     
     return proxy.tag(width=16, height=16)    
    def getImageUrl(self, proxy):
        """Returns url to access image of an ImageInnerContentProxy object
        """

        if not IImageInnerContentProxy.providedBy(proxy):
            raise ValueError, "Proxy must implements IImageInnerContentProxy"
        
        return proxy.absolute_url()
 def getBigImageTag(self, proxy):
     """Returns a big img tag rendering an ImageInnerContentProxy object
     """
     
     if not IImageInnerContentProxy.providedBy(proxy):
         raise ValueError, "Proxy must implements IImageInnerContentProxy"
     
     width, height = self.getBigImageSize()
     return proxy.tag(width=width, height=height)       
 def getImageBlockStyle(self, proxy):
     """Returns style of block containing the img tag rendering an ImageInnerContentProxy object"""
     
     if not IImageInnerContentProxy.providedBy(proxy):
         raise ValueError, "Proxy must implements IImageInnerContentProxy"
     
     width, height = self.getDefaultImageSize()
     style = 'width: %d; height: %d;' % (width, height)
     return style
 def getImage4Crop(self, proxy):
     """Returns at least a 250*250px img tag from an ImageInnerContentProxy object
     """
     
     if not IImageInnerContentProxy.providedBy(proxy):
         raise ValueError, "Proxy must implements IImageInnerContentProxy"
     
     params={}
     params['maximizeTo']=250
     params['maxRatio'] = 1   
     legend=proxy.Title()
     if legend :
         params['title']=legend
     return proxy.tag(**params)              
 def getImageTag(self, proxy):
     """Returns an img tag rendering an ImageInnerContentProxy object
     """
     
     if not IImageInnerContentProxy.providedBy(proxy):
         raise ValueError, "Proxy must implements IImageInnerContentProxy"
     
     width, height = self.getDefaultImageSize()
     params={}
     params['width']=width
     params['height']=height
     # use description as title when possible
     legend=proxy.Description()
     if legend :
       params['title']=legend
     return proxy.tag(**params)