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

Module useruws

source code

Support for UWSes defined in user RDs.

To understand this, start at makeUWSForService.

Classes
  UserUWSTransitions
The transition function for user-defined UWSes.
  UserUWSJobBase
The base class for the service-specific user UWS jobs.
  UserUWS
A UWS for "user jobs", i.e., generic things an a core.
Functions
 
makeUWSJobParameterFor(inputKey)
returns a uws.JobParameter instance for inputKey.
source code
 
makeUserUWSJobClass(service)
returns a class object for representing UWS jobs processing requests for service
source code
 
makeUWSForService(service)
returns a UserUWS instance tailored to service.
source code
 
parseCommandLine() source code
 
main() source code
Variables
  __package__ = 'gavo.protocols'
Function Details

makeUWSForService(service)

source code 

returns a UserUWS instance tailored to service.

All these share a jobs table, but the all have different job classes with the parameters custom-made for the service's core.

A drawback of this is that each UWS created in this way runs the job table purger again. That shouldn't be a problem per se but may become cumbersome at some point. We can always introduce a class Attribute on UserUWS to keep additional UWSes from starting cron jobs of their own.