def ajax_group_delete():  #删除群体
    g_name = request.args.get('g_name', u'社会媒体') #split ,
    submit_user = request.args.get('submit_user', u'*****@*****.**')
    g_name_list = g_name.split(',')
    for i in g_name_list:
        g_name = i + '_' + submit_user
        detail_t = delete_group(g_name, submit_user)
        if detail_t == '0':
            return json.dumps(detail_t)
    return json.dumps(detail_t)
Exemple #2
0
def teardown ():
  utils.delete_user ("alice")
  utils.delete_group ("winsys")
Exemple #3
0
def delete_group_view(request):
    id = request.GET.get("id")
    data = utils.delete_group(id)
    return public.success_result_http(data)