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
Paul Graydon
erp5
Commits
c95b1bec
Commit
c95b1bec
authored
Aug 04, 2014
by
Romain Courteaud
Committed by
Cédric de Saint Martin
Oct 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put all expected query parameters in the REQUEST
(cherry picked from commit
d6d3df6d
)
parent
9c2a0089
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+7
-1
bt5/erp5_hal_json_style/bt/revision
bt5/erp5_hal_json_style/bt/revision
+1
-1
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
View file @
c95b1bec
...
@@ -477,7 +477,6 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
...
@@ -477,7 +477,6 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
# instead of form, unexpected action TALES expression). Happy debugging.\n
# instead of form, unexpected action TALES expression). Happy debugging.\n
# renderer_form_relative_url = view_action[\'url\'][len(portal.absolute_url()):]\n
# renderer_form_relative_url = view_action[\'url\'][len(portal.absolute_url()):]\n
form_id = embedded_url.split(\'?\', 1)[0].split("/")[-1]\n
form_id = embedded_url.split(\'?\', 1)[0].split("/")[-1]\n
# XXX Drop (or do something else...) all query parameters (?reset:int=1)\n
# renderer_form = traversed_document.restrictedTraverse(form_id, None)\n
# renderer_form = traversed_document.restrictedTraverse(form_id, None)\n
# XXX Proxy field are not correctly handled in traversed_document of web site\n
# XXX Proxy field are not correctly handled in traversed_document of web site\n
renderer_form = getattr(traversed_document, form_id)\n
renderer_form = getattr(traversed_document, form_id)\n
...
@@ -490,6 +489,13 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
...
@@ -490,6 +489,13 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
}\n
}\n
}\n
}\n
}\n
}\n
# Put all query parameters (?reset:int=1&workflow_action=start_action) in request to mimic usual form display\n
query_split = embedded_url.split(\'?\', 1)\n
if len(query_split) == 2:\n
for query_parameter in query_split[1].split("&"):\n
query_key, query_value = query_parameter.split("=")\n
REQUEST.set(query_key, query_value)\n
\n
renderForm(renderer_form, embedded_dict)\n
renderForm(renderer_form, embedded_dict)\n
result_dict[\'_embedded\'] = {\n
result_dict[\'_embedded\'] = {\n
\'_view\': embedded_dict\n
\'_view\': embedded_dict\n
...
...
bt5/erp5_hal_json_style/bt/revision
View file @
c95b1bec
22
23
\ No newline at end of file
\ No newline at end of file
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