[core] Add support for module parameters

Parse '-p' parameters and make them accessible via 'parameter()' from
within a module (basically, restore the previous configuration
facility).

Still TODO: Add support for configuration files.
This commit is contained in:
Tobias Witek 2020-02-04 21:09:11 +01:00
parent 3a531c359f
commit 6adc497f68
4 changed files with 42 additions and 14 deletions

View file

@ -9,7 +9,7 @@ class Widget(util.store.Store):
self._full_text = value
else:
if callable(self._full_text):
return self._full_text(self)
return self._full_text()
return self._full_text
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4