Saturday, July 11, 2015

Bryan Lunduke invested several days to find out whether he is missing out on anything by not running Windows 10 as his primary operating system. Short answer: no. More detailed answer in A Linux user tries out Windows 10.

I afterwards read his article 11 pointless but awesome Linux terminal tricks and installed sl, lolcat and cmatrix. And I now even have fortune | lolcat in my .bashrc.

Selecting the main template of a contract

I understood that my first approach yesterday was not good and that there is a better one.

Added a method lino.modlib.excerpts.mixins.Certifiable.get_excerpt_templates(), a field lino_welfare.modlib.isip.mixins.ContractTypeBase.template and a method lino_welfare.modlib.isip.mixins.ContractBase.get_excerpt_templates().

lino_welfare.modlib.jobs.models.ContractType is no longer a lino.modlib.printing.mixins.PrintableType (because this was :class:no longer needed, and because it defined a conflicting template field).

lino_welfare.modlib.jobs.models.Contract has 3 fields less because…

I wrote some docstrings, e.g. lino_welfare.modlib.immersion.models.ContractType.

There was some side effect in lino_welfare.modlib.integ.fixtures.demo which caused certain contracts to be of same type. Fixing this resulted in more contracts generated and thus caused quite some changes in the suite of tested documents for Lino Welfare.

Excerpt types no longer need to have the “Default.odt” in their template field because that’s the build method’s default value.

Checked in because the test suites now pass. TODO: actual content of the two new templates in lino_welfare.modlib.immersion.
{"cc_re__cc_re__cc_by_sa_4_0": ["xt</a> |</li>\n        <li class=\"right\" >\n          <a href=\"0710.html\" title=\"Friday, July 10, 2015\"\n             >previous</a> |</li>\n        <li class=\"nav-item nav-item-0\"><a href=\"../../index.html\">Home</a> &#187;</li>\n          <li class=\"nav-item nav-item-1\"><a href=\"../index.html\" >Blog</a> &#187;</li>\n          <li class=\"nav-item nav-item-2\"><a href=\"index.html\" >2015</a> &#187;</li> \n      </ul>\n    </div>\n\n\n    <div class=\"footer\">\n    &copy; Copyright 2001-2018 Luc Saffre.\n    \n    <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/80x15.png\" /></a> This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>.\n      Last updated on 2018-11-20.\n      Created using <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> 1.8.1.\n    <a href=\"https://raw.github.com/lsaffre/blog/master/docs/blog/2015/0711.rst\"\n           rel=\"", "         <li class=\"nav-item nav-item-1\"><a href=\"../index.html\" >Blog</a> &#187;</li>\n          <li class=\"nav-item nav-item-2\"><a href=\"index.html\" >2015</a> &#187;</li> \n      </ul>\n    </div>\n\n\n    <div class=\"footer\">\n    &copy; Copyright 2001-2018 Luc Saffre.\n    \n    <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/80x15.png\" /></a> This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>.\n      Last updated on 2018-11-20.\n      Created using <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> 1.8.1.\n    <a href=\"https://raw.github.com/lsaffre/blog/master/docs/blog/2015/0711.rst\"\n           rel=\"nofollow\">Show Source</a>.\n    <a href=\"http://luc.lino-framework.org/blog/2015/0711.html\">Online Link</a>\n    \n    \n    </div>\n  </body>\n</html>"], "copyright__copyright__copyright": ["some side effect in lino_welfare.modlib.integ.fixtures.demo which caused certain contracts to be of same type. Fixing this resulted in more contracts generated and thus caused quite some changes in the suite of tested documents for Lino Welfare.\n\nExcerpt types no longer need to have the \u201cDefault.odt\u201d in their template field because that\u2019s the build method\u2019s default value.\n\nChecked in because the test suites now pass. TODO: actual content of the two new templates in lino_welfare.modlib.immersion."]}