View Single Post
Old 06-28-2025, 11:53 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Terisa de morgan View Post
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.
chaley is offline   Reply With Quote