Add new management commands for siteconfig.
Review Request #3855 — Created Feb. 8, 2013 and submitted
Information | |
---|---|
chipx86 | |
Djblets | |
master | |
Reviewers | |
djblets | |
Add new management commands for siteconfig. This adds some useful management commands for listing the current site configuration, setting an existing key, or displaying the value of a key. It should help when correcting configuration or debugging a configuration problem. The new commands are: * list-siteconfig * get-siteconfig * set-siteconfig
Tested list-siteconfig, and saw the whole site configuration. Tested set-siteconfig with valid and invalid keys of different depths. Tested setting strings, integers, and booleans. Tried overriding arrays and dicts, and got the proper error. Tested get-siteconfig with valid and invalid keys, and different value types.
Description | From | Last Updated |
---|---|---|
unused import |
RA rajasaur | |
unused import |
RA rajasaur | |
Should the settings be reloaded using load_site_config after a save? I don't think so because these may just be commands … |
RA rajasaur |
RA
-
-
-
-
djblets/siteconfig/management/commands/set-siteconfig.py (Diff revision 1) Should the settings be reloaded using load_site_config after a save? I don't think so because these may just be commands that are run outside of the running process. But even in that case, lets say, I change the logging directory, we would need to call something to reset the logging setup if the settings is modified, isnt it?