Hi again!<br>I search for the user who is launching the execution of my code and I have a question:<br><br>I'm using prototype to launch some actions via AJAX <br><br>Could be this the problem?<br><br>How can I conservate the user who launch the actions between AJAX calls?
<br><br>Thanks!<br><br><div><span class="gmail_quote">2007/3/8, Garito <<a href="mailto:garito@gmail.com">garito@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As Josef tell me I try verbose security and this is the traceback:<br><pre><span class="q">Traceback (innermost last):<br> Module ZPublisher.Publish, line 106, in publish<br> Module ZPublisher.BaseRequest, line 323, in traverse
<br> Module <br>Products.Yanged.Yanged, line 61, in __bobo_traverse__<br> Module Products.Yanged.Yanged, line 134, in __call__<br></span> Module Products.Yanged.Yanged, line 165, in Ejecutar<span class="q"><br> Module
Products.Yanged.Yanged, line 118, in __call__<br><br></span> Module Products.Yanged.Yanged, line 165, in Ejecutar<span class="q"><br> Module Shared.DC.Scripts.Bindings, line 311, in __call__<br> Module Shared.DC.Scripts.Bindings
, line 348, in _bindAndExec<br> Module Products.PythonScripts.PythonScript<br>, line 325, in _exec<br> Module None, line 2, in Borrar<br> - <PythonScript at /sistes.net/clientes/escobarsl.com/Comandos/BorrarFuncionalidad used for /sistes.net/clientes/escobarsl.com/Pagina/Borrar/BorrarCaso>
<br><br> - Line 2<br></span> Module AccessControl.ImplPython, line 729, in guarded_getattr<br> Module AccessControl.ImplPython, line 671, in aq_validate<br> Module AccessControl.ImplPython, line 565, in validate<br> Module
AccessControl.ImplPython<br>, line 463, in validate<br> Module AccessControl.ImplPython, line 810, in raiseVerbose<br>Unauthorized: Your user account does not have the required permission. Access to 'manage_delObjects' of (Yanged at /sistes.net/clientes/escobarsl.com/Pagina/Funcionalidades) denied. Your user account, Anonymous User, exists at (unknown). Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous'].
<br><br></pre>I can't understand why when zope prompts me for a login and password and I put my user (with manager and owner roles) still fail. This is what seems weird for me<br><br>Isn't it?<br><br>Thanks!<br><br>
<div><span class="q">
<span class="gmail_quote">2007/3/8, Josef Meile <<a href="mailto:jmeile@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jmeile@hotmail.com</a>>:</span></span><div><span class="e" id="q_1113296ad98ce5be_8">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Have a look at the full traceback in the error_log (ZMI root folder -<br>> you may have to remove the 'Unauthorized' entry from the 'Ignored<br>> exception types' field), it may provide some more information.
<br>Another thing you can do is to activate the "verbose-security" directive<br>in your zope.conf file. Don't forget, to set the<br>"security-policy-implementation" to "python" and restart zope. You may
<br>get more verbose output when getting an Unauthorized exception.<br><br>Regards<br>Josef<br>_______________________________________________<br>Zope maillist - <a href="mailto:Zope@zope.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.zope.org/mailman/listinfo/zope</a><br>** No cross posts or HTML encoding! **<br>(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.zope.org/mailman/listinfo/zope-announce
</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br></blockquote></span></div></div>
<br><br clear="all"><div><span class="e" id="q_1113296ad98ce5be_10"><br>-- <br>Mis Cosas: <a href="http://blogs.sistes.net/Garito" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://blogs.sistes.net/Garito</a>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas: <a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>