Ticket #13593 (confirmed Bug)
plone.app.contentlisting Batching multiple_pages error
Reported by: | jianaijun | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.3 |
Keywords: | Cc: |
Description (last modified by jianaijun) (diff)
Plone 4.3 folders view template plone.app.contentlisting with <div metal:use-macro="context/@@batch_macros/macros/navigation" />
Error: LocationError: (<plone.app.contentlisting.contentlisting.ContentListing object at 0x7edc450>, 'multiple_pages')
content_listing.pt
... <div tal:define="b_size python:int(request.get('b_size', 20)); b_start python:int(request.get('b_start', 0)); batch python:context.restrictedTraverse('@@folderListing')( portal_type='Document', batch=True, b_size=b_size, b_start=b_start);"> <ul> <li tal:repeat="item batch"> <h3> <a href="a.html" tal:attributes="href item/getURL" tal:content="item/Title | nothing"> title </a> </h3> </li> </ul> <div metal:use-macro="context/batch_macros/macros/navigation" /> </div> ...
Traceback
Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall Module ZPublisher.Publish, line 46, in call_object Module Products.Five.browser.metaconfigure, line 476, 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 zope.pagetemplate.pagetemplate, line 240, in __call__ Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 888, in do_useMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 946, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 888, in do_useMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 531, in do_optTag_tal Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal Module Products.PageTemplates.Expressions, line 218, in evaluateStructure Module zope.tales.tales, line 696, in evaluate - URL: /home/free/Plone/buildout-cache/eggs/plone.batching-1.0b1-py2.7.egg/plone/batching/batch_macros.pt - Line 13, Column 4 - Expression: <PythonExpr (batchnavigation(batch, batchformkeys))> - Names: {'args': (), 'container': <ATFolder at /Plone2/myfolder>, 'context': <ATFolder at /Plone2/myfolder>, 'default': <object object at 0x7f8a6a3f04e0>, 'here': <ATFolder at /Plone2/myfolder>, 'loop': {}, 'nothing': None, 'options': {}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x76b3730>, 'request': <HTTPRequest, URL=http://localhost:8080/Plone2/myfolder/content_listing>, 'root': <Application at >, 'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x863fa50>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <Products.Five.metaclass.SimpleViewClass from /home/free/Plone/zinstance/src/laoting.car/src/laoting/car/browser/content_listing.pt object at 0x86fca90>, 'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x86fcbd0>} Module zope.tales.pythonexpr, line 59, in __call__ - __traceback_info__: (batchnavigation(batch, batchformkeys)) Module <string>, line 1, in <module> Module plone.batching.browser, line 26, 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 zope.pagetemplate.pagetemplate, line 240, in __call__ Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 852, in do_condition Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 851, in do_condition Module Products.PageTemplates.Expressions, line 205, in evaluateBoolean Module zope.tales.tales, line 696, in evaluate - URL: /home/free/Plone/buildout-cache/eggs/plone.batching-1.0b1-py2.7.egg/plone/batching/batchnavigation.pt - Line 6, Column 0 - Expression: <PathExpr standard:u'batch/multiple_pages'> - Names: {'args': (), 'container': <ATFolder at /Plone2/myfolder>, 'context': <ATFolder at /Plone2/myfolder>, 'default': <object object at 0x7f8a6a3f04e0>, 'here': <ATFolder at /Plone2/myfolder>, 'loop': {}, 'nothing': None, 'options': {}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x76b36d8>, 'request': <HTTPRequest, URL=http://localhost:8080/Plone2/myfolder/content_listing>, 'root': <Application at >, 'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7ef1710>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <Products.Five.metaclass.SimpleViewClass from /home/free/Plone/buildout-cache/eggs/plone.batching-1.0b1-py2.7.egg/plone/batching/batchnavigation.pt object at 0x7ef1490>, 'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7ef1850>} Module zope.tales.expressions, line 217, in __call__ Module Products.PageTemplates.Expressions, line 147, in _eval Module zope.tales.expressions, line 124, in _eval Module Products.PageTemplates.Expressions, line 97, in trustedBoboAwareZopeTraverse Module zope.traversing.adapters, line 136, in traversePathElement - __traceback_info__: (<plone.app.contentlisting.contentlisting.ContentListing object at 0x7edc450>, 'multiple_pages') Module zope.traversing.adapters, line 50, in traverse - __traceback_info__: (<plone.app.contentlisting.contentlisting.ContentListing object at 0x7edc450>, 'multiple_pages', []) LocationError: (<plone.app.contentlisting.contentlisting.ContentListing object at 0x7edc450>, 'multiple_pages')
see also:
Change History
Note: See
TracTickets for help on using
tickets.