#17 — plone4 incompatibility
by
Harald Friessnegger
—
last modified
Feb 10, 2010 02:22 PM
| State | Tested and confirmed closed |
|---|---|
| Version: | 0.8.1b2 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Critical |
| Submitted by | Harald Friessnegger |
| Submitted on | Feb 10, 2010 |
| Responsible | Nathan Van Gheem |
| Target release: |
—
|
browser.view.display.PloneTrueGalleryPageTemplate
aussumes the view (SlideshowDisplayType) has an attribute context which seems not to be true.
when i replace view.context with view.gallery (which might not be the proper solution) i get a bit further.
now, looking up the portlets (eg plone.htmlhead) does not work for the view SlideshowDisplayType.
2010-02-10 09:37:39 ERROR Zope.SiteErrorLog 1265791059.870.228331476662 http://localhost:8499/test/gallery/galleryview
Traceback (innermost last):
....
Module zope.tales.tales, line 696, in evaluate
- URL: file:/home/frisi/.buildout/eggs/plonetheme.sunburst-1.0a5-py2.6.egg/plonetheme/sunburst/skins/sunburst_templates/main_template.pt
- Line 34, Column 4
- Expression: <StringExpr u'plone.htmlhead'>
- Names:
{'adapter': <Products.Five.metaclass.GalleryView object at 0xe3cbb0c>,
'container': <ATFolder at /test/gallery>,
'context': <ATFolder at /test/gallery>,
'default': <object object at 0xb77805c8>,
'displayer': <collective.plonetruegallery.galleryadapters.basic.BasicAdapter object at 0xe7431ec>,
'here': <ATFolder at /test/gallery>,
'loop': {},
'nothing': None,
'options': {'args': (<collective.plonetruegallery.settings.GallerySettings object at 0xde1208c>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xdff338c>,
'request': <HTTPRequest, URL=http://localhost:8499/test/gallery/galleryview>,
'settings': <collective.plonetruegallery.browser.views.display.SlideshowDisplayType object at 0xe2f8aac>,
'template': <collective.plonetruegallery.browser.views.display.PloneTrueGalleryPageTemplate object at 0xd43706c>,
'view': <collective.plonetruegallery.browser.views.display.SlideshowDisplayType object at 0xe2f8aac>}
Module zope.contentprovider.tales, line 66, in __call__
ContentProviderLookupError: plone.htmlhead
using http://dist.plone.org/release/4.0a4/versions.cfg
and https://svn.plone.org/[…]/trunk@110598
aussumes the view (SlideshowDisplayType) has an attribute context which seems not to be true.
when i replace view.context with view.gallery (which might not be the proper solution) i get a bit further.
now, looking up the portlets (eg plone.htmlhead) does not work for the view SlideshowDisplayType.
2010-02-10 09:37:39 ERROR Zope.SiteErrorLog 1265791059.870.228331476662 http://localhost:8499/test/gallery/galleryview
Traceback (innermost last):
....
Module zope.tales.tales, line 696, in evaluate
- URL: file:/home/frisi/.buildout/eggs/plonetheme.sunburst-1.0a5-py2.6.egg/plonetheme/sunburst/skins/sunburst_templates/main_template.pt
- Line 34, Column 4
- Expression: <StringExpr u'plone.htmlhead'>
- Names:
{'adapter': <Products.Five.metaclass.GalleryView object at 0xe3cbb0c>,
'container': <ATFolder at /test/gallery>,
'context': <ATFolder at /test/gallery>,
'default': <object object at 0xb77805c8>,
'displayer': <collective.plonetruegallery.galleryadapters.basic.BasicAdapter object at 0xe7431ec>,
'here': <ATFolder at /test/gallery>,
'loop': {},
'nothing': None,
'options': {'args': (<collective.plonetruegallery.settings.GallerySettings object at 0xde1208c>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xdff338c>,
'request': <HTTPRequest, URL=http://localhost:8499/test/gallery/galleryview>,
'settings': <collective.plonetruegallery.browser.views.display.SlideshowDisplayType object at 0xe2f8aac>,
'template': <collective.plonetruegallery.browser.views.display.PloneTrueGalleryPageTemplate object at 0xd43706c>,
'view': <collective.plonetruegallery.browser.views.display.SlideshowDisplayType object at 0xe2f8aac>}
Module zope.contentprovider.tales, line 66, in __call__
ContentProviderLookupError: plone.htmlhead
using http://dist.plone.org/release/4.0a4/versions.cfg
and https://svn.plone.org/[…]/trunk@110598
- Steps to reproduce:
- create ponesite
install collectiv.plonetruegallery
add a folder
select "gallery view" as default view
Added by
Nathan Van Gheem
on
Feb 10, 2010 11:35 AM
I get this also, but it's inconsistent. Seems to be some kind of weird traversal problem.
Issue state:
Unconfirmed
→
Confirmed
Severity:
Medium
→
Critical
Responsible manager:
(UNASSIGNED)
→
vangheem
Added by
Harald Friessnegger
on
Feb 10, 2010 12:21 PM
for me it happens all the time and makes plonetruegallery unusable in the plone4.0 site.i can't think of a reason why the view should sometimes have the context attribute and sometimes not.
maybe some internas in ViewPageTemplateFile changed so the wrapper PloneTrueGalleryPageTemplate does not work properly anymore.
why to we need the wrapper at all?
Added by
Nathan Van Gheem
on
Feb 10, 2010 12:32 PM
Yes, it's something with the ViewPageTemplateFile. I've got a fix committed to the trunk, and I'll make another release for you by the morning.
Issue state:
Confirmed
→
Resolved
Thanks
Added by
Nathan Van Gheem
on
Feb 10, 2010 01:00 PM
release made with fix
Added by
Harald Friessnegger
on
Feb 10, 2010 02:22 PM
works for me, thanks for the quick response
Issue state:
Resolved
→
Tested and confirmed closed
No responses can be added.
If you can, please log in before submitting a reaction.
