diff --git a/ChangeLog b/ChangeLog index bddfb7a74..2a2703b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-02 Brian Matherly + * src/plugins/BookReport.py: + * src/Utils.py + Save and load books properly. + 2008-03-02 Gary Burton * src/GrampsDbUtils/_Backup.py: Restore databases with transactions enabled. diff --git a/src/Utils.py b/src/Utils.py index 80dff7f95..19229100d 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -920,6 +920,8 @@ def type_name(val): return 'int' elif val_type == float: return 'float' + elif val_type == bool: + return 'bool' elif val_type in (str, unicode): return 'unicode' return 'unicode' @@ -935,6 +937,8 @@ def get_type_converter_by_name(val_str): return int elif val_str == 'float': return float + elif val_str == 'bool': + return bool elif val_str in ('str', 'unicode'): return unicode return unicode diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index c19b9d7a9..5222be3ac 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -670,7 +670,7 @@ class BookOptions(ReportOptions): } self.options_help = { 'bookname' : ("=name","Name of the book. MANDATORY", - BookList('books.xml',None).get_book_names(), + BookList('books.xml',dbase).get_book_names(), False), }