[Zope] Re: I don't understand why fail

Garito garito at gmail.com
Thu Mar 8 13:16:12 EST 2007


Hi again!
I search for the user who is launching the execution of my code and I have a
question:

I'm using prototype to launch some actions via AJAX

Could be this the problem?

How can I conservate the user who launch the actions between AJAX calls?

Thanks!

2007/3/8, Garito <garito at gmail.com>:
>
> As Josef tell me I try verbose security and this is the traceback:
>
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 106, in publish
>   Module ZPublisher.BaseRequest, line 323, in traverse
>   Module
> Products.Yanged.Yanged, line 61, in __bobo_traverse__
>   Module Products.Yanged.Yanged, line 134, in __call__
>   Module Products.Yanged.Yanged, line 165, in Ejecutar
>   Module Products.Yanged.Yanged, line 118, in __call__
>
>   Module Products.Yanged.Yanged, line 165, in Ejecutar
>   Module Shared.DC.Scripts.Bindings, line 311, in __call__
>   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
>   Module Products.PythonScripts.PythonScript
> , line 325, in _exec
>   Module None, line 2, in Borrar
>    - <PythonScript at /sistes.net/clientes/escobarsl.com/Comandos/BorrarFuncionalidad used for /sistes.net/clientes/escobarsl.com/Pagina/Borrar/BorrarCaso>
>
>    - Line 2
>   Module AccessControl.ImplPython, line 729, in guarded_getattr
>   Module AccessControl.ImplPython, line 671, in aq_validate
>   Module AccessControl.ImplPython, line 565, in validate
>   Module AccessControl.ImplPython
> , line 463, in validate
>   Module AccessControl.ImplPython, line 810, in raiseVerbose
> 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'].
>
> 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
>
> Isn't it?
>
> Thanks!
>
> 2007/3/8, Josef Meile <jmeile at hotmail.com>:
> >
> > > Have a look at the full traceback in the error_log (ZMI root folder -
> > > you may have to remove the 'Unauthorized' entry from the 'Ignored
> > > exception types' field), it may provide some more information.
> > Another thing you can do is to activate the "verbose-security" directive
> > in your zope.conf file. Don't forget, to set the
> > "security-policy-implementation" to "python" and restart zope. You may
> > get more verbose output when getting an Unauthorized exception.
> >
> > Regards
> > Josef
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> > http://mail.zope.org/mailman/listinfo/zope-announce
> > http://mail.zope.org/mailman/listinfo/zope-dev )
> >
>
>
>
> --
> Mis Cosas: http://blogs.sistes.net/Garito
>



-- 
Mis Cosas: http://blogs.sistes.net/Garito
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070308/97bdaafd/attachment.htm


More information about the Zope mailing list