Hi all!<br>Some days ago I begin this threat: <a href="http://www.mail-archive.com/zope@zope.org/msg26355.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.mail-archive.com/zope@zope.org/msg26355.html
</a><br><br>Dieter point me to the solution and I try something like:
<br><br>def __bobo_traverse__(self, REQUEST, nombre):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; obj = getattr(self, nombre, None)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if obj is None: <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.REQUEST.set(&#39;TraversalRequestNameStack&#39;, self.REQUEST[&quot;TraversalRequestNameStack&quot;] + [nombre])
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; resultado = self()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if type(resultado) == type(unicode()): return WrapperUnicode(resultado)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; elif type(resultado) == type(str()): return WrapperStr(resultado)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else: return resultado
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return obj<br><br>and the wrappers:<br><br>class WrapperStr(str):<br>&nbsp;&nbsp;&nbsp; __roles__ = None<br>&nbsp;&nbsp;&nbsp; <br>class WrapperUnicode(unicode):<br>&nbsp;&nbsp;&nbsp; __roles__ = None<br><br>But when I try to launch this zope raises a NotFound exception
<br><br>If I inspect de content of resultado I could see an unicode string then the WrapperUnicode is used to wrap the result<br><br>Can you point me where the problem is, please?<br><br>Thanks a lot!<br clear="all"><br>
-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>