>>>>> "John" == John Hunter <[EMAIL PROTECTED]> writes:
John> I installed VerboseSecurity and now get a more helpful error
John> message in the log (to refresh your memory, this is a pure
John> ZClass based product which stopped working on an upgrade to
John> 2.7). Here is the updated message
John> Exception Type Unauthorized
John> Exception Value The container has no security
John> assertions. Access to 'mentor' of (FactoryDispatcher
John> instance at 40aeafb0) denied.
OK, for the records, the following patch suggested by Dieter did in
fact fix this problem. Thanks Dieter!
render:/usr/share/zope2.7/lib/python/App> diff -c FactoryDispatcher.py
FactoryDispatcher.py.bak
*** FactoryDispatcher.py 2005-06-15 10:01:07.000000000 -0500
--- FactoryDispatcher.py.bak 2005-06-15 09:59:47.000000000 -0500
***************
*** 42,49 ****
"""
_owner=UnownableOwner
! __allow_access_to_unprotected_subobjects__=1
! __role__ = None
def __init__(self, product, dest, REQUEST=None):
if hasattr(product,'aq_base'): product=product.aq_base
self._product=product
--- 42,48 ----
"""
_owner=UnownableOwner
!
def __init__(self, product, dest, REQUEST=None):
if hasattr(product,'aq_base'): product=product.aq_base
self._product=product
_______________________________________________
Zope maillist - [email protected]
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 )