parameters: (request)
docstring: use to delete rule
      :param request:
      :return:
docstring_summary: use to delete rule
      :param request:
      :return:
docstring_tokens: use to delete rule : param request : : return :
function: def perm_rule_delete(request):
      """
      use to delete rule
      :param request:
      :return:
      """
      if request.method == 'POST':
          # 根据rule_id 取得rule对象
          rule_id = request.POST.get("id")
          rule_obj = PermRule.objects.get(id=rule_id)
          rule_obj.delete()
          return HttpResponse(u"删除授权规则：%s" % rule_obj.name)
      else:
          return HttpResponse(u"不支持该操作")
function_tokens: def perm_rule_delete ( request ) : if request . method == 'POST' : # 根据rule_id 取得rule对象 rule_id = request . POST . get ( "id" ) rule_obj = PermRule . objects . get ( id = rule_id ) rule_obj . delete ( ) return HttpResponse ( u"删除授权规则：%s" % rule_obj.na e else : return HttpResponse ( u"不支持该操作")