Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
02638321
Commit
02638321
authored
Nov 29, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_json_rpc_api: fixup
parent
04f368c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
master/bt5/erp5_json_rpc_api/DocumentTemplateItem/portal_components/document.erp5.JsonRpcAPIService.py
...Item/portal_components/document.erp5.JsonRpcAPIService.py
+11
-16
No files found.
master/bt5/erp5_json_rpc_api/DocumentTemplateItem/portal_components/document.erp5.JsonRpcAPIService.py
View file @
02638321
...
...
@@ -332,6 +332,17 @@ class JsonRpcAPIService(XMLObject):
)
def
executeMethod
(
self
,
request
):
self
.
log
(
'XXX ROMAIN execute method'
)
if
1
:
# jIOWebSection_requestSoftwareInstanceFromJSON
json_data
=
byteify
(
request
.
get
(
'BODY'
))
self
.
log
(
json_data
)
return
self
.
jIOWebSection_requestSoftwareInstanceFromJSON
(
json_data
=
byteify
(
json
.
loads
(
request
.
get
(
'BODY'
))))
#return 'nope'
#return self._asjIOStyle(mode="post", text_content=self.REQUEST.get('BODY'))
#raise NotImplementedError('plop')
# type: (HTTPRequest) -> Any
operation
=
self
.
getMatchingOperation
(
request
)
if
operation
is
None
:
...
...
@@ -360,21 +371,5 @@ class JsonRpcAPIService(XMLObject):
return
OpenAPIWrapper
(
self
,
request
)
return
obj
security
.
declareProtected
(
Permissions
.
View
,
'callAPIEndpointXXX'
)
def
callAPIEndpointXXX
(
self
):
"""
Taken from WebSection Bobo Traverse, the difference is that
__bobo_traverse__ from DocumentExtensibleTraversableMixin is not called
"""
# Register current web site physical path for later URL generation
#
# jIOWebSection_requestSoftwareInstanceFromJSON
json_data
=
byteify
(
self
.
REQUEST
.
get
(
'BODY'
))
self
.
log
(
json_data
)
return
self
.
jIOWebSection_requestSoftwareInstanceFromJSON
(
json_data
=
byteify
(
json
.
loads
(
self
.
REQUEST
.
get
(
'BODY'
))))
#return 'nope'
#return self._asjIOStyle(mode="post", text_content=self.REQUEST.get('BODY'))
def
__bobo_traverse__
(
self
,
request
,
name
):
raise
UseTraversalDefault
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