Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
wendelin
Commits
9acab10c
Commit
9acab10c
authored
Jul 08, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Fix create analysis
See merge request
nexedi/wendelin!51
parents
117b9ef3
6a506747
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataAnalysisList.py
...al_skins/erp5_wendelin/ERP5Site_createDataAnalysisList.py
+7
-4
product/Wendelin/__init__.py
product/Wendelin/__init__.py
+6
-2
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/ERP5Site_createDataAnalysisList.py
View file @
9acab10c
...
...
@@ -43,10 +43,13 @@ for movement in portal_catalog(query = query):
if
line
.
getResourceValue
()
==
movement
.
getResourceValue
()
and
line
.
getQuantity
()
<
0
:
transformation_list
.
append
(
transformation
)
break
transformation_list
+=
list
(
portal
.
portal_catalog
(
for
transformation
in
portal
.
portal_catalog
(
portal_type
=
"Data Transformation"
,
validation_state
=
"validated"
,
resource_relative_url
=
movement
.
getResource
()))
resource_relative_url
=
movement
.
getResource
()):
if
transformation
.
getVariationCategoryList
()
==
movement
.
getVariationCategoryList
():
transformation_list
.
append
(
transformation
)
for
transformation
in
transformation_list
:
is_shared_data_analysis
=
False
# Check if analysis already exists
...
...
product/Wendelin/__init__.py
View file @
9acab10c
...
...
@@ -71,9 +71,12 @@ allow_type(pd.Timestamp)
allow_type
(
pd
.
DatetimeIndex
)
# XXX: pd.DataFRame has its own security thus disable until we can fully integrate it
#allow_type(pd.DataFrame)
allow_type
(
pd
.
MultiIndex
)
allow_type
(
pd
.
Index
)
allow_type
(
pd
.
core
.
groupby
.
DataFrameGroupBy
)
allow_class
(
pd
.
DataFrame
)
# Modify 'safetype' dict in full_write_guard function
# of RestrictedPython (closure) directly To allow
# write access to ndarray, DataFrame, ZBigArray and RAMArray objects
...
...
@@ -84,10 +87,11 @@ full_write_guard.func_closure[1].cell_contents.__self__[np.core.records.record]
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
DataFrame
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
tseries
.
index
.
DatetimeIndex
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
core
.
indexing
.
_iLocIndexer
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
MultiIndex
]
=
True
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
pd
.
Index
]
=
True
from
wendelin.bigarray.array_zodb
import
ZBigArray
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
ZBigArray
]
=
True
allow_type
(
ZBigArray
)
from
wendelin.bigarray.array_ram
import
RAMArray
full_write_guard
.
func_closure
[
1
].
cell_contents
.
__self__
[
RAMArray
]
=
True
allow_type
(
RAMArray
)
\ 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