From f446b66e34de2eefa27023d2135f615efd38c885 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 16 Jan 2010 23:00:26 +0000 Subject: [PATCH] Make main a generator svn: r14082 --- src/plugins/gramplet/PedigreeGramplet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/gramplet/PedigreeGramplet.py b/src/plugins/gramplet/PedigreeGramplet.py index 578f7c6b8..820262445 100644 --- a/src/plugins/gramplet/PedigreeGramplet.py +++ b/src/plugins/gramplet/PedigreeGramplet.py @@ -232,7 +232,7 @@ class PedigreeGramplet(Gramplet): active_handle = self.get_active('Person') active_person = self.dbstate.db.get_person_from_handle(active_handle) if not active_person: - return False + yield False #no wrap in Gramplet self.no_wrap() self.process_person(active_person.handle, 1, "f") # father @@ -243,6 +243,7 @@ class PedigreeGramplet(Gramplet): all = [active_person.handle] percent_sign = _("percent sign or text string|%") for g in gens: + yield True count = len(self._generations[g]) handles = self._generations[g] self.append_text(" ")