示例#1
0
def delete_superadmin(email):
    super_admin = SuperAdminService.get_by_email(email)
    if not super_admin:
        print('Super admin not found!')
        return
    if prompt_bool('Do you really want to delete this account? [y/n]'):
        SuperAdminService.delete(super_admin.id)
        print('Success!')
示例#2
0
def delete_superadmin(email):
    super_admin = SuperAdminService.get_by_email(email)
    if not super_admin:
        print('Super admin not found!')
        return
    if prompt_bool('Do you really want to delete this account? [y/n]'):
        SuperAdminService.delete(super_admin.id)
        print('Success!')
示例#3
0
def list_superadmin():
    superadmins = map(SuperAdminService.to_dict, SuperAdminService.list())
    for superadmin in superadmins:
        print(superadmin['email'])
示例#4
0
def list_superadmin():
    superadmins = map(SuperAdminService.to_dict, SuperAdminService.list())
    for superadmin in superadmins:
        print(superadmin['email'])
示例#5
0
def super_admin(app, perm):
    return SuperAdminService.create('*****@*****.**', 'test')
示例#6
0
def super_admin(app, perm):
    return SuperAdminService.create('*****@*****.**', 'test')