Hi!<br>I don&#39;t understand quite well this explanation but it interest me a lot (as you can read if you search for my all questions about __bobo_traverse__)<br>do it need I put the __allow_access_to_unprotected_subobjects__=1 in the __bobo_traverse__ or in other place?<br>
<br>I my last try to solve this issue in my case I try the __roles__ = None but this was an uncomplete solution<br><br>Please can you complete my information?<br><br>Thanks!<br><br><div><span class="gmail_quote">2008/1/25, Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gerhard Schmidt wrote at 2008-1-25 12:04 +0100:<br>&gt;Dieter Maurer schrieb:<br>&gt; ...<br>&gt;&gt; I expect that the &quot;message&quot; object implements a &quot;__bobo_traverse__&quot;<br>&gt;&gt; method (or gets one through &quot;Five&quot;).<br>
&gt;&gt; Zope is a bit stupid when &quot;__bobo_traverse__&quot; returns an object<br>&gt;&gt; without security declarations -- such as e.g. a string.<br>&gt;&gt; In this case, it insists that &quot;getattr&quot; must return the same object<br>
&gt;&gt; and raise &quot;Unauthorized&quot; otherwise.<br>&gt;<br>&gt;Time&nbsp;&nbsp; 2008/01/25 12:01:53.125 GMT+1<br>&gt;User Name (User Id)&nbsp;&nbsp;&nbsp;&nbsp;DC83D1F1DB88CDE8 (DC83D1F1DB88CDE8)<br>&gt;Request URL&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://devportal:6080/portal_communications/manage_messagequeue">http://devportal:6080/portal_communications/manage_messagequeue</a><br>
&gt;Exception Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unauthorized<br>&gt;Exception Value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You are not allowed to access &#39;a particular str&#39; in<br>&gt;this context<br>&gt; ...<br>&gt;&nbsp;&nbsp; - __traceback_info__: message<br>&gt;&nbsp;&nbsp;Module Products.PageTemplates.Expressions, line 338, in restrictedTraverse<br>
&gt;&nbsp;&nbsp; - __traceback_info__: {&#39;path&#39;: [&#39;ID&#39;], &#39;TraversalRequestNameStack&#39;: []}<br>&gt;Unauthorized: You are not allowed to access &#39;a particular str&#39; in this<br>&gt;context<br><br>This may be compatible with my assumption.<br>
<br>Check line 338 in &quot;Products/PageTemplates/Expressions.py&quot;.<br>When this line is in the block handling the &quot;__bobo_traverse__&quot;,<br>then you have confirmed my assumption.<br><br><br>In this case, you must either get rid of the message&#39;s &quot;__bobo_traverse__&quot;<br>
or let it return an object with security declarations (such<br>as an &quot;str&quot; wrapper with an &quot;__allow_access_to_unprotected_subobjects__=1&quot;<br>and &quot;__roles__=None&quot;) or ensure that a &quot;getattr&quot; results in the same<br>
str or fix Zope.<br><br><br>--<br>Dieter<br>_______________________________________________<br>Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a><br>
**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<br>(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
</blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a><br>Zope Smart Manager<br><a href="http://blogs.sistes.net/Garito/670">http://blogs.sistes.net/Garito/670</a>