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
Jérome Perrin
wendelin
Commits
ff239742
Commit
ff239742
authored
Mar 11, 2019
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin: fix catalog search
parent
ec398f34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
.../IngestionPolicy_getIngestionOperationAndParameterDict.py
+3
-3
No files found.
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/IngestionPolicy_getIngestionOperationAndParameterDict.py
View file @
ff239742
...
@@ -102,18 +102,18 @@ if data_ingestion is None:
...
@@ -102,18 +102,18 @@ if data_ingestion is None:
data_ingestion
=
document
data_ingestion
=
document
if
modify
and
data_ingestion
is
None
:
if
modify
and
data_ingestion
is
None
:
specialise_query_kw
=
dict
(
portal_type
=
'Data Supply'
,
specialise_query_kw
=
dict
(
portal_type
=
'Data Supply'
,
reference
=
specialise_reference
,
reference
=
specialise_reference
,
validation_state
=
'validated'
)
validation_state
=
'validated'
)
if
destination_section_reference
is
not
None
:
if
destination_section_reference
is
not
None
:
specialise_query_kw
[
"destination_section_reference"
]
=
destination_section_reference
specialise_query_kw
[
"destination_section_reference"
]
=
destination_section_reference
specialise_list
=
[
x
.
getRelativeUrl
()
for
x
in
portal_catalog
.
searchResults
(
specialise_query_kw
)]
specialise_list
=
[
x
.
getRelativeUrl
()
for
x
in
portal_catalog
(
**
specialise_query_kw
)]
# if we do not find a validated data supply, we look for a default data supply
# if we do not find a validated data supply, we look for a default data supply
if
not
specialise_list
:
if
not
specialise_list
:
specialise_query_kw
[
"validation_state"
]
=
'default'
specialise_query_kw
[
"validation_state"
]
=
'default'
specialise_list
=
[
x
.
getRelativeUrl
()
for
x
in
portal_catalog
.
searchResults
(
specialise_query_kw
)]
specialise_list
=
[
x
.
getRelativeUrl
()
for
x
in
portal_catalog
(
**
specialise_query_kw
)]
# create a new data ingestion
# create a new data ingestion
data_ingestion
=
portal
.
ERP5Site_createDataIngestion
(
specialise_list
,
data_ingestion
=
portal
.
ERP5Site_createDataIngestion
(
specialise_list
,
...
...
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