DPP/DLT functionality #36

Merged
pedro merged 68 commits from dpp into main 2024-12-11 15:15:14 +00:00
Showing only changes of commit 5631da453a - Show all commits

View file

@ -107,16 +107,18 @@ class PublicDeviceWebView(TemplateView):
# did=last_dpp.key, host=app.config.get('HOST') # did=last_dpp.key, host=app.config.get('HOST')
# ) # )
# data['url_last'] = url_last # data['url_last'] = url_last
# for c in self.dpp.snapshot.components: # for c in self.dpp.snapshot.components:
# components.append({c.type: c.chid}) # components.append({c.type: c.chid})
# return result # return result
dpps = [] dpps = []
for d in self.device.dpps: self.object.initial()
for d in self.object.evidences:
d.get_doc()
ev = json.dumps(d.doc)
rr = { rr = {
'dpp': d.key, 'dpp': d.key,
'document': d.snapshot.json_hw, 'document': ev,
'algorithm': ALGORITHM, 'algorithm': ALGORITHM,
'manufacturer DPP': '', 'manufacturer DPP': '',
} }