Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gga_load_data
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
abims
e-infra
gga_load_data
Merge requests
!13
Patch 2.0.1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Patch 2.0.1
dev
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Loraine Gueguen
requested to merge
dev
into
master
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
fix banner symlink condition
👍
0
👎
0
Merge request reports
Compare
master
version 1
71de4f2d
3 years ago
master (base)
and
latest version
latest version
7fd40e13
2 commits,
3 years ago
version 1
71de4f2d
1 commit,
3 years ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
gga_init.py
+
3
−
1
Options
@@ -64,9 +64,11 @@ class DeploySpeciesStack(speciesData.SpeciesData):
if
constants
.
CONF_TRIPAL_BANNER_PATH
in
self
.
config
.
keys
():
if
not
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]
==
""
and
os
.
path
.
isfile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])):
banner_dest_path
=
os
.
path
.
join
(
self
.
species_dir
,
os
.
path
.
abspath
(
"
banner.png
"
))
if
not
os
.
path
.
isfile
(
banner_dest_path
)
and
not
os
.
path
.
islink
(
banner_dest_path
)
and
not
os
.
path
.
samefile
(
os
.
path
.
abspath
(
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
)
:
if
not
os
.
path
.
isfile
(
banner_dest_path
)
and
not
os
.
path
.
islink
(
banner_dest_path
):
os
.
symlink
(
os
.
path
.
abspath
(
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
]),
banner_dest_path
)
logging
.
info
(
"
Custom banner added: symlink from %s
"
%
self
.
config
[
constants
.
CONF_TRIPAL_BANNER_PATH
])
else
:
logging
.
info
(
"
Banner already exists at %s. The banner defined in config is not added.
"
%
banner_dest_path
)
else
:
logging
.
debug
(
"
Using default banner for Tripal pages because %s is not valid in
'
config
'
file
"
%
constants
.
CONF_TRIPAL_BANNER_PATH
)
self
.
config
.
pop
(
constants
.
CONF_TRIPAL_BANNER_PATH
,
None
)
Loading