Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/g/r/gramps-3.4.2/src/gui/editors/editmediaref.py   Gramps(Download)
    def determine_mime(self):
        descr = gen.mime.get_description(self.source.get_mime_type())
        if descr:
            self.mimetext.set_text(descr)
 
            mime = gen.mime.get_type(Utils.find_file(path_full))
            self.source.set_mime_type(mime)
            descr = gen.mime.get_description(mime)
            if descr:
                self.mimetext.set_text(descr)

src/g/r/gramps-3.4.2/src/gui/editors/editmedia.py   Gramps(Download)
    def determine_mime(self):
        descr = gen.mime.get_description(self.obj.get_mime_type())
        if descr:
            self.mimetext.set_text(descr)
 
            mime = gen.mime.get_type(Utils.find_file(path_full))
            self.obj.set_mime_type(mime)
            descr = gen.mime.get_description(mime)
            if descr:
                self.mimetext.set_text(descr)

src/g/r/gramps-3.4.2/src/plugins/webreport/NarrativeWeb.py   Gramps(Download)
        # get media type to be used primarily with "img" tags
        mime_type = media.get_mime_type()
        mtype = gen.mime.get_description(mime_type)
 
        if mime_type:

src/g/r/gramps-3.4.2/src/plugins/gramplet/EditExifMetadata.py   Gramps(Download)
        # Mime type information
        mime_type = self.orig_image.get_mime_type()
        self.exif_widgets["MimeType"].set_text(gen.mime.get_description(mime_type))
 
        # check image write privileges