Save and load books properly.

svn: r10172
This commit is contained in:
Brian Matherly 2008-03-02 23:03:52 +00:00
parent 2ccef1b175
commit 17c3ef4e9b
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-02 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py:
* src/Utils.py
Save and load books properly.
2008-03-02 Gary Burton <gary.burton@zen.co.uk> 2008-03-02 Gary Burton <gary.burton@zen.co.uk>
* src/GrampsDbUtils/_Backup.py: Restore databases with transactions * src/GrampsDbUtils/_Backup.py: Restore databases with transactions
enabled. enabled.

View File

@ -920,6 +920,8 @@ def type_name(val):
return 'int' return 'int'
elif val_type == float: elif val_type == float:
return 'float' return 'float'
elif val_type == bool:
return 'bool'
elif val_type in (str, unicode): elif val_type in (str, unicode):
return 'unicode' return 'unicode'
return 'unicode' return 'unicode'
@ -935,6 +937,8 @@ def get_type_converter_by_name(val_str):
return int return int
elif val_str == 'float': elif val_str == 'float':
return float return float
elif val_str == 'bool':
return bool
elif val_str in ('str', 'unicode'): elif val_str in ('str', 'unicode'):
return unicode return unicode
return unicode return unicode

View File

@ -670,7 +670,7 @@ class BookOptions(ReportOptions):
} }
self.options_help = { self.options_help = {
'bookname' : ("=name","Name of the book. MANDATORY", 'bookname' : ("=name","Name of the book. MANDATORY",
BookList('books.xml',None).get_book_names(), BookList('books.xml',dbase).get_book_names(),
False), False),
} }