From 7ef2f339bf2b7439d33a51582038ac98867fdee7 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Thu, 15 Mar 2007 22:44:30 +0100 Subject: Added a __getitem__(key) method to class Image in order to allow the use of the dictionary metaphor to access metadata tags. TODO: define the corresponding __setitem__(key, value) and __delitem__(key) methods for completeness. --- todo | 1 + 1 file changed, 1 insertion(+) (limited to 'todo') diff --git a/todo b/todo index 0d77768..009f38e 100644 --- a/todo +++ b/todo @@ -1,6 +1,7 @@ todo list - Allow access to the tag values using the dictionary syntax (read values on the fly when needed, lazy instantiation) -> operator overloading with __getitem__() and __setitem__() +- Also allow the deletion of items in the same way - Cache already queried values (see dictionary on previous line) - Disable the get...() and set...() methods (by making them private) -> metadata is accessible only through the dictionnary metaphor - 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 -- cgit