Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
c216b718
Commit
c216b718
authored
Nov 14, 2008
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made Five.testbrowser compatible with mechanize 0.1.7b.
parent
9edd2ed0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/Products/Five/testbrowser.py
lib/python/Products/Five/testbrowser.py
+2
-2
No files found.
doc/CHANGES.txt
View file @
c216b718
...
@@ -219,6 +219,8 @@ Zope Changes
...
@@ -219,6 +219,8 @@ Zope Changes
Bugs Fixed
Bugs Fixed
- Made Five.testbrowser compatible with mechanize 0.1.7b.
- Ensure that response header values cannot embed CRLF pairs, which
- Ensure that response header values cannot embed CRLF pairs, which
violate the HTTP spec (RFC 2616).
violate the HTTP spec (RFC 2616).
...
...
lib/python/Products/Five/testbrowser.py
View file @
c216b718
...
@@ -92,13 +92,13 @@ class PublisherMechanizeBrowser(mechanize.Browser):
...
@@ -92,13 +92,13 @@ class PublisherMechanizeBrowser(mechanize.Browser):
default_others
=
[
'_http_error'
,
'_http_request_upgrade'
,
default_others
=
[
'_http_error'
,
'_http_request_upgrade'
,
'_http_default_error'
]
'_http_default_error'
]
default_features
=
[
'_redirect'
,
'_cookies'
,
'_referer'
,
'_refresh'
,
default_features
=
[
'_redirect'
,
'_cookies'
,
'_referer'
,
'_refresh'
,
'_equiv'
,
'_basicauth'
,
'_digestauth'
,
'_seek'
]
'_equiv'
,
'_basicauth'
,
'_digestauth'
]
def
__init__
(
self
,
*
args
,
**
kws
):
def
__init__
(
self
,
*
args
,
**
kws
):
inherited_handlers
=
[
'_unknown'
,
'_http_error'
,
inherited_handlers
=
[
'_unknown'
,
'_http_error'
,
'_http_request_upgrade'
,
'_http_default_error'
,
'_basicauth'
,
'_http_request_upgrade'
,
'_http_default_error'
,
'_basicauth'
,
'_digestauth'
,
'_redirect'
,
'_cookies'
,
'_referer'
,
'_digestauth'
,
'_redirect'
,
'_cookies'
,
'_referer'
,
'_refresh'
,
'_equiv'
,
'_
seek'
,
'_
gzip'
]
'_refresh'
,
'_equiv'
,
'_gzip'
]
self
.
handler_classes
=
{
"http"
:
PublisherHTTPHandler
}
self
.
handler_classes
=
{
"http"
:
PublisherHTTPHandler
}
for
name
in
inherited_handlers
:
for
name
in
inherited_handlers
:
...
...
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