def convert_to_int(value):
    try:
        new_value = int(value)
    except __HOLE__:
        new_value = 0
    return new_value


# http://stackoverflow.com/questions/1622793/django-cookies-how-can-i-set-them
dataset/ETHPy150Open wevoteeducation/WeVoteBase/wevote_functions/models.py/convert_to_int