[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:
parent
3a531c359f
commit
6adc497f68
4 changed files with 42 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue