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
Yoji Takeuchi
erp5
Commits
d0c7dbb6
Commit
d0c7dbb6
authored
Mar 30, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system_event: document how HTTP Exchange works
parent
10f2dc5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py
...s/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py
+19
-1
No files found.
bt5/erp5_system_event/SkinTemplateItem/portal_skins/erp5_system_event/HTTPExchange_setFollowUpAndInquiry.py
View file @
d0c7dbb6
assert
context
.
getFollowUp
()
is
None
,
context
.
getFollowUp
()
"""Call HTTPExchange_getFollowUpFor* to find the document to use as follow up
of this HTTP Exchange and call inquiry type-based method on this document.
To use HTTP Exchange framework:
* you must have created categories in portal_categories/http_exchange_resource
* your "entry point" script must create an HTTP Exchange using an HTTP Exchange
Resource as resource category and confirm this HTTP Exchange.
In this entry point script, you should also set source and destination categories
if it helps traceability.
In this entry point script, you should set request and/or response properties.
* you must create HTTPExchange_getFollowUpFor${HTTP Exchange Resource Codification}
configuration script that will be called on the context of the HTTP Exchange and
will be responsible for returning the document on which inquiry will be done.
This script can create a new document and return it to use as follow up if applicable.
* you must create a `inquiry` type based method that will be called on this follow up
document, recieving the HTTP Exchange as argument.
"""
assert
context
.
hasFollowUp
(),
context
.
getFollowUp
()
http_exchange_resource
=
context
.
getPortalObject
().
portal_categories
.
http_exchange_resource
resource
=
context
.
getResourceValue
()
...
...
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