Pickling an {Exif,Iptc,Xmp}Tag itself

Bug #628735 reported by Ingo Breßler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Wishlist
Olivier Tilloy

Bug Description

I'm on the way writing a small GUI for copying individual tags between files. That's when a problem arose: How to serialize a tag, e.g. pyexiv2.exif.ExifTag ?

The simplest way would be to stuff a pyexiv2.exif.ExifTag into a QTreeWidgetItem as QVariant data payload. But it doesn't seem to support pickling:
"RuntimeError: Pickling of "libexiv2python._ExifTag" instances is not enabled (http://www.boost.org/libs/python/doc/v2/pickle.html)"

proposed workaround:
=> "As you found out, your best option to serialize a tag is to pickle a tuple (key, value), which will allow to reconstruct the tag later. Pickling an {Exif,Iptc,Xmp}Tag itself is not directly possible at the moment, but it would be a nice enhancement."

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :

This feature request originated from question #123606.

Changed in pyexiv2:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in pyexiv2:
status: Confirmed → Triaged
Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
milestone: none → 0.3
status: Triaged → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Implemented with revision 347 in the trunk.

Changed in pyexiv2:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.