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
Xavier Thompson
erp5
Commits
f6015d34
Commit
f6015d34
authored
10 years ago
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Drop unused code
parent
55b313d3
master
ERP5ify-portal_workfow_yusei_20210303
UpdateValidationStateFromConsistency
addToDate_implicit_localtime
allow_login_change
allow_login_change_wip
arnau
arnau-RD-Components-CacheTool
arnau-RD-Components-ERP5Form-ERP5Report
arnau-RD-Components-ERP5Form-SelectionTool-MemcachedTool
arnau-RD-Components-ERP5OOo
arnau-RD-Components-PreferenceTool-Preference
arnau-RD-Components-Products-import-compat
arnau-RD-Components-astroid_cache_per_component_reset
arnau-RD-Components-erp5_crm
arnau-RD-Components-erp5_trade-TODO-Interactor
arnau-RD-ERP5ify-portal_workflow
arnau-RD-ERP5ify-portal_workflow-1-seb-merged-with-recent-master
arnau-RD-ERP5ify-portal_workflow-2-do-not-rename-erp5_workflow-portal_types
arnau-RD-ERP5ify-portal_workflow-BAK
arnau-RD-ERP5ify-portal_workflow-WIP
arnau-RD-ERP5ify-portal_workflow-WITHOUT-MIGRATION
arnau-RD-ERP5ify-portal_workflow-WORKFLOWS-NOT-MIGRATED
arnau-TM-Components-Migrate-PortalTransforms
arnau-TM-Components-ModuleSecurityInfo
arnau-TM-FEC-output
arnau-TM-WIP
arnau-TM-isBuildable-with-multiple-BusinessLinks
arnau-TM-newContent-temp_object
arnau-TM-runUnitTest-clear-previous-execution-catalog
arnau-TM-wkhtmltopdf
arnau-WIP
arnau-kns
arnau-kns-without-property-mapping
arnau-real-time-inventory-accounting
auto_extend_select_list
autoflake
bk_erp5ish_actions_tool
bk_sqlcatalog
bt5_config
cache-control-304-response
callable-jupyter-storage
catalog_filter
cedriclen-eos
cherry-pick-4a8e045d
cleanup_acquisition_base_category
cloud_reliability_test
cribjs-bootloader
datetimefield
delivery_item_barcode
display_tools_in_erp5js
douglas_forum
dsn-phase3
enhance_scalability_testing
eos-dev
erp5-component
erp5-forum
erp5-imt
erp5-messenger
erp5-vifib
erp5-vifib-cleanup
erp5_catalog
erp5_catalog_final
erp5_corporate_identity
erp5_free_subscription
erp5_hal_json_style_fix_restricted_access_with_traverse
erp5_payslip_migration
erp5_workflow
erp5testnode_max_timeout
feat/dms_implicit_predecessor_successor_fields
feat/erp5_ide
feat/inventory_api_group_by_time_interval_list
feat/notification-message-ignore-missing
feat/olapy
feat/python_language_support
feat/show_user_on_logout_page
feat/slapos-computer-partition-capabilities
feat/trim_username
feat/update-ckeditor
feature/renderjs-ui-no-header
fix/ZMI_editor_preference
fix/advance_ecommerce_coding_crimes
fix/business-template-update-tool
fix/cmf_activity_global_request
fix/component-editor
fix/getParent
fix/login_validate_check_consistency
fix/organisation_jump
fix/support-request-app-empty
fix/test_result_after_mep
fix/workflow_method_security
fix_web_illustration
for_testrunner_1
for_testrunner_2
for_testrunner_3
gadget-json-value
hotfix/rjs-formfields-padding
improve_default_caching_policy_manager
initsite
inventory
isDeletable
jm/form-action-guard
js-ui
kns
limit_accelerated_http_cache_manager
listbox_url
lle-bout/metadata-modules
macros_fix
mic_wind
monitoring-graph
mr1362
my2to3
no_longer_simulated_state
notebook_roque
officejs
override_cache_control_header_by_caching_policy_manager
portal_callables
portal_solver_process_security_configuration
publish_recursiveReindexObject
refactor/base_edit
reindex_calendar_after_change_calendar_exception
restore-from-trashbin
revert-38554dbe
rjs_listbox_sort_icon
scalability-master
scalability-roque
scalability-roque-2
scalability-run-command
scalability_crash_mariadb
shop-box-rebase
streaming_fix
streaming_fix-0
support_relative_url_in_hyperlink_field
support_request
taskdistribution-xmlrpc-binary
test-renderjs-float-field-step
testnode_shorter_paths
testnode_software_link
timezones
tristan
tristan-merge
trustable-x-forwarded-for
ttrm
unify_predicate_edit
valentin_translation_fix
view-aggregated-amounts
vivekpab_renderjs_interfaces
wsgi
wsgi-gevent
wsgi_backport_setbody_lock
wsgi_medusa_stream_fix
yusei_20210303
0.4.59.1
0.4.59
test-ui
test-rjsacc
test-rjs
renderjs-test
nexedi-erp5-vifib-20201105
erp5.util-0.4.69
erp5.util-0.4.68
erp5.util-0.4.67
erp5.util-0.4.66
erp5.util-0.4.65
erp5.util-0.4.64
erp5.util-0.4.63
erp5.util-0.4.62
erp5.util-0.4.61
erp5.util-0.4.60
erp5.util-0.4.59.1
erp5.util-0.4.59
erp5.util-0.4.58
erp5.util-0.4.57
erp5.util-0.4.56
erp5.util-0.4.55
erp5.util-0.4.54
erp5.util-0.4.53
erp5.util-0.4.52
erp5.util-0.4.49
erp5.util-0.4.46
erp5.util-0.4.44
erp5.util-0.4.43
erp5-vifib-20201229
erp5-vifib-20200129
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+0
-58
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
View file @
f6015d34
...
...
@@ -79,7 +79,6 @@ url_template_dict = {\n
"&relative_url=%(relative_url)s" \\\n
"&list_method=%(list_method)s" \\\n
"{&query,select_list*,limit*}",\n
"new_content_action": "%(root_url)s/%(script_id)s?mode=newContent",\n
# XXX View is set by default to empty\n
"document_hal": "%(root_url)s/%(script_id)s?mode=traverse" + \\\n
"&relative_url=%(relative_url)s",\n
...
...
@@ -708,14 +707,6 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
\'name\': \'Traverse\',\n
\'templated\': True\n
}\n
action_dict[\'add\'] = {\n
"href": url_template_dict["new_content_action"] % {\n
"root_url": site_root.absolute_url(),\n
"script_id": script.id\n
},\n
\'method\': \'POST\',\n
\'name\': \'New Content\',\n
}\n
\n
# Handle also other kind of users: instance, computer, master\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
...
...
@@ -842,55 +833,6 @@ elif mode == \'search\':\n
result_dict[\'_limit\'] = limit\n
result_dict[\'_select_list\'] = select_list\n
\n
\n
elif mode == \'newContent\':\n
#################################################\n
# Create new document\n
#################################################\n
if REQUEST.other[\'method\'] != "POST":\n
response.setStatus(405)\n
return ""\n
portal_type = REQUEST.form["portal_type"]\n
module = portal.getDefaultModule(portal_type=portal_type)\n
document = module.newContent(\n
portal_type=portal_type\n
)\n
# http://en.wikipedia.org/wiki/Post/Redirect/Get\n
response.setStatus(201)\n
response.setHeader("X-Location",\n
default_document_uri_template % {\n
"root_url": site_root.absolute_url(),\n
"relative_url": document.getRelativeUrl(),\n
"script_id": script.id\n
})\n
return \'\'\n
\n
elif mode == \'form\':\n
#################################################\n
# Calculate form value\n
#################################################\n
if REQUEST.other[\'method\'] != "GET":\n
response.setStatus(405)\n
return ""\n
\n
# XXX Hardcoded cache for 30 minutes. Should only bother developers but speed up Jio access\n
response.setHeader("Cache-Control", "public, max-age=1800")\n
response.setHeader("Vary", "Cookie")\n
\n
renderForm(form, result_dict)\n
\n
\n
# elif mode == \'form_definition\':\n
# #################################################\n
# # Get raw form definitions\n
# #################################################\n
# if REQUEST.other[\'method\'] != "GET":\n
# response.setStatus(405)\n
# return ""\n
# \n
# form = getattr(portal, skin_id)\n
# renderFormDefinition(form, result_dict)\n
\n
else:\n
raise NotImplementedError("Unsupported mode %s" % mode)\n
\n
...
...
This diff is collapsed.
Click to expand it.
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