View Single Post
Old 11-08-2014, 10:42 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,450
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot store any files in the calibre library unless you are willing to give them their own extension and make them a format. And that will just confuse your users. Store your wordlist in the db, your life will be a lot simpler. If you put random files in calibre library folders they will be deleted automatically if the user chanes title or author and check library will complain about them.

Quoting the documentation:

A val_map is just a python dictionary, like this:

{book_id:"some value", book_id2:"other value"}

Yes, I was refering to providing an interface for your users to edit the stored data, which can happen only in a user interface plugin.
kovidgoyal is offline   Reply With Quote