astro.services.general package

Submodules

astro.services.general.HtmlFits module

Web service for creating and converting FITS files

input :

SLID SLID of a SourceList output Specfies the output, values can be :

  • table, for a binary FITS table
output :
Binary FITS table

The binary FITS table file is written directly to client using the wfile of the server request.

WJ Vriend

class astro.services.general.HtmlFits.HtmlFits(args)

Bases: common.services.general.HtmlBase.HtmlBase

getAdditionalHeaders()

return additional (Content) headers

getContentType()

return the content type, for the ‘Content-type’ http header

getHtml()

all is done in write_wfile

write_wfile(wfile)

process request, return number of bytes written

astro.services.general.HtmlLogin module

Astro derived class of the Login and Password (change) page

class astro.services.general.HtmlLogin.HtmlLogin(args)

Bases: common.services.https.HtmlLogin.HtmlLogin

The Astro Login page shows the certificte authority at the bottom

getBottomMessage()

make a link to the certificate authority, if specified

getExtraHead()

Return css for the authority image

class astro.services.general.HtmlLogin.HtmlPassword(args)

Bases: common.services.https.HtmlPassword.HtmlPassword

The Astro Password page shows the certificte authority at the bottom

getBottomMessage()

make a link to the certificate authority, if specified

getExtraHead()

Return css for the authority image

astro.services.general.HtmlLogin.getAuthorityImage(http_config, path)

make a link to the certificate authority, if specified

astro.services.general.HtmlLogin.getExtraHead()

The css for the authority image

astro.services.general.HtmlWenss module

class astro.services.general.HtmlWenss.HtmlWenss(args)

Bases: common.services.general.HtmlBase.HtmlBase

forward_page()

generate a forward link

frame_catalogue_page()

generate html for a specific frame

frame_neighbour_page()

generate html for a specific frame

getAwePath()

return the path to awe.css

getHtml()

generate html, main page or specific frame page

getProcessPath()

return the path to process.css

iterate_frames(frames, filenames, fltr)

iterate through all frames and make html table

main_page()

generate html for main page

astro.services.general.Utilities module

Utility methods for astro services

astro.services.general.Utilities.get_instrument_chips(instrument_name)
astro.services.general.Utilities.get_instument_chips(instrument_name)

Determine the chips for the instrument First try header translator Then context, without hardcoded dummy chips Else raise Exception

Module contents