[CPS-devel] context not available in read expression for creation of documents

JoseLuis de la Rosa Triviño joseluis.rosa at iavantefundacion.com
Wed Jun 14 20:41:48 CEST 2006


 

Hello, 

 

I'm using this expression {{{python:context.portal_directories.members[context.aq_parent.getId()].center}}} as "Read: Expression" for a schema field. It works fine when the document is already created, but when I create a new content an exception is raised because context is None and it can't get portal_directories.

"Read: ignore storage" is True for this field.

 

The question is: what can I use instead of context to get that field from members entry?

 

Thank you very much.

JoseLuis de la Rosa Triviño 
Becario Área de Sistemas de Información 
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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060614/04d5a1e1/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.