From 5c50673f153a4f435626df66ed4c015604da6557 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 19 Oct 2013 13:07:49 +0000 Subject: [PATCH] SimpleTable: allow bools svn: r23338 --- gramps/gen/simple/_simpletable.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/simple/_simpletable.py b/gramps/gen/simple/_simpletable.py index dbe9bb0c4..4014c2f81 100644 --- a/gramps/gen/simple/_simpletable.py +++ b/gramps/gen/simple/_simpletable.py @@ -111,6 +111,9 @@ class SimpleTable(object): elif isinstance(item, (int, float)): retval.append(conv_to_unicode_direct(item)) self.row_sort_val(col, item) + elif isinstance(item, bool): + retval.append(repr(item)) + self.row_sort_val(col, int(item)) elif isinstance(item, Person): retval.append(self.access.describe(item)) if (self._link_col == col or link is None):