Example #1
0
 def get_decimal_mark(self):
     """Returns the decimal mark
     """
     setup = api.get_setup()
     return setup.getDecimalMark()
Example #2
0
 def setup(self):
     """Returns the Senaite Setup Object
     """
     return api.get_setup()
Example #3
0
 def show_categories(self):
     """Check the setup if analysis services should be categorized
     """
     setup = api.get_setup()
     return setup.getCategoriseAnalysisServices()
Example #4
0
 def show_prices(self):
     """Checks if prices should be shown or not
     """
     setup = api.get_setup()
     return setup.getShowPrices()
Example #5
0
 def show_ar_specs(self):
     """Checks if AR specs should be shown or not
     """
     setup = api.get_setup()
     return setup.getEnableARSpecs()
Example #6
0
def get_default_num_samples():
    """Returns the num of Samples (Columns) to be displayed in Sample Add Form
    """
    ar_count = api.get_setup().getDefaultNumberOfARsToAdd()
    return api.to_int(ar_count, 1)