progrium / ginkgo

Python service microframework
http://ginkgo.readthedocs.org
MIT License
325 stars 51 forks source link

add namespaces to config module #28

Closed progrium closed 12 years ago

progrium commented 12 years ago

Right now, config loads into a global registry. But it should namespace these configurations.

Also, there is a Namespace class used by load() now that is used for making sub configuration namespaces... it has nothing to do with this issue. Perhaps that should be renamed. Or maybe this should be called something else.

progrium commented 12 years ago

Configuration is now (0.5.0) loaded into a Config object, which represents one configuration. If you have two configurations (say for testing two apps in one process) you can create two Config objects and pass them into two Process objects.