Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
telecom
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
telecom
Commits
0c2faaad
Commit
0c2faaad
authored
Jul 24, 2018
by
Roque Porchetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_telecom_ingestion: minor fixes
parent
87409f8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/ERP5Site_invalidateIngestionObjects.py
...5_wendelin_telecom/ERP5Site_invalidateIngestionObjects.py
+1
-1
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/getDescriptorHTMLContent.py
...l_skins/erp5_wendelin_telecom/getDescriptorHTMLContent.py
+4
-3
No files found.
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/ERP5Site_invalidateIngestionObjects.py
View file @
0c2faaad
...
...
@@ -11,7 +11,7 @@ portal_type_query = ComplexQuery(Query(portal_type='Data Stream'),
Query
(
portal_type
=
'Data Array'
),
Query
(
portal_type
=
'Data Descriptor'
),
Query
(
portal_type
=
'Data Ingestion'
),
operator
=
"OR"
)
logical_
operator
=
"OR"
)
kw_dict
=
{
"query"
:
portal_type_query
,
"reference"
:
reference
}
...
...
bt5/erp5_wendelin_telecom_ingestion/SkinTemplateItem/portal_skins/erp5_wendelin_telecom/getDescriptorHTMLContent.py
View file @
0c2faaad
...
...
@@ -4,9 +4,10 @@ from Products.ZSQLCatalog.SQLCatalog import Query, SimpleQuery
portal
=
context
.
getPortalObject
()
portal_catalog
=
portal
.
portal_catalog
kw_dict
=
{
"portal_type"
:
"Data Descriptor"
}
content
=
None
for
document
in
portal_catalog
(
**
kw_dict
):
query
=
Query
(
portal_type
=
"Data Descriptor"
)
for
document
in
portal_catalog
(
query
=
query
,
sort_on
=
((
'id'
,
'DESC'
,
'int'
),)):
if
document
.
reference
==
reference
:
found
=
True
content
=
document
.
getTextContent
()
...
...
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