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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
05b42add
Commit
05b42add
authored
Jul 27, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The testbrowser transition message should always be an utf-8 string (meaningful for Japanese).
parent
4558ac2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
erp5/util/testbrowser/browser.py
erp5/util/testbrowser/browser.py
+7
-1
No files found.
erp5/util/testbrowser/browser.py
View file @
05b42add
...
...
@@ -424,9 +424,15 @@ class Browser(ExtendedTestBrowser):
@raise LookupError: Not found
"""
try
:
return
self
.
etree
.
xpath
(
'//div[@id="transition_message"]'
)[
0
].
text
transition_message
=
self
.
etree
.
xpath
(
'//div[@id="transition_message"]'
)[
0
].
text
except
IndexError
:
raise
LookupError
(
"Cannot find div with ID 'transition_message'"
)
else
:
if
isinstance
(
transition_message
,
unicode
):
transition_message
=
transition_message
.
encode
(
'utf-8'
)
return
transition_message
def
getInformationArea
(
self
):
"""
...
...
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