Ejemplo n.º 1
0
def deleteImage(request):
    # required parameters
    imageKey = request.DELETE.get('id', None)
    if not imageKey:
        raise Errors.NO_IMAGE_KEY

    fields = Util.getDelimitedList(request.GET, 'fields')

    deleteAPI = DeleteAPI(request.user, fields)
    return deleteAPI.deleteImage(imageKey)
Ejemplo n.º 2
0
def deleteImage(request):
    # required parameters
    imageKey = request.DELETE.get('id', None)
    if not imageKey:
        raise Errors.NO_IMAGE_KEY
    
    fields = Util.getDelimitedList(request.GET, 'fields')
    
    deleteAPI = DeleteAPI(request.user, fields)
    return deleteAPI.deleteImage(imageKey)
Ejemplo n.º 3
0
def deleteTagGroup(request):
    tagGroupKey = request.DELETE.get('id', None)

    if not tagGroupKey:
        raise Errors.MISSING_PARAMETER.setCustom('id')

    # get optional parameter
    fields = Util.getDelimitedList(request.DELETE, 'fields')

    deleteAPI = DeleteAPI(request.user, fields)
    return deleteAPI.deleteTagGroup(tagGroupKey)
Ejemplo n.º 4
0
Archivo: API.py Proyecto: idoerg/BioDIG
def deleteTagGroup(request):
    tagGroupKey = request.DELETE.get("id", None)

    if not tagGroupKey:
        raise Errors.MISSING_PARAMETER.setCustom("id")

    # get optional parameter
    fields = Util.getDelimitedList(request.DELETE, "fields")

    deleteAPI = DeleteAPI(request.user, fields)
    return deleteAPI.deleteTagGroup(tagGroupKey)
Ejemplo n.º 5
0
def deleteTag(request):
    geneLinkKey = request.DELETE.get('id', None)
    
    if not geneLinkKey:
        raise Errors.MISSING_PARAMETER.setCustom('id')
    
    # get optional parameter
    fields = Util.getDelimitedList(request.DELETE, 'fields')
    
    deleteAPI = DeleteAPI(request.user, fields)
    return deleteAPI.deleteGeneLink(geneLinkKey)