|
|
|
|
David Bear
()
|
|
||||||||||||
|
I have a view that I am customizing for a collection. The view works as expected when I am logged in to the site. However, for the unauthenticated user it produces the following traceback. Why would this happen?
Traceback (innermost last): -- David Bear College of Public Programs at ASU 602-464-0424 ------------------------------------------------------------------------------ _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
ajung
()
|
|
||||||||||||
|
On 02.07.09 01:44, David Bear wrote:
> I have a view that I am customizing for a collection. The view works > as expected when I am logged in to the site. However, for the > unauthenticated user it produces the following traceback. Why would > this happen? > > - URL: file:/afs/asu.edu/pp/zserver0/plone3SkinDevelopment/teancum/src/Products.CaseStudy/Products/CaseStudy/skins/CaseStudy/casestudy_collection_view2.pt <http://asu.edu/pp/zserver0/plone3SkinDevelopment/teancum/src/Products.CaseStudy/Products/CaseStudy/skins/CaseStudy/casestudy_collection_view2.pt> > > - Line 35, Column 8 > - Expression: <PythonExpr here.queryCatalog(batch=True)> > - Names: > {'container': <PloneSite at /xfer.asu.edu/caseStudies <http://xfer.asu.edu/caseStudies>>, > > 'context': <CaseStudy at /xfer.asu.edu/caseStudies/data-base/phx <http://xfer.asu.edu/caseStudies/data-base/phx>>, > 'default': <object object at 0x2af560567200>, > > 'here': <CaseStudy at /xfer.asu.edu/caseStudies/data-base/phx <http://xfer.asu.edu/caseStudies/data-base/phx>>, > 'loop': {}, > 'nothing': None, > 'options': {'args': ()}, > > 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x1425ff38>, > 'request': <HTTPRequest, URL=http://teancum.pp.asu.edu:9080/xfer.asu.edu/caseStudies/data-base/phx/casestudy_collection_view2>, > > 'root': <Application at >, > 'template': <FSPageTemplate at /xfer.asu.edu/caseStudies/casestudy_collection_view2 <http://xfer.asu.edu/caseStudies/casestudy_collection_view2> used for /xfer.asu.edu/caseStudies/data-base/phx <http://xfer.asu.edu/caseStudies/data-base/phx>>, > > TypeError: queryCatalog() got an unexpected keyword argument 'batch' > nothing to do with being authenticated or not. Your(?) code is calling queryCatalog() with an unsupported 'batch' parameter - for whatever reason. Check the queryCatalog script yourself and you will find out that there is no such parameter. Andreas [lists.vcf] begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:[hidden email] title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard ------------------------------------------------------------------------------ _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
Raphael Ritz
()
|
|
||||||||||||
|
In reply to this post
by David Bear
David Bear wrote:
> I have a view that I am customizing for a collection. The view works as > expected when I am logged in to the site. However, for the > unauthenticated user it produces the following traceback. Why would this > happen? [..] > Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec > > Module Products.CMFCore.FSPythonScript, line 196, in _exec This puzzles me if you say you customize the view of a collection (topic) because topics provide their own 'queryCatalog' method but you seem to be running into the skin script that's processing the search form. Maybe you screwed up your calling context somehow? Raphael > > TypeError: queryCatalog() got an unexpected keyword argument 'batch' > > > > -- > David Bear > College of Public Programs at ASU > 602-464-0424 > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users ------------------------------------------------------------------------------ _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |