Tuesday, January 27, 2015¶
Documentation is getting better¶
More tidy-up routine work in the documentation.
There was yet another problem (“choicelists.get_by_name expected
string”) due to a bug in
I finally created the plugin
And yet another tutorial: /tutorials/addrloc/index.
And I moved the
country_code setting from
Convert Partner to Person¶
Worked for #80 (Convert Partner to Person).
How to reproduce it:
go to the directory of
run initdb_demo and runserver
Create a Partner. Lino opens the detail window on that partner.
Check the “is Person” checkbox and click Save button.
Click the “(show)” link in order to see the person.
Fields first_name and last_name are empty.
The solution was rather complex and tricky:
lino.modlib.contacts.models.Personnow reacts if first_name and last_name are both empty and name is not empty. In that case it uses
lino.modlib.contacts.utils.name2kw()to fill both fields.
lino.core.utils.error2str()with the side effect that messages caused by ValidationError are now reported in a more user-friendly way.