aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-07-08 09:46:56 +0200
committerOlivier Tilloy <olivier@tilloy.net>2009-07-08 09:46:56 +0200
commitcb4c7f38845bc19e3207cbd1caf4bdf3f4c59044 (patch)
tree5e6a0d429b143b95328af48a412a93b87c111291 /src
parentde24aad2de945963a047fa3154b123f022ce0861 (diff)
downloadpyexiv2-cb4c7f38845bc19e3207cbd1caf4bdf3f4c59044.tar.gz
Improved documentation.
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2.py25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index ff3169a..00e9116 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -28,6 +28,8 @@
"""
Manipulation of EXIF, IPTC and XMP metadata embedded in image files.
+FIXME: update this docstring.
+
This module provides a single class, Image, and utility functions to manipulate
EXIF, IPTC and XMP metadata embedded in image files such as JPEG and TIFF files.
EXIF, IPTC and XMP metadata can be accessed in both read and write modes.
@@ -347,15 +349,30 @@ class MetadataTag(object):
"""
A generic metadata tag.
- DOCME
+ It is meant to be subclassed to implement specific tag types behaviours.
+
+ @ivar key: a unique key that identifies the tag
+ @type key: C{str}
+ @ivar name: the short internal name that identifies the tag within
+ its scope
+ @type name: C{str}
+ @ivar label: a human readable label for the tag
+ @type label: C{str}
+ @ivar description: a description of the function of the tag
+ @type description: C{str}
+ @ivar xtype: the data type name
+ @type xtype: C{str}
+ @ivar raw_value: the raw value of the tag as provided by exiv2
+ @type raw_value: C{str}
+ @ivar metadata: reference to the containing metadata if any
+ @type metadata: L{pyexiv2.ImageMetadata}
"""
def __init__(self, key, name, label, description, xtype, value):
- """
- Constructor.
- """
self.key = key
self.name = name
+ # FIXME: all attributes that may contain a localized string should be
+ # unicode.
self.label = label
self.description = description
self.xtype = xtype