Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
klaus_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
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
Eteri
klaus_wendelin
Commits
1536567e
Commit
1536567e
authored
Mar 22, 2017
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding data set reference to data ingestion. Adding accessor for data set aggregate.
parent
ad57c970
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
230 additions
and
1 deletion
+230
-1
bt5/erp5_wendelin/PropertySheetTemplateItem/portal_property_sheets/DataMovement/aggregate_data_set_property.xml
...perty_sheets/DataMovement/aggregate_data_set_property.xml
+107
-0
bt5/erp5_wendelin/PropertySheetTemplateItem/portal_property_sheets/DataMovement/aggregate_data_set_value_property.xml
...sheets/DataMovement/aggregate_data_set_value_property.xml
+107
-0
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+16
-1
No files found.
bt5/erp5_wendelin/PropertySheetTemplateItem/portal_property_sheets/DataMovement/aggregate_data_set_property.xml
0 → 100644
View file @
1536567e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Acquired Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
mode
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_accessor_id
</string>
</key>
<value>
<string>
getRelativeUrl
</string>
</value>
</item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<tuple>
<string>
aggregate
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_copy_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_mask_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_object_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<string>
python: (\'Data Set\',)
</string>
</value>
</item>
<item>
<key>
<string>
alt_accessor_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_acquired_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
content_translation_acquired_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
aggregate_data_set_property
</string>
</value>
</item>
<item>
<key>
<string>
mode
</string>
</key>
<value>
<string>
w
</string>
</value>
</item>
<item>
<key>
<string>
multivalued
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Acquired Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin/PropertySheetTemplateItem/portal_property_sheets/DataMovement/aggregate_data_set_value_property.xml
0 → 100644
View file @
1536567e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Acquired Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
mode
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_accessor_id
</string>
</key>
<value>
<string>
getObject
</string>
</value>
</item>
<item>
<key>
<string>
acquisition_base_category
</string>
</key>
<value>
<tuple>
<string>
aggregate
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
acquisition_copy_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_mask_value
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
acquisition_object_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
acquisition_portal_type
</string>
</key>
<value>
<string>
python: (\'Data Set\',)
</string>
</value>
</item>
<item>
<key>
<string>
alt_accessor_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/object
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_acquired_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
content_translation_acquired_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
aggregate_data_set_value_property
</string>
</value>
</item>
<item>
<key>
<string>
mode
</string>
</key>
<value>
<string>
w
</string>
</value>
</item>
<item>
<key>
<string>
multivalued
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Acquired Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
1536567e
...
...
@@ -9,6 +9,7 @@ data_ingestion_reference = movement_dict.get('reference', reference)
data_ingestion_id
=
"%s-%s"
%
(
today_string
,
data_ingestion_reference
)
resource_reference
=
movement_dict
.
get
(
'resource_reference'
,
None
)
specialise_reference
=
movement_dict
.
get
(
'specialise_reference'
,
None
)
dataset_reference
=
movement_dict
.
get
(
'aggregate_data_set_reference'
,
None
)
# first search for applicable data ingestion
data_ingestion
=
portal_catalog
.
getResultValue
(
...
...
@@ -115,7 +116,21 @@ if data_ingestion is None:
input_line
.
setDefaultAggregateValue
(
data_ingestion_batch
)
data_set
=
None
if
dataset_reference
is
not
None
:
data_set
=
portal_catalog
.
getResultValue
(
portal_type
=
"Data Set"
,
reference
=
dataset_reference
)
if
data_set
is
None
:
data_set
=
portal
.
data_set_module
.
newContent
(
portal_type
=
"Data Set"
,
reference
=
dataset_reference
)
data_set
.
validate
()
input_line
.
setDefaultAggregateValue
(
data_set
)
data_product
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Data Product"
,
reference
=
resource_reference
)
...
...
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