[Zope] permission problems during debugging Zope

Jens Vagelpohl jens@zope.com
Sun, 7 Oct 2001 15:05:34 -0400


pass along username and password like this::

ZPublisher.Zope(url, u="username:password", d=1)

jens


On Sunday, October 7, 2001, at 01:07 , Christoph Wierling wrote:

> 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
>
>
>
> _______________________________________________
> 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 )