eea / eea.facetednavigation

Faceted Navigation for Plone Classic
http://eea.github.com/docs/eea.facetednavigation
20 stars 56 forks source link

Alphabetic widget does not work with "all, standard or tabular" views #123

Open outreach opened 7 years ago

outreach commented 7 years ago

When the Alphabetic widget is chosen, the Faceted Navigation Page will only work with the faceted items preview. Choosing a display other than the faceted items preview will freeze the page and it keeps churning going no where.

It would be good if the alphabetic widget would accept other displays other than the faceted items preview because this display takes up too much space on the page.

Any help with this would be most appreciated. Thank you.

jensens commented 7 years ago

I run into the same issue. This is the traceback I got:

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 eea.facetednavigation.caching.nocache, line 12, in replacement
  Module eea.facetednavigation.browser.app.query, line 209, 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 137, in pt_render
  Module five.pt.engine, line 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module e33d9c8dd88fe3163eb888c2c5b388e2.py, line 191, in render
  Module 2a564767d025273026c5bb3ba1e584c7.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 142, in traversePathElement
   - __traceback_info__: (<Products.Five.metaclass.SimpleViewClass from /home/buildout/plone/eggs/eea.facetednavigation-10.2-py2.7.egg/eea/facetednavigation/browser/template/query.pt object at 0x7f767847f4d0>, 'widgets')
  Module zope.traversing.adapters, line 56, in traverse
   - __traceback_info__: (<Products.Five.metaclass.SimpleViewClass from /home/buildout/plone/eggs/eea.facetednavigation-10.2-py2.7.egg/eea/facetednavigation/browser/template/query.pt object at 0x7f767847f4d0>, 'widgets', ('values',))
LocationError: (<Products.Five.metaclass.SimpleViewClass from /home/buildout/plone/eggs/eea.facetednavigation-10.2-py2.7.egg/eea/facetednavigation/browser/template/query.pt object at 0x7f767847f4d0>, 'widgets')

 - Expression: "view/widgets/values"
 - Filename:   ... 2.4.4-py2.7.egg/plone/app/dexterity/browser/container.pt
 - Location:   (line 13: col 28)
 - Source:     ... al:block repeat="widget view/widgets/values">
                                           ^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7f76786003d0>
               views: <ViewMapper - at 0x7f76789b0210>
               modules: <instance - at 0x7f7687fc4710>
               args: <tuple - at 0x7f768fd0c050>
               here: <ImplicitAcquisitionWrapper - at 0x7f767a1e5be0>
               user: <ImplicitAcquisitionWrapper - at 0x7f767a1c6190>
               view: <SimpleViewClass from /home/buildout/plone/eggs/eea.facetednavigation-10.2-py2.7.egg/eea/facetednavigation/browser/template/query.pt faceted_query at 0x7f767847f4d0>
               nothing: <NoneType - at 0x5629863924d0>
               container: <ImplicitAcquisitionWrapper tn at 0x7f7679fa86e0>
               kssClassesView: <NoneType - at 0x5629863924d0>
               contentFilter: {...} (0)
               plone_view: <Plone plone at 0x7f767847da50>
               batch_base_url: http://localhost:8090/Plone/db/tn
               getKssClasses: <NoneType - at 0x5629863924d0>
               root: <ImplicitAcquisitionWrapper Zope at 0x7f767a1adaa0>
               request: <instance - at 0x7f767821f5a8>
               wrapped_repeat: <SafeMapping - at 0x7f76782bf050>
               traverse_subpath: <list - at 0x7f7678234518>
               default: <object - at 0x7f768fc28540>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper tn at 0x7f7679fa86e0>
               templateId: query.pt
               translate: <function translate at 0x7f7678454578>
               folderContents: <Batch - at 0x7f7678600790>
               options: {...} (0)
               target_language: <NoneType - at 0x5629863924d0>
avoinea commented 7 years ago

+1

2017-07-17 10:22:56 ERROR Zope.SiteErrorLog 1500286976.690.778762744399 http://localhost:8080/Plone/faceted/@@faceted_query
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 eea.facetednavigation.caching.nocache, line 12, in replacement
  Module eea.facetednavigation.browser.app.query, line 209, 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 98, in __call__
  Module z3c.pt.pagetemplate, line 163, in render
  Module chameleon.zpt.template, line 261, in render
  Module chameleon.template, line 191, in render
  Module chameleon.template, line 171, in render
  Module 10a7f04e2ba1e336038dcc7328b1a49c.py, line 191, in render
  Module c4e6e5f06a09e903eb57e36fc22522a0.py, line 98, in render_content_core
  Module c4e6e5f06a09e903eb57e36fc22522a0.py, line 178, in render_listing
  Module five.pt.expressions, line 161, in __call__
  Module plone.app.contenttypes.browser.folder, line 77, in batch
  Module eea.facetednavigation.browser.app.query, line 203, in results
