DbManager and -L: show counts of all primary objects

This commit is contained in:
Doug Blank 2015-08-11 11:22:01 -04:00
parent b772d6e06a
commit a76fa8d0c7
4 changed files with 28 additions and 1 deletions

View File

@ -1895,6 +1895,15 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
"""
return {
_("Number of people"): self.get_number_of_people(),
_("Number of families"): self.get_number_of_families(),
_("Number of sources"): self.get_number_of_sources(),
_("Number of citations"): self.get_number_of_citations(),
_("Number of events"): self.get_number_of_events(),
_("Number of media"): self.get_number_of_media_objects(),
_("Number of places"): self.get_number_of_places(),
_("Number of repositories"): self.get_number_of_repositories(),
_("Number of notes"): self.get_number_of_notes(),
_("Number of tags"): self.get_number_of_tags(),
}
def get_dbname(self):

View File

@ -119,7 +119,7 @@ class Information(ManagedWindow):
s = Gtk.ScrolledWindow()
titles = [
(_('Setting'),0,150),
(_('Value'),1,450)
(_('Value'),1,400)
]
treeview = Gtk.TreeView()
model = ListModel(treeview, titles)

View File

@ -1988,4 +1988,13 @@ class DbBsddbRead(DbReadBase, Callback):
"""
return {
_("Number of people"): self.get_number_of_people(),
_("Number of families"): self.get_number_of_families(),
_("Number of sources"): self.get_number_of_sources(),
_("Number of citations"): self.get_number_of_citations(),
_("Number of events"): self.get_number_of_events(),
_("Number of media"): self.get_number_of_media_objects(),
_("Number of places"): self.get_number_of_places(),
_("Number of repositories"): self.get_number_of_repositories(),
_("Number of notes"): self.get_number_of_notes(),
_("Number of tags"): self.get_number_of_tags(),
}

View File

@ -2480,6 +2480,15 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
bsddb_version = _("Unknown")
return {
_("Number of people"): self.get_number_of_people(),
_("Number of families"): self.get_number_of_families(),
_("Number of sources"): self.get_number_of_sources(),
_("Number of citations"): self.get_number_of_citations(),
_("Number of events"): self.get_number_of_events(),
_("Number of media"): self.get_number_of_media_objects(),
_("Number of places"): self.get_number_of_places(),
_("Number of repositories"): self.get_number_of_repositories(),
_("Number of notes"): self.get_number_of_notes(),
_("Number of tags"): self.get_number_of_tags(),
_("Schema version"): schema_version,
_("Version"): bsddb_version,
}