Package gavo :: Package protocols :: Module uwsactions
[frames] | no frames]

Module uwsactions

source code

Manipulating UWS jobs through a REST interface.

The result documents are defined through the schema uws-1.0.xsd.

Instead of returning XML, they can also raise WebRedirect exceptions. However, these are caught in JobResource._redirectAsNecessary and appended to the base URL auf the TAP service, so you must only give URIs relative to the TAP service's root URL.

This UWS system should adapt to concrete UWSes; the UWS in use is passed into the top-level functions (doJobAction , getJobList)

Classes
  UWS
the container for elements from the uws namespace.
  JobActions
A collection of "actions" performed on UWS jobs.
  JobAction
an action done to a job.
  ErrorResource
A TAP error message.
  ErrorAction
  StartTimeAction
  ParameterAction
  PhaseAction
  ExecDAction
  DestructionAction
  QuoteAction
  OwnerAction
  ResultsAction
Access result (Extension: and other) files in job directory.
  RootAction
Actions for async/jobId.
Functions
 
lowercaseProtocolArgs(args) source code
 
getJobList(workerSystem, forOwner=None, phase=None, last=None, after=None) source code
 
getErrorSummary(job) source code
 
getParametersElement(job)
returns a UWS.parameters element for job.
source code
 
doJobAction(workerSystem, request, segments)
handles the async UI of UWS.
source code
Variables
  UWSNamespace = 'http://www.ivoa.net/xml/UWS/v1.0'
  XlinkNamespace = 'http://www.w3.org/1999/xlink'
  __package__ = 'gavo.protocols'
Function Details

doJobAction(workerSystem, request, segments)

source code 

handles the async UI of UWS.

Depending on method and segments, it will return various XML strings and may cause certain actions.

Segments must be a tuple with at least one element, the job id.