Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
6a22ec0b
Commit
6a22ec0b
authored
Sep 28, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web_deploy: Also search for published alive pages
This was done by Thomas, I'm just pushing it into git
parent
9c2b697c
Pipeline
#17610
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
master/bt5/slapos_web_deploy/SkinTemplateItem/portal_skins/slapos_deploy_theme/WebPage_getDeploySubstitutionMappingDict.py
..._deploy_theme/WebPage_getDeploySubstitutionMappingDict.py
+1
-6
No files found.
master/bt5/slapos_web_deploy/SkinTemplateItem/portal_skins/slapos_deploy_theme/WebPage_getDeploySubstitutionMappingDict.py
View file @
6a22ec0b
...
...
@@ -7,15 +7,10 @@ url_map = {"deploy-Function.Common" : "function_common_content",
"deploy-Unstable.Channel"
:
"slapos_unstable_content"
}
portal
=
context
.
getPortalObject
()
from
DateTime
import
DateTime
i
=
DateTime
()
for
doc
in
portal
.
portal_catalog
(
reference
=
url_map
.
keys
(),
portal_type
=
"Web Page"
,
validation_state
=
"published"
):
validation_state
=
[
"published"
,
"published_alive"
]
):
mapping_dict
[
url_map
[
doc
.
getReference
()]]
=
doc
.
getTextContent
()
context
.
log
((
DateTime
()
-
i
)
*
3600
*
24
)
return
mapping_dict
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