Hide keyboard shortcuts

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 

4 

5 

6CW = C.web 

7 

8ORPHAN_MSG = CW.messages[N.orphanedReviewer] 

9 

10 

11class ReviewD(Details): 

12 """Logic for detail records of reviews. 

13 

14 The main point of departure from the standard behaviour is that 

15 we do not present the reviewEntry detail records here at all. 

16 

17 They will be presented as details of the criteriaEntry records. 

18 

19 On the other hand, we do want to show the review decision as a workflow 

20 status field here. 

21 

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`. 

25 """ 

26 

27 def __init__(self, recordObj): 

28 super().__init__(recordObj) 

29 

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) 

34 

35 kind = self.kind 

36 

37 statusRep = wfitem.status(N.review, kind=kind) 

38 

39 return H.div(statusRep)