Skip to content

Constants

hypha.apply.funds.workflows.constants

DRAFT_STATE module-attribute

DRAFT_STATE = 'draft'

INITIAL_STATE module-attribute

INITIAL_STATE = 'in_discussion'

PHASE_BG_COLORS module-attribute

PHASE_BG_COLORS = {'Draft': 'bg-gray-200', 'Accepted': 'bg-green-200', 'Need screening': 'bg-cyan-200', 'Ready for Determination': 'bg-blue-200', 'Ready For Discussion': 'bg-blue-100', 'Invited for Proposal': 'bg-green-100', 'Internal Review': 'bg-yellow-200', 'External Review': 'bg-yellow-200', 'More information required': 'bg-yellow-100', 'Accepted but additional info required': 'bg-green-100', 'Dismissed': 'bg-rose-200'}

STAGE_CHANGE_ACTIONS module-attribute

STAGE_CHANGE_ACTIONS = get_stage_change_actions()

DETERMINATION_RESPONSE_PHASES module-attribute

DETERMINATION_RESPONSE_PHASES = ['post_review_discussion', 'concept_review_discussion', 'same_post_review_discussion', 'post_external_review_discussion', 'ext_post_external_review_discussion', 'com_post_external_review_discussion']

DETERMINATION_OUTCOMES module-attribute

DETERMINATION_OUTCOMES = get_determination_transitions()

OPEN_CALL_PHASES module-attribute

OPEN_CALL_PHASES = ['com_open_call']

COMMUNITY_REVIEW_PHASES module-attribute

COMMUNITY_REVIEW_PHASES = ['com_community_review']

PHASES_MAPPING module-attribute

PHASES_MAPPING = {'received': {'name': gettext('Received'), 'statuses': [INITIAL_STATE, 'proposal_discussion']}, 'internal-review': {'name': gettext('Internal Review'), 'statuses': phases_matching('internal_review')}, 'in-discussion': {'name': gettext('Ready for Discussion'), 'statuses': phases_matching('discussion', exclude=[INITIAL_STATE, 'proposal_discussion'])}, 'more-information': {'name': gettext('More Information Requested'), 'statuses': phases_matching('more_info')}, 'invited-for-proposal': {'name': gettext('Invited for Proposal'), 'statuses': ['draft_proposal']}, 'external-review': {'name': gettext('External Review'), 'statuses': phases_matching('external_review')}, 'ready-for-determination': {'name': gettext('Ready for Determination'), 'statuses': phases_matching('determination')}, 'accepted': {'name': gettext('Accepted'), 'statuses': phases_matching('accepted')}, 'dismissed': {'name': gettext('Dismissed'), 'statuses': phases_matching('rejected')}}

UserPermissions

Bases: Enum

STAFF class-attribute instance-attribute

STAFF = 1

ADMIN class-attribute instance-attribute

ADMIN = 2

LEAD class-attribute instance-attribute

LEAD = 3

APPLICANT class-attribute instance-attribute

APPLICANT = 4