~osomon/pyexiv2/pyexiv2-0.3

  • Committer: Olivier Tilloy
  • Date: 2012-01-16 19:06:53 UTC
  • Revision ID: olivier@tilloy.net-20120116190653-x1d7burdvwaa4so5
Simplify and optimize ExifTag::setParentImage(…) and XmpTag::setParentImage(…)
by re-setting the value of the datum to a copy of the existing datum’s value.

This also fixes setting the value of an XMP tag of type array to [''] (this issue was uncovered by Benjamin Henne, see http://dev.exiv2.org/boards/3/topics/1039 for details).

Unfortunately this can’t easily be transposed to IptcTag::setParentImage(…) due to implementation details.
Filename Latest Rev Last Changed Committer Comment Size
..
data 86 17 years ago Olivier Tilloy Added some unit tests for basic functionalities. T Diff
__init__.py 301.1.2 15 years ago Olivier Tilloy Importable function to run the test suite. Empty Diff Download File
buffer.py 301.1.1 15 years ago Olivier Tilloy Allow running the unit tests from anywhere. 3 KB Diff Download File
datetimeformatter.py 359.1.3 13 years ago Olivier Tilloy Custom DateTimeFormatter helper to convert date/ti 9.3 KB Diff Download File
encoding.py 357.1.1 13 years ago Olivier Tilloy Do not try (and fail!) to encode non-unicode filen 3.4 KB Diff Download File
exif.py 366 13 years ago Olivier Tilloy Fix a unit test so that the test suite can be run 16 KB Diff Download File
gps_coordinate.py 270 15 years ago Olivier Tilloy Longitudes accept values between 0 and 180 degrees 3.3 KB Diff Download File
iptc.py 371 13 years ago Olivier Tilloy Replace the deprecated 'raw_values' and 'values' a 12.7 KB Diff Download File
metadata.py 364 13 years ago Olivier Tilloy Use getattr, setattr and delattr where possible, i 35 KB Diff Download File
notifying_list.py 241.2.1 15 years ago Olivier Tilloy Updated copyright headers for 2010. Happy new year 12 KB Diff Download File
pickling.py 347.1.2 14 years ago Olivier Tilloy Handle fractions in a transparent manner, using th 5.3 KB Diff Download File
rational.py 355.1.5 13 years ago Olivier Tilloy Added unit tests for Rational.__repr__(). 3.6 KB Diff Download File
ReadMetadataTestCase.py 347.1.2 14 years ago Olivier Tilloy Handle fractions in a transparent manner, using th 10.3 KB Diff Download File
SConscript 301.1.7 15 years ago Olivier Tilloy The test scons target is now aware of the result o 306 bytes Diff Download File
File TestsRunner.py 359.1.3 13 years ago Olivier Tilloy Custom DateTimeFormatter helper to convert date/ti 3.3 KB Diff Download File
testutils.py 363 13 years ago Olivier Tilloy Updated header. 2.8 KB Diff Download File
usercomment.py 363.1.4 13 years ago Olivier Tilloy Add some sanity checks on the types of the UserCom 5.2 KB Diff Download File
utils.py 354.1.1 14 years ago Olivier Tilloy Do not fail to parse rationals stored as '0/0'. In 4.2 KB Diff Download File
xmp.py 369.1.1 13 years ago Olivier Tilloy Implement a poor man’s test skipping solution to s 25.1 KB Diff Download File