[Openstack] Lazy import of modules
devin.carlen at gmail.com
Thu Jan 13 23:43:16 UTC 2011
I see no problem with putting lazy loading in common. Just because it's there doesn't mean swift has to use it. Common simply implies that they are modules used by several, but not necessarily all, projects.
On Jan 13, 2011, at 3:24 PM, Vishvananda Ishaya wrote:
> The lazy loading in common seems fine minus one small issue. If I read it correctly It looks like it is limited to a class or module. There doesn't seem to be a way to proxy into an object itself. I'd like to be able to specify a class (or a method) and have it lazy loaded into an object backend. This is what import_object did automatically that makes it so versatile. Admittedly it had an annoying bug that ate underlying exceptions, but imo, that is a bug that can be addressed.
> On Jan 13, 2011, at 3:07 PM, Ewan Mellor wrote:
>> I can understand that the Swift guys don't want to destabilize their codebase, but Glance and Nova should have some common items, no? Lazy loading, logging, and I18N support all spring to mind as likely to be common across Glance and Nova.
>>> -----Original Message-----
>>> From: Jay Pipes [mailto:jaypipes at gmail.com]
>>> Sent: 13 January 2011 11:50
>>> To: Ewan Mellor
>>> Cc: Todd Willey; openstack at lists.launchpad.net
>>> Subject: Re: [Openstack] Lazy import of modules
>>> On Wed, Jan 12, 2011 at 6:43 PM, Ewan Mellor
>>> <Ewan.Mellor at eu.citrix.com> wrote:
>>>> At the risk of starting to shave yaks: do we want to have an
>>> openstack-common then? It seems to be DOA at the moment.
>>> There's little to no agreement on common principles and code between
>>> the projects, unfortunately. It would be best, IMHO, to just put this
>>> in the Nova project alone. Swift coders don't have much interest in
>>> using much of the code in Nova, and for Glance, we've used a bit of
>>> code from Nova but will not likely be using much more, and may even
>>> revert some of the Nova-centric stuff (like flags.py) to more
>>> standards-based approaches used by Swift.
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
More information about the Openstack