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/plugins/lib/libgedcom.py   Gramps(Download)
        new_note.set_handle(Utils.create_id())
        note_type = gen.lib.NoteType()
        note_type.set((gen.lib.NoteType.CUSTOM, _("GEDCOM import")))
        new_note.set_type(note_type)
        self.dbase.add_note(new_note, self.trans)

src/g/r/gramps-3.4.2/src/gui/views/treemodels/notemodel.py   Gramps(Download)
    def column_type(self, data):
        """Return the type of the Note in readable format."""
        temp = NoteType()
        temp.set(data[Note.POS_TYPE])
        return unicode(str(temp))