Saturday, July 1, 2017

Merge Site.actors into Site.models

I cleaned up an odd thing in Lino. Until now we had two AttrDict objects on the Site instance: actors and models. The difference between them was rather difficult to explain. And while working on #1933 after I had converted the ui.py of lino_xl.lib.vat to desktop.py I stumbled over an error vat.VatRegimes is not a class which was caused by this.

Now we have only models, an AttrDict which maps the app_label of every installed plugin to its models.py module (augmented by the layout module (usualle desktop.py) as explained under layout_name.

Luc now on mastodon

I opened an account on Mastodon: lsaffre@mastodon.network

Mastodon is a free, open-source social network. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Pick a server that you trust — whichever you choose, you can interact with everyone else. Anyone can run their own Mastodon instance and participate in the social network seamlessly.