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?

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
       'context': <App.ProductContext.__FactoryDispatcher__ object at
       'default': <Products.PageTemplates.TALES.Default instance at
       'here': <App.ProductContext.__FactoryDispatcher__ object at
       'loop': <Products.PageTemplates.TALES.SafeMapping object at
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x02B78E18>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at
       'request': <HTTPRequest,
       '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

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to