|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
composite_formatter and eval_formatter APIs deprecated
The template formatter instance ebooks.metadata.book.base.composite_formatter has been deprecated. It is a static instance of SafeFormat. SafeFormat is not thread safe, making using the static instance problematic. The composite_formatter declaration will be removed after a release or two.
If you use composite_formatter, then replace your code that looks like Code:
composite_formatter.safe_format(...) Code:
from ebooks.metadata.book.base import SafeFormat ... SafeFormat().safe_format(...) utils.formatter.eval_formatter has the same problem, and should be fixed in a similar way. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Book Sync **Deprecated** | kiwidude | Plugins | 111 | 06-07-2011 08:47 PM |
| Using composite_formatter.safe_format with multiline text? | kiwidude | Development | 6 | 04-28-2011 11:08 AM |
| [Metadata Download Plugin] Goodreads Metadata **Deprecated** | kiwidude | Plugins | 30 | 04-23-2011 03:10 PM |
| [Covers Plugin] Goodreads Covers **Deprecated** | kiwidude | Plugins | 13 | 04-17-2011 06:09 PM |
| --output-format deprecated? | Robotech_Master | Calibre | 6 | 01-03-2011 11:07 PM |