Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 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
Beispiel #4
0
 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