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
2
Merge Requests
2
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
Cédric Le Ninivin
erp5
Commits
35a1119d
Commit
35a1119d
authored
Apr 29, 2024
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: Add Ugly code because customer dotnet sends strange characters before JSON
parent
b61b2c5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
...teItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
+4
-0
No files found.
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
View file @
35a1119d
...
@@ -4,6 +4,10 @@ from zExceptions import NotFound
...
@@ -4,6 +4,10 @@ from zExceptions import NotFound
# an external script is need to extract content from body: REQUEST.get('BODY')
# an external script is need to extract content from body: REQUEST.get('BODY')
mode
=
mode
or
context
.
REQUEST
.
form
.
get
(
"mode"
,
"get"
)
mode
=
mode
or
context
.
REQUEST
.
form
.
get
(
"mode"
,
"get"
)
text_content
=
text_content
or
context
.
REQUEST
.
form
.
get
(
"text_content"
,
""
)
text_content
=
text_content
or
context
.
REQUEST
.
form
.
get
(
"text_content"
,
""
)
# Ugly code because dotnet sends strange characters before JSON
while
text_content
and
text_content
[
0
]
!=
"{"
:
text_content
=
text_content
[
1
:]
document_id
=
document_id
or
context
.
REQUEST
.
form
.
get
(
"document_id"
,
""
)
document_id
=
document_id
or
context
.
REQUEST
.
form
.
get
(
"document_id"
,
""
)
web_section_value
=
context
.
getWebSectionValue
()
web_section_value
=
context
.
getWebSectionValue
()
...
...
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