# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2005, Tim Potter from twisted.web import soap import SOAPpy class UPnPPublisher(soap.SOAPPublisher): """UPnP requires OUT parameters to be returned in a slightly different way than the SOAPPublisher class does.""" def _gotResult(self, result, request, methodName): response = SOAPpy.buildSOAP(kw=result, encoding=self.encoding) self._sendResponse(request, response)