[Zope-CMF] DirectoryViewSurrogate as context in FSPageTemplates

2010-06-27 Thread Enrique Perez
Hi Here in Yaco, while migrating a plone-2.0 site to plone-4.0, we've hit a problem with FSPageTemplates that live within a DirectoryViewSurrogate (within a DirectoryViewSurrgate within a ...) whithin a DirectoryView. The problem is that such a template gets as context the DirectoryViewSurrog

Re: [Zope-CMF] DirectoryViewSurrogate as context in FSPageTemplates

2010-06-27 Thread Enrique Perez
Hi Charlie, Thanks for your answer. > Regarding the best way to get a change done: > >* file a bug on launchpad for Products.CMFCore > >* check out Products.CMFCore from the main Zope repository: > svn:svn.zope.org://repos/main/CMF.buildout > >* write a test for the case > >* patc

Re: [Zope-CMF] DirectoryViewSurrogate as context in FSPageTemplates

2010-06-28 Thread Enrique Perez
Hi Hanno, On 28/06/10 12:27, Hanno Schlichting wrote: > I think the container variable should be changed as well. You probably > don't see any problem as there's almost no code anywhere in > Zope/CMF/Plone that actually uses it. Most code does its own > aq_parent(context) calls. Ok perfect, I wil

Re: [Zope-CMF] DirectoryViewSurrogate as context in FSPageTemplates

2010-07-05 Thread Enrique Perez
Hi Charlie On 27/06/10 21:04, Charlie Clark wrote: > > Regarding the best way to get a change done: > >* file a bug on launchpad for Products.CMFCore > >* check out Products.CMFCore from the main Zope repository: > svn:svn.zope.org://repos/main/CMF.buildout > >* write a test for the c