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
preetwinder
erp5
Commits
579b6a50
Commit
579b6a50
authored
Jun 20, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow POST to be given as a dict to Browser.open() for readability sake in test script.
parent
7269f4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
erp5/util/testbrowser/browser.py
erp5/util/testbrowser/browser.py
+5
-1
No files found.
erp5/util/testbrowser/browser.py
View file @
579b6a50
...
@@ -31,8 +31,9 @@
...
@@ -31,8 +31,9 @@
##############################################################################
##############################################################################
import
logging
import
logging
import
sys
import
sys
import
urllib
from
urlparse
import
urljoin
from
urlparse
import
urljoin
from
z3c.etestbrowser.browser
import
ExtendedTestBrowser
from
z3c.etestbrowser.browser
import
ExtendedTestBrowser
from
zope.testbrowser.browser
import
onlyOne
from
zope.testbrowser.browser
import
onlyOne
...
@@ -198,6 +199,9 @@ class Browser(ExtendedTestBrowser):
...
@@ -198,6 +199,9 @@ class Browser(ExtendedTestBrowser):
# ERP5 base URL
# ERP5 base URL
absolute_url
=
urljoin
(
self
.
_erp5_base_url
,
url_or_path
)
absolute_url
=
urljoin
(
self
.
_erp5_base_url
,
url_or_path
)
if
isinstance
(
data
,
dict
):
data
=
urllib
.
urlencode
(
data
)
self
.
_logger
.
debug
(
"Opening url: "
+
absolute_url
)
self
.
_logger
.
debug
(
"Opening url: "
+
absolute_url
)
super
(
Browser
,
self
).
open
(
absolute_url
,
data
)
super
(
Browser
,
self
).
open
(
absolute_url
,
data
)
...
...
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