diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2022-07-07 15:18:29 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2022-07-12 09:11:30 +0900 |
commit | 4822ec0f3589159eef0bfeaa0af585c8b006731a (patch) | |
tree | 90fa7c487ca6cc05dde798acdf751f092c5425c1 /scripts | |
parent | 477a499b6005fd1635c1b505c57ef01b7cf53104 (diff) |
scripts: Don't use cache on HTML Frame
Web browser will use cached page if it is using Frame
(Menu, Summary, etc), but it is not good for PeriJect user.
To avoid the cache patch, this patch try to 1) remove frame html
every make, 2) add "?xxx" after file name to make web browser
think it's a different file.
It works well on Chrome, but not sure on other browser.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/html_base.py | 2 | ||||
-rwxr-xr-x | scripts/html_menu.py | 12 | ||||
-rwxr-xr-x | scripts/html_task.py | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/scripts/html_base.py b/scripts/html_base.py index 4941721..b02b376 100644 --- a/scripts/html_base.py +++ b/scripts/html_base.py @@ -224,7 +224,7 @@ class myhtml(base.base): return html("h3").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(status), dir)}).text(status)) + "href":self.relpath("html/{}.html?summary".format(status), dir)}).text(status)) with html("table", {"border":"1"}): with html("tr"): diff --git a/scripts/html_menu.py b/scripts/html_menu.py index ced699c..052c18d 100755 --- a/scripts/html_menu.py +++ b/scripts/html_menu.py @@ -33,7 +33,7 @@ class periject_html(html_base.myhtml): folders = self.runl("cd {}; ls -F | grep /".format(current)) path = current.replace("./projects", ".") link = html("a", {"target":"summary", - "href":"{}/summary.html".format(path)}) + "href":"{}/summary.html?folder".format(path)}) html("li").print(link.text(os.path.basename(current))) @@ -54,7 +54,7 @@ class periject_html(html_base.myhtml): for assignee in ['BSP', 'Geert', 'Jacopo', 'Kieran', 'Laurent', 'Magnus', 'Marek', 'Morimoto', 'Niklas', 'Shimoda', 'Wolfram', "NoAssignee"]: html("li").print(html("a", {"target":"summary", - "href":"./{}.html".format(assignee)}).text(assignee)) + "href":"./{}.html?assignee".format(assignee)}).text(assignee)) #-------------------- # menu_status @@ -64,7 +64,7 @@ class periject_html(html_base.myhtml): with html("ul"): for status in ['New', 'Active', 'Blocked', 'Paused', 'Done', 'Abandoned']: html("li").print(html("a", {"target":"summary", - "href":"./{}.html".format(status)}).text(status)) + "href":"./{}.html?status".format(status)}).text(status)) #-------------------- # menu_team @@ -74,14 +74,14 @@ class periject_html(html_base.myhtml): with html("ul"): for status in ['Core', 'IO', 'MM']: html("li").print(html("a", {"target":"summary", - "href":"./{}.html".format(status)}).text(status)) + "href":"./{}.html?team".format(status)}).text(status)) #-------------------- # menu_bsp #-------------------- def menu_bsp(self, bsp): html("a", {"target":"summary", - "href":"./{}.html".format(bsp)}).print(bsp) + "href":"./{}.html?bsp".format(bsp)}).print(bsp) #-------------------- # print @@ -98,7 +98,7 @@ class periject_html(html_base.myhtml): html("h1").print("Schedule") html("a", {"target":"summary", - "href":"./schedule.html"}).print("schedule") + "href":"./schedule.html?schedule"}).print("schedule") html("h1").print("Folder") with html("ul"): diff --git a/scripts/html_task.py b/scripts/html_task.py index e47bb99..4aa2d29 100755 --- a/scripts/html_task.py +++ b/scripts/html_task.py @@ -74,11 +74,11 @@ class periject_html(html_base.myhtml): with html("tr"): html("td").print(os.path.relpath(v.file, self.top())) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(status), dir)}).text(status)) + "href":self.relpath("html/{}.html?summary".format(status), dir)}).text(status)) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(team), dir)}).text(team)) + "href":self.relpath("html/{}.html?summary".format(team), dir)}).text(team)) html("td").print(html("a", {"target":"summary", - "href":self.relpath("html/{}.html".format(assignee), dir)}).text(assignee)) + "href":self.relpath("html/{}.html?summary".format(assignee), dir)}).text(assignee)) html("td").print(v.get_data("key")) #-------------------- |