[CPS-devel] Get cookie __ac from a python script

JoseLuis de la Rosa Triviño joseluis.rosa at iavantefundacion.com
Thu Jul 6 12:34:59 CEST 2006


Context.REQUEST['__ac_name'] retuns a KeyError too.

JoseLuis de la Rosa Triviño 
Técnico de Desarrollo Software 
FUNDACIÓN IAVANTE 
joseluis.rosa at iavantefundacion.com 
Tel. 951 015 300 

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

 

-----Mensaje original-----
De: Ib [mailto:ibibalias-cps at yahoo.fr] 
Enviado el: miércoles, 05 de julio de 2006 13:02
Para: JoseLuis de la Rosa Triviño; cps-devel at lists.nuxeo.com
Asunto: RE : [CPS-devel] Get cookie __ac from a python script

 

What about Context.REQUEST['__ac_name'] ?
Did you try it?

JoseLuis de la Rosa Triviño <joseluis.rosa at iavantefundacion.com> a écrit :

Hi,

 

I need to get the value of __ac cookie from a python script, I have tried three ways:

 

Context.REQUEST.cookies gives me a python dict with only the cookie _ZopeId, there's no __ac.

Context.REQUEST.response.cookies gives me an empty python dict.

Context.REQUEST.HTTP_COOKIE returns a string with both _ZopeId and __ac but I have to parse the string to get the __ac value which is a little bit dirty.

 

I'm sure there should be an esay way to get that cookie, may you help me?

 

Thank you very much.

 

JoseLuis de la Rosa Triviño 
Técnico de Desarrollo Software 
FUNDACIÓN IAVANTE 
joseluis.rosa at iavantefundacion.com 
Tel. 951 015 300 

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

 

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

 

  

  _____  

Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail <http://fr.rd.yahoo.com/evt=40577/*http:/fr.promotions.yahoo.com/mail/nouveaumail.html%20%0d%0a>  et son interface révolutionnaire. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060706/85e70478/attachment.html


More information about the cps-devel mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.