The value for is_multiple should never be left as None when an OPF is read. One consequence of leaving it None: text/non-multiple columns are not filled in when adding books using an OPF.

This commit is contained in:
Charles Haley 2012-03-29 13:47:09 +02:00
parent 78f7518fc4
commit d592d3c9d1

View File

@ -108,6 +108,8 @@ def decode_is_multiple(fm):
else:
im = {'cache_to_list': '|', 'ui_to_list': ',',
'list_to_ui': ', '}
elif im is None:
im = {}
fm['is_multiple'] = im
class JsonCodec(object):