2007-02-23 Alex Roitman <shura@phy.ucsf.edu>
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Skip empty notes. svn: r8218
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
2007-02-23 Alex Roitman <shura@phy.ucsf.edu>
|
||||||
|
* src/GrampsDb/_GrampsBSDDB.py (convert_notes_13): Skip empty notes.
|
||||||
|
|
||||||
2007-02-22 Don Allingham <don@gramps-project.org>
|
2007-02-22 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDbUtils/_GedcomParser.py: fix a few bugs
|
* src/GrampsDbUtils/_GedcomParser.py: fix a few bugs
|
||||||
* src/DataViews/_PedigreeView.py: remove redundant call
|
* src/DataViews/_PedigreeView.py: remove redundant call
|
||||||
|
@ -2023,8 +2023,10 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
|||||||
if name == 'Note':
|
if name == 'Note':
|
||||||
# Special case: we are way down at the very bottom.
|
# Special case: we are way down at the very bottom.
|
||||||
# Create note, commit it, return a list with one handle.
|
# Create note, commit it, return a list with one handle.
|
||||||
|
if (type(obj) == tuple) and (len(obj) > 0) and \
|
||||||
|
('strip' in dir(obj[0])) and (obj[0].strip()):
|
||||||
|
# Some notes may be None, from early databases.
|
||||||
(text,format) = obj
|
(text,format) = obj
|
||||||
if text.strip():
|
|
||||||
handle = str(self.create_id())
|
handle = str(self.create_id())
|
||||||
gramps_id = self.find_next_note_gramps_id()
|
gramps_id = self.find_next_note_gramps_id()
|
||||||
note_tuple = (handle,gramps_id,text,format,(0,'',),
|
note_tuple = (handle,gramps_id,text,format,(0,'',),
|
||||||
|
Reference in New Issue
Block a user