summaryrefslogtreecommitdiff
path: root/scripts/html.py
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-03-06 10:55:10 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commit0afee29de0672e7d8244d65c610aa0a009243c41 (patch)
treedb3280e4b8bed76ab3227bd76ab437d62901f531 /scripts/html.py
parent191eee1990dbe1b8e6bfcc98fdef7bde655f2538 (diff)
html: add NoAssignee support
There are no assignee tasks, and html.py will be error at such tasks. This patch care it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts/html.py')
-rwxr-xr-xscripts/html.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/html.py b/scripts/html.py
index 446c200..d9b181d 100755
--- a/scripts/html.py
+++ b/scripts/html.py
@@ -189,6 +189,8 @@ class periject_html(base.base):
html("td").print(summary.text(team))
assignee = v.get_data("assignee")
+ if (not len(assignee)):
+ assignee = "NoAssignee"
summary.option({"href":self.relpath("html/{}.html".format(assignee), dir)})
html("td").print(summary.text(assignee))
@@ -278,7 +280,7 @@ class periject_html(base.base):
# from project.schema.yaml
with html("ul"):
for assignee in ['BSP', 'Geert', 'Jacopo', 'Kaneko', 'Kieran', 'Laurent', 'Magnus', 'Marek',
- 'Morimoto', 'Niklas', 'Shimoda', 'Simon', 'Ulrich', 'Wolfram']:
+ 'Morimoto', 'Niklas', 'Shimoda', 'Simon', 'Ulrich', 'Wolfram', "NoAssignee"]:
html("li").print(html("a", {"target":"summary",
"href":"./{}.html".format(assignee)}).text(assignee))
@@ -347,6 +349,9 @@ class periject_html(base.base):
status = v.get_data("status")
team = v.get_data("team")
+ if (not len(assignee)):
+ assignee = "NoAssignee"
+
with html("table", {"border":"1"}):
with html("tr"):
html("th").print("file")