diff --git a/ChangeLog b/ChangeLog index a3b1fab68..9805c9c04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-10 Erik De richter + * src/GrampsCfg.py: + * src/plugins/Reorderids.py: add note reordering + 2008-01-10 Peter Landgren * src/RecentFiles.py: fix in rename_filename diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index c41c1acba..92658b6d3 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -191,6 +191,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): self.add_entry(table, _('Media Object'), 4, Config.OPREFIX) self.add_entry(table, _('Event'), 5, Config.EPREFIX) self.add_entry(table, _('Repository'), 6, Config.RPREFIX) +#added notes prefix + self.add_entry(table, _('Note'), 7, Config.NPREFIX) return table def add_advanced_panel(self): diff --git a/src/plugins/ReorderIds.py b/src/plugins/ReorderIds.py index 7a94c7721..2a2640ee0 100644 --- a/src/plugins/ReorderIds.py +++ b/src/plugins/ReorderIds.py @@ -136,7 +136,17 @@ class ReorderIds(Tool.BatchTool): db.repository_map, db.commit_repository, db.rprefix) - +#add reorder notes ID + if uistate: + self.progress.set_pass(_('Reordering Note IDs'), + db.get_number_of_notes()) + self.reorder(gen.lib.Note, + db.get_note_from_gramps_id, + db.get_note_from_handle, + db.find_next_note_gramps_id, + db.note_map, + db.commit_note, + db.nprefix) if uistate: self.progress.close() else: