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
11c56608
Commit
11c56608
authored
May 28, 2010
by
Wichert Akkerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Five's testbrowser to support both mechanize 0.1.x and 0.2.x.
parent
db63355c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/Products/Five/testbrowser.py
src/Products/Five/testbrowser.py
+4
-9
No files found.
doc/CHANGES.rst
View file @
11c56608
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
Bugs Fixed
++++++++++
++++++++++
- Update Five's testbrowser to support both mechanize 0.1.x and 0.2.x.
- Five's processInputs() would stomp on :list or :tuple values that contained
- Five's processInputs() would stomp on :list or :tuple values that contained
ints or other non-strings, would clear out :records entirely, and would not
ints or other non-strings, would clear out :records entirely, and would not
do anything for :record fields.
do anything for :record fields.
...
...
src/Products/Five/testbrowser.py
View file @
11c56608
...
@@ -95,15 +95,10 @@ class PublisherMechanizeBrowser(mechanize.Browser):
...
@@ -95,15 +95,10 @@ class PublisherMechanizeBrowser(mechanize.Browser):
'_equiv'
,
'_basicauth'
,
'_digestauth'
]
'_equiv'
,
'_basicauth'
,
'_digestauth'
]
def
__init__
(
self
,
*
args
,
**
kws
):
def
__init__
(
self
,
*
args
,
**
kws
):
inherited_handlers
=
[
'_unknown'
,
'_http_error'
,
self
.
handler_classes
=
mechanize
.
Browser
.
handler_classes
.
copy
()
'_http_request_upgrade'
,
'_http_default_error'
,
'_basicauth'
,
self
.
handler_classes
[
"http"
]
=
PublisherHTTPHandler
'_digestauth'
,
'_redirect'
,
'_cookies'
,
'_referer'
,
self
.
default_others
=
[
cls
for
cls
in
self
.
default_others
'_refresh'
,
'_equiv'
,
'_gzip'
]
if
cls
in
mechanize
.
Browser
.
handler_classes
]
self
.
handler_classes
=
{
"http"
:
PublisherHTTPHandler
}
for
name
in
inherited_handlers
:
self
.
handler_classes
[
name
]
=
mechanize
.
Browser
.
handler_classes
[
name
]
mechanize
.
Browser
.
__init__
(
self
,
*
args
,
**
kws
)
mechanize
.
Browser
.
__init__
(
self
,
*
args
,
**
kws
)
...
...
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