@classmethod
def add(cls, name, value=0, textvalue='', datevalue=None, comment=''):
    """add a new var of given name with given values"""
    v = cls.new()
    v.name = name
    v.value = value
    v.textvalue = textvalue
    v.datevalue = datevalue
    v.comment = comment
    v.flush()
