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))
def transformIterable(self, result, encoding): if self.request.getHeader(ESI_HEADER, 'false').lower() != 'true': return None return esi.substituteESILinks("".join(result))
def transformUnicode(self, result, encoding): if self.request.getHeader(ESI_HEADER, 'false').lower() != 'true': return None return esi.substituteESILinks(result)