Passed
Push — master ( ab4e45...a3010f )
by Ramon
08:58 queued 04:47
created

bika.lims.browser.batch.analysisrequests.AnalysisRequestsView.getRestrictedCategories()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
# -*- coding: utf-8 -*-
2
#
3
# This file is part of SENAITE.CORE
4
#
5
# Copyright 2018 by it's authors.
6
# Some rights reserved. See LICENSE.rst, CONTRIBUTORS.rst.
7
8
from bika.lims import api
9
from bika.lims.browser.analysisrequest import AnalysisRequestsView as BaseView
10
11
12
class AnalysisRequestsView(BaseView):
13
14
    def __init__(self, context, request):
15
        super(AnalysisRequestsView, self).__init__(context, request)
16
        self.contentFilter = {'portal_type': 'AnalysisRequest',
17
                              'getBatchUID': api.get_uid(self.context),
18
                              'sort_on': 'created',
19
                              'sort_order': 'reverse',
20
                              'cancellation_state':'active'}
21