aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/news/news.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-07-20 15:51:21 +0200
committerTibor Frank <tifrank@cisco.com>2022-07-21 07:45:39 +0000
commitae1fe880286d7b0414664bce2b2c7c91c3f543f3 (patch)
tree5790af6de3884e0aa6918d44f23aca59cf0d86a7 /resources/tools/dash/app/pal/news/news.py
parent739e01de7a65045dc42e6c16406a6d054da72f7b (diff)
UTI: Move constatns to a separate file
Change-Id: If3796b71d02bcf5a92612585dfa8867e5039f037 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/news/news.py')
-rw-r--r--resources/tools/dash/app/pal/news/news.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/tools/dash/app/pal/news/news.py b/resources/tools/dash/app/pal/news/news.py
index deb00c1810..5e65b62281 100644
--- a/resources/tools/dash/app/pal/news/news.py
+++ b/resources/tools/dash/app/pal/news/news.py
@@ -14,8 +14,8 @@
"""Instantiate the Statistics Dash applocation.
"""
import dash
-import dash_bootstrap_components as dbc
+from ..utils.constants import Constants as C
from .layout import Layout
@@ -30,15 +30,15 @@ def init_news(server):
dash_app = dash.Dash(
server=server,
- routes_pathname_prefix=u"/news/",
- external_stylesheets=[dbc.themes.LUX],
+ routes_pathname_prefix=C.NEWS_ROUTES_PATHNAME_PREFIX,
+ external_stylesheets=C.EXTERNAL_STYLESHEETS
)
layout = Layout(
app=dash_app,
- html_layout_file="pal/templates/news_layout.jinja2",
- data_spec_file="pal/data/data.yaml",
- tooltip_file="pal/data/tooltips.yaml",
+ html_layout_file=C.NEWS_HTML_LAYOUT_FILE,
+ data_spec_file=C.DATA_SPEC_FILE,
+ tooltip_file=C.TOOLTIP_FILE,
)
dash_app.index_string = layout.html_layout
dash_app.layout = layout.add_content()
0; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
CSIT contributors, make sure each PyPI project
has the following users listed as Owners
(both on pypi.org and on test.pypi.org if the project exists there):

+ vrpolakatcisco
+ tiborfrank