]> CRI, Mines Paris - PSL - Photo.git/commitdiff
_current_filename n'existe plus avec zope-2.12. On remlace par son implémentation.
authorBenoît Pin <benoit.pin@gmail.com>
Sun, 21 Nov 2010 10:55:28 +0000 (11:55 +0100)
committerBenoît Pin <benoit.pin@gmail.com>
Sun, 21 Nov 2010 10:55:28 +0000 (11:55 +0100)
metadata.py

index 156df581d917d0495133c144c87cc937444a1d19..310392b7a1030ca29fd15ac64efc3ecab543a69c 100755 (executable)
@@ -71,7 +71,7 @@ class Metadata :
                        """returns xmp metadata packet with xmpdump call
                        """
                        if self.size :
-                               blob_file_path = self.bdata._current_filename()
+                               blob_file_path = self.bdata._p_blob_uncommitted or self.bdata._p_blob_committed
                                dumpcmd = '%s %s' % (XMPDUMP, blob_file_path)
                                p = Popen(dumpcmd, stdout=PIPE, stderr=PIPE, stdin=PIPE, shell=True)
                                xmp, err = p.communicate()