Example #1
0
    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)