Quote:
Originally Posted by Terisa de morgan
If fake metadata doesn't take into account real types... yes, I see it 
|
The changes I submitted solve exactly this problem, constructing a Metadata object by looking at the types of the fields in the database. I used the same solution as I did for the Template Tester some years ago. Once the change is accepted, if the template works in the template tester called from the Kobo driver then it will also work when the driver does validatation.
A side benefit: constructing a "model" metadata instance, one with all fields defined and set to plausible values, is now done by the API function get_model_metadata_instance() in calibre.ebooks.metadata.base.