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
[EMAIL PROTECTED]
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

Reply via email to