Lino Website

Calling Job.done() earlier than thought

Friday, 17. June 2005 12:45.

The length of a DbfMirrorLoader also contains deleted records. So the loader job may end earlier than initially expected.

In this case it was irritating to see

Loading .\CPAS\RES.DBF
Loading .\CPAS\PTL.DBF
ignored PTL with empty IDRES: <lino.tools.dbfreader.DBFRecord instance at 0x00A372D8>
ignored PTL with empty IDRES: <lino.tools.dbfreader.DBFRecord instance at 0x00A3C620>
[44%] Arbeitsvorgang läuft

First use of new attribute TestCase.verbosity to specify the verbosity of the CaptureConsole used by the testcase.

First use of i18n.setUserLang() to set global user language. This is necessary because the expected output depends on the user's language, which defaults to the locale's language. So test would fail on non-english locales.

Added DBFRecord.__repr__() to get a useful warning message.

Loading .\CPAS\RES.DBF
Loading .\CPAS\PTL.DBF
ignored PTL with empty IDRES: .\CPAS\PTL.DBF#305
ignored PTL with empty IDRES: .\CPAS\PTL.DBF#322
[100%] Arbeitsvorgang läuft

New test 33 tests this.

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:22:29