Ticket #13586 (confirmed Feature Request)

Opened 3 years ago

Last modified 3 years ago

diazo not applied in plone.subrequest

Reported by: djay Owned by:
Priority: minor Milestone: 4.x
Component: Backend (Python) Version: 4.2
Keywords: diazo Cc:

Description

in a real request the plone.transformchain.interfaces.ITransform adapters are called in the pre-commit hook. subrequest doesn't call the pre-commit event so the transform chain is missed. Subrequests are very useful outside of diazo (such as for pdf generation). They should optionally include transformchain transforms so a html request can be themed using diazo.

Change History

comment:1 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Keywords diazo added
  • Component changed from Unknown to Backend (Python)

comment:2 Changed 3 years ago by ldr

  • Type changed from Bug to Feature Request

Off by default is important to maintain compatibility with many existing deployments that rely on current behaviour.

It would be rather similar to Pyramid's invoke_subrequest:  http://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.invoke_subrequest

Note: See TracTickets for help on using tickets.