19 Jun 2012 19:38
Portlet does not know proper assignment context when rendered?
Hi,
I want to confirm from the greater minds:
- Portlet does not have acquisition enabled assignment context when used in
Renderer:
(Pdb) self.data
<Acquisition.ImplicitAcquisitionWrapper object at 0x10f4f9410>
(Pdb) self.data.aq_base
<imageportlet.portlets.Assignment object at 0x1101c3050>
- Portlet, however, *does* know this when being accessed in add and edit
form, so it is possible to have:
self.context
<Assignment at
/Plone/fi/info/++contextportlets++plone.rightcolumn/assignment>
More info:
https://dev.plone.org/ticket/11838#comment:13
Could it be possible to modify portlet framework to pass the acquisition
chain aware assignment context to portlet renderers? As this would enable a
lot of widgets on the portlets themselves (namely, blobs and images and
such)?
What would be proper place to do the change (plone.app.portlet,
plone.portlet, etc.?)
(Continue reading)
RSS Feed