server/sources/storages.py
changeset 5576 08c6d4d6c50c
parent 5549 ab3a69a34626
child 5627 a7e40cccdc9b
--- 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))