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
3028a9a5
Commit
3028a9a5
authored
Apr 21, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! fixup! fixup! oauth2_authorisation: py3
parent
edcf93e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_oauth2_authorisation/TestTemplateItem/portal_components/test.erp5.testOAuth2Server.py
...plateItem/portal_components/test.erp5.testOAuth2Server.py
+5
-2
bt5/erp5_oauth2_resource/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationClientConnector.py
...nents/document.erp5.OAuth2AuthorisationClientConnector.py
+1
-1
No files found.
bt5/erp5_oauth2_authorisation/TestTemplateItem/portal_components/test.erp5.testOAuth2Server.py
View file @
3028a9a5
...
@@ -70,13 +70,12 @@ _HTML_FIELD_TAG_SET = {
...
@@ -70,13 +70,12 @@ _HTML_FIELD_TAG_SET = {
# Very incomplete, but enough for this tests' purpose: ignores "select"s...
# Very incomplete, but enough for this tests' purpose: ignores "select"s...
}
}
class
FormExtractor
(
HTMLParser
):
class
FormExtractor
(
HTMLParser
):
# pylint:disable=abstract-method
def
reset
(
self
):
def
reset
(
self
):
self
.
__in_form
=
False
self
.
__in_form
=
False
self
.
form_list
=
[]
self
.
form_list
=
[]
HTMLParser
.
reset
(
self
)
HTMLParser
.
reset
(
self
)
def
handle_starttag
(
self
,
tag
,
attribute_item_list
):
# pylint:disable=arguments-renamed
def
handle_starttag
(
self
,
tag
,
attribute_item_list
):
attr_dict
=
dict
(
attribute_item_list
)
attr_dict
=
dict
(
attribute_item_list
)
if
tag
==
'form'
:
if
tag
==
'form'
:
assert
not
self
.
__in_form
assert
not
self
.
__in_form
...
@@ -92,6 +91,10 @@ class FormExtractor(HTMLParser):
...
@@ -92,6 +91,10 @@ class FormExtractor(HTMLParser):
if
tag
==
'form'
:
if
tag
==
'form'
:
self
.
__in_form
=
False
self
.
__in_form
=
False
def
error
(
self
,
message
):
raise
ValueError
(
message
)
class
TestOAuth2
(
ERP5TypeTestCase
):
class
TestOAuth2
(
ERP5TypeTestCase
):
# pylint:disable=unused-private-member
# pylint:disable=unused-private-member
__cleanup_list
=
None
__cleanup_list
=
None
...
...
bt5/erp5_oauth2_resource/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationClientConnector.py
View file @
3028a9a5
...
@@ -229,7 +229,7 @@ class _OAuth2AuthorisationServerProxy(object):
...
@@ -229,7 +229,7 @@ class _OAuth2AuthorisationServerProxy(object):
Connection
=
HTTPConnection
Connection
=
HTTPConnection
if
six
.
PY2
:
if
six
.
PY2
:
# Changed in version 3.4: The strict parameter was removed.
# Changed in version 3.4: The strict parameter was removed.
# HTTP 0.9-style
“Simple Responses”
are no longer supported.
# HTTP 0.9-style
"Simple Responses"
are no longer supported.
Connection
=
functools
.
partial
(
Connection
,
strict
=
True
)
Connection
=
functools
.
partial
(
Connection
,
strict
=
True
)
timeout
=
getTimeLeft
()
timeout
=
getTimeLeft
()
if
timeout
is
None
or
timeout
>
self
.
_timeout
:
if
timeout
is
None
or
timeout
>
self
.
_timeout
:
...
...
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