[Zope] zopeXMLMethods and zope 2.8.x

Chris Withers chris at simplistix.co.uk
Tue Nov 1 04:53:30 EST 2005


Try enabling the verbose security reporting by fiddling the option in 
your zope.conf.

Something, somewhere is missing an appropriate security declaration...

Chris

Kees de Brabander wrote:
> I succeeded using zopeXMLMethods up to zope 2.7.8 after adapting its
> __init__.py (see
> http://mail.zope.org/pipermail/zope/2005-February/156670.html by Anton
> Stonor), which was necessary starting with zope 2.7.3. Trying to use this
> very same zopeXMLMethods product (that is with adapted __ini__.py) in zope
> 2.8.4, however, resulted in exactly the same error I got with the original
> __init__.py in zope 2.7.8 (traceback below)???
> Does anybody have a solution?
> cb
> 
> Trying to add a xsltmethod in the zmi brings the authentication dialog up
> and results in an unauthorized error:
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 113, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 40, in call_object
>   Module Shared.DC.Scripts.Bindings, line 311, in __call__
>   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
>   Module Products.PageTemplates.PageTemplateFile, line 110, in _exec
>   Module Products.PageTemplates.PageTemplate, line 104, in pt_render
>    - <PageTemplateFile at /qp/create>
>   Module TAL.TALInterpreter, line 206, in __call__
>   Module TAL.TALInterpreter, line 250, in interpret
>   Module TAL.TALInterpreter, line 651, in do_loop_tal
>   Module Products.PageTemplates.TALES, line 206, in setRepeat
>   Module Products.PageTemplates.TALES, line 221, in evaluate
>    - URL: create
>    - Line 70, Column 6
>    - Expression: standard:'here/availableProcessors'
>    - Names:
>       {'container': <App.ProductContext.__FactoryDispatcher__ object at
> 0x036A7E90>,
>        'context': <App.ProductContext.__FactoryDispatcher__ object at
> 0x036A7E90>,
>        'default': <Products.PageTemplates.TALES.Default instance at
> 0x02B8ABE8>,
>        'here': <App.ProductContext.__FactoryDispatcher__ object at
> 0x036A7E90>,
>        'loop': <Products.PageTemplates.TALES.SafeMapping object at
> 0x03710918>,
>        'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
> instance at 0x02B78E18>,
>        'nothing': None,
>        'options': {'args': ()},
>        'repeat': <Products.PageTemplates.TALES.SafeMapping object at
> 0x03710918>,
>        'request': <HTTPRequest,
> URL=http://localhost:8080/qp/manage_addProduct/ZopeXMLMethods/create>,
>        'root': <Application at >,
>        'template': <PageTemplateFile at /qp/create>,
>        'traverse_subpath': [],
>        'user': admin}
>   Module Products.PageTemplates.Expressions, line 185, in __call__
>   Module Products.PageTemplates.Expressions, line 173, in _eval
>   Module Products.PageTemplates.Expressions, line 127, in _eval
>    - __traceback_info__: here
>   Module Products.PageTemplates.Expressions, line 301, in restrictedTraverse
>    - __traceback_info__: {'path': ['availableProcessors'],
> 'TraversalRequestNameStack': []}
> Unauthorized: You are not allowed to access 'availableProcessors' in this
> context
> 
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list