Comment 14 for bug 1637353

Revision history for this message
Eli Schwartz (eschwartz) wrote : Re: calibre template- python function ??not working?/(Re: [Bug 1637353] Re: calibre bug 1637353)

> *NB I've read the calibre template language documentation - it indicates
> that python commands should translate to calibre (but perhaps they require
> some modification I'm not aware of??)

The last time I read the template documentation, it *strongly* implied
that python commands are NOT valid in calibre's template language, and
then went on to document the whole, entire valid range of calibre
template functions (which is considerably smaller than the python
programming language, and almost completely fails to overlap at all).

You can, however, create new calibre template functions using python, as
described in the template documentation under the header "User-defined
Template Functions". That is the only python involved in the template
language.