[Soap-Python] Renaming the rpc decorator.

Brad Allen bradallen137 at gmail.com
Wed Dec 15 04:26:33 CET 2010


On Tue, Dec 14, 2010 at 5:36 PM, Tres Seaver <tseaver at palladion.com> wrote:
> At the moment, the '@rpc' decorator is twinned by the '@document'
> decorator I added the other day:  each implements one of the "style"
> options of the same name for SOAP method result marshalling.
>
> If you mean to rename '@rpc' -> '@soap', then it likely needs to absorb
> the functionality currently in '@document' as well, perhaps through an
> additional '_style' parameter.
>
> I think I would leave the two as they stand, myself.

A decorator called "document" is just too generic, non-obvious to
anyone who might not understand about the different encoding styles. A
"style" keyword parameter to a "soap" decorator seems a lot more clear
to me.



More information about the Soap mailing list