twisted.protocols.amp.CommandLocator._wrapWithSerialization(self, aCallable, command)
method documentationtwisted.protocols.amp.CommandLocator
View Source
Wrap aCallable with its command's argument de-serialization and result serialization logic.
Parameters | aCallable | a callable with a 'command' attribute, designed to be called with keyword arguments. |
command | the command class whose serialization to use. | |
Returns | a 1-arg callable which, when invoked with an AmpBox, will deserialize the argument list and invoke appropriate user code for the callable's command, returning a Deferred which fires with the result or fails with an error. |
Function | doit | Undocumented |