# HG changeset patch # User Sylvain Thénault # Date 1274773820 -7200 # Node ID 08c6d4d6c50c95bb8f9811618c1b202d3b69263a # Parent 8a531340c3ef3d2859099b03924e9f220ebf83a3 [deprecation] fix 3.9 deprecation warning diff -r 8a531340c3ef -r 08c6d4d6c50c 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))