def rwBody(self,bodyIn): if self.request.reqMethod.upper() not in self.parent._filter_methods: return bodyIn if not _checkContentType(self.stream.headers,"text/xml"): return bodyIn bodyOut = XMLRewriter(bodyIn) bodyOut.rewrite = self.parent.rewriteRemote bodyOut.rw_content["D:href"] = True return bodyOut
def rwBody(self,bodyIn): if self.stream.reqMethod.upper() not in self.parent._filter_methods: return bodyIn if hdr.CONTENT_LENGTH(self.stream.headers) in (None,"","0"): return bodyIn bodyOut = XMLRewriter(bodyIn) bodyOut.rewrite = self.parent.rewriteLocal bodyOut.rw_content["D:href"] = True return bodyOut
def rwBody(self, bodyIn): if self.request.reqMethod.upper( ) not in self.parent._filter_methods: return bodyIn if not _checkContentType(self.stream.headers, "text/xml"): return bodyIn bodyOut = XMLRewriter(bodyIn) bodyOut.rewrite = self.parent.rewriteRemote bodyOut.rw_content["D:href"] = True return bodyOut
def rwBody(self, bodyIn): if self.stream.reqMethod.upper( ) not in self.parent._filter_methods: return bodyIn if hdr.CONTENT_LENGTH(self.stream.headers) in (None, "", "0"): return bodyIn bodyOut = XMLRewriter(bodyIn) bodyOut.rewrite = self.parent.rewriteLocal bodyOut.rw_content["D:href"] = True return bodyOut