Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
Commits
c07f39fd
Commit
c07f39fd
authored
Jun 21, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs in Localizer:
* to_str does not return str result * typo in variable name
parent
dd7bffd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/Localizer/MessageCatalog.py
product/Localizer/MessageCatalog.py
+2
-2
No files found.
product/Localizer/MessageCatalog.py
View file @
c07f39fd
...
@@ -76,7 +76,7 @@ def to_str(x):
...
@@ -76,7 +76,7 @@ def to_str(x):
"""Make sure we have an (utf-8 encoded) string"""
"""Make sure we have an (utf-8 encoded) string"""
if
isinstance
(
x
,
str
):
if
isinstance
(
x
,
str
):
return
x
return
x
x
.
encode
(
'utf-8'
)
return
x
.
encode
(
'utf-8'
)
def
message_encode
(
message
):
def
message_encode
(
message
):
"""Encodes a message to an ASCII string.
"""Encodes a message to an ASCII string.
...
@@ -606,7 +606,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
...
@@ -606,7 +606,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
RESPONSE
.
setHeader
(
'Content-Disposition'
,
RESPONSE
.
setHeader
(
'Content-Disposition'
,
'inline;filename=%s'
%
filename
)
'inline;filename=%s'
%
filename
)
return
'
\
n
'
.
join
(
r
2
)
return
'
\
n
'
.
join
(
r
)
security
.
declareProtected
(
'Manage messages'
,
'po_import'
)
security
.
declareProtected
(
'Manage messages'
,
'po_import'
)
...
...
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