mark dates, that have been parsed as textonly, but have not been a textual date before.

svn: r4566
This commit is contained in:
Martin Hawlisch 2005-05-12 08:59:59 +00:00
parent 04a5125212
commit 2a48a6c4e6

View File

@ -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)