예제 #1
0
from haas import control, model, cli

user = control.get_entity_by_cond(model.User, 'user_name=="admin"')
if user == None:
    control.create_user("admin", "admin")
    print "No admin user, created one by default"

cli.main_loop()
예제 #2
0
파일: haas_init.py 프로젝트: Viggnesh/haas
from haas import control, model, cli
user = control.get_entity_by_cond(model.User, 'user_name=="admin"')
if user == None:
    control.create_user('admin', 'admin')
    print 'No admin user, created one by default'

cli.main_loop()
예제 #3
0
파일: cli.py 프로젝트: Viggnesh/haas
def create_user(user_name,password):
    control.create_user(user_name,password)
예제 #4
0
def create_user(user_name, password):
    control.create_user(user_name, password)