Ejemplo n.º 1
0
 def get_decimal_mark(self):
     """Returns the decimal mark
     """
     setup = api.get_setup()
     return setup.getDecimalMark()
Ejemplo n.º 2
0
 def setup(self):
     """Returns the Senaite Setup Object
     """
     return api.get_setup()
Ejemplo n.º 3
0
 def show_categories(self):
     """Check the setup if analysis services should be categorized
     """
     setup = api.get_setup()
     return setup.getCategoriseAnalysisServices()
Ejemplo n.º 4
0
 def show_prices(self):
     """Checks if prices should be shown or not
     """
     setup = api.get_setup()
     return setup.getShowPrices()
Ejemplo n.º 5
0
 def show_ar_specs(self):
     """Checks if AR specs should be shown or not
     """
     setup = api.get_setup()
     return setup.getEnableARSpecs()
Ejemplo n.º 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)