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

Module dlasync

source code

A UWS-based interface to datalink.

TODO: There's quite a bit of parallel between this and useruws. This should probably be reformulated along the lines of useruws.

Classes
  DLTransitions
The transition function for datalink jobs.
  ServiceIdParameter
A fully qualified id of the DaCHS service to execute the datalink request.
  ArgsParameter
all parameters passed to the datalink job as a request.args dict.
  DLJob
a UWS job performing some datalink data preparation.
  DLUWS
the worker system for datalink jobs.
  FakeRequest
A nevow Request for local data accumulation.
Functions
 
writeResultTo(page, destFile)
arranges for the result of rendering the nevow resource page to be written to destFile.
source code
 
parseCommandLine() source code
 
main() source code
Variables
  DL_WORKER = <gavo.protocols.dlasync.DLUWS object>
  __package__ = 'gavo.protocols'
Function Details

writeResultTo(page, destFile)

source code 

arranges for the result of rendering the nevow resource page to be written to destFile.

This uses a very simple simulation of nevow rendering, so a few tricks are possible. Also, it actually runs a reactor to do its magic.