Beispiel #1
0
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'

# Persistent record class names
const.REQUEST_CLASS_NAME = 'RequestForProposals'
const.REASON_CLASS_NAME = 'Reason'
const.PROPOSAL_CLASS_NAME = 'Proposal'
const.USER_CLASS_NAME = 'User'
const.LINK_KEY_CLASS_NAME = 'LinkKey'

# Environment variable names
const.REQUEST_LOG_ID = 'REQUEST_LOG_ID'