(request)
return HttpResponse({})
Modify a bucket list for a top-level object. Should be an AJAX POST.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
Modify a bucket list for a top-level object. Should be an AJAX POST.
Modify a bucket list for a top - level object . Should be an AJAX POST .
def bucket_modify(request):
    """
    Modify a bucket list for a top-level object. Should be an AJAX POST.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
    """

    if request.method == "POST" and request.is_ajax():
        tags = request.POST['tags'].split(",")
        oid = request.POST['oid']
        itype = request.POST['itype']
        user = request.user
        acl = get_acl_object(itype)
        if user.has_access_to(acl.BUCKETLIST_EDIT):
            modify_bucket_list(itype, oid, tags, request.user.username)
    return HttpResponse({})
def bucket_modify ( request ) : if request . method == "POST" and request . is_ajax ( ) : tags = request . POST [ 'tags' ] . split ( "," ) oid = request . POST [ 'oid' ] itype = request . POST [ 'itype' ] user = request . user acl = get_acl_object ( itype ) if user . has_access_to ( acl . BUCKETLIST_EDIT ) : modify_bucket_list ( itype , oid , tags , request . user . username ) return HttpResponse ( { } )