[ckan-changes] [ckan/ckan] 89b920: [#2429] Add extension point for tweaking the confi...
GitHub
noreply at github.com
Wed May 20 13:30:37 UTC 2015
Branch: refs/heads/2429-remote-config
Home: https://github.com/ckan/ckan
Commit: 89b920cf5004a6329046d8e09f6950e1338c5b04
https://github.com/ckan/ckan/commit/89b920cf5004a6329046d8e09f6950e1338c5b04
Author: amercader <amercadero at gmail.com>
Date: 2015-05-20 (Wed, 20 May 2015)
Changed paths:
M ckan/logic/action/update.py
M ckan/plugins/interfaces.py
M ckanext/example_iconfigurer/plugin.py
A ckanext/example_iconfigurer/tests/test_iconfigurer_update_config.py
Log Message:
-----------
[#2429] Add extension point for tweaking the config options schema
`IConfigurer.update_config_schema` allows to add or remove keys to the
ones that are allowed to be modified remotely, via the web UI or the
API. Defaults to ckan.logic.schema.default_update_configuration_schema
Commit: 9e8696fd892f5eeb5eb8835713c9b20f00d0ef29
https://github.com/ckan/ckan/commit/9e8696fd892f5eeb5eb8835713c9b20f00d0ef29
Author: amercader <amercadero at gmail.com>
Date: 2015-05-20 (Wed, 20 May 2015)
Changed paths:
M ckan/lib/app_globals.py
M ckan/logic/action/update.py
M ckan/tests/logic/action/test_update.py
M ckanext/example_iconfigurer/tests/test_iconfigurer_update_config.py
Log Message:
-----------
[#2429] Only add options to app_globals if defined in there
Don't add all new config options edited via `config_option_update`
automatically to `g`.
Commit: 9c7e850e562af003b8ca2d79e83586665a9dd1a8
https://github.com/ckan/ckan/commit/9c7e850e562af003b8ca2d79e83586665a9dd1a8
Author: amercader <amercadero at gmail.com>
Date: 2015-05-20 (Wed, 20 May 2015)
Changed paths:
M ckan/lib/app_globals.py
M ckan/logic/action/update.py
M ckan/logic/schema.py
Log Message:
-----------
[#2429] Simplify app_globals logic, common function for config schema
In app_globals, use keys from the update_config_schema to know what
needs to be autoupdated from the db.
Move the logic to get the full update_config_schema (including
modifications from extensions) to a single function.
Commit: a4d980c8298c6da600b90ced34078e37a99190db
https://github.com/ckan/ckan/commit/a4d980c8298c6da600b90ced34078e37a99190db
Author: amercader <amercadero at gmail.com>
Date: 2015-05-20 (Wed, 20 May 2015)
Changed paths:
M ckan/controllers/admin.py
M ckan/logic/action/update.py
M ckan/logic/schema.py
M ckan/templates/admin/config.html
A ckanext/example_iconfigurer/templates/admin/config.html
Log Message:
-----------
[#2429] Update admin controller to use new actions
Bring the config method of the admin controller more in line with how
the rest of form/controllers work in ckan. Call `config_option_update`
action, catch and display ValidationErrors.
Pass all editable options to the form template, even if the fields are
not displayed by default. This way extensions can add fields to the form
and these will get stored.
Added an example on how to extend the template to the example_iconfigurer
extension.
Commit: 720d0cb3011fa3f53891878fc6b57a96333c3252
https://github.com/ckan/ckan/commit/720d0cb3011fa3f53891878fc6b57a96333c3252
Author: amercader <amercadero at gmail.com>
Date: 2015-05-20 (Wed, 20 May 2015)
Changed paths:
M ckan/logic/action/get.py
M ckan/logic/auth/get.py
M ckan/logic/schema.py
M ckan/tests/logic/action/test_get.py
Log Message:
-----------
Merge branch '2429-remote-config' of github.com:ckan/ckan into 2429-remote-config
Conflicts:
ckan/logic/schema.py
Compare: https://github.com/ckan/ckan/compare/3bfee861fa17...720d0cb3011f
More information about the ckan-changes
mailing list