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
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
Eteri
erp5
Commits
2aebe829
Commit
2aebe829
authored
Aug 05, 2014
by
Romain Courteaud
Committed by
Cédric de Saint Martin
Oct 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call Base_edit from the hateoas web section
(cherry picked from commit
63aa0d79
)
parent
fc20ea67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+2
-2
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 @
2aebe829
...
...
@@ -206,7 +206,7 @@ def renderForm(form, response_dict):\n
response_dict[\'_actions\'] = {\n
\'put\': {\n
"href": url_template_dict["form_action"] % {\n
"traversed_document_url":
traversed_document.absolute_u
rl(),\n
"traversed_document_url":
site_root.absolute_url() + "/" + traversed_document.getRelativeU
rl(),\n
"action_id": form.action\n
},\n
"method": form.method,\n
...
...
@@ -344,7 +344,7 @@ sql_catalog = portal.portal_catalog.getSQLCatalog()\n
is_web_mode = (context.REQUEST.get(\'current_web_section\', None) is not None) or context.isWebMode()\n
# is_web_mode = traversed_document.isWebMode()\n
if is_web_mode:\n
site_root = context.
REQUEST.get(\'current_web_section\', context.getWebSiteValue()
)\n
site_root = context.
getWebSectionValue(
)\n
else:\n
site_root = portal\n
\n
...
...
bt5/erp5_hal_json_style/bt/revision
View file @
2aebe829
24
\ No newline at end of file
25
\ 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