From 2a48a6c4e6573821a2ae956904aff2be145ff1bd Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Thu, 12 May 2005 08:59:59 +0000 Subject: [PATCH] mark dates, that have been parsed as textonly, but have not been a textual date before. svn: r4566 --- gramps2/src/plugins/TestcaseGenerator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gramps2/src/plugins/TestcaseGenerator.py b/gramps2/src/plugins/TestcaseGenerator.py index e69acd6f4..404b9cbbb 100644 --- a/gramps2/src/plugins/TestcaseGenerator.py +++ b/gramps2/src/plugins/TestcaseGenerator.py @@ -471,7 +471,12 @@ class TestcaseGenerator: except: ndate = Date.Date() ndate.set_as_text("DateDisplay Exception: %s" % ("".join(traceback.format_exception(*sys.exc_info())),)) + + if dateval.get_modifier() != Date.MOD_TEXTONLY and ndate.get_modifier() == Date.MOD_TEXTONLY: + # parser was unable to correctly parse the string + ndate.set_as_text( "TEXTONLY: "+ndate.get_text()) + devent = RelLib.Event() devent.set_name("Death") devent.set_date_object(ndate)