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

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

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
                url = gen.lib.Url()
                url.set_path(state.res.get_email())
                url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
                repo.add_url(url)
 
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
        state.person.add_url(url)
 
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.WEB_HOME))
        state.person.add_url(url)
 
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.WEB_HOME))
        state.repo.add_url(url)
 
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
        state.repo.add_url(url)
 

src/g/r/gramps-3.4.2/src/plugins/import/ImportVCard.py   Gramps(Download)
        if email:
            url = gen.lib.Url()
            url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
            url.set_path(self.unesc(email))
            self.person.add_url(url)