Save and load books properly.
svn: r10172
This commit is contained in:
parent
2ccef1b175
commit
17c3ef4e9b
@ -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>
|
||||
* src/GrampsDbUtils/_Backup.py: Restore databases with transactions
|
||||
enabled.
|
||||
|
@ -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
|
||||
|
@ -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),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user