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

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

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
 
            if state.res.get_email():
                url = gen.lib.Url()
                url.set_path(state.res.get_email())
                url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
        @type state: CurrentState
        """
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))
        @type state: CurrentState
        """
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.WEB_HOME))
        @type state: CurrentState
        """
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.WEB_HOME))
        @type state: CurrentState
        """
        url = gen.lib.Url()
        url.set_path(line.data)
        url.set_type(gen.lib.UrlType(gen.lib.UrlType.EMAIL))

src/g/r/gramps-3.4.2/src/plugins/import/ImportVCard.py   Gramps(Download)
    def add_url(self, fields, data):
        """Read the URL property of a VCard."""
        href = data.strip()
        if href:
            url = gen.lib.Url()
    def add_email(self, fields, data):
        """Read the EMAIL property of a VCard."""
        email = data.strip()
        if email:
            url = gen.lib.Url()

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
    def start_url(self, attrs):
        if "href" not in attrs:
            return
        url = gen.lib.Url()
        url.path = attrs["href"]

src/g/r/gramps-3.4.2/src/gui/views/treemodels/repomodel.py   Gramps(Download)
    def column_email(self,data):
        if data[6]:
            for i in data[6]:
                url = gen.lib.Url()
                url.unserialize(i)
    def column_search_url(self,data):
        if data[6]:
            for i in data[6]:
                url = gen.lib.Url()
                url.unserialize(i)
    def column_home_url(self,data):
        if data[6]:
            for i in data[6]:
                url = gen.lib.Url()
                url.unserialize(i)

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/webembedlist.py   Gramps(Download)
    def add_button_clicked(self, obj):
        from gui.editors import EditUrl
        url = gen.lib.Url()
        try:
            EditUrl(self.dbstate, self.uistate, self.track,