[openstack-dev] openstack-common library release [was Re: [Netstack] Request for comments on a pep8 problem]
Doug Hellmann
doug.hellmann at dreamhost.com
Tue Aug 7 10:55:08 UTC 2012
On Aug 7, 2012, at 3:08 AM, Mark McLoughlin <markmc at redhat.com> wrote:
> On Fri, 2012-08-03 at 13:40 -0400, Jay Pipes wrote:
>> I'd prefer smaller, reusable libs as well. Unfortunately, the decision
>> to use global CONF objects has essentially made the config module an
>> interdependency between all the other common code, so at a minimum, the
>> config module would need to be a dep in the other libs.
>
> Yes, most openstack-common modules depend on cfg.
>
> But this isn't because of the global config object. The dependency is
> there because we want to allow modules to define configuration options.
Unfortunately it means the modules are going to be harder to reuse outside of OpenStack because instead of providing a class-based API that takes individual arguments that can come from another application's config, or even a single config object as argument, the global object needs to be initialized correctly.
Doug
>
> Cheers,
> Mark.
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list