Wednesday, October 4, 2017

Avanti advances

I continued to work on #2083.

New rule for the EnrolmentChecker: when a reminder exists, absences before that date are ignored.

The workflow for reminders is currently just my first quick draft.

New template files courses/Enrolment/Default.odt and courses/Reminder/Default.odt

Side effect: The default get_slave_summary now adds an insert button (if an insert_layout exists and user has permission).

DummyField now has a __str__() method.

New fixture demo2 which adds primary coaches to the clients one reminder.

I then did a release during their working time (using the fact that they had team meeting) and did local configuration of the template files. Unfortunately Johanna and I failed to meet afterwards because Hangouts wasn’t in the mood today.

ExtJS 6 support advancing

There are still many details to fix before we can consider ExtJS 6 to be done… but we are advancing. Tonis and I fixed a few things together.

Making Appy ready for Python 3

I had a nice shared screen session with Gaetan, the autor of Appy. Together we managed to make appy pass the test_appy_pod test of the lino_xl suite. Our work is published on revisions 62, 63 and 64.

This is great news because Appy is still the best and only real solution for generating .pdf files from .odt fies.

The problem with Gaetan is that he uses a rather unorthodox packaging system. I knew from earlier discussions that trying to convince him to become normal is just a waste of time. So I didn’t do that, and we found a solution for every problem.

The clou of his strange system is that he refuses to have a file in the root directory of his project. Don’t ask me why. To install a development version of appy, you must add a symbolic link to your site-packages. This causes at least two problems:

  • the test command tries to install appy from PyPI because it doesn’t know that it actually is installed. We fixed this by temporarily removing 'appy' from the install_requires.
  • we cannot specify the development snapshot as requirement on Travis CI because Travis cannot install without a file. This means that Gaetan must release our work on PyPI before the Travis CI tests will pass. But okay, we are not about a few days now that we fixed a problem that has been waiting at least a year.

Gaetan reminded me the basic operations of Subversion which I have been using much but hadn’t used for years:

$ svn up                # git pull
$ svn ci -m "message"   # git ci -m & git push

And he also reminded me a debugging technique which I hadn’t used for years now:

import pdb ; pdb.set_trace()

And then in the debugger you need to know at least four commands:

  • l : list
  • n : go to next line
  • s : step into
  • c : continue

Now that the The Lino Extensions Library test suite passes (at least on my machine), I continued with the test suite of The Lino Book. This one still has dozens of failures which are not caused by appy.

Release to PyPI

I released some projects to PyPI just because I the information there was so obsolete. Allthough actually this makes not much sence, we don’t currently recommend using a released version of Lino.

OMG, and now the information there is completely ugly: