From 7963e94b66da5ae455d99e1cb700604006df5221 Mon Sep 17 00:00:00 2001
From: Robbbert
Date: Wed, 27 Oct 2021 14:57:10 +1100
Subject: Files for 0.237
---
docs/release/scripts/minimaws/lib/wsgiserve.py | 36 +++++++++++++++++++++++---
1 file changed, 33 insertions(+), 3 deletions(-)
(limited to 'docs/release/scripts/minimaws/lib/wsgiserve.py')
diff --git a/docs/release/scripts/minimaws/lib/wsgiserve.py b/docs/release/scripts/minimaws/lib/wsgiserve.py
index 43d5dbc1253..1158528d954 100644
--- a/docs/release/scripts/minimaws/lib/wsgiserve.py
+++ b/docs/release/scripts/minimaws/lib/wsgiserve.py
@@ -661,6 +661,20 @@ class SoftwareListHandler(QueryPageHandler):
unsupported=htmlescape('%d' % (softwarelist_info['unsupported'], )),
unsupportedpc=htmlescape('%.1f' % (softwarelist_info['unsupported'] * 100.0 / (softwarelist_info['total'] or 1), ))).encode('utf-8')
+ if softwarelist_info['notes'] is not None:
+ yield htmltmpl.SOFTWARELIST_NOTES_PROLOGUE.substitute().encode('utf-8')
+ first = True
+ for line in softwarelist_info['notes'].strip().splitlines():
+ if line:
+ yield (('%s' if first else '
\n%s') % (htmlescape(line), )).encode('utf-8')
+ first = False
+ elif not first:
+ yield '
\n'.encode('utf-8')
+ first = True
+ if not first:
+ yield '
\n'.encode('utf-8')
+ yield htmltmpl.SOFTWARELIST_NOTES_EPILOGUE.substitute().encode('utf-8')
+
first = True
for machine_info in self.dbcurs.get_softwarelist_machines(softwarelist_info['id']):
if first:
@@ -719,19 +733,35 @@ class SoftwareListHandler(QueryPageHandler):
yield htmltmpl.SORTABLE_TABLE_EPILOGUE.substitute(id='tbl-clones').encode('utf-8')
yield '\n'.encode('utf-8')
+ if software_info['notes'] is not None:
+ yield htmltmpl.SOFTWARE_NOTES_PROLOGUE.substitute().encode('utf-8')
+ first = True
+ for line in software_info['notes'].strip().splitlines():
+ if line:
+ yield (('%s' if first else '
\n%s') % (htmlescape(line), )).encode('utf-8')
+ first = False
+ elif not first:
+ yield '
\n'.encode('utf-8')
+ first = True
+ if not first:
+ yield '\n'.encode('utf-8')
+ yield htmltmpl.SOFTWARE_NOTES_EPILOGUE.substitute().encode('utf-8')
+
parts = self.dbcurs.get_software_parts(software_info['id']).fetchall()
first = True
for id, partname, interface, part_id in parts:
if first:
- yield 'Parts
\n'.encode('utf-8')
+ yield htmltmpl.SOFTWARE_PARTS_PROLOGUE.substitute().encode('utf-8')
first = False
yield htmltmpl.SOFTWARE_PART_PROLOGUE.substitute(
heading=htmlescape(('%s (%s)' % (part_id, partname)) if part_id is not None else partname),
shortname=htmlescape(partname),
interface=htmlescape(interface)).encode('utf-8')
for name, value in self.dbcurs.get_softwarepart_features(id):
- yield (' %s: | %s | \n' % (htmlescape(name), htmlescape(value))).encode('utf-8')
- yield '\n\n'.encode('utf-8')
+ yield ('
---|
%s: | %s | \n' % (htmlescape(name), htmlescape(value))).encode('utf-8')
+ yield ' \n\n'.encode('utf-8')
+ if not first:
+ yield htmltmpl.SOFTWARE_PARTS_EPILOGUE.substitute().encode('utf-8')
yield '
---|