Trees | Indices | Help |
|
---|
|
Remote API base resources library.
|
|||
OpcodeAttributes Acts as a structure containing the per-method attribute names. |
|||
ResourceBase Generic class for resources. |
|||
_MetaOpcodeResource Meta class for RAPI resources. |
|||
OpcodeResource Base class for opcode-based RAPI resources. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string or None |
|
||
|
|||
|
|||
|
|
|||
_DEFAULT = object()
|
|||
_SUPPORTED_METHODS = compat.UniqueFrozenset([http.HTTP_DELETE, Supported HTTP methods |
|||
OPCODE_ATTRS = _BuildOpcodeAttributes()
|
|||
ALL_VALUES_FORBIDDEN = "all_values_forbidden"
|
Imports: logging, luxi, rpcerr, rapi, http, errors, compat, constants, utils
|
Builds a URI list as used by index resources.
|
Maps two lists into one dictionary. Example: >>> MapFields(["a", "b"], ["foo", 123]) {'a': 'foo', 'b': 123}
|
Map value to field name in to one dictionary.
|
Fills an opcode with body parameters. Parameter types are checked.
|
Feedback logging function for jobs. We don't have a stdout for printing log messages, so log them to the http log at least.
|
Abort request if value type doesn't match expected type.
|
Check and return the value for a given parameter. If no default value was given and the parameter doesn't exist in the input data, an error is raise.
|
Returns the access rights for a method on a handler.
|
Turns a list of parameter names and possibly values into a dictionary.
|
Inspects a dictionary of params, looking for forbidden values.
|
|
_SUPPORTED_METHODSSupported HTTP methods
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:09 2016 | http://epydoc.sourceforge.net |