view error generated for unauthenticated user

3 messages Options
Embed this post
Permalink
David Bear () view error generated for unauthenticated user
Reply Threaded More More options
Print post
Permalink
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):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 216, in _exec
Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
- Warning: Macro expansion failed
- Warning: exceptions.KeyError: 'fl_macro'
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 534, in do_optTag_tal
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: file:/afs/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>,
'context': <CaseStudy at /xfer.asu.edu/caseStudies/data-base/phx>,
'default': <object object at 0x2af560567200>,
'here': <CaseStudy at /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 used for /xfer.asu.edu/caseStudies/data-base/phx>,
'traverse_subpath': [],
'user': <SpecialUser 'Anonymous User'>}
Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
- __traceback_info__: here.queryCatalog(batch=True)
Module PythonExpr, line 1, in <expression>
Module Products.CMFCore.FSPythonScript, line 140, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 196, in _exec

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
ajung () Re: view error generated for unauthenticated user
Reply Threaded More More options
Print post
Permalink
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'
>  
The error message is pretty clear and self-speaking and should have
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 () Re: view error generated for unauthenticated user
Reply Threaded More More options
Print post
Permalink
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