marshall_webapp.models.xmatches_catalogues.element.models_xmatches_element_catalogues_get module

The data model module for the ``xmatches_element_catalogues_get`` resource

Author

David Young

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

Bases: marshall_webapp.models.transients.models_transients_get.models_transients_get

The worker class for the models_xmatches_element_catalogues_get module

Key Arguments

  • log – logger

  • request – the pyramid request

  • elementId – the specific element id requests (or False)

  • search – is this a search request (boolean)

get()[source]

execute the get method on the models_xmatches_element_catalogues_get object

Return

  • responseContent – the reponse to send to the browser

_set_default_parameters()[source]

set default parameters

_clean_data_for_plain_text_outputs()[source]

clean data for plain text outputs

Return

  • None

_get_associated_atel_data()[source]

get associated atel data for the matched transients

Return

  • transientAtelMatches – the matched atels fot the transients

_get_associated_comments()[source]

get associated comments for the transients

Return

  • objectComments – object comments

_get_associated_lightcurve_data()[source]

get associated lightcurve data for the matched transients

Return

  • lightCurveData – the found objects’ lightcurve data

_get_associated_transient_aka()[source]

get associated aka names for the trasnsients

Return

  • objectAkas – the akas for the objects found

_get_associated_transient_crossmatches()[source]

get associated transient crossmatches

_get_associated_transient_history()[source]

get associated transient history

_get_total_ticket_count_for_list(queryWhere)[source]

get total ticket count for list

Key Arguments

  • queryWhere – the where segment of the ticket list sqlQuery string

Return

  • totalTickets – total number of object in list

_get_transient_data_from_database()[source]

get the sqlquery based on the request object parameters

Return

  • objectData

  • matchedTransientBucketIds

  • totalTicketCount

close()[source]