Commit 7937cdb4 authored by Ayush Tiwari's avatar Ayush Tiwari

Added configuration.erp5_url as a parameter for slapconfiguration in ipython notebook

parent 7bd79e3d
......@@ -39,6 +39,7 @@ partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
configuration.erp5_url = https://softinst60318.host.vifib.net/erp5/Base_executePython
[instance-parameter]
port = 8888
......@@ -128,16 +129,16 @@ erp5_kernel_dir = $${:ipython_kernel_dir}/ERP5
recipe = slapos.cookbook:publish
url = https://[$${instance-parameter:host}]:$${instance-parameter:port}
monitor_url = $${monitor-parameters:url}
erp5_url = $${slapconfiguration:configuration.erp5_url}
[erp5-kernel]
recipe = slapos.recipe.template:jinja2
template = ${erp5-kernel:location}/${erp5-kernel:filename}
rendered = $${directory:erp5_kernel_dir}/ERP5kernel.py
erp5_url = https://softinst60318.host.vifib.net/erp5/Base_executePython
mode = 0744
context =
raw python_executable ${buildout:bin-directory}/pythonwitheggs
key erp5_url :erp5_url
key erp5_url slapconfiguration:configuration.erp5_url
[kernel-json]
recipe = slapos.recipe.template:jinja2
......
......@@ -55,7 +55,7 @@ output = ${buildout:directory}/instance.cfg
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
download-only = true
md5sum = 0e9c5070725c3a10125a9b658bd4eb5c
md5sum = 8a9703fc069301c6faac2800bd4b54b8
destination = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = ERP5kernel.py.jinja
mode = 0644
......
......@@ -6,7 +6,7 @@ from IPython.core.display import HTML
import requests
import logging
global erp5_url = "{{ erp5_url }}"
erp5_url = "{{ erp5_url }}"
class ERP5Kernel(Kernel):
implementation = 'ERP5'
......
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