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
Laurent S
erp5
Commits
ae9a5ccb
Commit
ae9a5ccb
authored
Oct 03, 2015
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_data_notebook bt5: Merge portal_components JupyterCompile and AddPersistentMapping
parent
39334a31
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
148 deletions
+22
-148
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.AddPersistentMapping.py
.../portal_components/extension.erp5.AddPersistentMapping.py
+0
-19
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.AddPersistentMapping.xml
...portal_components/extension.erp5.AddPersistentMapping.xml
+0
-123
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py
...teItem/portal_components/extension.erp5.JupyterCompile.py
+17
-0
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.xml
...eItem/portal_components/extension.erp5.JupyterCompile.xml
+2
-2
bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_addPersistentMapping.xml
...al_skins/erp5_data_notebook/Base_addPersistentMapping.xml
+1
-1
bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_updatePersistentMapping.xml
...skins/erp5_data_notebook/Base_updatePersistentMapping.xml
+1
-1
bt5/erp5_data_notebook/bt/template_extension_id_list
bt5/erp5_data_notebook/bt/template_extension_id_list
+1
-2
No files found.
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.AddPersistentMapping.py
deleted
100644 → 0
View file @
39334a31
# -*- coding: utf-8 -*-
from
Products.ERP5Type.Globals
import
PersistentMapping
def
AddPersistentMapping
(
self
):
"""
Function to add PersistentMapping object which can be used as a dictionary
"""
new_dict
=
PersistentMapping
()
return
new_dict
def
UpdatePersistentMapping
(
self
,
existing_dict
):
"""
Function to update PersistentMapping object
"""
new_dict
=
PersistentMapping
()
for
key
,
value
in
existing_dict
.
iteritems
():
new_dict
[
key
]
=
value
return
new_dict
\ No newline at end of file
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.AddPersistentMapping.xml
deleted
100644 → 0
View file @
39334a31
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Extension Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
AddPersistentMapping
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
extension.erp5.AddPersistentMapping
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Extension Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.py
View file @
ae9a5ccb
...
...
@@ -3,6 +3,7 @@
from
StringIO
import
StringIO
from
IPython.utils
import
py3compat
from
IPython.utils.py3compat
import
unicode_type
from
Products.ERP5Type.Globals
import
PersistentMapping
import
sys
import
traceback
...
...
@@ -85,3 +86,19 @@ def Base_compileJupyterCode(self, jupyter_code, old_local_variable_dict):
'traceback'
:
tb_list
,
}
return
result
def
AddPersistentMapping
(
self
):
"""
Function to add PersistentMapping object which can be used as a dictionary
"""
new_dict
=
PersistentMapping
()
return
new_dict
def
UpdatePersistentMapping
(
self
,
existing_dict
):
"""
Function to update PersistentMapping object
"""
new_dict
=
PersistentMapping
()
for
key
,
value
in
existing_dict
.
iteritems
():
new_dict
[
key
]
=
value
return
new_dict
\ No newline at end of file
bt5/erp5_data_notebook/ExtensionTemplateItem/portal_components/extension.erp5.JupyterCompile.xml
View file @
ae9a5ccb
...
...
@@ -46,8 +46,8 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 4
5
, 18: Use of eval (eval-used)
</string>
<string>
W: 5
8
, 6: Use of exec (exec-used)
</string>
<string>
W: 4
6
, 18: Use of eval (eval-used)
</string>
<string>
W: 5
9
, 6: Use of exec (exec-used)
</string>
</tuple>
</value>
</item>
...
...
bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_addPersistentMapping.xml
View file @
ae9a5ccb
...
...
@@ -12,7 +12,7 @@
</item>
<item>
<key>
<string>
_module
</string>
</key>
<value>
<string>
AddPersistentMapping
</string>
</value>
<value>
<string>
JupyterCompile
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_data_notebook/SkinTemplateItem/portal_skins/erp5_data_notebook/Base_updatePersistentMapping.xml
View file @
ae9a5ccb
...
...
@@ -12,7 +12,7 @@
</item>
<item>
<key>
<string>
_module
</string>
</key>
<value>
<string>
AddPersistentMapping
</string>
</value>
<value>
<string>
JupyterCompile
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_data_notebook/bt/template_extension_id_list
View file @
ae9a5ccb
extension.erp5.JupyterCompile
extension.erp5.AddPersistentMapping
\ No newline at end of file
extension.erp5.JupyterCompile
\ No newline at end of file
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