[deprecation] fix 3.9 deprecation warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 May 2010 09:50:20 +0200
changeset 5576 08c6d4d6c50c
parent 5575 8a531340c3ef
child 5578 6b9fee0c5c42
[deprecation] fix 3.9 deprecation warning
server/sources/storages.py
--- a/server/sources/storages.py	Tue May 25 09:50:12 2010 +0200
+++ b/server/sources/storages.py	Tue May 25 09:50:20 2010 +0200
@@ -150,7 +150,7 @@
         # PIL processing that use filename extension to detect content-type, as
         # well as providing more understandable file names on the fs.
         basename = [str(entity.eid), attr]
-        name = entity.attr_metadata(attr, 'name')
+        name = entity.cw_attr_metadata(attr, 'name')
         if name is not None:
             basename.append(name.encode(self.fsencoding))
         fspath = uniquify_path(self.default_directory, '_'.join(basename))