Stephen Wood
2004-05-26 03:37:08 UTC
I am trying to do media upload and am stuck trying to understand
something.
I have this method:
def savewallpapers(self, results, merge):
return self.savemedia('wallpapers', 'wallpaper-index', results)
And a savemedia the starts:
def savemedia(self, mediakey, mediaindexkey, results):
wp=results[mediakey].copy()
wpi=results[mediaindexkey].copy()
If I print wp, it contains origin, data, and name for each wallpaper.
But wpi, is empty. If I put print statements elsewhere in bitpim,
wallpaper-index is non-empty in the dictionary, but by the time it gets
to savewallpapers, it's empty.
Does the wallpaper-index get filtered somewhere. I have set
WALLPAPER_WIDTH, HEIGHT, to 96x96 and WALLPAPER_CONVERT_FORMAT to bmp,
matching at least some of the wallpapers I have in my bitpim files
directory.
Any thoughts?
Stephen
something.
I have this method:
def savewallpapers(self, results, merge):
return self.savemedia('wallpapers', 'wallpaper-index', results)
And a savemedia the starts:
def savemedia(self, mediakey, mediaindexkey, results):
wp=results[mediakey].copy()
wpi=results[mediaindexkey].copy()
If I print wp, it contains origin, data, and name for each wallpaper.
But wpi, is empty. If I put print statements elsewhere in bitpim,
wallpaper-index is non-empty in the dictionary, but by the time it gets
to savewallpapers, it's empty.
Does the wallpaper-index get filtered somewhere. I have set
WALLPAPER_WIDTH, HEIGHT, to 96x96 and WALLPAPER_CONVERT_FORMAT to bmp,
matching at least some of the wallpapers I have in my bitpim files
directory.
Any thoughts?
Stephen