Package acis_xmlrpc :: Module xmlrpc :: Class ACISService
[hide private]
[frames] | no frames]

Class ACISService

source code

twisted.application.service.Service --+
                                      |
                                     ACISService

Instance Methods [hide private]
 
__init__(self) source code
 
_get_ucan(self) source code
 
_get_data(self) source code
 
_get_query(self) source code
 
getUcanIdsFromOptions(self, options)
Lookup ucan_id for every (stn,stntype) given in options.
source code
 
getMetaForStn(self, options)
Get metadata associated with given station(s).
source code
 
getWRCCDailyData(self, stn, options)
Get daily data for a WRCC station.
source code
 
getDailyData(self, options)
Get daily data for the given station(s).
source code

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, privilegedStartService, setName, setServiceParent, startService, stopService

Class Variables [hide private]
  __implemented__ = <implementedBy acis_xmlrpc.xmlrpc.ACISService>
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from twisted.application.service.Service: name, parent, running

Method Details [hide private]

getUcanIdsFromOptions(self, options)

source code 
Lookup ucan_id for every (stn,stntype) given in options. If stn not found, ucan_id is 0.
Returns:
list of ucan_ids

getMetaForStn(self, options)

source code 
Get metadata associated with given station(s).
Parameters:
  • options (parser options) - Options from the option parser.
Returns:
Deferred object.

To Do: Populate more meta information, possibly by extending getInfoForUcanIdAsSeq() or another CORBA-level function.

getWRCCDailyData(self, stn, options)

source code 
Get daily data for a WRCC station.
Parameters:
  • stn (string) - 4-character WRCC station ID
  • options (parser options) - Options from the option parser.
Returns:
Data dictionary

getDailyData(self, options)

source code 
Get daily data for the given station(s).
Parameters:
  • options (parser options) - Options from the option parser.
Returns:
Deferred object

Class Variable Details [hide private]

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x2a9b4a6dd0>