Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
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
Noah Brackenbury
erp5
Commits
a0b62b51
Commit
a0b62b51
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
af34ccfc
Changes
1
Show 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 @
a0b62b51
...
@@ -2445,6 +2445,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
...
@@ -2445,6 +2445,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
except
AttributeError
:
except
AttributeError
:
pass
pass
if
isinstance
(
url
,
str
):
url
=
unicode
(
url
,
encoding
)
if
editable_field
is
not
None
:
if
editable_field
is
not
None
:
uid
=
self
.
getUid
()
uid
=
self
.
getUid
()
key
=
'%s_%s'
%
(
editable_field
.
getId
(),
uid
)
key
=
'%s_%s'
%
(
editable_field
.
getId
(),
uid
)
...
@@ -2526,8 +2529,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
...
@@ -2526,8 +2529,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
if
url
is
not
None
:
if
url
is
not
None
:
# JPS-XXX - I think we should not display a URL for objects
# JPS-XXX - I think we should not display a URL for objects
# which do not have the View permission
# 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
=
u'<a href="%s">%s</a>'
%
(
url
,
html
)
html_list
.
append
((
html
,
original_value
,
error
,
editable_field
,
url
))
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