[ZCM] [ZC] 1451/ 2 Comment "ComputedAttribute permission problems in 2.7"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Aug 3 00:32:07 EDT 2004


Issue #1451 Update (Comment) "ComputedAttribute permission problems in 2.7"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1451

==============================================================
= Comment - Entry #2 by ajung on Aug 3, 2004 12:32 am

Please describe how to reproduce the error.
________________________________________
= Request - Entry #1 by richard on Aug 2, 2004 11:01 pm

ComputedAttributes sometimes run afoul in the permission machinery with the following sort of error (courtesy VerboseSecurity):

"""
Module Products.PageTemplates.Expressions, line 336, in restrictedTraverse
   - __traceback_info__: {'path': ['cgpublisher_url'], 'TraversalRequestNameStack': [], 'page_layout': <CG TemplatedHTML page_layout at 0x3b5de00>}
  Module AccessControl.ImplPython, line 404, in validate
  Module Products.VerboseSecurity.VerboseSecurityPolicy, line 101, in validate
Unauthorized: No container provided.  Access to 'cgpublisher_url' of None, acquired through (CG WebSpace web at 0x3b5d9c0), denied.
"""

Where "cgpublisher_url" is the ComputedAttribute.

==============================================================



More information about the Zope-Collector-Monitor mailing list