utils.py
def flattenDict(flattenable, flattenKey):
    """ turns a list into a flatstring on the first value"""
    flatstring = ""

    if type(flattenable) == list:
        for tag in flattenable:
            if flattenKey in tag:
                flatstring = tag[flattenKey]
    elif type(flattenable) == dict:
        if flattenKey in flattenable:
            flatstring = flattenable[flattenKey]
    return flatstring
 turns a list into a flatstring on the first value
turns a list into a flatstring on the first value
turns a list into a flatstring on the first value
def flattenDict(flattenable, flattenKey):
    flatstring = ""
    if type(flattenable) == list:
        for tag in flattenable:
            if flattenKey in tag:
                flatstring = tag[flattenKey]
    elif type(flattenable) == dict:
        if flattenKey in flattenable:
            flatstring = flattenable[flattenKey]
    return flatstring
def flattenDict ( flattenable , flattenKey ) : flatstring = "" if type ( flattenable ) == list : for tag in flattenable : if flattenKey in tag : flatstring = tag [ flattenKey ] elif type ( flattenable ) == dict : if flattenKey in flattenable : flatstring = flattenable [ flattenKey ] return flatstring
turns a list into a flatstring on the first value
turns a list into a flatstring on the first value
""" turns a list into a flatstring on the first value"""
flattenable
flattenKey