#######################################################################################
""" Photo metadata read / write module
-$Id: metadata.py 1272 2009-08-11 08:57:35Z pin $
-$URL: http://svn.luxia.fr/svn/labo/projects/zope/Photo/trunk/metadata.py $
+
+
"""
from AccessControl import ClassSecurityInfo
node = index.get(path)
if node :
- firstLi = node['rdf:Alt/rdf:li']
- assert firstLi.unique, "More than one rdf:Alt (localisation not yet supported)"
- return firstLi.element.content
+ firstLi = node.get('rdf:Alt/rdf:li')
+ if firstLi :
+ assert firstLi.unique, "More than one rdf:Alt (localisation not yet supported)"
+ return firstLi.element.content
return ''
security.declarePrivate('getXmpProp')