def get_theme(themeId):
    try:
        theme = Theme.objects.get(id=themeId)
    except __HOLE__:
        return None

    return {
        'id': theme.id,
        'name': theme.name,
        'downloads': theme.downloads,
        'author': theme.author,
        'website': theme.website,
        'comment': theme.comment,
        'elements': dict([(e[0], gen_style(e[1])) for e in deserialize_from_lines(theme.elements.split('\n'))])
    }
dataset/ETHPy150Open y-a-r-g/idea-color-themes/backend/logic/themes/themes.py/get_theme