aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 1b54782..a24492c 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -608,6 +608,7 @@ class XmpTag(MetadataTag):
elif xtype == 'Locale':
# TODO
+ # See RFC 3066
raise NotImplementedError('XMP conversion for type [%s]' % xtype)
elif xtype == 'MIMEType':
@@ -633,7 +634,6 @@ class XmpTag(MetadataTag):
raise NotImplementedError('XMP conversion for type [%s]' % xtype)
elif xtype in ('URI', 'URL'):
- # TODO: use urlparse?
return value
elif xtype == 'XPath':
@@ -660,6 +660,12 @@ class XmpTag(MetadataTag):
if xtype == 'Boolean' and type(value) is bool:
return str(value)
+ elif xtype == 'Integer':
+ if type(value) in (int, long):
+ return str(value)
+ else:
+ raise XmpValueError(value, xtype)
+
elif xtype == 'Text':
if type(value) is unicode:
try: