[Checkins] SVN: bluebream/trunk/docs/source/faq.rst one more FAQ

Baiju M baiju.m.mail at gmail.com
Tue Jan 12 09:12:44 EST 2010


Log message for revision 108060:
  one more FAQ
  

Changed:
  U   bluebream/trunk/docs/source/faq.rst

-=-
Modified: bluebream/trunk/docs/source/faq.rst
===================================================================
--- bluebream/trunk/docs/source/faq.rst	2010-01-12 13:49:01 UTC (rev 108059)
+++ bluebream/trunk/docs/source/faq.rst	2010-01-12 14:12:43 UTC (rev 108060)
@@ -3,6 +3,8 @@
 
 This FAQ is originated from: http://wiki.zope.org/zope3/FAQ
 
+.. contents::
+
 General
 -------
 
@@ -403,6 +405,27 @@
 
   <adapter factory="zope.app.security.LogoutSupported" />
 
+Why I am getting ILoginPassword adaptation error when accessing login.html ?
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Ref: https://mail.zope.org/pipermail/zope3-users/2010-January/008745.html
+
+:Q: I am getting an error like this when accessing ``login.html`` view.
+
+::
+
+  .../eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py", 
+  line 82, in unauthorized
+     a = ILoginPassword(request)
+  TypeError: ('Could not adapt', <zope.publisher.browser.BrowserRequest 
+  instance URL=http://localhost:9060/@@login.html>, <InterfaceClass 
+  zope.authentication.interfaces.ILoginPassword>)
+
+You need to inlcude ``zope.login`` package in your ZCML configuration
+file (``site.zcml``) as the adapter registration is available there::
+
+   <include package="zope.login" />
+
 User Interface
 --------------
 



More information about the checkins mailing list