[Checkins] SVN: bluebream/website/docs/v1.0/faq.rst use debug shell

Baiju M baiju.m.mail at gmail.com
Wed Mar 24 07:28:05 EDT 2010


Log message for revision 110164:
  use debug shell
  

Changed:
  U   bluebream/website/docs/v1.0/faq.rst

-=-
Modified: bluebream/website/docs/v1.0/faq.rst
===================================================================
--- bluebream/website/docs/v1.0/faq.rst	2010-03-24 11:23:00 UTC (rev 110163)
+++ bluebream/website/docs/v1.0/faq.rst	2010-03-24 11:28:05 UTC (rev 110164)
@@ -244,24 +244,24 @@
 I've registered a PAU in the site-root; now I cannot log in as zope.Manager. What gives?
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Start zopedebug then unregister the utility.  This will then let you
-log in as a user defined in principals.zcml.
+Start debug shell then unregister the utility.  This will then let
+you log in as a user defined in ``securitypolicy.zcml``.
 
-Example (execute the following with zopedebug)::
+Example::
 
-  import transaction
-  from zope.component import getSiteManager
-  from zope.app.security.interfaces import IAuthentication
+  $ ./bin/paster shell debug.ini
+  ...
+  >>> import transaction
+  >>> from zope.component import getSiteManager
+  >>> from zope.app.security.interfaces import IAuthentication
+  >>> lsm = getSiteManager(root)
+  >>> lsm.unregisterUtility(lsm.getUtility(IAuthentication), IAuthentication)
+  >>> transaction.commit()
 
-  lsm = getSiteManager(root)
-  lsm.unregisterUtility(lsm.getUtility(IAuthentication), IAuthentication)
+When you exit debug and start the server, you should be able to log
+in again using the user defined in principals.zcml.  This should have
+the ``zope.Manager`` permission.
 
-  transaction.commit()
-
-When you exit zopedebug and start the server, you should be able to
-log in again using the user defined in principals.zcml.  This should
-have the zope.Manager permission.
-
 To avoid this happening, either assign a role to a user defined in the
 PAU or set up a folder beneath the root, make it a site and add and
 register the PAU there. Then you will still be able to log in to the



More information about the checkins mailing list