Exemplo n.º 1
0
def getTag(request):
    # read in crucial parameters
    tagKey = request.GET.get('id', None)

    # read in optional parameters and initialize the API
    fields = Util.getDelimitedList(request.GET, 'fields')
    getAPI = GetAPI(request.user, fields)

    if not tagKey:
        raise Errors.NO_TAG_KEY

    # the key for lookup and the image it is attached to
    return getAPI.getTag(tagKey)
Exemplo n.º 2
0
def getTag(request):
    # read in crucial parameters
    tagKey = request.GET.get('id', None)
    
    # read in optional parameters and initialize the API
    fields = Util.getDelimitedList(request.GET, 'fields')
    getAPI = GetAPI(request.user, fields)

    if not tagKey:
        raise Errors.NO_TAG_KEY
    
    # the key for lookup and the image it is attached to
    return getAPI.getTag(tagKey)
Exemplo n.º 3
0
def getTag(request):
    # read in crucial parameters
    tagKey = request.GET.get('id', None)
    
    # read in optional parameters and initialize the API
    fields = Util.getDelimitedList(request.GET, 'fields')
    getAPI = GetAPI(request.user, fields)

    #TEST for debugging - logger
    logger = logging.getLogger(__name__)
    logger.error('logger test - ktcho')
    
    if not tagKey:
        raise Errors.NO_TAG_KEY

    # the key for lookup and the image it is attached to
    return getAPI.getTag(tagKey)