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)