Fix regression using GPM templates in save-to-disk.

This commit is contained in:
Charles Haley 2011-11-20 12:33:39 +01:00
parent 5b9ec88d3a
commit ccf2c33111

View File

@ -339,6 +339,7 @@ class TemplateFormatter(string.Formatter):
########## a formatter that throws exceptions ############ ########## a formatter that throws exceptions ############
def unsafe_format(self, fmt, kwargs, book): def unsafe_format(self, fmt, kwargs, book):
self.column_name = self.template_cache = None
self.kwargs = kwargs self.kwargs = kwargs
self.book = book self.book = book
self.composite_values = {} self.composite_values = {}