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()
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()
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()