better handling of configuration actions in the conf object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pecan |
Confirmed
|
Low
|
Unassigned |
Bug Description
One way to alter configuration values in Pecan, for example for testing, would be something like:
from pecan import conf, configuration
# alter a value
conf.foo = 1
# set it
configuration.
--
It is a bit confusing to have different modules to work with. This is specially true for making changes on the fly like the above
example. For `set_config` I would expect a more unified API, where actions in the `conf` object can be done like:
from pecan import conf
conf.set_
--
I understand that there is a chance for collisions in the conf object with keys from a configuration file, but maybe something like:
conf.
Changed in pecan: | |
importance: | Undecided → Low |
status: | New → Confirmed |