Example #1
0
 def transformIterable(self, result, encoding):
     if self.request.getHeader(ESI_HEADER, 'false').lower() != 'true':
         return None
     result = ''.join(str(result))
     transformed = esi.substituteESILinks(result)
     if transformed != result:
         self.request.response.setHeader('X-Esi', '1')
     return transformed
    def transformIterable(self, result, encoding):
        if self.request.getHeader(ESI_HEADER, "false").lower() != "true":
            return None

        return esi.substituteESILinks("".join(result))
Example #3
0
    def transformIterable(self, result, encoding):
        if self.request.getHeader(ESI_HEADER, 'false').lower() != 'true':
            return None

        return esi.substituteESILinks("".join(result))
Example #4
0
    def transformUnicode(self, result, encoding):
        if self.request.getHeader(ESI_HEADER, 'false').lower() != 'true':
            return None

        return esi.substituteESILinks(result)