[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] Insecure Debugging
From:       Dieter Maurer <dieter () handshake ! de>
Date:       2002-11-29 21:39:34
[Download RAW message or body]

Joseph Griffin writes:
 > I'm getting 401's when I try to debug my Zope site using pdb. This is my
 > start-up script:
 > 
 > ***********************
 > import sys
 > sys.path.append('Path to Plone')
 > 
 > import Zope, ZPublisher
 > from AccessControl.SecurityManagement import newSecurityManager
 > 
 > 
 > def zope (url):
 >     app = Zope.app()
 >     bsimon = app.acl_users.getUser('admin')
 >     newSecurityManager(None, bsimon)
 > 
 >     ZPublisher.Zope(url,d=1)
 > ************************
 > 
 > Any ideas? Thanks Joseph
Seems that the object you activate with the "Zope" call does
something user "admin" is not allowed to do.

Look at the resulting error page. Probably, it gives you
hints what causes these problems.

If not, Shane has a valuable product "VerbosePermissions" (or something
like that) which helps in understanding and analysing
authentication problems. It's the successor of the former
"ZDebug" product (also from Shane).


Dieter

_______________________________________________
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 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic