Package gavo :: Package protocols :: Module uws :: Class FileParameter
[frames] | no frames]

Class FileParameter

source code

  object --+    
           |    
JobParameter --+
               |
              FileParameter

an uploaded file.

These are being created by posting to upload in the current design; hence, we fail on an attempt to addPar those. The serialisation yields ParameterRefs.

Note that TAP uploads currently employ a different scheme since TAP uploads don't match what DALI says.

The stored values are always URLs into our service, regardless of where the upload came from. For simplicity, we store the things in results.

TODO: We should preserve the media type of the upload where available.

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
updatePar(cls, name, value, job)
enters name:value into job's parameter dict.
source code
 
addPar(self, name, value, job) source code

Inherited from JobParameter: getPar

Properties

Inherited from object: __class__

Method Details

updatePar(cls, name, value, job)
Class Method

source code 

enters name:value into job's parameter dict.

See the uws.JobParameter's docstring.

Overrides: JobParameter.updatePar
(inherited documentation)

addPar(self, name, value, job)
Class Method

source code 
Overrides: JobParameter.addPar