2007-07-17 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a note if source text was non-empty. svn: r8727
This commit is contained in:
parent
e7945b2b1d
commit
fb6bc0493c
@ -1,3 +1,7 @@
|
|||||||
|
2007-07-17 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Only create a
|
||||||
|
note if source text was non-empty.
|
||||||
|
|
||||||
2007-07-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
2007-07-17 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/Spell.py:
|
* src/Spell.py:
|
||||||
* src/Editors/_EditNote.py:
|
* src/Editors/_EditNote.py:
|
||||||
|
@ -2072,13 +2072,14 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback):
|
|||||||
nttype=NoteType.SOURCEREF,
|
nttype=NoteType.SOURCEREF,
|
||||||
private=priv)
|
private=priv)
|
||||||
# Also we lose the text field and make it a note
|
# Also we lose the text field and make it a note
|
||||||
handle = str(self.create_id())
|
if text.strip():
|
||||||
gramps_id = self.find_next_note_gramps_id()
|
handle = str(self.create_id())
|
||||||
note_tuple = (handle, gramps_id, text, Note.FLOWED,
|
gramps_id = self.find_next_note_gramps_id()
|
||||||
(NoteType.SOURCE_TEXT, '', ), self.change_13,
|
note_tuple = (handle, gramps_id, text, Note.FLOWED,
|
||||||
(-1, '', ), priv)
|
(NoteType.SOURCE_TEXT, '', ), self.change_13,
|
||||||
self.commit_13(note_tuple, NOTE_KEY, self.note_map, [])
|
(-1, '', ), priv)
|
||||||
note_list += [handle]
|
self.commit_13(note_tuple, NOTE_KEY, self.note_map, [])
|
||||||
|
note_list += [handle]
|
||||||
new_obj = (date, priv, note_list, conf, ref, page)
|
new_obj = (date, priv, note_list, conf, ref, page)
|
||||||
elif name == 'Attribute':
|
elif name == 'Attribute':
|
||||||
(priv, source_list, note, the_type, value) = obj
|
(priv, source_list, note, the_type, value) = obj
|
||||||
|
Loading…
Reference in New Issue
Block a user