marshall_webapp.templates.commonelements.tickets.single_ticket.ticket_building_blocks.actions_block module

The actions block for the marshall object tickets

Author

David Young

actions_block(log, request, discoveryDataDictionary, lightcurveData, objectAkas)[source]

get ticket action block

Key Arguments

  • log – logger

  • request – the pyramid request

  • lightcurveData – the lightdata for the object

  • discoveryDataDictionary – a dictionary of the discovery data for this transient.

Return

  • action_block – the ticket identity block for the pesssto object

_get_classify_button(log, request, discoveryDataDictionary)[source]

get classify button for the ticket topbar

Key Arguments

  • log – logger

  • request – the pyramid request object

  • discoveryDataDictionary – dictionary of the transient’s discovery data

Return

  • button – the classification button with hidden modal form

_get_move_to_dropdown(log, request, discoveryDataDictionary)[source]

get move to dropdown for the ticket

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data

Return

  • thisDropdown – the move to other list dropdown

_get_alert_dropdown(log, request, discoveryDataDictionary)[source]

get alert dropdown for the ticket

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data

Return

  • thisDropdown – the move to other alert list dropdown

_get_change_pi_button(log, request, discoveryDataDictionary)[source]

get change pi for the ticket action block

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data

Return

  • button – the change PI button and hidden modal form

_generate_ob_button(log, request, discoveryDataDictionary, lightcurveData, objectAkas)[source]

get generate OB button for the ticket action block

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data

  • lightcurveData – lightcurve data for the object

  • objectAkas – the akas of the object

Return

  • button - the generate OB button with hidden modal form

_get_priority_switcher_dropdown(request, discoveryDataDictionary, log)[source]

get priority switcher dropdown

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data

_snooze_button(request, discoveryDataDictionary, log)[source]

snooze button

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – dictionary of the transient’s discovery data