New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using full_view on portal-root breaks #1109

Closed
pbauer opened this Issue Sep 29, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@pbauer
Member

pbauer commented Sep 29, 2015

Discovered on demo.plone.de:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.Five.browser.metaconfigure, line 485, in __call__
  Module Products.Five.browser.pagetemplatefile, line 125, in __call__
  Module Products.Five.browser.pagetemplatefile, line 59, in __call__
  Module zope.pagetemplate.pagetemplate, line 132, in pt_render
  Module five.pt.engine, line 93, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 258, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module 0bfc505e048c34bd850c5c1204fdcd07.py, line 278, in render
  Module 1e4b2be63db3bf5e29bef0e576baa6ed.py, line 1223, in render_master
  Module 1e4b2be63db3bf5e29bef0e576baa6ed.py, line 420, in render_content
  Module 0bfc505e048c34bd850c5c1204fdcd07.py, line 266, in __fill_content_core
  Module 0bfc505e048c34bd850c5c1204fdcd07.py, line 92, in render_content_core
  Module five.pt.expressions, line 154, in __call__
  Module five.pt.expressions, line 123, in traverse
  Module OFS.Traversable, line 300, in unrestrictedTraverse
   - __traceback_info__: ([], '@@uuid')
AttributeError: @@uuid

 - Expression: "context/@@uuid"
 - Filename:   ... gg/plone/app/contenttypes/browser/templates/full_view.pt
 - Location:   (line 12: col 30)
 - Source:     tal:define="uuid context/@@uuid">
                                ^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7f8b6f797bd0>
               views: <ViewMapper - at 0x7f8b6f53b110>
               modules: <instance - at 0x7f8b85c6e5f0>
               args: <tuple - at 0x7f8b8d204050>
               here: <ImplicitAcquisitionWrapper Plone at 0x7f8b6fed8230>
               user: <ImplicitAcquisitionWrapper - at 0x7f8b6f169050>
               nothing: <NoneType - at 0x91a870>
               container: <ImplicitAcquisitionWrapper Plone at 0x7f8b6fed8230>
               request: <instance - at 0x7f8b6ef9f320>
               wrapped_repeat: <SafeMapping - at 0x7f8b6f1787e0>
               traverse_subpath: <list - at 0x7f8b79bc4e60>
               default: <object - at 0x7f8b8d11e4e0>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper Plone at 0x7f8b6fed8230>
               view: <SimpleViewClass from /home/zope/demo.plone.de/eggs/plone.app.contenttypes-1.2.4-py2.7.egg/plone/app/contenttypes/browser/templates/full_view.pt full_view at 0x7f8b6fc23510>
               translate: <function translate at 0x7f8b6f487578>
               root: <ImplicitAcquisitionWrapper Zope at 0x7f8b6f8dc050>
               options: {...} (0)
               target_language: en

@pbauer pbauer added the 01 type: bug label Sep 29, 2015

@pbauer pbauer added this to the Plone 5.0.x milestone Sep 29, 2015

pbauer added a commit to plone/buildout.coredev that referenced this issue Sep 29, 2015

[fc] Repository: plone.app.contenttypes
Branch: refs/heads/master
Date: 2015-09-29T18:56:32+02:00
Author: Philip Bauer (pbauer) <bauer@starzel.de>
Commit: plone/plone.app.contenttypes@8b835c1

Fix full_view when content is not IUUIDAware (like the portal)
Fix plone/Products.CMFPlone#1109

Files changed:
M CHANGES.rst
M plone/app/contenttypes/browser/templates/full_view.pt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment