Esempio n. 1
0
    def __call__(self):
        if self.templatename == 'classic':
            return AnalysisRequestAddViewLIMS.__call__(self)

        # Getting the checkbox value
        enable_bika_request_field = self.context.bika_setup.Schema().getField('EnableBikaAnalysisRequestRequestForm')
        enable_bika_request = enable_bika_request_field.get(self.context.bika_setup)
        if enable_bika_request:
            # Use the template defined on BikaLIMS
            return AnalysisRequestAddViewLIMS.__call__(self)
        else:
            # Use the Health's template
            self.col_count = 1
            self.request.set('disable_border', 1)
            return self.health_template()
Esempio n. 2
0
    def __call__(self):
        if self.templatename == 'classic':
            return AnalysisRequestAddViewLIMS.__call__(self)

        # Getting the checkbox value
        enable_bika_request_field = self.context.bika_setup.Schema().getField('EnableBikaAnalysisRequestRequestForm')
        enable_bika_request = enable_bika_request_field.get(self.context.bika_setup)
        if enable_bika_request:
            # Use the template defined on BikaLIMS
            return AnalysisRequestAddViewLIMS.__call__(self)
        else:
            # Use the Health's template
            self.col_count = 1
            self.request.set('disable_border', 1)
            return self.health_template()
Esempio n. 3
0
    def __call__(self):
        # Hacking the template condition to display only the classic analysis
        # request view because the standard one is not compatible with the new
        # bikalisting
        self.templatename = "classic"
        if self.templatename == "classic":
            return AnalysisRequestAddViewLIMS.__call__(self)

        # Getting the checkbox value
        enable_bika_request_field = self.context.bika_setup.Schema().getField("EnableBikaAnalysisRequestRequestForm")
        enable_bika_request = enable_bika_request_field.get(self.context.bika_setup)
        if enable_bika_request:
            # Use the template defined on BikaLIMS
            return AnalysisRequestAddViewLIMS.__call__(self)
        else:
            # Use the Health's template
            self.col_count = 1
            self.request.set("disable_border", 1)
            return self.health_template()
Esempio n. 4
0
    def __call__(self):
        # Hacking the template condition to display only the classic analysis
        # request view because the standard one is not compatible with the new
        # bikalisting
        self.templatename = 'classic'
        if self.templatename == 'classic':
            return AnalysisRequestAddViewLIMS.__call__(self)

        # Getting the checkbox value
        enable_bika_request_field = self.context.bika_setup.Schema().getField(
            'EnableBikaAnalysisRequestRequestForm')
        enable_bika_request = enable_bika_request_field.get(
            self.context.bika_setup)
        if enable_bika_request:
            # Use the template defined on BikaLIMS
            return AnalysisRequestAddViewLIMS.__call__(self)
        else:
            # Use the Health's template
            self.col_count = 1
            self.request.set('disable_border', 1)
            return self.health_template()
Esempio n. 5
0
 def __init__(self, context, request):
     AnalysisRequestAddViewLIMS.__init__(self, context, request)
     self.templatename = self.request.get('tpl','')
     self.w = AddressWidget()
Esempio n. 6
0
 def __init__(self, context, request):
     ARAV.__init__(self, context, request)
     self.context = context
     self.request = request
Esempio n. 7
0
 def __init__(self, context, request):
     AnalysisRequestAddViewLIMS.__init__(self, context, request)
     self.templatename = self.request.get('tpl', '')
     self.w = AddressWidget()
Esempio n. 8
0
 def __init__(self, context, request):
     ARAV.__init__(self, context, request)
     self.context = context
     self.request = request