aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-07-22 20:50:11 +0200
committerOlivier Tilloy <olivier@tilloy.net>2009-07-22 20:50:11 +0200
commitfd3b4d7d42d1b30a550da896915527b2a2e1392c (patch)
treea472297d4219e8da6431a2d3d64b6b1436928655
parent889434cd6dd78ad14bb5ff6618bd53af597ee8b6 (diff)
downloadpyexiv2-fd3b4d7d42d1b30a550da896915527b2a2e1392c.tar.gz
Removed deprecated code.
Updated todo list.
-rw-r--r--src/pyexiv2.py24
-rw-r--r--todo1
2 files changed, 1 insertions, 24 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 1225069..42fde3e 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -1488,27 +1488,3 @@ class ImageMetadata(object):
except AttributeError:
raise KeyError(key)
-
-class Image(libexiv2python.Image):
-
- """
- DEPRECATED. DO NOT USE.
- """
-
- def copyMetadataTo(self, destImage):
- # TODO: add optional parameters exif=True, iptc=True, xmp=True, so that
- # one can choose to copy only part of the metadata.
- """
- Duplicate all the tags and the comment from this image to another one.
-
- Read all the values of the EXIF and IPTC tags and the comment and write
- them back to the new image.
-
- Keyword arguments:
- destImage -- the destination image to write the copied metadata back to
- """
- for key in self.exifKeys():
- destImage[key] = self[key]
- for key in self.iptcKeys():
- destImage[key] = self[key]
- destImage.setComment(self.getComment())
diff --git a/todo b/todo
index 89fb3de..c52adf7 100644
--- a/todo
+++ b/todo
@@ -1,5 +1,6 @@
todo list
+- Reimplement copyMetadataTo in C++
- Unit test the C++ wrapper (in python, if possible)
- Use logging to log, among other things, decoding and type conversion errors
- The constructor of the Image class should accept a buffered file