Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
08c6d4d6c50c
Commit
305c7937
authored
May 25, 2010
by
Sylvain Thénault
Browse files
[deprecation] fix 3.9 deprecation warning
parent
8a531340c3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/sources/storages.py
View file @
08c6d4d6
...
...
@@ -150,7 +150,7 @@ class BytesFileSystemStorage(Storage):
# 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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment