Hi,<br>I have added :<br><br><include package="zope.app.exception.browser" /> in the file browser/configure.zcml and the result is the same.<br><br>I have identified the function that makes the difference, it is:<br>
> /home/simon/.buildout/eggs/zope.interface-3.5.1-py2.5-linux-i686.egg/zope/interface/adapter.py(478)queryMultiAdapter()<br>-> factory = self.lookup(map(providedBy, objects), provided, name)<br><br>where <br>(Pdb) print objects<br>
(Unauthorized(<zope.app.publisher.browser.viewmeta.SearchAddForm object at 0x9b503cc>, 'browserDefault', 'zope.View'), <zope.publisher.browser.BrowserRequest instance URL=<a href="http://localhost:9030/++skin++Login/@@search.html">http://localhost:9030/++skin++Login/@@search.html</a>>)<br>
(Pdb) print provided<br><InterfaceClass zope.interface.Interface><br>(Pdb) print name<br>index.html<br><br>I am a little bit stuck ...<br><br>Regards<br>Simon<br><br><br><br><div class="gmail_quote">On Sun, Jun 14, 2009 at 1:27 AM, Simon Elbaz <span dir="ltr"><<a href="mailto:elbazsimon9@gmail.com">elbazsimon9@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I am trying to set a SessionCredentialsPlugin in a application.<br><br>When I try to access the following URL <a href="http://localhost:9030/++skin++Login/@@search.html" target="_blank">http://localhost:9030/++skin++Login/@@search.html</a>, the result of the call:<br>
> /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(322)handleException()<br>-> view = zope.component.queryMultiAdapter(<br> (exception, request), name=name)<br>
(Pdb) print view.__init__<br><bound method Unauthorized.__init__ of <<b>zope.app.http.exception.unauthorized.Unauthorized </b>object at 0x97faa6c>><br><br>where exception=(<zope.app.publisher.browser.viewmeta.Contents object at 0x89ad5ec>, 'browserDefault', 'zope.View')<br>
<br><br>When I try to access the following URL <a href="http://localhost:9030/" target="_blank">http://localhost:9030/</a>, the result of the call:<br>> /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(322)handleException()<br>
-> view = zope.component.queryMultiAdapter((exception, request), name=name)<br>(Pdb) print view.__init__<br><bound method Unauthorized.__init__ of <<b>zope.app.publisher.browser.viewmeta.Unauthorized</b> object at 0x8badd6c>><br>
<br>where exception is (<zope.app.publisher.browser.viewmeta.SearchAddForm object at 0x89ad3ec>, 'browserDefault', 'cdcadama.View').<br><br>Could someone explain me why the result is different ?<br>
<br>
Thanks<br><font color="#888888">Simon<br><br><br>
</font></blockquote></div><br>