ba44d1c384
These generic factories allow us to dump the copied and pasted app_factory and filter_factory methods in the codebase. The main difference is the paste configuration changes from: [app:apiv1app] paste.app_factory = glance.api.v1:app_factory ... [filter:cache] paste.filter_factory = glance.api.middleware.cache:filter_factory to this: [app:apiv1app] paste.app_factory = glance.common.wsgi:app_factory glance.app_factory = glance.api.v1:API ... [filter:cache] paste.filter_factory = glance.common.wsgi:filter_factory glance.filter_factory = glance.api.middleware.cache:CacheFilter Apart from reducing code duplication, this will also allow us to have the generic factories inject other data into the apps and filters. Change-Id: I1d2be5630ab61d29b8948ff88d58e6e1b11c2e5f |
||
---|---|---|
.. | ||
glance-api.conf | ||
glance-cache.conf | ||
glance-registry.conf | ||
glance-scrubber.conf | ||
logging.cnf.sample |