Esempio n. 1
0
def addQtl(request):
    # get new note information
    qtl = request.POST.get('qtl', None)
    pq_id = request.POST.get('pq_id', None)
    imageKey = request.POST.get('pictureID', None)

    print 'test addQql()'

    if not imageKey:
        raise Errors.NO_IMAGE_KEY

    # read in optional parameters and initialize the API
    fields = Util.getDelimitedList(request.POST, 'fields')

    postAPI = PostAPI(request.user, fields)
    return postAPI.addQtl(qtl, pq_id, imageKey)