Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
2 | |||
3 | from bika.lims import api |
||
4 | from senaite.core.browser.samples.view import SamplesView as BaseView |
||
5 | |||
6 | |||
7 | class SamplesView(BaseView): |
||
8 | """Samples listing inside Batches |
||
9 | """ |
||
10 | |||
11 | def __init__(self, context, request): |
||
12 | super(SamplesView, self).__init__(context, request) |
||
13 | self.contentFilter = { |
||
14 | "portal_type": "AnalysisRequest", |
||
15 | "getBatchUID": api.get_uid(self.context), |
||
16 | "sort_on": "created", |
||
17 | "sort_order": "reverse", |
||
18 | "isRootAncestor": True, # only root ancestors |
||
19 | } |
||
20 |