View Single Post
Old 12-18-2020, 09:20 AM   #128
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,204
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
Sorry, you also need this: calibre.utils.formatter_functions.py.

And no, the second version isn't suboptimal. The issue for me is that the behavior can seem "magic", but sometimes that is what one wants.
Thank you, it is working properly now. Should make some changes to the plugin today. New version will not be released until a new calibre version with changes you made is released.

1. New action to add to chain variables maybe call it "Chain Variables". Suggestions on a better name are welcome.

2. Conditional execution of actions. Have not settled on how to this yet. It can be done with one template column OR two name/value columns. Leaning towards starting with the former as a test version and see feedback. Still open to the other solution if people don't like the first one, I just think it gives more power to test multiple conditions.

Edit: Maybe a template/template_result pair. e.g "program: current_library_name()"/my_library1. If they match the action runs? same for "program: globals(myvar)"/myvar_val

Will initially call the template on the first selected book.

Last edited by capink; 12-18-2020 at 11:21 AM.
capink is offline   Reply With Quote