Hi I'm using ZopeXMLMethods (1-0-0) and Pyana (0.9.1), operating system: different versions of Windows. Somewhere between Zope 2.7.0 and 2.7.3 something appears to be broken. When I try to add a XSLT Method, being logged in as administrator, I am forced to authenticate again, which fails of course with an Unauthorized error. Happens both on windows XP and Windows98SE. Traceback below. Any clue? tia Cornelis J. de Brabander Traceback (innermost last): a.. Module ZPublisher.Publish, line 175, in publish_module_standard b.. Module ZPublisher.Publish, line 132, in publish c.. Module Zope.App.startup, line 204, in zpublisher_exception_hook d.. Module ZPublisher.Publish, line 101, in publish e.. Module ZPublisher.mapply, line 88, in mapply f.. Module ZPublisher.Publish, line 39, in call_object g.. Module Shared.DC.Scripts.Bindings, line 306, in __call__ h.. Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec i.. Module Products.PageTemplates.PageTemplateFile, line 106, in _exec j.. Module Products.PageTemplates.PageTemplate, line 96, in pt_render <PageTemplateFile at /cursus01/kwigi/create> k.. Module TAL.TALInterpreter, line 190, in __call__ l.. Module TAL.TALInterpreter, line 234, in interpret m.. Module TAL.TALInterpreter, line 611, in do_loop_tal n.. Module Products.PageTemplates.TALES, line 206, in setRepeat o.. Module Products.PageTemplates.TALES, line 221, in evaluate URL: create Line 70, Column 6 Expression: standard:'here/availableProcessors' Names: {'container': <__FactoryDispatcher__ instance at 01EC0CB0>, 'context': <__FactoryDispatcher__ instance at 01EC0CB0>, 'default': <Products.PageTemplates.TALES.Default instance at 0x01E91EE0>, 'here': <__FactoryDispatcher__ instance at 01EC0CB0>, 'loop': <SafeMapping instance at 01EC0C60>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x01E89AF8>, 'nothing': None, 'options': {'args': ()}, 'repeat': <SafeMapping instance at 01EC0C60>, 'request': <HTTPRequest, URL=http://localhost:8080/cursus01/kwigi/manage_addProduct/ZopeXMLMethods/cr eate>, 'root': <Application instance at 023B21D0>, 'template': <PageTemplateFile at /cursus01/kwigi/create>, 'traverse_subpath': [], 'user': admin}p.. Module Products.PageTemplates.Expressions, line 201, in __call__ q.. Module Products.PageTemplates.Expressions, line 189, in _eval r.. Module Products.PageTemplates.Expressions, line 145, in _eval __traceback_info__: here s.. Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse __traceback_info__: {'path': ['availableProcessors'], 'TraversalRequestNameStack': []} Unauthorized: You are not allowed to access 'availableProcessors' in this context (Also, an error occurred while attempting to render the standard error message.)
I am wondering whether this may be related to the fixes for http://zope.org/Collectors/CMF/259 Do you expect to acquire availableProcessors? That is, is the path passed to restrictedTraverse a relative path? Looks like from the TB, just to make sure. Also, please try with Zope 2.7.2 so we know exactly when it it started to occur. Stefan On 2. Nov 2004, at 20:13, Kees de Brabander wrote:
q.. Module Products.PageTemplates.Expressions, line 189, in _eval r.. Module Products.PageTemplates.Expressions, line 145, in _eval __traceback_info__: here s.. Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse __traceback_info__: {'path': ['availableProcessors'], 'TraversalRequestNameStack': []} Unauthorized: You are not allowed to access 'availableProcessors' in this context (Also, an error occurred while attempting to render the standard error message.)
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/
Ah! I now see it comes from "here/availableProcessors" ... On 4. Nov 2004, at 13:46, Stefan H. Holek wrote:
Do you expect to acquire availableProcessors? That is, is the path passed to restrictedTraverse a relative path? Looks like from the TB, just to make sure.
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/
In Zope 2.7.2 this problem does not occur yet. cb ----- Original Message ----- From: "Stefan H. Holek" <stefan@epy.co.at> To: "Kees de Brabander" <cj.de.brabander@hccnet.nl> Cc: <zope@zope.org> Sent: Thursday, November 04, 2004 1:46 PM Subject: Re: [Zope] ZopeXMLMethods and Pyana in 2.7.3
I am wondering whether this may be related to the fixes for http://zope.org/Collectors/CMF/259
Do you expect to acquire availableProcessors? That is, is the path passed to restrictedTraverse a relative path? Looks like from the TB, just to make sure.
Also, please try with Zope 2.7.2 so we know exactly when it it started to occur.
Stefan
On 2. Nov 2004, at 20:13, Kees de Brabander wrote:
q.. Module Products.PageTemplates.Expressions, line 189, in _eval r.. Module Products.PageTemplates.Expressions, line 145, in _eval __traceback_info__: here s.. Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse __traceback_info__: {'path': ['availableProcessors'], 'TraversalRequestNameStack': []} Unauthorized: You are not allowed to access 'availableProcessors' in this context (Also, an error occurred while attempting to render the standard error message.)
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Kees de Brabander -
Stefan H. Holek