[Zope] breadcrumbs ques

AM list_subscriber@neurobs.com
Thu, 19 Sep 2002 08:14:53 -0700


Pretty much the sam ething... this time for aq_chain

Traceback (innermost last):
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /var/local/zope/leonardo/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: layout)
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /var/local/zope/leonardo/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Products/PythonScripts/PythonScript.py, line 302, in _exec
    (Object: gen_nav_list)
    (Info: ({'script': <PythonScript instance at 8bd5ca8>, 'context': <Folder instance at 8a002c8>, 'container': <Folder instance at 8a002c8>, 'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 2, in gen_nav_list
  File /var/local/zope/leonardo/lib/python/AccessControl/ZopeGuards.py, line 58, in guarded_getattr
    (Object: layout)
AttributeError: (see above)

Do I have something missing in my installation??

I tried to run the script, the PyScript from my site root and got an unauthorised error (without the aq_chain part ie) with the aqchain part I get the same error as above.

Traceback (innermost last):
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /var/local/zope/leonardo/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: Zope)
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /var/local/zope/leonardo/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec
    (Object: gen_nav_list)
  File /var/local/zope/leonardo/lib/python/Products/PythonScripts/PythonScript.py, line 302, in _exec
    (Object: gen_nav_list)
    (Info: ({'script': <PythonScript instance at 8c2c670>, 'context': <Application instance at 89d6a30>, 'container': <Application instance at 89d6a30>, 'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 2, in gen_nav_list
  File /var/local/zope/leonardo/lib/python/AccessControl/ZopeGuards.py, line 58, in guarded_getattr
    (Object: Zope)
  File /var/local/zope/leonardo/lib/python/AccessControl/ZopeGuards.py, line 40, in aq_validate
    (Object: Zope)
  File /var/local/zope/leonardo/lib/python/AccessControl/SecurityManager.py, line 83, in validate
  File /var/local/zope/leonardo/lib/python/AccessControl/ZopeSecurityPolicy.py, line 177, in validate
Unauthorized: (see above)

WHats going on??

TIA
AM

Chris Withers wrote:

> AM wrote:
>
>> I get an attribute error for getPhysicalRoot()...
>
>
> try putting:
>
> raise repr((context.aq_chain,context))
>
> ...on the line before the getPhysicalRoot and let us know what the 
> resultign exception type is.
>
> cheers,
>
> Chris
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================