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
Paul Graydon
wendelin
Commits
bb0ad311
Commit
bb0ad311
authored
Dec 18, 2016
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ompatibility with old ingestion. Must be dropped before merging.
parent
60f581c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.IngestionPolicy.py
...teItem/portal_components/document.erp5.IngestionPolicy.py
+8
-2
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.IngestionPolicy.py
View file @
bb0ad311
...
...
@@ -60,8 +60,6 @@ class IngestionPolicy(Folder):
if
self
.
REQUEST
.
method
!=
'POST'
:
raise
BadRequest
(
'Only POST request is allowed.'
)
reference
=
self
.
REQUEST
.
get
(
'reference'
)
data_chunk
=
self
.
REQUEST
.
get
(
'data_chunk'
)
tag_parsing_script_id
=
self
.
getScriptId
()
if
tag_parsing_script_id
is
None
:
...
...
@@ -70,6 +68,14 @@ class IngestionPolicy(Folder):
tag_parsing_script
=
getattr
(
self
,
tag_parsing_script_id
,
None
)
if
tag_parsing_script
is
None
:
raise
NotFound
(
'No tag parsing script found.'
)
# XXX Compatibility with old ingestion. Must be dropped before merging
# with wendelin master
if
tag_parsing_script_id
==
"ERP5Site_handleDefaultFluentdIngestion"
:
return
tag_parsing_script
(
**
kw
)
reference
=
self
.
REQUEST
.
get
(
'reference'
)
data_chunk
=
self
.
REQUEST
.
get
(
'data_chunk'
)
# the script parses the fluentd tag (reference) and returns a dictionary
# which describes the ingestion movement. Then we use this dictionary to
...
...
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