20130913 (Friday, 13 September 2013)¶
Printing mail labels for all partners of a list¶
The missing piece of yesterday’s the jigsaw puzzle (2013-09-12) was this: Repetition or conditional inclusion of table cells.
Voilà, any Lino application which uses
lino.modlib.contacts has now an additional button “Labels”
in the top toolbar of every table on Partner, Person, Company
(and every subclass of them), and this button will immediately
produce a pdf with address labels.
to a new module
method and an
Updated docstring of
Replaced Action.called_from by Action.is_callable_from¶
I noticed that Lino displayed tha button for the pdf action (wrongly) also in a detail form. This incited me to tiny up with that strange system using a static callable_from tuple. (TODO: document it)
The idea behind the
fab test_sdist command is to run the following
steps before actually releasing to PyPI:
run setup.py sdist –dist-dir /home/luc/sdist
create a virgin virtualenv and activate it
run pip install –extra-index file:/home/luc/sdist mypackage
At this point we must be aware of the fact that neither the setup.py nor the tests directory is part of a source distribution. The tests suite often uses a many resources that are not included in a source distribution. So we cannot simply run setup.py test now.
One idea is a new convention: add a module mypackage.selftest which I can invoke using:
$ python -m mypackage.selftest
This would then test everything testable from within a source distribution. Just an idea for the moment. To be tried.