Skip to content
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

user should be able to see all custom content in all content view #861

Open
djay opened this issue Sep 4, 2015 · 3 comments
Open

user should be able to see all custom content in all content view #861

djay opened this issue Sep 4, 2015 · 3 comments

Comments

@djay
Copy link
Member

djay commented Sep 4, 2015

User Problem

  1. Create a dexterity content item and add some fields
  2. Add the created item to a container
  3. Set the container to 'all content' display
  4. You will get an exception.

In plone 4 it is still not correct as you only see the title rather than all the content as your would expect.

Issue moved from plone/plone.app.contenttypes#262

Further information

The item macro for the content item is called in p.a.contenttypes/browser/templates/full_view_item.pt

Dexterity uses plone.autoform.view.WidgetsView in DefaultView but the class for @@full_view_item is FullViewItem

Strangely enough, if I use <?python import pdb; pdb.set_trace() ?> in full_view_item.pt and then in the debugger call econtext['view'].update() the form gets set up and renders.

Options

  • ?
@djay djay added this to the Plone 5.0 milestone Sep 4, 2015
@pbauer
Copy link
Sponsor Member

pbauer commented Sep 4, 2015

Here is the traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.Five.browser.metaconfigure, line 479, 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 171, in render
  Module f7b262474fa08e2b1be0c38452f69209.py, line 248, in render
  Module 2e346c385dafd6fd5a21211308a8d353.py, line 1223, in render_master
  Module 2e346c385dafd6fd5a21211308a8d353.py, line 420, in render_content
  Module f7b262474fa08e2b1be0c38452f69209.py, line 236, in __fill_content_core
  Module f7b262474fa08e2b1be0c38452f69209.py, line 159, in render_content_core
  Module 892540aeb5287e50d478d2741b7c3616.py, line 437, in render_content_core
  Module 892540aeb5287e50d478d2741b7c3616.py, line 295, in render_listing
  Module f7b262474fa08e2b1be0c38452f69209.py, line 147, in __fill_entries
  Module 892540aeb5287e50d478d2741b7c3616.py, line 1429, in render_entries
  Module f7b262474fa08e2b1be0c38452f69209.py, line 110, in __fill_entry
  Module five.pt.expressions, line 161, in __call__
  Module Products.Five.browser.metaconfigure, line 479, 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 18e5eb965f60cc4857a41262afa445a9.py, line 457, in render
  Module 42ff5dfea36d8aeeba08c49b25473b85.py, line 94, in render_content_core
  Module five.pt.expressions, line 154, in __call__
  Module five.pt.expressions, line 126, in traverse
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: (None, 'values')
  Module zope.traversing.adapters, line 50, in traverse
   - __traceback_info__: (None, 'values', ())
LocationError: (None, 'values')

 - Expression: "obj/@@full_view_item"
 - Filename:   ... es/plone/app/contenttypes/browser/templates/full_view.pt
 - Location:   (line 17: col 71)
 - Source:     ... tal:replace="structure obj/@@full_view_item" />
                                          ^^^^^^^^^^^^^^^^^^^^
 - Expression: "view/widgets/values"
 - Filename:   ... e.app.dexterity/plone/app/dexterity/browser/container.pt
 - Location:   (line 13: col 28)
 - Source:     ... al:block repeat="widget view/widgets/values">
                                           ^^^^^^^^^^^^^^^^^^^
 - Arguments:  modules: <instance - at 0x101e92830>
               context_state: <ContextState plone_context_state at 0x10b0eca90>
               rendering_error: <list - at 0x1097923b0>
               plone_view: <Plone plone at 0x10c348950>
               item_url: http://localhost:8080/Plone/a-folder/a-person
               container: <ImplicitAcquisitionWrapper a-person at 0x1083b4f50>
               item_macro: <Macro - at 0x10c35db40>
               wrapped_repeat: <SafeMapping - at 0x10d81cba8>
               portal_url: http://localhost:8080/Plone
               traverse_subpath: <list - at 0x10b0e6368>
               template: <ViewPageTemplateFile - at 0x108fc45d0>
               translate: <function translate at 0x10c578140>
               repeat: {...} (0)
               views: <ViewMapper - at 0x10c348bd0>
               args: <tuple - at 0x10023d050>
               here: <ImplicitAcquisitionWrapper a-person at 0x1083b4f50>
               site_properties: <ImplicitAcquisitionWrapper site_properties at 0x108f52eb0>
               user: <ImplicitAcquisitionWrapper - at 0x1085420a0>
               nothing: <NoneType - at 0x10015c2b8>
               lang: de
               dummy: <NoneType - at 0x10015c2b8>
               default: <object - at 0x100294bf0>
               request: <instance - at 0x10c559ab8>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper a-person at 0x1083b4f50>
               portal_state: <PortalState plone_portal_state at 0x10b0ec890>
               plone_layout: <LayoutPolicy plone_layout at 0x10b0ec950>
               checkPermission: <instancemethod checkPermission at 0x108b5ae10>
               view: <SimpleViewClass from /Users/philip/workspace/coredev/src/plone.app.dexterity/plone/app/dexterity/browser/container.pt view at 0x10c348490>
               root: <ImplicitAcquisitionWrapper Zope at 0x108453a50>
               options: {...} (0)
               target_language: <NoneType - at 0x10015c2b8>

@pbauer
Copy link
Sponsor Member

pbauer commented Sep 19, 2015

I added a workaround in plone/plone.app.contenttypes@5388887.
Not sure how else to fix that at the moment. Ideas and (much better) pull-requests are welcome.

@davisagli
Copy link
Sponsor Member

In Plone 6 the error is gone, but it still does not actually render the content.

@davisagli davisagli removed this from the Plone 5.0.x milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants