Commit d9479ed4 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_data_notebook bt5: Add 'mime_type' field for Data Notebook Line portal_type

parent 421f2857
...@@ -169,7 +169,7 @@ except UnicodeDecodeError:\n ...@@ -169,7 +169,7 @@ except UnicodeDecodeError:\n
}\n }\n
serialized_result = json.dumps(result)\n serialized_result = json.dumps(result)\n
\n \n
data_notebook_line.edit(notebook_code_result=code_result)\n data_notebook_line.edit(notebook_code_result=code_result, mime_type=mime_type)\n
\n \n
return serialized_result\n return serialized_result\n
</string> </value> </string> </value>
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
<list> <list>
<string>my_notebook_code</string> <string>my_notebook_code</string>
<string>my_notebook_code_result</string> <string>my_notebook_code_result</string>
<string>my_mime_type</string>
</list> </list>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>display_width</string>
<string>editable</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_mime_type</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Mime Type</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -58,6 +58,7 @@ have notebook_code from jupyter frontend as well as its executed result\n ...@@ -58,6 +58,7 @@ have notebook_code from jupyter frontend as well as its executed result\n
notebook_line = context.newContent(\n notebook_line = context.newContent(\n
notebook_code=notebook_code,\n notebook_code=notebook_code,\n
notebook_code_result=notebook_code_result,\n notebook_code_result=notebook_code_result,\n
mime_type=mime_type,\n
portal_type="Data Notebook Line"\n portal_type="Data Notebook Line"\n
)\n )\n
\n \n
...@@ -78,7 +79,7 @@ return notebook_line.Base_redirect(\'view\',\n ...@@ -78,7 +79,7 @@ return notebook_line.Base_redirect(\'view\',\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>notebook_code, notebook_code_result=None, batch_mode=False, **kw</string> </value> <value> <string>notebook_code, notebook_code_result=None, mime_type=\'text/plain\', batch_mode=False, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
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