[Zope] permission problems during debugging Zope

Christoph Wierling wierling@molgen.mpg.de
Sun, 7 Oct 2001 19:07:02 +0200 (MET DST)


I try to debug my Zope (Zope-2.4.1) application by the use of the
following script ('debug.py'):

import Zope, ZPublisher
from AccessControl.SecurityManagement import newSecurityManager

def zope (url):
    app = Zope.app()
    admin = app.acl_users.getUser('admin')
    newSecurityManager(None, admin)

    ZPublisher.Zope(url, d=1)

Then I start up python and import this module.
By calling >>> debug.zope('/') I can debug without any problems, but
by calling >>> debug.zope('/manage') I get the following traceback during
debugging:

Traceback (innermost last):
  File
/src/Zope-2.4.1-src/lib/python/ZPublisher/Test.py,
line 263, in publish_module
  File
/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File
/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 162, in publish
  File
/src/Zope-2.4.1-src/lib/python/ZPublisher/BaseRequest.py,
line 463, in traverse
  File
/src/Zope-2.4.1-src/lib/python/ZPublisher/HTTPResponse.py,
line 581, in unauthorized
Unauthorized: (see above)

In my Zope application 'admin' does have the right to access '/manage',
so in principle it should work.

Does anybody know, way I run into an unauthorization error?


Christoph