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

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

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/gallerytab.py   Gramps(Download)
                                    name.encode(sys.getfilesystemencoding())))
                        mime = gen.mime.get_type(name)
                        if not gen.mime.is_valid_type(mime):
                            return
                        photo = gen.lib.MediaObject()

src/g/r/gramps-3.4.2/src/plugins/view/mediaview.py   Gramps(Download)
                                mfile.encode(sys.getfilesystemencoding())))
                mime = gen.mime.get_type(name)
                if not gen.mime.is_valid_type(mime):
                    return
                photo = gen.lib.MediaObject()