diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-03-27 00:07:27 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-03-27 00:07:27 +0200 |
commit | bbe0a2e95843cd223abb5811bb1232aaf6074479 (patch) | |
tree | c64dea4336b48934c0945d6da3c6a17ba109ad2e | |
parent | dba7c7c0da714b01b16ed089a195313d4280798e (diff) | |
download | pyexiv2-bbe0a2e95843cd223abb5811bb1232aaf6074479.tar.gz |
Internal accessor __getitem__ now returns a tuple (immutable) when requesting the values of a repeatable IPTC tag.
Updated the todo list.
-rw-r--r-- | src/pyexiv2.py | 2 | ||||
-rw-r--r-- | todo | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py index ec4a892..b1dd88f 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -471,6 +471,8 @@ class Image(libpyexiv2.Image): value = self.getIptcTagValue(key) if len(value) == 1: value = value[0] + elif len(value) > 1: + value = tuple(value) self.__iptcTagsDict[key] = value return value else: @@ -2,6 +2,7 @@ todo list - Fix the issue when changing one value inside a list returned by image[key]: the value is changed in the internal dictionnary but no call to setIptcTagValue() is performed -> use tuples instead of lists, tuples are immutables - Disable the get...() and set...() methods (by making them private) -> metadata is accessible only through the dictionnary metaphor +- Write methods cacheAllExifTags() and cacheAllIptcTags() that will read and cache all the tag values (to be used in a separate threads, for applications that need to access all the tags anyway) - Rewrite the exiv2 command-line tool and the test binaries in Python and (Python) scripts to run the same tests that are run to test exiv2 - Rewrite the docstring documentation of the module using epydoc's syntax (http://epydoc.sourceforge.net/manual-fields.html) - Write a complete documentation for the binding and it uses |