From 875b5a6e2c3e37f4107f563485f6063f395315f7 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Fri, 30 Mar 2007 22:57:31 +0200 Subject: Internally renamed methods getAvailableExifTags() and getAvailableIptcTags() to exifKeys() and iptcKeys(). Changed the type of exception raised when trying to get a value corresponding to an invalid IPTC key (TypeError, to comply with http://docs.python.org/ref/sequence-types.html). --- src/libpyexiv2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libpyexiv2.cpp') diff --git a/src/libpyexiv2.cpp b/src/libpyexiv2.cpp index 93b0f02..4bd515e 100644 --- a/src/libpyexiv2.cpp +++ b/src/libpyexiv2.cpp @@ -74,7 +74,7 @@ namespace LibPyExiv2 throw Exiv2::Error(METADATA_NOT_READ); } - boost::python::list Image::getAvailableExifTags() + boost::python::list Image::exifKeys() { boost::python::list list; if(_dataRead) @@ -176,7 +176,7 @@ namespace LibPyExiv2 throw Exiv2::Error(METADATA_NOT_READ); } - boost::python::list Image::getAvailableIptcTags() + boost::python::list Image::iptcKeys() { boost::python::list list; if(_dataRead) @@ -394,12 +394,12 @@ namespace LibPyExiv2 case 37: PyErr_SetString(PyExc_IOError, message); break; + case 4: + case 5: case 6: case 7: PyErr_SetString(PyExc_IndexError, message); break; - case 4: - case 5: case 8: case 22: case 24: -- cgit