Add extra GrampsBar functionality.

svn: r16502
This commit is contained in:
Nick Hall
2011-01-30 03:02:38 +00:00
parent 9b24451db1
commit 116d26e69f
19 changed files with 881 additions and 554 deletions

View File

@@ -445,7 +445,7 @@ class BasePersonView(ListView):
"""
Define the default gramplets for the sidebar and bottombar.
"""
return (("Welcome Gramplet",),
return (("Person Filter Gramplet",),
("Person Details Gramplet",
"Person Gallery Gramplet",
"Person Residence Gramplet",

View File

@@ -420,5 +420,12 @@ class PlaceBaseView(ListView):
else:
return None
def get_default_gramplets(self):
"""
Define the default gramplets for the sidebar and bottombar.
"""
return (("Place Filter Gramplet",),
())
def make_callback(func, val):
return lambda x: func(val)