def create_var(self, container, hidden=False): """Utility to simplify the creation of custom variable types. Parameters: container - custom container for variable hidden - should the var be hidden from the web UI? """ var = Variable(container.name, hidden) var.set_container(container) self.add_variable(var)
def create_standard_var(self, varname, mode, hidden=True): """Utility to simplify the creation of standard variables. Parameters: varname - name of variable mode - variable mode hidden - should the var be hidden from the web UI? """ var = Variable(varname, hidden) var.set_mode(mode) self.add_variable(var)