Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtImage::ExtImage::_get_content_type (   self,
  file,
  body,
  id,
  content_type = None 
) [private]

Determine the mime-type 

Definition at line 515 of file ExtImage.py.

00515                                                                   :
        """ Determine the mime-type """
        from OFS.Image import getImageInfo
        ct, w, h = getImageInfo(body)
        if ct: 
            content_type = ct
        else:
            content_type = ExtImage.inheritedAttribute('_get_content_type')(self, 
                                                    file, body, id, content_type)
        return content_type

    ################################


Generated by  Doxygen 1.6.0   Back to index