Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from config import Config as C, Names as N
2from control.details import Details
3from control.html import HtmlElements as H
6CW = C.web
8ORPHAN_MSG = CW.messages[N.orphanedReviewer]
12 """Logic for detail records of reviews.
14 The main point of departure from the standard behaviour is that
15 we do not present the reviewEntry detail records here at all.
17 They will be presented as details of the criteriaEntry records.
19 On the other hand, we do want to show the review decision as a workflow
20 status field here.
22 !!! hint
23 If the `reviewEntry` record is not part of the workflow, the behaviour
24 of this class falls back to the base class `control.details.Details`.
27 def __init__(self, recordObj):
30 def wrap(self, *args, **kwargs):
31 wfitem = self.wfitem
32 if not wfitem: 32 ↛ 33line 32 didn't jump to line 33, because the condition on line 32 was never true
33 return super().wrap(*args, **kwargs)
35 kind = self.kind
37 statusRep = wfitem.status(N.review, kind=kind)
39 return H.div(statusRep)