liqd / adhocracy

Adhocracy is a policy drafting and decision making software for distributed groups and open institutions.
GNU Affero General Public License v3.0
150 stars 37 forks source link

Generic instance setting overwrites #915

Closed nidico closed 10 years ago

nidico commented 10 years ago

In the recent development period, we have repeatedly introduced new settings on instance level as installations option in the form, in a lightweight manner (without migrations), e.g.:

adhocracy.comment_wording.instance_name = foo

This commit provides a generic way of overwriting installation settings on an instance base. In order to allow a setting to be overwritten as above, it has to be declared, e.g.:

adhocracy.comment_wording.allow_overwrite = true

This PR makes use of this feature in three - somewhat arbitrary - commits:

More can be ported / enabled later.

xi commented 10 years ago

LGTM. Feel free to merge.