Implemented database upgrade for all eligible remaining object types.

Added Citations to undo-redo feature.
Moved Citation view within navigation pane to below Sources.
Removed useless edit button from sourcebackreflist.
Fixed default bottombar gramplets for citations. 

svn: r18069
This commit is contained in:
Tim G L Lyons
2011-08-26 23:18:11 +00:00
parent 165625715d
commit d3dcbb1c12
25 changed files with 563 additions and 267 deletions

View File

@ -307,14 +307,6 @@ class EditCitation(EditPrimary):
self._add_tab(notebook_src, self.repo_tab)
self.track_ref_for_deletion("repo_tab")
# FIXME:
# SourceBackrefList inherits from BackrefList inherits from EmbeddedList
# inherits from ButtonTab
# _create_buttons is defined in ButtonTab, and overridden in BackRefList.
# But needs to be overriden here so that there is no edit button for
# References to Source, because they will all be citations,
# and the Citations will be displayed in the top part of the
# edit dialogue.
self.srcref_list = SourceBackRefList(self.dbstate,self.uistate,
self.track,
self.db.find_backlink_handles(self.source.handle),
@ -379,7 +371,6 @@ class EditCitation(EditPrimary):
self.db.commit_citation(self.obj, trans)
msg += _("\n" + "Edit Citation (%s)") % self.obj.get_page()
trans.set_description(msg)
LOG.debug(msg)
if self.callback:
self.callback(self.obj.get_handle())