Authenticating as a portal user in the Zope debugger
If you want to authenticate as a Plone portal user while running in debug mode you need to do the following:
You need to replace ‘portal’ with the ID of your portal object and replace ‘andy’ with the name of your user, and lo! you will be authenticated.
If you want the work that you’re doing in the debugger to stick remember to commit your transaction: