Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
2b336df9
Commit
2b336df9
authored
Mar 23, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listbox: support non ascii URL in all cases
parent
85f3eae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+3
-2
No files found.
product/ERP5Form/ListBox.py
View file @
2b336df9
...
...
@@ -2445,6 +2445,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
except
AttributeError
:
pass
if
isinstance
(
url
,
str
):
url
=
unicode
(
url
,
encoding
)
if
editable_field
is
not
None
:
uid
=
self
.
getUid
()
key
=
'%s_%s'
%
(
editable_field
.
getId
(),
uid
)
...
...
@@ -2526,8 +2529,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
if
url
is
not
None
:
# JPS-XXX - I think we should not display a URL for objects
# which do not have the View permission
if
isinstance
(
url
,
str
):
url
=
unicode
(
url
,
encoding
)
html
=
u'<a href="%s">%s</a>'
%
(
url
,
html
)
html_list
.
append
((
html
,
original_value
,
error
,
editable_field
,
url
))
...
...
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