TypeError: ('Could not adapt', <generator object __call__ at 0x7f603dabf370>, <InterfaceClass plone.app.contentlisting.interfaces.IContentListing>)

 - Expression: "view/batch"
 - Filename:   ... ne/app/contenttypes/browser/templates/listing_tabular.pt
 - Location:   (line 22: col 29)
 - Source:     <tal:results define="batch view/batch">
                                          ^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7f603d109ed0>
               views: <ViewMapper - at 0x7f603aaaa850>
               modules: <instance - at 0x7f604483fa70>
               args: <tuple - at 0x7f604ee07050>
               here: <ImplicitAcquisitionWrapper - at 0x7f603dabfaa0>
               user: <ImplicitAcquisitionWrapper - at 0x7f603dabf050>
               view: <SimpleViewClass from /plone/buildout-cache/eggs/eea.facetednavigation-10.3-py2.7.egg/eea/facetednavigation/browser/template/query.pt faceted_query at 0x7f603aaaa3d0>
               nothing: <NoneType - at 0x7f604ebe5b60>
               container: <ImplicitAcquisitionWrapper faceted at 0x7f603dabf0f0>
               kssClassesView: <DefaultFieldDecoratorView kss_field_decorator_view at 0x7f603aaaab50>
               contentFilter: {...} (0)
               plone_view: <Plone plone at 0x7f603aaaa9d0>
               batch_base_url: http://localhost:8080/Plone/faceted
               getKssClasses: <instancemethod getKssClassesInlineEditable at 0x7f603da6de60>
               root: <ImplicitAcquisitionWrapper Zope at 0x7f603d8b4690>
               request: <instance - at 0x7f603b512a70>
               wrapped_repeat: <SafeMapping - at 0x7f603a67e100>
               traverse_subpath: <list - at 0x7f603ceace18>
               default: <object - at 0x7f604eddd5a0>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper faceted at 0x7f603dabf0f0>
               templateId: query.pt
               translate: <function translate at 0x7f603a545b18>
               folderContents: <Batch - at 0x7f603aaaa650>
               options: {...} (0)
               target_language: <NoneType - at 0x7f604ebe5b60>
iahmad-ksh commented 4 years ago

Seeing this behaviour under Plone 5.2.1 with eea.facetednavigation 13.7. Traceback is as follows:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 338, in publish_module
  Module ZPublisher.WSGIPublisher, line 256, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 62, in call_object
  Module eea.facetednavigation.caching.nocache, line 12, in replacement
  Module eea.facetednavigation.browser.app.query, line 213, in __call__
  Module Products.Five.browser.pagetemplatefile, line 126, in __call__
  Module Products.Five.browser.pagetemplatefile, line 61, in __call__
  Module zope.pagetemplate.pagetemplate, line 135, in pt_render
  Module Products.PageTemplates.engine, line 88, in __call__
  Module z3c.pt.pagetemplate, line 173, in render
  Module chameleon.zpt.template, line 306, in render
  Module chameleon.template, line 209, in render
  Module chameleon.utils, line 75, in raise_with_traceback
  Module chameleon.template, line 187, in render
  Module 52640c83ec016a02bef7a1622bcd409e.py, line 169, in render
  Module 0566690dfb5a6446ed300413119a1e0f.py, line 111, in render_content_core
  Module 0566690dfb5a6446ed300413119a1e0f.py, line 343, in render_listing
  Module Products.PageTemplates.expression, line 101, in __call__
  Module plone.app.contenttypes.browser.folder, line 104, in batch
  Module eea.facetednavigation.browser.app.query, line 207, in results
TypeError: ('Could not adapt', <generator object WidgetFilterBrains.__call__ at 0x7f73fef478e0>, <InterfaceClass plone.app.contentlisting.interfaces.IContentListing>)

 - Expression: "view/batch"
 - Filename:   ... ne/app/contenttypes/browser/templates/listing_tabular.pt
 - Location:   (line 22: col 29)
 - Source:     <tal:results define="batch view/batch">
                                          ^^^^^^^^^^
 - Expression: "view/macros"
 - Filename:   ... y3.6.egg/eea/facetednavigation/browser/template/query.pt
 - Location:   (line 11: col 28)
 - Source:     <metal:block use-macro="view/macros" />
                                       ^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f740eb300f0>
               options: {...} (0)
               args: <tuple - at 0x7f742c151048>
               nothing: <NoneType - at 0x88e860>
               modules: <_SecureModuleImporter - at 0x7f7419e39a58>
               request: <WSGIRequest - at 0x7f73fef4ab38>
               view: <SimpleViewClass from /opt/plone/buildout-cache/eggs/eea.facetednavigation-13.7-py3.6.egg/eea/facetednavigation/browser/template/query.pt faceted_query at 0x7f73ff1500f0>
               context: <ImplicitAcquisitionWrapper a-test at 0x7f7412c5aca8>
               views: <ViewMapper - at 0x7f740c118da0>
               here: <ImplicitAcquisitionWrapper - at 0x7f740f1eefc0>
               container: <ImplicitAcquisitionWrapper a-test at 0x7f7412c5aca8>
               root: <ImplicitAcquisitionWrapper  at 0x7f7411ff0e58>
               traverse_subpath: <list - at 0x7f73fefa5808>
               user: <ImplicitAcquisitionWrapper - at 0x7f7411e137e0>
               default: <object - at 0x7f742c14ca90>
               repeat: {...} (0)
               loop: {...} (0)
               wrapped_repeat: <SafeMapping - at 0x7f74102f7e08>
               target_language: <NoneType - at 0x88e860>
               translate: <function translate at 0x7f740c0fa598>
               plone_view: <Plone plone at 0x7f73ff1507b8>
               batch_base_url: http://casdpln01:8080/Intranet/en-ca/projects/a-test
               folderContents: <Batch - at 0x7f740c1189e8>
               contentFilter: {...} (0)
               kssClassesView: <NoneType - at 0x88e860>
               getKssClasses: <NoneType - at 0x88e860>
               templateId: query.pt
               macroname: macros