aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-03-27 00:07:27 +0200
committerOlivier Tilloy <olivier@tilloy.net>2007-03-27 00:07:27 +0200
commitbbe0a2e95843cd223abb5811bb1232aaf6074479 (patch)
treec64dea4336b48934c0945d6da3c6a17ba109ad2e
parentdba7c7c0da714b01b16ed089a195313d4280798e (diff)
downloadpyexiv2-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.py2
-rw-r--r--todo1
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:
diff --git a/todo b/todo
index 91cc08c..1e716a9 100644
--- a/todo
+++ b/todo
@@ -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