From d56cd4dcb2e3ed06d6ef40cbe6cca3f57355187d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 17 Jun 2016 09:36:04 +0100 Subject: [PATCH] note py problem --- TODO | 6 ++++++ python/packages/gi/overrides/Vips.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 78ccb86f..03de27da 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,9 @@ +- python can't set new metadata, it can only set existing metadata + + im.set_value("banana", 12) + + will fail as Vips.py tries to look up the type of "banana" + - add more webp tests to py suite - try moving some more of the CLI tests to py diff --git a/python/packages/gi/overrides/Vips.py b/python/packages/gi/overrides/Vips.py index 8f286923..7363a6d6 100644 --- a/python/packages/gi/overrides/Vips.py +++ b/python/packages/gi/overrides/Vips.py @@ -869,8 +869,8 @@ class Image(Vips.Image): For example, bytes() can be used to set VipsBlob fields. """ gtype = self.get_typeof(field) - logger.debug('assigning %s to %s' % (value, self)) - logger.debug('%s needs a %s' % (self, gtype)) + logger.debug('%s.%s = %s' % (self, field, value)) + logger.debug('%s.%s needs a %s' % (self, field, gtype)) # blob-ize if GObject.type_is_a(gtype, vips_type_blob):