def add_user(username, passwd):
    """Add new user to db"""
    herdsAuto = " ".join(herds.get_dev_herds(username))
    new_user = Users(user=username,
                     password=passwd,
                     herdsAuto=herdsAuto,
                     herdsUser="",
                     troves="")
Beispiel #2
0
def store_herds():
    """Store herds of each registered dev in the db"""
    for dev in Users.select():
        dev.set(herdsAuto=" ".join(herds.get_dev_herds(dev.user)))
Beispiel #3
0
def store_herds():
    """Store herds of each registered dev in the db"""
    for dev in Users.select():
        dev.set(herdsAuto = " ".join(herds.get_dev_herds(dev.user)))
def add_user(username, passwd):
    """Add new user to db"""
    herdsAuto = " ".join(herds.get_dev_herds(username))
    new_user = Users(user = username, password = passwd,
                     herdsAuto = herdsAuto, herdsUser = "",
                     troves = "")