const.CON = 'con' # Login parameters const.LOGIN_URL = 'https://openvoterid.net/login' const.VOTER_ID_TIMEOUT_SEC = 600 # 10 minutes const.VOTER_ID_LOGIN_SIG_LENGTH = 30 const.VOTER_ID_LOGIN_REQUEST_ID_LENGTH = 30 # Minimum content lengths const.minLengthRequest = 30 const.minLengthProposal = 30 const.minLengthReason = 20 const.recentRequestsMax = 10 const.MAX_TOP_REASONS = 6 # HTTP/JSON request response codes const.TOO_SHORT = 'TOO_SHORT' const.REASON_TOO_SHORT = 'REASON_TOO_SHORT' const.DUPLICATE = 'DUPLICATE' const.BAD_CRUMB = 'BAD_CRUMB' const.NO_COOKIE = 'NO_COOKIE' const.NO_LOGIN = '******' const.BAD_LINK = 'BAD_LINK' const.NOT_OWNER = 'NOT_OWNER' const.HAS_RESPONSES = 'HAS_RESPONSES' const.FROZEN = 'FROZEN' const.OVER_BUDGET = 'OVER_BUDGET' const.EXPERIMENT_NOT_AUTHORIZED = 'EXPERIMENT_NOT_AUTHORIZED'