Add ability to get a client with a defined list of plugins
I want to be able to use other plugins other than
LogPlugin on a suds Client.
plugins parameter on
soap.get_client. It should take a list of
LogPlugin will still be used if
settings.DEBUG is true.
from suds.plugin import MessagePlugin import soap class CustomPlugin(MessagePlugin): def received(self, context): print("I have received something") # .... client = soap.get_client( 'https://www.fake.wsdl', 'this is a log prefix', plugins=[ CustomPlugin() ] ) # ....