On 03/24/2011 04:34 PM, jprovazn(a)redhat.com wrote:
From: Jan Provaznik<jprovazn(a)redhat.com>
sync code moved to models. Image, ProviderImage, Icicle and Template now has
warehouse_sync method. When you call this method attributes are updated from
warehouse, note that save call is not part of this method - you need to save
explicitly (this is because of after_save hooks for image and provider_iamge
call warehouse_sync so there could be recursion)
Note: I don't have functional imagefactory, so I haven't done e2e test.
I've intensively tested this with console and some scripts simulating
imagefactory behaviour but it's still possible it won't work in real world.
Jan