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
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
Léo-Paul Géneau
wendelin
Commits
3c32c27e
Commit
3c32c27e
authored
Mar 12, 2018
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set ingestion start/stop date to supply effective/expiration date
parent
3e50bea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+7
-3
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
3c32c27e
...
...
@@ -103,9 +103,10 @@ if data_ingestion is None:
id
=
data_ingestion_id
,
portal_type
=
"Data Ingestion"
,
reference
=
data_ingestion_reference
,
start_date
=
now
,
specialise_value_list
=
specialise_value_list
)
composed
=
data_ingestion
.
asComposedDocument
()
property_list
=
[
"title"
,
"source"
,
"source_section"
,
...
...
@@ -115,8 +116,11 @@ if data_ingestion is None:
"destination_project"
,
"specialise"
]
composed
=
data_ingestion
.
asComposedDocument
()
data_ingestion
.
edit
(
**
{
p
:
composed
.
getProperty
(
p
)
for
p
in
property_list
})
property_dict
=
{
p
:
composed
.
getProperty
(
p
)
for
p
in
property_list
}
property_dict
[
"start_date"
]
=
composed
.
getEffectiveDate
()
property_dict
[
"stop_date"
]
=
composed
.
getExpirationDate
()
data_ingestion
.
edit
(
**
property_dict
)
# create ingestion lines from specialise lines and assign input line
# and operation line
...
...
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