marshall_webapp.templates.responses.templates_resources_transients module

Template for the transients view

Author

David Young

class templates_resources_transients(log, request, elementId=False, search=False, tcsCatalogueId=False)[source]

Bases: object

The worker class for the templates_resources_transients module

Key Arguments

  • log – logger

  • request – the pyramid/WebObs request object

  • elementId – the specific element requested (or False)

  • search – is this a search? (boolean)

  • tcsCatalogueId – tcs catalogue Id (for catalogue match views)

get()[source]

get the templates_resources_transients object

Return

  • webpage – the webapge HTML

_get_list_of_transient_tickets()[source]

get list of transient tickets

Return

  • ticketList – a list of HTML tickets to display in the webapp

_get_sort_dropdown()[source]

get sort dropdown

Return

  • sort – the sort dropdown for the transient listings toolbar

  • filtering – the filter dropdown for the trasnsient listings toolbar

_get_notification()[source]

get notification for the page

Return

  • notification – notifcation to append to the top of the transient listing page

_get_pagination()[source]

get pagination for the page

Return

  • pagination – pagination options for the toolbar of the transient listing pages

_get_view_switcher_buttons()[source]

get view switcher buttons for the page

Return

  • view_switcher_buttons – the view switcher and download formats buttons with popovers

_get_ntt_view_button()[source]

get button that hides sources with dec > 30.

Return

  • view_switcher_buttons – the view switcher and download formats buttons with popovers

_get_hundred_mpc_filter_button()[source]

get button that filters sources to within 100 mpc

Return

  • view_switcher_buttons – the view switcher and download formats buttons with popovers

_get_object_limit_dropdown()[source]

get object limit dropdown for the page

Return

  • objectsPerPageDropdown – options to display certain numbers of transients on a single webpage (for top toolbar of transient listing page)

_get_object_table()[source]

get a table of transients

Return

  • object_table – the table view content for the transient listing pages

_get_page_name()[source]

get page name

_get_object_tickets()[source]

get object tickets

Return

  • ticket_table – the ticket to display as the main content of the page

_get_page_view_info()[source]

get page view info