marshall_webapp.templates.commonelements.tickets.single_ticket package

A ticket for a single PESSTO Object give all info known about it

Author

David Young

single_ticket(log, request, discoveryDataDictionary, objectComments, objectAkas, lightcurveData, atelData, objectHistories, transientCrossmatches)[source]

A single ticket for a transient object tin the pessto marshall

Key Arguments

  • log – logger

  • request – the pyramid request

  • discoveryDataDictionary – the unique discoveryData dictionary of the object in the pessto marshall database (from view_object_contextual_data)

  • objectComments – the comments for the object

  • objectAkas – the akas with surveyUrls

  • lightcurveData – the lightcurve data for the objects displayed on the webpage

  • atelData – the atel matches for the objects displayed on the webpage

  • objectHistories – history log for object

  • transientCrossmatches – catalogue crossmatches (from sherlock)

Return

  • ticket – a single transient’s info in one HTML ticket

_single_ticket_template(log, transientBucketId, tabDictionary={}, htmlId=False, commentCount=False, obsPriority=False)[source]

single_ticket

Key Arguments

  • log – the logger

  • transientBucketId – the transientBucketId of the object to be displayed

  • tabDictionary – a dictionary of { “title”: tabcontent, }

Return

  • single_ticket – build the single ticket

_ticket_tab_template(log, request, tabHeader=False, blockList=[], tabFooter=False, actionsBlock=False, htmlId=False)[source]

ticket tab - build a tab on a ticket from a few sub-block of object data

Key Arguments

  • log – the logger

  • request – the pyramid request

  • tabHeader – header bar for the tab

  • blockList – the list of asset ‘blocks’ to be included in this ticket tab

  • tabFooter – footer bar for the tab

  • actionsBlock – to consume skinny column at right side

Return

  • ticket_tab – template for each ticket tab

Subpackages