Quote:
Originally Posted by BetterRed
AFAIK there is no easy way to know if specific conversion settings have been applied to a book. The Conversion dialogue has a Restore Defaults button, but it's enabled irrespective of whether book specific conversion settings actually exist.
So I'm requesting a template function similar to has_cover that can be used to define a virtual column, set a column colour/icon etc.
BR
|
Here is a python template that answers your question, at least for my tests. If you make a stored template with this code you can call it in a "normal" template like a function, as in 'has_opts = stored_template()'.
EDIT:
Code:
python:
def evaluate(book, context):
ans = context.db.new_api.has_conversion_options((book.id,))
return 'Yes' if ans else ''
EDIT: It returns "Yes" if the book has settings, '' otherwise.
The underlying function has a parameter for the format that as far as I can tell isn't used.