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

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

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
                self.note.private = self.personref.private
            elif self.person:
                self.note.type.set(gen.lib.NoteType.PERSON)
                self.note.private = self.person.private
            elif self.childref:

src/g/r/gramps-3.4.2/src/plugins/import/ImportCsv.py   Gramps(Download)
            for note_handle in previous_notes_list:
                previous_note = self.db.get_note_from_handle(note_handle)
                if previous_note.type == gen.lib.NoteType.PERSON:
                    previous_text = previous_note.get()
                    if note not in previous_text:
                new_note = gen.lib.Note()
                new_note.handle = create_id()
                new_note.type.set(gen.lib.NoteType.PERSON)
                new_note.set(note)
                self.db.add_note(new_note, self.trans)
            for note_handle in previous_notes_list:
                previous_note = self.db.get_note_from_handle(note_handle)
                if previous_note.type == gen.lib.NoteType.PERSON:
                    previous_text = previous_note.get()
                    if note not in previous_text:
                new_note = gen.lib.Note()
                new_note.handle = create_id()
                new_note.type.set(gen.lib.NoteType.PERSON)
                new_note.set(note)
                self.db.add_note(new_note, self.trans)

src/g/r/gramps-3.4.2/src/plugins/import/ImportProGen.py   Gramps(Download)
                    note = gen.lib.Note()
                    note.set('\n'.join(note_txt))
                    note.set_type(gen.lib.NoteType.PERSON)
                    self.db.add_note(note, self.trans)
                    person.add_note(note.handle)

src/g/r/gramps-3.4.2/src/gui/editors/editperson.py   Gramps(Download)
                                self.obj.get_note_list(),
                                self.get_menu_title(),
                                notetype=gen.lib.NoteType.PERSON)
        self._add_tab(notebook, self.note_tab)
        self.track_ref_for_deletion("note_tab")