示例#1
0
文件: server.py 项目: mkerouch/plabs
def delete_user(userid):
    """Delete a user"""
    udal = UserDAL(app.config['DB'])
    deletion = udal.delete(userid)
    if deletion:
        return ''
    else:
        return 'Not Found', status.HTTP_404_NOT_FOUND
示例#2
0
文件: server.py 项目: mkerouch/plabs
def delete_group(group_name):
    """Delete a group"""
    gdal = UserDAL(app.config['DB'])

    deletion = gdal.delete(group_name)
    if deletion:
        return ''
    else:
        return 'Not Found', status.HTTP_404_NOT_FOUND