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
– loggerrequest
– the pyramid/WebObs request objectelementId
– the specific element requested (or False)search
– is this a search? (boolean)tcsCatalogueId
– tcs catalogue Id (for catalogue match views)
-
_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 toolbarfiltering
– 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 for the page
Return
view_switcher_buttons
– the view switcher and download formats buttons with popovers
get button that hides sources with dec > 30.
Return
view_switcher_buttons
– the view switcher and download formats buttons with popovers
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