~phatch-dev/phatch/phatch_app

« back to all changes in this revision

Viewing changes to phatch/lib/metadata.py

  • Committer: Nadia Alramli
  • Date: 2010-02-04 22:31:12 UTC
  • mfrom: (1528.1.18 trunk)
  • Revision ID: nadiana@gmail.com-20100204223112-iq774zk0rdh0hhb6
Merging head changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1791
1791
            self.open(filename, sources)
1792
1792
 
1793
1793
    def __getitem__(self, var):
 
1794
        # force var as string, otherwise py2exiv fails (eg with unicode)
 
1795
        # eg u'Exif_Photo_DateTimeOriginal'
 
1796
        var = str(var)
1794
1797
        for info in self.list:
1795
1798
            if info.provides(var):
1796
1799
                return info[var]