Another topic: while playing with actions today I noticed that some of the template dialogs, for example the Template Scope one, have extra fields related to stored templates, specifically the template name and the documentation. I am changing TemplateDialog to permit you to hide them.
With the changed TemplateDialog I tested this in Action Chains.templates.py and it works. Starting at line 404:
Code:
TemplateDialog.__init__(self,
parent,
text,
mi=mi,
text_is_placeholder=text_is_placeholder,
all_functions=self.all_functions,
builtin_functions=builtin_functions,
global_vars=global_vars)
self.setup_saved_template_editor(show_buttonbox=not dialog_is_st_editor,
show_doc_and_name=False)
I will let you know when the changes are in calibre source.