From 6e3c032d97735f12971fc991be2d950ba3042556 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 23 Jun 2022 18:08:16 +0200 Subject: [PATCH 1/3] 3500 change name of anchor --- ereuse_devicehub/templates/workbench/settings.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ereuse_devicehub/templates/workbench/settings.html b/ereuse_devicehub/templates/workbench/settings.html index 6c762f70..01301e30 100644 --- a/ereuse_devicehub/templates/workbench/settings.html +++ b/ereuse_devicehub/templates/workbench/settings.html @@ -28,6 +28,20 @@

Download the settings only for register devices.

+ {% if iso %} +
+
+ {{ iso }} +
+
+

Download ISO workbench and burn it one one usb stick.

+

+ Download Checksum: SHA512SUMS | + Signature +

+
+
+ {% endif %} From 7cb5c7656230efa90a714b489d540672701d1425 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 23 Jun 2022 18:08:56 +0200 Subject: [PATCH 2/3] add download iso --- .../templates/ereuse_devicehub/base_site.html | 2 +- ereuse_devicehub/workbench/views.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html index 658c2345..2eeb716a 100644 --- a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html +++ b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html @@ -95,7 +95,7 @@
  • - Workbench Settings + Workbench
  • diff --git a/ereuse_devicehub/workbench/views.py b/ereuse_devicehub/workbench/views.py index f70885ce..85bb22f6 100644 --- a/ereuse_devicehub/workbench/views.py +++ b/ereuse_devicehub/workbench/views.py @@ -1,3 +1,4 @@ +import os import time import flask @@ -22,6 +23,7 @@ class SettingsView(GenericMixin): def dispatch_request(self): self.get_context() + self.get_iso() self.context.update( { 'page_title': self.page_title, @@ -34,6 +36,20 @@ class SettingsView(GenericMixin): return flask.render_template(self.template_name, **self.context) + def get_iso(self): + files = [ + f + for f in os.listdir('ereuse_devicehub/static/iso/') + if f[-3:].lower() == 'iso' + ] + + self.context['iso'] = '' + self.context['iso_sha'] = '' + + if files: + self.context['iso'] = files[0] + self.context['iso_sha'] = 'aaa' + def download(self): url = "https://{}/api/inventory/".format(app.config['HOST']) self.wbContext = { From 2760348cc03ec8080ffee37e66a9a75e71638326 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 24 Jun 2022 11:45:26 +0200 Subject: [PATCH 3/3] add iso dir --- ereuse_devicehub/static/iso/SHA512SUMS | 1 + ereuse_devicehub/static/iso/SHA512SUMS.sign | 0 2 files changed, 1 insertion(+) create mode 100644 ereuse_devicehub/static/iso/SHA512SUMS create mode 100644 ereuse_devicehub/static/iso/SHA512SUMS.sign diff --git a/ereuse_devicehub/static/iso/SHA512SUMS b/ereuse_devicehub/static/iso/SHA512SUMS new file mode 100644 index 00000000..04c30697 --- /dev/null +++ b/ereuse_devicehub/static/iso/SHA512SUMS @@ -0,0 +1 @@ +868e59911be73a941938644143d81f21a2fdbe82ea0841493c2d9fc04701e058334af5fecd69c1a1525ebd5c8c17ac3f49d8ecc53bbfc8a018f169be48fe79d6 USODY_2022.5.2-beta.iso diff --git a/ereuse_devicehub/static/iso/SHA512SUMS.sign b/ereuse_devicehub/static/iso/SHA512SUMS.sign new file mode 100644 index 00000000..e69de29b