Пример #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
Пример #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
Пример #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
Пример #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