From 7460446395faa44213923320b76ea43fe53fe345 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Jul 2013 12:31:00 +0530 Subject: [PATCH] Handle recursive templates in composite columns --- src/calibre/db/lazy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/db/lazy.py b/src/calibre/db/lazy.py index 74cf5af94b..1e65a7cc1d 100644 --- a/src/calibre/db/lazy.py +++ b/src/calibre/db/lazy.py @@ -223,6 +223,7 @@ def composite_getter(mi, field, metadata, book_id, cache, formatter, template_ca try: return cache[field] except KeyError: + cache[field] = 'RECURSIVE_COMPOSITE FIELD (Metadata) ' + field ret = cache[field] = formatter.safe_format( metadata['display']['composite_template'], mi,