sysview-py 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sysview-py
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Add your description here
5
5
  Author: Michael Wilson
6
6
  Author-email: Michael Wilson <mw@1wilson.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sysview-py"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -67,8 +67,11 @@ class Sysview:
67
67
  for item in host.all_items:
68
68
  html = env.get_template("service.html").render(item=item, title=host.name, active="Services", path="../../")
69
69
  html_path = host_dir / f"{item.report_type}_{item.id}.html"
70
+ raw_path = host_dir / f"{item.report_type}_{item.id}.txt"
70
71
  with open(html_path, 'w') as f:
71
72
  f.write(html)
73
+ with open(raw_path, 'w') as f:
74
+ f.write(item.raw_item)
72
75
  html = env.get_template("services.html").render(services=self.all_services, title="Services", active="Services", path="")
73
76
  html_path = self.html_root / f"services.html"
74
77
  with open(html_path, 'w') as f:
@@ -0,0 +1,10 @@
1
+ <html>
2
+ {% include 'header.html' %}
3
+ <nav>
4
+ <a href="host.html">Show host</a>
5
+ |
6
+ <a href="{{ item.report_type }}_{{ item.id }}.txt">Raw report</a>
7
+ </nav>
8
+ <pre>{{ item.raw_item }}</pre>
9
+ {% include 'footer.html' %}
10
+ </html>
@@ -1,6 +0,0 @@
1
- <html>
2
- {% include 'header.html' %}
3
- <a href="host.html">Back to host</a>
4
- <pre>{{ item.raw_item }}</pre>
5
- {% include 'footer.html' %}
6
- </html>
File without changes