add note reordering
svn: r9777
This commit is contained in:
parent
ca35eb4efc
commit
abc7d85760
@ -1,3 +1,7 @@
|
||||
2008-01-10 Erik De richter <frederik.de.richter@pandora.be>
|
||||
* src/GrampsCfg.py:
|
||||
* src/plugins/Reorderids.py: add note reordering
|
||||
|
||||
2008-01-10 Peter Landgren <peter.talken@telia.com>
|
||||
* src/RecentFiles.py: fix in rename_filename
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user