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

Class ACISXMLRPC

source code

twisted.web.resource.Resource --+    
                                |    
        twisted.web.xmlrpc.XMLRPC --+
                                    |
                                   ACISXMLRPC

Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Instance Methods [hide private]
 
__init__(self, acis_service) source code
tuple
parse_input(self, input, required=[], defaults={})
Parse the given input, using defaults if not specified.
source code
 
xmlrpc_getMetaForStn(self, input)
Get metadata associated with given station(s).
source code
 
xmlrpc_getDailyData(self, input)
Get daily data for the a day range for the given station(s).
source code
 
xmlrpc_echoOptions(self, input)
Echo the input options after parsing.
source code

Inherited from twisted.web.xmlrpc.XMLRPC: getSubHandler, getSubHandlerPrefixes, putSubHandler, render

Inherited from twisted.web.xmlrpc.XMLRPC (private): _cbRender, _ebRender, _getFunction, _listFunctions

Inherited from twisted.web.resource.Resource: __providedBy__, delEntity, getChild, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render_HEAD

Class Variables [hide private]

Inherited from twisted.web.xmlrpc.XMLRPC: FAILURE, NOT_FOUND, isLeaf, separator

Inherited from twisted.web.resource.Resource: __implemented__, __provides__, server

Method Details [hide private]

__init__(self, acis_service)
(Constructor)

source code 
Overrides: twisted.web.xmlrpc.XMLRPC.__init__

parse_input(self, input, required=[], defaults={})

source code 

Parse the given input, using defaults if not specified. Transforms date options to (date object, format string). Transforms csv options to lists.

Raises OptionRequired if any required not given in input.
Parameters:
  • input - Input string or list.
  • required - List of required options.
  • defaults - Dictionary of default values.
Returns: tuple
(options, args) from option_parser.parse_args()
Raises:

To Do: Put this in a more general location since it's not specific to XMLRPC.

xmlrpc_getMetaForStn(self, input)

source code 
Get metadata associated with given station(s).

Requires: stn, stntype

xmlrpc_getDailyData(self, input)

source code 
Get daily data for the a day range for the given station(s). By default, return the last 7 days. Stations that fail to resolve to a ucan_id will have no data.

Requires: stn, stntype, var

xmlrpc_echoOptions(self, input)

source code 
Echo the input options after parsing. For testing purposes only.