|
Hello,
I'm using a compound widget (let A) that inside, it has a widget (let B) that renders a field that it doesn't need storage. That field has the same properties as the "fullname" field in the schema "members", it's to say "Read: ignore storage" and "Write: ignore storage" checked, "ACL: write roles" set to "Nobody", "Read: _expression_" and "Read: _expression_ dependent fields".
Everything works fine in view mode, but in edit mode (where the widget B is hidden) when I try to save the changes I get this error "WriteAccessError: Write access to fullname denied (roles)". It's trying to write the field when it shouldn't and if I take widget B outside widget A, everything works in view and edit mode.
When does CPS knows that a widget shouldn't be validated? I've taken a look at the validate method of the class CPSCompoundWidget and all widgets are validated, is this right?
Thanks a lot.
JoseLuis de la Rosa
Triviño
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
