Commit f9bfff48 authored by Yusei Tahara's avatar Yusei Tahara

software/ipython_notebook: Update ERP5kernel.py.jinja, send store_history...

software/ipython_notebook: Update ERP5kernel.py.jinja, send store_history parameter to ERP5 so that we can use this flag to decide whether to add a data notebook line or not.
parent 3658905d
...@@ -177,6 +177,7 @@ class ERP5Kernel(Kernel): ...@@ -177,6 +177,7 @@ class ERP5Kernel(Kernel):
'reference': self.reference, 'reference': self.reference,
'title': self.title, 'title': self.title,
'request_reference': request_reference, 'request_reference': request_reference,
'store_history': kwargs.get('store_history')
}) })
# Set value for status_code for self object which would later be used to # Set value for status_code for self object which would later be used to
...@@ -256,7 +257,7 @@ class ERP5Kernel(Kernel): ...@@ -256,7 +257,7 @@ class ERP5Kernel(Kernel):
# Check for status_code before making request to erp5 and make request in # Check for status_code before making request to erp5 and make request in
# only if the status_code is in the allowed_HTTP_request_code_list # only if the status_code is in the allowed_HTTP_request_code_list
if self.status_code in self.allowed_HTTP_request_code_list: if self.status_code in self.allowed_HTTP_request_code_list:
self.make_erp5_request(code=code) self.make_erp5_request(code=code, store_history=store_history)
# For 200 status_code, Kernel will receive predefined format for data # For 200 status_code, Kernel will receive predefined format for data
# from erp5 which is either json of result or simple result string # from erp5 which is either json of result or simple result string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment